ORBit2-2.14.19/0000755000175000001440000000000011450334027007725 500000000000000ORBit2-2.14.19/ORBit2.m40000644000175000001440000002157011334247617011166 00000000000000dnl AM_PATH_ORBIT2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) dnl Test for ORBit2, and define ORBIT_CFLAGS and ORBIT_LIBS dnl AC_DEFUN([AM_PATH_ORBIT2], [dnl dnl Get the cflags and libraries from the orbit2-config script dnl AC_ARG_WITH(orbit-prefix,[ --with-orbit-prefix=PFX Prefix where ORBIT is installed (optional)], orbit_config_prefix="$withval", orbit_config_prefix="") AC_ARG_WITH(orbit-exec-prefix,[ --with-orbit-exec-prefix=PFX Exec prefix where ORBIT is installed (optional)], orbit_config_exec_prefix="$withval", orbit_config_exec_prefix="") AC_ARG_ENABLE(orbittest, [ --disable-orbittest Do not try to compile and run a test ORBIT program], , enable_orbittest=yes) for module in . $4 do case "$module" in server) orbit_config_args="$orbit_config_args server" ;; client) orbit_config_args="$orbit_config_args client" ;; esac done if test x$orbit_config_args = x ; then orbit_config_args=server fi if test x$orbit_config_exec_prefix != x ; then orbit_config_args="$orbit_config_args --exec-prefix=$orbit_config_exec_prefix" if test x${ORBIT_CONFIG+set} != xset ; then ORBIT_CONFIG=$orbit_config_exec_prefix/bin/orbit2-config fi fi if test x$orbit_config_prefix != x ; then orbit_config_args="$orbit_config_args --prefix=$orbit_config_prefix" if test x${ORBIT_CONFIG+set} != xset ; then ORBIT_CONFIG=$orbit_config_prefix/bin/orbit2-config fi fi AC_PATH_PROG(PKG_CONFIG, pkg-config, no) AC_PATH_PROG(ORBIT_CONFIG, orbit2-config, no) min_orbit_version=ifelse([$1], , 2.3.0, $1) AC_MSG_CHECKING(for ORBit - version >= $min_orbit_version) no_orbit="" if test "$ORBIT_CONFIG" = "no" ; then if test "$PKG_CONFIG" = "no" ; then no_orbit=yes else ORBIT_CFLAGS=`$PKG_CONFIG --cflags ORBit-2.0` ORBIT_LIBS=`$PKG_CONFIG --libs ORBit-2.0` fi else ORBIT_CFLAGS=`$ORBIT_CONFIG $orbit_config_args --cflags` ORBIT_LIBS=`$ORBIT_CONFIG $orbit_config_args --libs` fi if test "x$no_orbit" = x ; then ORBIT_VERSION=`$PKG_CONFIG --modversion ORBit-2.0` orbit_config_major_version=`echo $ORBIT_VERSION | \ sed -e 's,[[^0-9.]],,g' -e 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` orbit_config_minor_version=`echo $ORBIT_VERSION | \ sed -e 's,[[^0-9.]],,g' -e 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` orbit_config_micro_version=`echo $ORBIT_VERSION | \ sed -e 's,[[^0-9.]],,g' -e 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_orbittest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $ORBIT_CFLAGS" LIBS="$ORBIT_LIBS $LIBS" dnl dnl Now check if the installed ORBIT is sufficiently new. (Also sanity dnl checks the results of orbit2-config to some extent dnl rm -f conf.orbittest AC_TRY_RUN([ #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.orbittest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_orbit_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_orbit_version"); exit(1); } if ((orbit_major_version != $orbit_config_major_version) || (orbit_minor_version != $orbit_config_minor_version) || (orbit_micro_version != $orbit_config_micro_version)) { printf("\n*** 'pkg-config --version ORBit-2.0' returned %d.%d.%d, but ORBit (%d.%d.%d)\n", $orbit_config_major_version, $orbit_config_minor_version, $orbit_config_micro_version, orbit_major_version, orbit_minor_version, orbit_micro_version); printf ("*** was found! If orbit2-config was correct, then it is best\n"); printf ("*** to remove the old version of ORBit. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If orbit2-config was wrong, set the environment variable ORBIT_CONFIG\n"); printf("*** to point to the correct copy of orbit2-config, and remove the file config.cache\n"); printf("*** before re-running configure\n"); } #if defined (ORBIT_MAJOR_VERSION) && defined (ORBIT_MINOR_VERSION) && defined (ORBIT_MICRO_VERSION) else if ((orbit_major_version != ORBIT_MAJOR_VERSION) || (orbit_minor_version != ORBIT_MINOR_VERSION) || (orbit_micro_version != ORBIT_MICRO_VERSION)) { printf("*** ORBit header files (version %d.%d.%d) do not match\n", ORBIT_MAJOR_VERSION, ORBIT_MINOR_VERSION, ORBIT_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", orbit_major_version, orbit_minor_version, orbit_micro_version); } #endif /* defined (ORBIT_MAJOR_VERSION) ... */ else { if ((orbit_major_version > major) || ((orbit_major_version == major) && (orbit_minor_version > minor)) || ((orbit_major_version == major) && (orbit_minor_version == minor) && (orbit_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of ORBit (%d.%d.%d) was found.\n", orbit_major_version, orbit_minor_version, orbit_micro_version); printf("*** You need a version of ORBit newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** ORBit is always available from ftp://ftp.orbit.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the orbit2-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of ORBit, but you can also set the ORBIT_CONFIG environment to point to the\n"); printf("*** correct copy of orbit2-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } ],, no_orbit=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_orbit" = x ; then AC_MSG_RESULT(yes) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$ORBIT_CONFIG" = "no" ; then echo "*** The orbit2-config script installed by ORBIT could not be found" echo "*** If ORBit was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the ORBIT_CONFIG environment variable to the" echo "*** full path to orbit2-config." else if test -f conf.orbittest ; then : else echo "*** Could not run ORBIT test program, checking why..." CFLAGS="$CFLAGS $ORBIT_CFLAGS" LIBS="$LIBS $ORBIT_LIBS" AC_TRY_LINK([ #include #include ], [ return ((orbit_major_version) || (orbit_minor_version) || (orbit_micro_version)); ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding ORBit or finding the wrong" echo "*** version of ORBit. If it is not finding ORBit, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" echo "***" echo "*** If you have a RedHat 5.0 system, you should remove the ORBit package that" echo "*** came with the system with the command" echo "***" echo "*** rpm --erase --nodeps orbit orbit-devel" ], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means ORBIT was incorrectly installed" echo "*** or that you have moved ORBit since it was installed. In the latter case, you" echo "*** may want to edit the orbit2-config script: $ORBIT_CONFIG" ]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi ORBIT_CFLAGS="" ORBIT_LIBS="" ifelse([$3], , :, [$3]) fi AC_PATH_PROG(ORBIT_IDL, orbit-idl-2, ifelse([$3], , :, [$3])) AC_SUBST(ORBIT_CFLAGS) AC_SUBST(ORBIT_LIBS) AC_SUBST(ORBIT_IDL) rm -f conf.orbittest ]) ORBit2-2.14.19/include/0000755000175000001440000000000011450334030011342 500000000000000ORBit2-2.14.19/include/Makefile.am0000644000175000001440000000001611334247617013332 00000000000000SUBDIRS=orbit ORBit2-2.14.19/include/Makefile.in0000644000175000001440000004366511450333732013355 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = include DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = orbit all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu include/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/include/orbit/0000755000175000001440000000000011450334030012461 500000000000000ORBit2-2.14.19/include/orbit/dynamic/0000755000175000001440000000000011450334030014105 500000000000000ORBit2-2.14.19/include/orbit/dynamic/Makefile.am0000644000175000001440000000107411334247617016102 00000000000000dynamicincludedir=$(includedir)/orbit-2.0/orbit/dynamic dynamicinclude_HEADERS= \ dynamic.h \ dynamic-defs.h BUILT_SOURCES=dynamic-defs.h IDL_FLAGS=-I$(top_srcdir)/src/idl/CORBA_PIDL \ -I$(top_srcdir)/src/idl/CORBA \ -I$(top_srcdir)/src/orb/orb-core \ -I$(top_srcdir)/src/idl/misc \ --define=Object=OObject --define=TypeCode=TTypeCode \ --noskels --nodefskels --nostubs --nocommon --noidata \ --showcpperrors IDL_DIR=$(top_srcdir)/src/orb/dynamic/ IDL_FILES=dynamic-defs.idl include $(top_srcdir)/Makefile.shared CLEANFILES=$(BUILT_SOURCES) ORBit2-2.14.19/include/orbit/dynamic/Makefile.in0000644000175000001440000004060211450333732016104 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ DIST_COMMON = $(dynamicinclude_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(top_srcdir)/Makefile.shared subdir = include/orbit/dynamic ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(dynamicincludedir)" HEADERS = $(dynamicinclude_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ dynamicincludedir = $(includedir)/orbit-2.0/orbit/dynamic dynamicinclude_HEADERS = \ dynamic.h \ dynamic-defs.h BUILT_SOURCES = dynamic-defs.h IDL_FLAGS = -I$(top_srcdir)/src/idl/CORBA_PIDL \ -I$(top_srcdir)/src/idl/CORBA \ -I$(top_srcdir)/src/orb/orb-core \ -I$(top_srcdir)/src/idl/misc \ --define=Object=OObject --define=TypeCode=TTypeCode \ --noskels --nodefskels --nostubs --nocommon --noidata \ --showcpperrors IDL_DIR = $(top_srcdir)/src/orb/dynamic/ IDL_FILES = dynamic-defs.idl @MAINTAINER_MODE_TRUE@IDL_DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) @MAINTAINER_MODE_TRUE@IDL_DEP_FILES = $(IDL_FILES:%.idl=.deps/%.idl.P) CLEANFILES = $(BUILT_SOURCES) all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.shared $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/orbit/dynamic/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu include/orbit/dynamic/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-dynamicincludeHEADERS: $(dynamicinclude_HEADERS) @$(NORMAL_INSTALL) test -z "$(dynamicincludedir)" || $(MKDIR_P) "$(DESTDIR)$(dynamicincludedir)" @list='$(dynamicinclude_HEADERS)'; test -n "$(dynamicincludedir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(dynamicincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(dynamicincludedir)" || exit $$?; \ done uninstall-dynamicincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(dynamicinclude_HEADERS)'; test -n "$(dynamicincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(dynamicincludedir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(dynamicincludedir)" && rm -f $$files ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(HEADERS) installdirs: for dir in "$(DESTDIR)$(dynamicincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-local \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dynamicincludeHEADERS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dynamicincludeHEADERS .MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool ctags distclean distclean-generic \ distclean-libtool distclean-local distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-dynamicincludeHEADERS install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags uninstall uninstall-am \ uninstall-dynamicincludeHEADERS %-stubs.c %-skels.c %-common.c %-imodule.c %-skelimpl.c: %.h true %.h: $(IDL_DIR)%.idl $(IDL_COMPILER) -(rm -f $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c || true) > /dev/null $(IDL_COMPILER) $(IDL_FLAGS) --deps $(*D)/.deps/$(*F).idl.P $< for I in $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c; do \ if test -f $$I; then \ sed -e 's,OObject,Object,g' -e 's,TTypeCode,TypeCode,g' $$I > $$I.out; \ mv $$I.out $$I ; \ fi; \ done @MAINTAINER_MODE_TRUE@-include $(IDL_DEP_FILES) distclean-local: -rm -rf .deps # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/include/orbit/dynamic/dynamic-defs.h0000644000175000001440000030572211450333751016563 00000000000000/* * This file was generated by orbit-idl-2 - DO NOT EDIT! */ #ifndef dynamic_defs_H #define dynamic_defs_H 1 #include #define ORBIT_IDL_SERIAL 20 #include #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /** typedefs **/ #if !defined(ORBIT_DECL_DynamicAny_DynAny) && !defined(_DynamicAny_DynAny_defined) #define ORBIT_DECL_DynamicAny_DynAny 1 #define _DynamicAny_DynAny_defined 1 typedef struct DynamicAny_DynAny_type *DynamicAny_DynAny; #ifndef TC_DynamicAny_DynAny # define TC_DynamicAny_DynAny TC_CORBA_Object #endif #endif #undef ex_DynamicAny_DynAny_InvalidValue #define ex_DynamicAny_DynAny_InvalidValue "IDL:omg.org/DynamicAny/DynAny/InvalidValue:1.0" #if !defined(_DynamicAny_DynAny_InvalidValue_defined) #define _DynamicAny_DynAny_InvalidValue_defined 1 typedef struct DynamicAny_DynAny_InvalidValue_type DynamicAny_DynAny_InvalidValue; struct DynamicAny_DynAny_InvalidValue_type { int dummy; }; #if !defined(TC_IMPL_TC_DynamicAny_DynAny_InvalidValue_0) #define TC_IMPL_TC_DynamicAny_DynAny_InvalidValue_0 'd' #define TC_IMPL_TC_DynamicAny_DynAny_InvalidValue_1 'y' #define TC_IMPL_TC_DynamicAny_DynAny_InvalidValue_2 'n' #define TC_IMPL_TC_DynamicAny_DynAny_InvalidValue_3 'a' #define TC_IMPL_TC_DynamicAny_DynAny_InvalidValue_4 'm' #define TC_IMPL_TC_DynamicAny_DynAny_InvalidValue_5 'i' #define TC_IMPL_TC_DynamicAny_DynAny_InvalidValue_6 'c' #define TC_IMPL_TC_DynamicAny_DynAny_InvalidValue_7 '_' #define TC_IMPL_TC_DynamicAny_DynAny_InvalidValue_8 'd' #define TC_IMPL_TC_DynamicAny_DynAny_InvalidValue_9 'e' #define TC_IMPL_TC_DynamicAny_DynAny_InvalidValue_10 'f' #define TC_IMPL_TC_DynamicAny_DynAny_InvalidValue_11 's' #ifdef ORBIT_IDL_C_IMODULE_dynamic_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_DynamicAny_DynAny_InvalidValue_struct; #define TC_DynamicAny_DynAny_InvalidValue ((CORBA_TypeCode)&TC_DynamicAny_DynAny_InvalidValue_struct) #endif #define DynamicAny_DynAny_InvalidValue__alloc() ((DynamicAny_DynAny_InvalidValue *)ORBit_small_alloc (TC_DynamicAny_DynAny_InvalidValue)) #define DynamicAny_DynAny_InvalidValue__freekids(m,d) ORBit_small_freekids (TC_DynamicAny_DynAny_InvalidValue,(m),(d)) #endif #undef ex_DynamicAny_DynAny_TypeMismatch #define ex_DynamicAny_DynAny_TypeMismatch "IDL:omg.org/DynamicAny/DynAny/TypeMismatch:1.0" #if !defined(_DynamicAny_DynAny_TypeMismatch_defined) #define _DynamicAny_DynAny_TypeMismatch_defined 1 typedef struct DynamicAny_DynAny_TypeMismatch_type DynamicAny_DynAny_TypeMismatch; struct DynamicAny_DynAny_TypeMismatch_type { int dummy; }; #if !defined(TC_IMPL_TC_DynamicAny_DynAny_TypeMismatch_0) #define TC_IMPL_TC_DynamicAny_DynAny_TypeMismatch_0 'd' #define TC_IMPL_TC_DynamicAny_DynAny_TypeMismatch_1 'y' #define TC_IMPL_TC_DynamicAny_DynAny_TypeMismatch_2 'n' #define TC_IMPL_TC_DynamicAny_DynAny_TypeMismatch_3 'a' #define TC_IMPL_TC_DynamicAny_DynAny_TypeMismatch_4 'm' #define TC_IMPL_TC_DynamicAny_DynAny_TypeMismatch_5 'i' #define TC_IMPL_TC_DynamicAny_DynAny_TypeMismatch_6 'c' #define TC_IMPL_TC_DynamicAny_DynAny_TypeMismatch_7 '_' #define TC_IMPL_TC_DynamicAny_DynAny_TypeMismatch_8 'd' #define TC_IMPL_TC_DynamicAny_DynAny_TypeMismatch_9 'e' #define TC_IMPL_TC_DynamicAny_DynAny_TypeMismatch_10 'f' #define TC_IMPL_TC_DynamicAny_DynAny_TypeMismatch_11 's' #ifdef ORBIT_IDL_C_IMODULE_dynamic_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_DynamicAny_DynAny_TypeMismatch_struct; #define TC_DynamicAny_DynAny_TypeMismatch ((CORBA_TypeCode)&TC_DynamicAny_DynAny_TypeMismatch_struct) #endif #define DynamicAny_DynAny_TypeMismatch__alloc() ((DynamicAny_DynAny_TypeMismatch *)ORBit_small_alloc (TC_DynamicAny_DynAny_TypeMismatch)) #define DynamicAny_DynAny_TypeMismatch__freekids(m,d) ORBit_small_freekids (TC_DynamicAny_DynAny_TypeMismatch,(m),(d)) #endif #if !defined(ORBIT_DECL_DynamicAny_DynFixed) && !defined(_DynamicAny_DynFixed_defined) #define ORBIT_DECL_DynamicAny_DynFixed 1 #define _DynamicAny_DynFixed_defined 1 typedef struct DynamicAny_DynFixed_type *DynamicAny_DynFixed; #ifndef TC_DynamicAny_DynFixed # define TC_DynamicAny_DynFixed TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_DynamicAny_DynEnum) && !defined(_DynamicAny_DynEnum_defined) #define ORBIT_DECL_DynamicAny_DynEnum 1 #define _DynamicAny_DynEnum_defined 1 typedef struct DynamicAny_DynEnum_type *DynamicAny_DynEnum; #ifndef TC_DynamicAny_DynEnum # define TC_DynamicAny_DynEnum TC_CORBA_Object #endif #endif #if !defined(_DynamicAny_FieldName_defined) #define _DynamicAny_FieldName_defined 1 typedef CORBA_string DynamicAny_FieldName; #define DynamicAny_FieldName_marshal(x,y,z) CORBA_string_marshal((x),(y),(z)) #define DynamicAny_FieldName_demarshal(x,y,z,i) CORBA_string_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_DynamicAny_FieldName_0) #define TC_IMPL_TC_DynamicAny_FieldName_0 'd' #define TC_IMPL_TC_DynamicAny_FieldName_1 'y' #define TC_IMPL_TC_DynamicAny_FieldName_2 'n' #define TC_IMPL_TC_DynamicAny_FieldName_3 'a' #define TC_IMPL_TC_DynamicAny_FieldName_4 'm' #define TC_IMPL_TC_DynamicAny_FieldName_5 'i' #define TC_IMPL_TC_DynamicAny_FieldName_6 'c' #define TC_IMPL_TC_DynamicAny_FieldName_7 '_' #define TC_IMPL_TC_DynamicAny_FieldName_8 'd' #define TC_IMPL_TC_DynamicAny_FieldName_9 'e' #define TC_IMPL_TC_DynamicAny_FieldName_10 'f' #define TC_IMPL_TC_DynamicAny_FieldName_11 's' #ifdef ORBIT_IDL_C_IMODULE_dynamic_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_DynamicAny_FieldName_struct; #define TC_DynamicAny_FieldName ((CORBA_TypeCode)&TC_DynamicAny_FieldName_struct) #endif #define DynamicAny_FieldName__alloc() ((DynamicAny_FieldName *)ORBit_small_alloc (TC_CORBA_string)) #define DynamicAny_FieldName__freekids(m,d) ORBit_small_freekids (TC_CORBA_string,(m),(d)) #endif #if !defined(_DynamicAny_NameValuePair_defined) #define _DynamicAny_NameValuePair_defined 1 typedef struct DynamicAny_NameValuePair_type DynamicAny_NameValuePair; struct DynamicAny_NameValuePair_type { DynamicAny_FieldName id; CORBA_any value; }; #if !defined(TC_IMPL_TC_DynamicAny_NameValuePair_0) #define TC_IMPL_TC_DynamicAny_NameValuePair_0 'd' #define TC_IMPL_TC_DynamicAny_NameValuePair_1 'y' #define TC_IMPL_TC_DynamicAny_NameValuePair_2 'n' #define TC_IMPL_TC_DynamicAny_NameValuePair_3 'a' #define TC_IMPL_TC_DynamicAny_NameValuePair_4 'm' #define TC_IMPL_TC_DynamicAny_NameValuePair_5 'i' #define TC_IMPL_TC_DynamicAny_NameValuePair_6 'c' #define TC_IMPL_TC_DynamicAny_NameValuePair_7 '_' #define TC_IMPL_TC_DynamicAny_NameValuePair_8 'd' #define TC_IMPL_TC_DynamicAny_NameValuePair_9 'e' #define TC_IMPL_TC_DynamicAny_NameValuePair_10 'f' #define TC_IMPL_TC_DynamicAny_NameValuePair_11 's' #ifdef ORBIT_IDL_C_IMODULE_dynamic_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_DynamicAny_NameValuePair_struct; #define TC_DynamicAny_NameValuePair ((CORBA_TypeCode)&TC_DynamicAny_NameValuePair_struct) #endif #define DynamicAny_NameValuePair__alloc() ((DynamicAny_NameValuePair *)ORBit_small_alloc (TC_DynamicAny_NameValuePair)) #define DynamicAny_NameValuePair__freekids(m,d) ORBit_small_freekids (TC_DynamicAny_NameValuePair,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_DynamicAny_NameValuePair) #define ORBIT_DECL_CORBA_sequence_DynamicAny_NameValuePair 1 #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameValuePair_0 'd' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameValuePair_1 'y' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameValuePair_2 'n' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameValuePair_3 'a' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameValuePair_4 'm' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameValuePair_5 'i' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameValuePair_6 'c' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameValuePair_7 '_' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameValuePair_8 'd' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameValuePair_9 'e' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameValuePair_10 'f' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameValuePair_11 's' #if !defined(_CORBA_sequence_DynamicAny_NameValuePair_defined) #define _CORBA_sequence_DynamicAny_NameValuePair_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; DynamicAny_NameValuePair* _buffer; CORBA_boolean _release; } CORBA_sequence_DynamicAny_NameValuePair; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_DynamicAny_NameValuePair_0) #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameValuePair_0 'd' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameValuePair_1 'y' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameValuePair_2 'n' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameValuePair_3 'a' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameValuePair_4 'm' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameValuePair_5 'i' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameValuePair_6 'c' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameValuePair_7 '_' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameValuePair_8 'd' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameValuePair_9 'e' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameValuePair_10 'f' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameValuePair_11 's' #ifdef ORBIT_IDL_C_IMODULE_dynamic_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_DynamicAny_NameValuePair_struct; #define TC_CORBA_sequence_DynamicAny_NameValuePair ((CORBA_TypeCode)&TC_CORBA_sequence_DynamicAny_NameValuePair_struct) #endif #define CORBA_sequence_DynamicAny_NameValuePair__alloc() ((CORBA_sequence_DynamicAny_NameValuePair *)ORBit_small_alloc (TC_CORBA_sequence_DynamicAny_NameValuePair)) #define CORBA_sequence_DynamicAny_NameValuePair__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_DynamicAny_NameValuePair,(m),(d)) #define CORBA_sequence_DynamicAny_NameValuePair_allocbuf(l) ((DynamicAny_NameValuePair*)ORBit_small_allocbuf (TC_CORBA_sequence_DynamicAny_NameValuePair, (l))) #define CORBA_sequence_DynamicAny_NameValuePair_allocbuf(l) ((DynamicAny_NameValuePair*)ORBit_small_allocbuf (TC_CORBA_sequence_DynamicAny_NameValuePair, (l))) #endif #if !defined(_DynamicAny_NameValuePairSeq_defined) #define _DynamicAny_NameValuePairSeq_defined 1 typedef CORBA_sequence_DynamicAny_NameValuePair DynamicAny_NameValuePairSeq; #define DynamicAny_NameValuePairSeq_marshal(x,y,z) CORBA_sequence_DynamicAny_NameValuePair_marshal((x),(y),(z)) #define DynamicAny_NameValuePairSeq_demarshal(x,y,z,i) CORBA_sequence_DynamicAny_NameValuePair_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_DynamicAny_NameValuePairSeq_0) #define TC_IMPL_TC_DynamicAny_NameValuePairSeq_0 'd' #define TC_IMPL_TC_DynamicAny_NameValuePairSeq_1 'y' #define TC_IMPL_TC_DynamicAny_NameValuePairSeq_2 'n' #define TC_IMPL_TC_DynamicAny_NameValuePairSeq_3 'a' #define TC_IMPL_TC_DynamicAny_NameValuePairSeq_4 'm' #define TC_IMPL_TC_DynamicAny_NameValuePairSeq_5 'i' #define TC_IMPL_TC_DynamicAny_NameValuePairSeq_6 'c' #define TC_IMPL_TC_DynamicAny_NameValuePairSeq_7 '_' #define TC_IMPL_TC_DynamicAny_NameValuePairSeq_8 'd' #define TC_IMPL_TC_DynamicAny_NameValuePairSeq_9 'e' #define TC_IMPL_TC_DynamicAny_NameValuePairSeq_10 'f' #define TC_IMPL_TC_DynamicAny_NameValuePairSeq_11 's' #ifdef ORBIT_IDL_C_IMODULE_dynamic_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_DynamicAny_NameValuePairSeq_struct; #define TC_DynamicAny_NameValuePairSeq ((CORBA_TypeCode)&TC_DynamicAny_NameValuePairSeq_struct) #endif #define DynamicAny_NameValuePairSeq__alloc() ((DynamicAny_NameValuePairSeq *)ORBit_small_alloc (TC_CORBA_sequence_DynamicAny_NameValuePair)) #define DynamicAny_NameValuePairSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_DynamicAny_NameValuePair,(m),(d)) #define DynamicAny_NameValuePairSeq_allocbuf(l) ((DynamicAny_NameValuePair*)ORBit_small_allocbuf (TC_CORBA_sequence_DynamicAny_NameValuePair, (l))) #endif #if !defined(_DynamicAny_NameDynAnyPair_defined) #define _DynamicAny_NameDynAnyPair_defined 1 typedef struct DynamicAny_NameDynAnyPair_type DynamicAny_NameDynAnyPair; struct DynamicAny_NameDynAnyPair_type { DynamicAny_FieldName id; DynamicAny_DynAny value; }; #if !defined(TC_IMPL_TC_DynamicAny_NameDynAnyPair_0) #define TC_IMPL_TC_DynamicAny_NameDynAnyPair_0 'd' #define TC_IMPL_TC_DynamicAny_NameDynAnyPair_1 'y' #define TC_IMPL_TC_DynamicAny_NameDynAnyPair_2 'n' #define TC_IMPL_TC_DynamicAny_NameDynAnyPair_3 'a' #define TC_IMPL_TC_DynamicAny_NameDynAnyPair_4 'm' #define TC_IMPL_TC_DynamicAny_NameDynAnyPair_5 'i' #define TC_IMPL_TC_DynamicAny_NameDynAnyPair_6 'c' #define TC_IMPL_TC_DynamicAny_NameDynAnyPair_7 '_' #define TC_IMPL_TC_DynamicAny_NameDynAnyPair_8 'd' #define TC_IMPL_TC_DynamicAny_NameDynAnyPair_9 'e' #define TC_IMPL_TC_DynamicAny_NameDynAnyPair_10 'f' #define TC_IMPL_TC_DynamicAny_NameDynAnyPair_11 's' #ifdef ORBIT_IDL_C_IMODULE_dynamic_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_DynamicAny_NameDynAnyPair_struct; #define TC_DynamicAny_NameDynAnyPair ((CORBA_TypeCode)&TC_DynamicAny_NameDynAnyPair_struct) #endif #define DynamicAny_NameDynAnyPair__alloc() ((DynamicAny_NameDynAnyPair *)ORBit_small_alloc (TC_DynamicAny_NameDynAnyPair)) #define DynamicAny_NameDynAnyPair__freekids(m,d) ORBit_small_freekids (TC_DynamicAny_NameDynAnyPair,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_DynamicAny_NameDynAnyPair) #define ORBIT_DECL_CORBA_sequence_DynamicAny_NameDynAnyPair 1 #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameDynAnyPair_0 'd' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameDynAnyPair_1 'y' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameDynAnyPair_2 'n' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameDynAnyPair_3 'a' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameDynAnyPair_4 'm' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameDynAnyPair_5 'i' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameDynAnyPair_6 'c' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameDynAnyPair_7 '_' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameDynAnyPair_8 'd' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameDynAnyPair_9 'e' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameDynAnyPair_10 'f' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_NameDynAnyPair_11 's' #if !defined(_CORBA_sequence_DynamicAny_NameDynAnyPair_defined) #define _CORBA_sequence_DynamicAny_NameDynAnyPair_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; DynamicAny_NameDynAnyPair* _buffer; CORBA_boolean _release; } CORBA_sequence_DynamicAny_NameDynAnyPair; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_DynamicAny_NameDynAnyPair_0) #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameDynAnyPair_0 'd' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameDynAnyPair_1 'y' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameDynAnyPair_2 'n' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameDynAnyPair_3 'a' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameDynAnyPair_4 'm' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameDynAnyPair_5 'i' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameDynAnyPair_6 'c' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameDynAnyPair_7 '_' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameDynAnyPair_8 'd' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameDynAnyPair_9 'e' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameDynAnyPair_10 'f' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_NameDynAnyPair_11 's' #ifdef ORBIT_IDL_C_IMODULE_dynamic_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_DynamicAny_NameDynAnyPair_struct; #define TC_CORBA_sequence_DynamicAny_NameDynAnyPair ((CORBA_TypeCode)&TC_CORBA_sequence_DynamicAny_NameDynAnyPair_struct) #endif #define CORBA_sequence_DynamicAny_NameDynAnyPair__alloc() ((CORBA_sequence_DynamicAny_NameDynAnyPair *)ORBit_small_alloc (TC_CORBA_sequence_DynamicAny_NameDynAnyPair)) #define CORBA_sequence_DynamicAny_NameDynAnyPair__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_DynamicAny_NameDynAnyPair,(m),(d)) #define CORBA_sequence_DynamicAny_NameDynAnyPair_allocbuf(l) ((DynamicAny_NameDynAnyPair*)ORBit_small_allocbuf (TC_CORBA_sequence_DynamicAny_NameDynAnyPair, (l))) #define CORBA_sequence_DynamicAny_NameDynAnyPair_allocbuf(l) ((DynamicAny_NameDynAnyPair*)ORBit_small_allocbuf (TC_CORBA_sequence_DynamicAny_NameDynAnyPair, (l))) #endif #if !defined(_DynamicAny_NameDynAnyPairSeq_defined) #define _DynamicAny_NameDynAnyPairSeq_defined 1 typedef CORBA_sequence_DynamicAny_NameDynAnyPair DynamicAny_NameDynAnyPairSeq; #define DynamicAny_NameDynAnyPairSeq_marshal(x,y,z) CORBA_sequence_DynamicAny_NameDynAnyPair_marshal((x),(y),(z)) #define DynamicAny_NameDynAnyPairSeq_demarshal(x,y,z,i) CORBA_sequence_DynamicAny_NameDynAnyPair_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_DynamicAny_NameDynAnyPairSeq_0) #define TC_IMPL_TC_DynamicAny_NameDynAnyPairSeq_0 'd' #define TC_IMPL_TC_DynamicAny_NameDynAnyPairSeq_1 'y' #define TC_IMPL_TC_DynamicAny_NameDynAnyPairSeq_2 'n' #define TC_IMPL_TC_DynamicAny_NameDynAnyPairSeq_3 'a' #define TC_IMPL_TC_DynamicAny_NameDynAnyPairSeq_4 'm' #define TC_IMPL_TC_DynamicAny_NameDynAnyPairSeq_5 'i' #define TC_IMPL_TC_DynamicAny_NameDynAnyPairSeq_6 'c' #define TC_IMPL_TC_DynamicAny_NameDynAnyPairSeq_7 '_' #define TC_IMPL_TC_DynamicAny_NameDynAnyPairSeq_8 'd' #define TC_IMPL_TC_DynamicAny_NameDynAnyPairSeq_9 'e' #define TC_IMPL_TC_DynamicAny_NameDynAnyPairSeq_10 'f' #define TC_IMPL_TC_DynamicAny_NameDynAnyPairSeq_11 's' #ifdef ORBIT_IDL_C_IMODULE_dynamic_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_DynamicAny_NameDynAnyPairSeq_struct; #define TC_DynamicAny_NameDynAnyPairSeq ((CORBA_TypeCode)&TC_DynamicAny_NameDynAnyPairSeq_struct) #endif #define DynamicAny_NameDynAnyPairSeq__alloc() ((DynamicAny_NameDynAnyPairSeq *)ORBit_small_alloc (TC_CORBA_sequence_DynamicAny_NameDynAnyPair)) #define DynamicAny_NameDynAnyPairSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_DynamicAny_NameDynAnyPair,(m),(d)) #define DynamicAny_NameDynAnyPairSeq_allocbuf(l) ((DynamicAny_NameDynAnyPair*)ORBit_small_allocbuf (TC_CORBA_sequence_DynamicAny_NameDynAnyPair, (l))) #endif #if !defined(ORBIT_DECL_DynamicAny_DynStruct) && !defined(_DynamicAny_DynStruct_defined) #define ORBIT_DECL_DynamicAny_DynStruct 1 #define _DynamicAny_DynStruct_defined 1 typedef struct DynamicAny_DynStruct_type *DynamicAny_DynStruct; #ifndef TC_DynamicAny_DynStruct # define TC_DynamicAny_DynStruct TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_DynamicAny_DynUnion) && !defined(_DynamicAny_DynUnion_defined) #define ORBIT_DECL_DynamicAny_DynUnion 1 #define _DynamicAny_DynUnion_defined 1 typedef struct DynamicAny_DynUnion_type *DynamicAny_DynUnion; #ifndef TC_DynamicAny_DynUnion # define TC_DynamicAny_DynUnion TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_any) #define ORBIT_DECL_CORBA_sequence_CORBA_any 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_any_0 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_any_1 'y' #define ORBIT_IMPL_CORBA_sequence_CORBA_any_2 'n' #define ORBIT_IMPL_CORBA_sequence_CORBA_any_3 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_any_4 'm' #define ORBIT_IMPL_CORBA_sequence_CORBA_any_5 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_any_6 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_any_7 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_any_8 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_any_9 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_any_10 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_any_11 's' #if !defined(_CORBA_sequence_CORBA_any_defined) #define _CORBA_sequence_CORBA_any_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_any* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_any; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_any_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_any_0 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_any_1 'y' #define TC_IMPL_TC_CORBA_sequence_CORBA_any_2 'n' #define TC_IMPL_TC_CORBA_sequence_CORBA_any_3 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_any_4 'm' #define TC_IMPL_TC_CORBA_sequence_CORBA_any_5 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_any_6 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_any_7 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_any_8 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_any_9 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_any_10 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_any_11 's' #ifdef ORBIT_IDL_C_IMODULE_dynamic_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_any_struct; #define TC_CORBA_sequence_CORBA_any ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_any_struct) #endif #define CORBA_sequence_CORBA_any__alloc() ((CORBA_sequence_CORBA_any *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_any)) #define CORBA_sequence_CORBA_any__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_any,(m),(d)) #define CORBA_sequence_CORBA_any_allocbuf(l) ((CORBA_any*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_any, (l))) #define CORBA_sequence_CORBA_any_allocbuf(l) ((CORBA_any*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_any, (l))) #endif #if !defined(_DynamicAny_AnySeq_defined) #define _DynamicAny_AnySeq_defined 1 typedef CORBA_sequence_CORBA_any DynamicAny_AnySeq; #define DynamicAny_AnySeq_marshal(x,y,z) CORBA_sequence_CORBA_any_marshal((x),(y),(z)) #define DynamicAny_AnySeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_any_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_DynamicAny_AnySeq_0) #define TC_IMPL_TC_DynamicAny_AnySeq_0 'd' #define TC_IMPL_TC_DynamicAny_AnySeq_1 'y' #define TC_IMPL_TC_DynamicAny_AnySeq_2 'n' #define TC_IMPL_TC_DynamicAny_AnySeq_3 'a' #define TC_IMPL_TC_DynamicAny_AnySeq_4 'm' #define TC_IMPL_TC_DynamicAny_AnySeq_5 'i' #define TC_IMPL_TC_DynamicAny_AnySeq_6 'c' #define TC_IMPL_TC_DynamicAny_AnySeq_7 '_' #define TC_IMPL_TC_DynamicAny_AnySeq_8 'd' #define TC_IMPL_TC_DynamicAny_AnySeq_9 'e' #define TC_IMPL_TC_DynamicAny_AnySeq_10 'f' #define TC_IMPL_TC_DynamicAny_AnySeq_11 's' #ifdef ORBIT_IDL_C_IMODULE_dynamic_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_DynamicAny_AnySeq_struct; #define TC_DynamicAny_AnySeq ((CORBA_TypeCode)&TC_DynamicAny_AnySeq_struct) #endif #define DynamicAny_AnySeq__alloc() ((DynamicAny_AnySeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_any)) #define DynamicAny_AnySeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_any,(m),(d)) #define DynamicAny_AnySeq_allocbuf(l) ((CORBA_any*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_any, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Object) #define ORBIT_DECL_CORBA_sequence_CORBA_Object 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_0 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_1 'y' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_2 'n' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_3 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_4 'm' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_5 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_6 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_7 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_8 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_9 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_10 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_11 's' #if !defined(_CORBA_sequence_CORBA_Object_defined) #define _CORBA_sequence_CORBA_Object_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_Object* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_Object; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Object_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_0 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_1 'y' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_2 'n' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_3 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_4 'm' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_5 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_6 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_7 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_8 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_9 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_10 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_11 's' #ifdef ORBIT_IDL_C_IMODULE_dynamic_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Object_struct; #define TC_CORBA_sequence_CORBA_Object ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Object_struct) #endif #define CORBA_sequence_CORBA_Object__alloc() ((CORBA_sequence_CORBA_Object *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Object)) #define CORBA_sequence_CORBA_Object__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Object,(m),(d)) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_DynamicAny_DynAny) #define ORBIT_DECL_CORBA_sequence_DynamicAny_DynAny 1 #define ORBIT_IMPL_CORBA_sequence_DynamicAny_DynAny_0 'd' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_DynAny_1 'y' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_DynAny_2 'n' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_DynAny_3 'a' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_DynAny_4 'm' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_DynAny_5 'i' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_DynAny_6 'c' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_DynAny_7 '_' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_DynAny_8 'd' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_DynAny_9 'e' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_DynAny_10 'f' #define ORBIT_IMPL_CORBA_sequence_DynamicAny_DynAny_11 's' #if !defined(_CORBA_sequence_DynamicAny_DynAny_defined) #define _CORBA_sequence_DynamicAny_DynAny_defined 1 typedef CORBA_sequence_CORBA_Object CORBA_sequence_DynamicAny_DynAny; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_DynamicAny_DynAny_0) #define TC_IMPL_TC_CORBA_sequence_DynamicAny_DynAny_0 'd' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_DynAny_1 'y' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_DynAny_2 'n' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_DynAny_3 'a' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_DynAny_4 'm' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_DynAny_5 'i' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_DynAny_6 'c' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_DynAny_7 '_' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_DynAny_8 'd' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_DynAny_9 'e' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_DynAny_10 'f' #define TC_IMPL_TC_CORBA_sequence_DynamicAny_DynAny_11 's' #ifdef ORBIT_IDL_C_IMODULE_dynamic_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_DynamicAny_DynAny_struct; #define TC_CORBA_sequence_DynamicAny_DynAny ((CORBA_TypeCode)&TC_CORBA_sequence_DynamicAny_DynAny_struct) #endif #define CORBA_sequence_DynamicAny_DynAny__alloc CORBA_sequence_CORBA_Object__alloc #define CORBA_sequence_DynamicAny_DynAny__freekids CORBA_sequence_CORBA_Object__freekids #define CORBA_sequence_DynamicAny_DynAny_allocbuf CORBA_sequence_CORBA_Object_allocbuf #define CORBA_sequence_DynamicAny_DynAny_marshal(x,y,z) CORBA_sequence_CORBA_Object_marshal((x),(y),(z)) #define CORBA_sequence_DynamicAny_DynAny_demarshal(x,y,z,i) CORBA_sequence_CORBA_Object_demarshal((x),(y),(z),(i)) #endif #if !defined(_DynamicAny_DynAnySeq_defined) #define _DynamicAny_DynAnySeq_defined 1 typedef CORBA_sequence_DynamicAny_DynAny DynamicAny_DynAnySeq; #define DynamicAny_DynAnySeq_marshal(x,y,z) CORBA_sequence_DynamicAny_DynAny_marshal((x),(y),(z)) #define DynamicAny_DynAnySeq_demarshal(x,y,z,i) CORBA_sequence_DynamicAny_DynAny_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_DynamicAny_DynAnySeq_0) #define TC_IMPL_TC_DynamicAny_DynAnySeq_0 'd' #define TC_IMPL_TC_DynamicAny_DynAnySeq_1 'y' #define TC_IMPL_TC_DynamicAny_DynAnySeq_2 'n' #define TC_IMPL_TC_DynamicAny_DynAnySeq_3 'a' #define TC_IMPL_TC_DynamicAny_DynAnySeq_4 'm' #define TC_IMPL_TC_DynamicAny_DynAnySeq_5 'i' #define TC_IMPL_TC_DynamicAny_DynAnySeq_6 'c' #define TC_IMPL_TC_DynamicAny_DynAnySeq_7 '_' #define TC_IMPL_TC_DynamicAny_DynAnySeq_8 'd' #define TC_IMPL_TC_DynamicAny_DynAnySeq_9 'e' #define TC_IMPL_TC_DynamicAny_DynAnySeq_10 'f' #define TC_IMPL_TC_DynamicAny_DynAnySeq_11 's' #ifdef ORBIT_IDL_C_IMODULE_dynamic_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_DynamicAny_DynAnySeq_struct; #define TC_DynamicAny_DynAnySeq ((CORBA_TypeCode)&TC_DynamicAny_DynAnySeq_struct) #endif #define DynamicAny_DynAnySeq__alloc() ((DynamicAny_DynAnySeq *)ORBit_small_alloc (TC_CORBA_sequence_DynamicAny_DynAny)) #define DynamicAny_DynAnySeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_DynamicAny_DynAny,(m),(d)) #define DynamicAny_DynAnySeq_allocbuf(l) ((DynamicAny_DynAny*)ORBit_small_allocbuf (TC_CORBA_sequence_DynamicAny_DynAny, (l))) #endif #if !defined(ORBIT_DECL_DynamicAny_DynSequence) && !defined(_DynamicAny_DynSequence_defined) #define ORBIT_DECL_DynamicAny_DynSequence 1 #define _DynamicAny_DynSequence_defined 1 typedef struct DynamicAny_DynSequence_type *DynamicAny_DynSequence; #ifndef TC_DynamicAny_DynSequence # define TC_DynamicAny_DynSequence TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_DynamicAny_DynArray) && !defined(_DynamicAny_DynArray_defined) #define ORBIT_DECL_DynamicAny_DynArray 1 #define _DynamicAny_DynArray_defined 1 typedef struct DynamicAny_DynArray_type *DynamicAny_DynArray; #ifndef TC_DynamicAny_DynArray # define TC_DynamicAny_DynArray TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_DynamicAny_DynValueCommon) && !defined(_DynamicAny_DynValueCommon_defined) #define ORBIT_DECL_DynamicAny_DynValueCommon 1 #define _DynamicAny_DynValueCommon_defined 1 typedef struct DynamicAny_DynValueCommon_type *DynamicAny_DynValueCommon; #ifndef TC_DynamicAny_DynValueCommon # define TC_DynamicAny_DynValueCommon TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_DynamicAny_DynValue) && !defined(_DynamicAny_DynValue_defined) #define ORBIT_DECL_DynamicAny_DynValue 1 #define _DynamicAny_DynValue_defined 1 typedef struct DynamicAny_DynValue_type *DynamicAny_DynValue; #ifndef TC_DynamicAny_DynValue # define TC_DynamicAny_DynValue TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_DynamicAny_DynValueBox) && !defined(_DynamicAny_DynValueBox_defined) #define ORBIT_DECL_DynamicAny_DynValueBox 1 #define _DynamicAny_DynValueBox_defined 1 typedef struct DynamicAny_DynValueBox_type *DynamicAny_DynValueBox; #ifndef TC_DynamicAny_DynValueBox # define TC_DynamicAny_DynValueBox TC_CORBA_Object #endif #endif #undef ex_DynamicAny_MustTruncate #define ex_DynamicAny_MustTruncate "IDL:omg.org/DynamicAny/MustTruncate:1.0" #if !defined(_DynamicAny_MustTruncate_defined) #define _DynamicAny_MustTruncate_defined 1 typedef struct DynamicAny_MustTruncate_type DynamicAny_MustTruncate; struct DynamicAny_MustTruncate_type { int dummy; }; #if !defined(TC_IMPL_TC_DynamicAny_MustTruncate_0) #define TC_IMPL_TC_DynamicAny_MustTruncate_0 'd' #define TC_IMPL_TC_DynamicAny_MustTruncate_1 'y' #define TC_IMPL_TC_DynamicAny_MustTruncate_2 'n' #define TC_IMPL_TC_DynamicAny_MustTruncate_3 'a' #define TC_IMPL_TC_DynamicAny_MustTruncate_4 'm' #define TC_IMPL_TC_DynamicAny_MustTruncate_5 'i' #define TC_IMPL_TC_DynamicAny_MustTruncate_6 'c' #define TC_IMPL_TC_DynamicAny_MustTruncate_7 '_' #define TC_IMPL_TC_DynamicAny_MustTruncate_8 'd' #define TC_IMPL_TC_DynamicAny_MustTruncate_9 'e' #define TC_IMPL_TC_DynamicAny_MustTruncate_10 'f' #define TC_IMPL_TC_DynamicAny_MustTruncate_11 's' #ifdef ORBIT_IDL_C_IMODULE_dynamic_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_DynamicAny_MustTruncate_struct; #define TC_DynamicAny_MustTruncate ((CORBA_TypeCode)&TC_DynamicAny_MustTruncate_struct) #endif #define DynamicAny_MustTruncate__alloc() ((DynamicAny_MustTruncate *)ORBit_small_alloc (TC_DynamicAny_MustTruncate)) #define DynamicAny_MustTruncate__freekids(m,d) ORBit_small_freekids (TC_DynamicAny_MustTruncate,(m),(d)) #endif #if !defined(ORBIT_DECL_DynamicAny_DynAnyFactory) && !defined(_DynamicAny_DynAnyFactory_defined) #define ORBIT_DECL_DynamicAny_DynAnyFactory 1 #define _DynamicAny_DynAnyFactory_defined 1 typedef struct DynamicAny_DynAnyFactory_type *DynamicAny_DynAnyFactory; #ifndef TC_DynamicAny_DynAnyFactory # define TC_DynamicAny_DynAnyFactory TC_CORBA_Object #endif #endif #undef ex_DynamicAny_DynAnyFactory_InconsistentTypeCode #define ex_DynamicAny_DynAnyFactory_InconsistentTypeCode "IDL:omg.org/DynamicAny/DynAnyFactory/InconsistentTypeCode:1.0" #if !defined(_DynamicAny_DynAnyFactory_InconsistentTypeCode_defined) #define _DynamicAny_DynAnyFactory_InconsistentTypeCode_defined 1 typedef struct DynamicAny_DynAnyFactory_InconsistentTypeCode_type DynamicAny_DynAnyFactory_InconsistentTypeCode; struct DynamicAny_DynAnyFactory_InconsistentTypeCode_type { int dummy; }; #if !defined(TC_IMPL_TC_DynamicAny_DynAnyFactory_InconsistentTypeCode_0) #define TC_IMPL_TC_DynamicAny_DynAnyFactory_InconsistentTypeCode_0 'd' #define TC_IMPL_TC_DynamicAny_DynAnyFactory_InconsistentTypeCode_1 'y' #define TC_IMPL_TC_DynamicAny_DynAnyFactory_InconsistentTypeCode_2 'n' #define TC_IMPL_TC_DynamicAny_DynAnyFactory_InconsistentTypeCode_3 'a' #define TC_IMPL_TC_DynamicAny_DynAnyFactory_InconsistentTypeCode_4 'm' #define TC_IMPL_TC_DynamicAny_DynAnyFactory_InconsistentTypeCode_5 'i' #define TC_IMPL_TC_DynamicAny_DynAnyFactory_InconsistentTypeCode_6 'c' #define TC_IMPL_TC_DynamicAny_DynAnyFactory_InconsistentTypeCode_7 '_' #define TC_IMPL_TC_DynamicAny_DynAnyFactory_InconsistentTypeCode_8 'd' #define TC_IMPL_TC_DynamicAny_DynAnyFactory_InconsistentTypeCode_9 'e' #define TC_IMPL_TC_DynamicAny_DynAnyFactory_InconsistentTypeCode_10 'f' #define TC_IMPL_TC_DynamicAny_DynAnyFactory_InconsistentTypeCode_11 's' #ifdef ORBIT_IDL_C_IMODULE_dynamic_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_DynamicAny_DynAnyFactory_InconsistentTypeCode_struct; #define TC_DynamicAny_DynAnyFactory_InconsistentTypeCode ((CORBA_TypeCode)&TC_DynamicAny_DynAnyFactory_InconsistentTypeCode_struct) #endif #define DynamicAny_DynAnyFactory_InconsistentTypeCode__alloc() ((DynamicAny_DynAnyFactory_InconsistentTypeCode *)ORBit_small_alloc (TC_DynamicAny_DynAnyFactory_InconsistentTypeCode)) #define DynamicAny_DynAnyFactory_InconsistentTypeCode__freekids(m,d) ORBit_small_freekids (TC_DynamicAny_DynAnyFactory_InconsistentTypeCode,(m),(d)) #endif /** stub prototypes **/ CORBA_TypeCode DynamicAny_DynAny_type(DynamicAny_DynAny _obj, CORBA_Environment *ev); void DynamicAny_DynAny_assign(DynamicAny_DynAny _obj, const DynamicAny_DynAny dyn_any, CORBA_Environment *ev); void DynamicAny_DynAny_from_any(DynamicAny_DynAny _obj, const CORBA_any* value, CORBA_Environment *ev); CORBA_any* DynamicAny_DynAny_to_any(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_boolean DynamicAny_DynAny_equal(DynamicAny_DynAny _obj, const DynamicAny_DynAny dyn_any, CORBA_Environment *ev); void DynamicAny_DynAny_destroy(DynamicAny_DynAny _obj, CORBA_Environment *ev); DynamicAny_DynAny DynamicAny_DynAny_copy(DynamicAny_DynAny _obj, CORBA_Environment *ev); void DynamicAny_DynAny_insert_boolean(DynamicAny_DynAny _obj, const CORBA_boolean value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_octet(DynamicAny_DynAny _obj, const CORBA_octet value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_char(DynamicAny_DynAny _obj, const CORBA_char value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_short(DynamicAny_DynAny _obj, const CORBA_short value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_ushort(DynamicAny_DynAny _obj, const CORBA_unsigned_short value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_long(DynamicAny_DynAny _obj, const CORBA_long value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_ulong(DynamicAny_DynAny _obj, const CORBA_unsigned_long value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_float(DynamicAny_DynAny _obj, const CORBA_float value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_double(DynamicAny_DynAny _obj, const CORBA_double value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_string(DynamicAny_DynAny _obj, const CORBA_char * value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_reference(DynamicAny_DynAny _obj, const CORBA_Object value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_typecode(DynamicAny_DynAny _obj, const CORBA_TypeCode value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_longlong(DynamicAny_DynAny _obj, const CORBA_long_long value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_ulonglong(DynamicAny_DynAny _obj, const CORBA_unsigned_long_long value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_longdouble(DynamicAny_DynAny _obj, const CORBA_long_double value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_wchar(DynamicAny_DynAny _obj, const CORBA_wchar value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_wstring(DynamicAny_DynAny _obj, const CORBA_wstring value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_any(DynamicAny_DynAny _obj, const CORBA_any* value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_dyn_any(DynamicAny_DynAny _obj, const DynamicAny_DynAny value, CORBA_Environment *ev); CORBA_boolean DynamicAny_DynAny_get_boolean(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_octet DynamicAny_DynAny_get_octet(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_char DynamicAny_DynAny_get_char(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_short DynamicAny_DynAny_get_short(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_unsigned_short DynamicAny_DynAny_get_ushort(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_long DynamicAny_DynAny_get_long(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_unsigned_long DynamicAny_DynAny_get_ulong(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_float DynamicAny_DynAny_get_float(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_double DynamicAny_DynAny_get_double(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_string DynamicAny_DynAny_get_string(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_Object DynamicAny_DynAny_get_reference(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_TypeCode DynamicAny_DynAny_get_typecode(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_long_long DynamicAny_DynAny_get_longlong(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_unsigned_long_long DynamicAny_DynAny_get_ulonglong(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_long_double DynamicAny_DynAny_get_longdouble(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_wchar DynamicAny_DynAny_get_wchar(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_wstring DynamicAny_DynAny_get_wstring(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_any* DynamicAny_DynAny_get_any(DynamicAny_DynAny _obj, CORBA_Environment *ev); DynamicAny_DynAny DynamicAny_DynAny_get_dyn_any(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_boolean DynamicAny_DynAny_seek(DynamicAny_DynAny _obj, const CORBA_long index, CORBA_Environment *ev); void DynamicAny_DynAny_rewind(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_boolean DynamicAny_DynAny_next(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_unsigned_long DynamicAny_DynAny_component_count(DynamicAny_DynAny _obj, CORBA_Environment *ev); DynamicAny_DynAny DynamicAny_DynAny_current_component(DynamicAny_DynAny _obj, CORBA_Environment *ev); void DynamicAny_DynAny_insert_abstract(DynamicAny_DynAny _obj, const CORBA_AbstractBase value, CORBA_Environment *ev); CORBA_AbstractBase DynamicAny_DynAny_get_abstract(DynamicAny_DynAny _obj, CORBA_Environment *ev); void DynamicAny_DynAny_insert_boolean_seq(DynamicAny_DynAny _obj, const CORBA_BooleanSeq* value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_octet_seq(DynamicAny_DynAny _obj, const CORBA_OctetSeq* value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_char_seq(DynamicAny_DynAny _obj, const CORBA_CharSeq* value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_short_seq(DynamicAny_DynAny _obj, const CORBA_ShortSeq* value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_ushort_seq(DynamicAny_DynAny _obj, const CORBA_UShortSeq* value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_long_seq(DynamicAny_DynAny _obj, const CORBA_LongSeq* value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_ulong_seq(DynamicAny_DynAny _obj, const CORBA_ULongSeq* value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_float_seq(DynamicAny_DynAny _obj, const CORBA_FloatSeq* value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_double_seq(DynamicAny_DynAny _obj, const CORBA_DoubleSeq* value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_longlong_seq(DynamicAny_DynAny _obj, const CORBA_LongLongSeq* value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_ulonglong_seq(DynamicAny_DynAny _obj, const CORBA_ULongLongSeq* value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_longdouble_seq(DynamicAny_DynAny _obj, const CORBA_LongDoubleSeq* value, CORBA_Environment *ev); void DynamicAny_DynAny_insert_wchar_seq(DynamicAny_DynAny _obj, const CORBA_WCharSeq* value, CORBA_Environment *ev); CORBA_BooleanSeq* DynamicAny_DynAny_get_boolean_seq(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_OctetSeq* DynamicAny_DynAny_get_octet_seq(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_CharSeq* DynamicAny_DynAny_get_char_seq(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_ShortSeq* DynamicAny_DynAny_get_short_seq(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_UShortSeq* DynamicAny_DynAny_get_ushort_seq(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_LongSeq* DynamicAny_DynAny_get_long_seq(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_ULongSeq* DynamicAny_DynAny_get_ulong_seq(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_FloatSeq* DynamicAny_DynAny_get_float_seq(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_DoubleSeq* DynamicAny_DynAny_get_double_seq(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_LongLongSeq* DynamicAny_DynAny_get_longlong_seq(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_ULongLongSeq* DynamicAny_DynAny_get_ulonglong_seq(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_LongDoubleSeq* DynamicAny_DynAny_get_longdouble_seq(DynamicAny_DynAny _obj, CORBA_Environment *ev); CORBA_WCharSeq* DynamicAny_DynAny_get_wchar_seq(DynamicAny_DynAny _obj, CORBA_Environment *ev); #define DynamicAny_DynFixed_type DynamicAny_DynAny_type #define DynamicAny_DynFixed_assign DynamicAny_DynAny_assign #define DynamicAny_DynFixed_from_any DynamicAny_DynAny_from_any #define DynamicAny_DynFixed_to_any DynamicAny_DynAny_to_any #define DynamicAny_DynFixed_equal DynamicAny_DynAny_equal #define DynamicAny_DynFixed_destroy DynamicAny_DynAny_destroy #define DynamicAny_DynFixed_copy DynamicAny_DynAny_copy #define DynamicAny_DynFixed_insert_boolean DynamicAny_DynAny_insert_boolean #define DynamicAny_DynFixed_insert_octet DynamicAny_DynAny_insert_octet #define DynamicAny_DynFixed_insert_char DynamicAny_DynAny_insert_char #define DynamicAny_DynFixed_insert_short DynamicAny_DynAny_insert_short #define DynamicAny_DynFixed_insert_ushort DynamicAny_DynAny_insert_ushort #define DynamicAny_DynFixed_insert_long DynamicAny_DynAny_insert_long #define DynamicAny_DynFixed_insert_ulong DynamicAny_DynAny_insert_ulong #define DynamicAny_DynFixed_insert_float DynamicAny_DynAny_insert_float #define DynamicAny_DynFixed_insert_double DynamicAny_DynAny_insert_double #define DynamicAny_DynFixed_insert_string DynamicAny_DynAny_insert_string #define DynamicAny_DynFixed_insert_reference DynamicAny_DynAny_insert_reference #define DynamicAny_DynFixed_insert_typecode DynamicAny_DynAny_insert_typecode #define DynamicAny_DynFixed_insert_longlong DynamicAny_DynAny_insert_longlong #define DynamicAny_DynFixed_insert_ulonglong DynamicAny_DynAny_insert_ulonglong #define DynamicAny_DynFixed_insert_longdouble DynamicAny_DynAny_insert_longdouble #define DynamicAny_DynFixed_insert_wchar DynamicAny_DynAny_insert_wchar #define DynamicAny_DynFixed_insert_wstring DynamicAny_DynAny_insert_wstring #define DynamicAny_DynFixed_insert_any DynamicAny_DynAny_insert_any #define DynamicAny_DynFixed_insert_dyn_any DynamicAny_DynAny_insert_dyn_any #define DynamicAny_DynFixed_get_boolean DynamicAny_DynAny_get_boolean #define DynamicAny_DynFixed_get_octet DynamicAny_DynAny_get_octet #define DynamicAny_DynFixed_get_char DynamicAny_DynAny_get_char #define DynamicAny_DynFixed_get_short DynamicAny_DynAny_get_short #define DynamicAny_DynFixed_get_ushort DynamicAny_DynAny_get_ushort #define DynamicAny_DynFixed_get_long DynamicAny_DynAny_get_long #define DynamicAny_DynFixed_get_ulong DynamicAny_DynAny_get_ulong #define DynamicAny_DynFixed_get_float DynamicAny_DynAny_get_float #define DynamicAny_DynFixed_get_double DynamicAny_DynAny_get_double #define DynamicAny_DynFixed_get_string DynamicAny_DynAny_get_string #define DynamicAny_DynFixed_get_reference DynamicAny_DynAny_get_reference #define DynamicAny_DynFixed_get_typecode DynamicAny_DynAny_get_typecode #define DynamicAny_DynFixed_get_longlong DynamicAny_DynAny_get_longlong #define DynamicAny_DynFixed_get_ulonglong DynamicAny_DynAny_get_ulonglong #define DynamicAny_DynFixed_get_longdouble DynamicAny_DynAny_get_longdouble #define DynamicAny_DynFixed_get_wchar DynamicAny_DynAny_get_wchar #define DynamicAny_DynFixed_get_wstring DynamicAny_DynAny_get_wstring #define DynamicAny_DynFixed_get_any DynamicAny_DynAny_get_any #define DynamicAny_DynFixed_get_dyn_any DynamicAny_DynAny_get_dyn_any #define DynamicAny_DynFixed_seek DynamicAny_DynAny_seek #define DynamicAny_DynFixed_rewind DynamicAny_DynAny_rewind #define DynamicAny_DynFixed_next DynamicAny_DynAny_next #define DynamicAny_DynFixed_component_count DynamicAny_DynAny_component_count #define DynamicAny_DynFixed_current_component DynamicAny_DynAny_current_component #define DynamicAny_DynFixed_insert_abstract DynamicAny_DynAny_insert_abstract #define DynamicAny_DynFixed_get_abstract DynamicAny_DynAny_get_abstract #define DynamicAny_DynFixed_insert_boolean_seq DynamicAny_DynAny_insert_boolean_seq #define DynamicAny_DynFixed_insert_octet_seq DynamicAny_DynAny_insert_octet_seq #define DynamicAny_DynFixed_insert_char_seq DynamicAny_DynAny_insert_char_seq #define DynamicAny_DynFixed_insert_short_seq DynamicAny_DynAny_insert_short_seq #define DynamicAny_DynFixed_insert_ushort_seq DynamicAny_DynAny_insert_ushort_seq #define DynamicAny_DynFixed_insert_long_seq DynamicAny_DynAny_insert_long_seq #define DynamicAny_DynFixed_insert_ulong_seq DynamicAny_DynAny_insert_ulong_seq #define DynamicAny_DynFixed_insert_float_seq DynamicAny_DynAny_insert_float_seq #define DynamicAny_DynFixed_insert_double_seq DynamicAny_DynAny_insert_double_seq #define DynamicAny_DynFixed_insert_longlong_seq DynamicAny_DynAny_insert_longlong_seq #define DynamicAny_DynFixed_insert_ulonglong_seq DynamicAny_DynAny_insert_ulonglong_seq #define DynamicAny_DynFixed_insert_longdouble_seq DynamicAny_DynAny_insert_longdouble_seq #define DynamicAny_DynFixed_insert_wchar_seq DynamicAny_DynAny_insert_wchar_seq #define DynamicAny_DynFixed_get_boolean_seq DynamicAny_DynAny_get_boolean_seq #define DynamicAny_DynFixed_get_octet_seq DynamicAny_DynAny_get_octet_seq #define DynamicAny_DynFixed_get_char_seq DynamicAny_DynAny_get_char_seq #define DynamicAny_DynFixed_get_short_seq DynamicAny_DynAny_get_short_seq #define DynamicAny_DynFixed_get_ushort_seq DynamicAny_DynAny_get_ushort_seq #define DynamicAny_DynFixed_get_long_seq DynamicAny_DynAny_get_long_seq #define DynamicAny_DynFixed_get_ulong_seq DynamicAny_DynAny_get_ulong_seq #define DynamicAny_DynFixed_get_float_seq DynamicAny_DynAny_get_float_seq #define DynamicAny_DynFixed_get_double_seq DynamicAny_DynAny_get_double_seq #define DynamicAny_DynFixed_get_longlong_seq DynamicAny_DynAny_get_longlong_seq #define DynamicAny_DynFixed_get_ulonglong_seq DynamicAny_DynAny_get_ulonglong_seq #define DynamicAny_DynFixed_get_longdouble_seq DynamicAny_DynAny_get_longdouble_seq #define DynamicAny_DynFixed_get_wchar_seq DynamicAny_DynAny_get_wchar_seq CORBA_string DynamicAny_DynFixed_get_value(DynamicAny_DynFixed _obj, CORBA_Environment *ev); CORBA_boolean DynamicAny_DynFixed_set_value(DynamicAny_DynFixed _obj, const CORBA_char * val, CORBA_Environment *ev); #define DynamicAny_DynEnum_type DynamicAny_DynAny_type #define DynamicAny_DynEnum_assign DynamicAny_DynAny_assign #define DynamicAny_DynEnum_from_any DynamicAny_DynAny_from_any #define DynamicAny_DynEnum_to_any DynamicAny_DynAny_to_any #define DynamicAny_DynEnum_equal DynamicAny_DynAny_equal #define DynamicAny_DynEnum_destroy DynamicAny_DynAny_destroy #define DynamicAny_DynEnum_copy DynamicAny_DynAny_copy #define DynamicAny_DynEnum_insert_boolean DynamicAny_DynAny_insert_boolean #define DynamicAny_DynEnum_insert_octet DynamicAny_DynAny_insert_octet #define DynamicAny_DynEnum_insert_char DynamicAny_DynAny_insert_char #define DynamicAny_DynEnum_insert_short DynamicAny_DynAny_insert_short #define DynamicAny_DynEnum_insert_ushort DynamicAny_DynAny_insert_ushort #define DynamicAny_DynEnum_insert_long DynamicAny_DynAny_insert_long #define DynamicAny_DynEnum_insert_ulong DynamicAny_DynAny_insert_ulong #define DynamicAny_DynEnum_insert_float DynamicAny_DynAny_insert_float #define DynamicAny_DynEnum_insert_double DynamicAny_DynAny_insert_double #define DynamicAny_DynEnum_insert_string DynamicAny_DynAny_insert_string #define DynamicAny_DynEnum_insert_reference DynamicAny_DynAny_insert_reference #define DynamicAny_DynEnum_insert_typecode DynamicAny_DynAny_insert_typecode #define DynamicAny_DynEnum_insert_longlong DynamicAny_DynAny_insert_longlong #define DynamicAny_DynEnum_insert_ulonglong DynamicAny_DynAny_insert_ulonglong #define DynamicAny_DynEnum_insert_longdouble DynamicAny_DynAny_insert_longdouble #define DynamicAny_DynEnum_insert_wchar DynamicAny_DynAny_insert_wchar #define DynamicAny_DynEnum_insert_wstring DynamicAny_DynAny_insert_wstring #define DynamicAny_DynEnum_insert_any DynamicAny_DynAny_insert_any #define DynamicAny_DynEnum_insert_dyn_any DynamicAny_DynAny_insert_dyn_any #define DynamicAny_DynEnum_get_boolean DynamicAny_DynAny_get_boolean #define DynamicAny_DynEnum_get_octet DynamicAny_DynAny_get_octet #define DynamicAny_DynEnum_get_char DynamicAny_DynAny_get_char #define DynamicAny_DynEnum_get_short DynamicAny_DynAny_get_short #define DynamicAny_DynEnum_get_ushort DynamicAny_DynAny_get_ushort #define DynamicAny_DynEnum_get_long DynamicAny_DynAny_get_long #define DynamicAny_DynEnum_get_ulong DynamicAny_DynAny_get_ulong #define DynamicAny_DynEnum_get_float DynamicAny_DynAny_get_float #define DynamicAny_DynEnum_get_double DynamicAny_DynAny_get_double #define DynamicAny_DynEnum_get_string DynamicAny_DynAny_get_string #define DynamicAny_DynEnum_get_reference DynamicAny_DynAny_get_reference #define DynamicAny_DynEnum_get_typecode DynamicAny_DynAny_get_typecode #define DynamicAny_DynEnum_get_longlong DynamicAny_DynAny_get_longlong #define DynamicAny_DynEnum_get_ulonglong DynamicAny_DynAny_get_ulonglong #define DynamicAny_DynEnum_get_longdouble DynamicAny_DynAny_get_longdouble #define DynamicAny_DynEnum_get_wchar DynamicAny_DynAny_get_wchar #define DynamicAny_DynEnum_get_wstring DynamicAny_DynAny_get_wstring #define DynamicAny_DynEnum_get_any DynamicAny_DynAny_get_any #define DynamicAny_DynEnum_get_dyn_any DynamicAny_DynAny_get_dyn_any #define DynamicAny_DynEnum_seek DynamicAny_DynAny_seek #define DynamicAny_DynEnum_rewind DynamicAny_DynAny_rewind #define DynamicAny_DynEnum_next DynamicAny_DynAny_next #define DynamicAny_DynEnum_component_count DynamicAny_DynAny_component_count #define DynamicAny_DynEnum_current_component DynamicAny_DynAny_current_component #define DynamicAny_DynEnum_insert_abstract DynamicAny_DynAny_insert_abstract #define DynamicAny_DynEnum_get_abstract DynamicAny_DynAny_get_abstract #define DynamicAny_DynEnum_insert_boolean_seq DynamicAny_DynAny_insert_boolean_seq #define DynamicAny_DynEnum_insert_octet_seq DynamicAny_DynAny_insert_octet_seq #define DynamicAny_DynEnum_insert_char_seq DynamicAny_DynAny_insert_char_seq #define DynamicAny_DynEnum_insert_short_seq DynamicAny_DynAny_insert_short_seq #define DynamicAny_DynEnum_insert_ushort_seq DynamicAny_DynAny_insert_ushort_seq #define DynamicAny_DynEnum_insert_long_seq DynamicAny_DynAny_insert_long_seq #define DynamicAny_DynEnum_insert_ulong_seq DynamicAny_DynAny_insert_ulong_seq #define DynamicAny_DynEnum_insert_float_seq DynamicAny_DynAny_insert_float_seq #define DynamicAny_DynEnum_insert_double_seq DynamicAny_DynAny_insert_double_seq #define DynamicAny_DynEnum_insert_longlong_seq DynamicAny_DynAny_insert_longlong_seq #define DynamicAny_DynEnum_insert_ulonglong_seq DynamicAny_DynAny_insert_ulonglong_seq #define DynamicAny_DynEnum_insert_longdouble_seq DynamicAny_DynAny_insert_longdouble_seq #define DynamicAny_DynEnum_insert_wchar_seq DynamicAny_DynAny_insert_wchar_seq #define DynamicAny_DynEnum_get_boolean_seq DynamicAny_DynAny_get_boolean_seq #define DynamicAny_DynEnum_get_octet_seq DynamicAny_DynAny_get_octet_seq #define DynamicAny_DynEnum_get_char_seq DynamicAny_DynAny_get_char_seq #define DynamicAny_DynEnum_get_short_seq DynamicAny_DynAny_get_short_seq #define DynamicAny_DynEnum_get_ushort_seq DynamicAny_DynAny_get_ushort_seq #define DynamicAny_DynEnum_get_long_seq DynamicAny_DynAny_get_long_seq #define DynamicAny_DynEnum_get_ulong_seq DynamicAny_DynAny_get_ulong_seq #define DynamicAny_DynEnum_get_float_seq DynamicAny_DynAny_get_float_seq #define DynamicAny_DynEnum_get_double_seq DynamicAny_DynAny_get_double_seq #define DynamicAny_DynEnum_get_longlong_seq DynamicAny_DynAny_get_longlong_seq #define DynamicAny_DynEnum_get_ulonglong_seq DynamicAny_DynAny_get_ulonglong_seq #define DynamicAny_DynEnum_get_longdouble_seq DynamicAny_DynAny_get_longdouble_seq #define DynamicAny_DynEnum_get_wchar_seq DynamicAny_DynAny_get_wchar_seq CORBA_string DynamicAny_DynEnum_get_as_string(DynamicAny_DynEnum _obj, CORBA_Environment *ev); void DynamicAny_DynEnum_set_as_string(DynamicAny_DynEnum _obj, const CORBA_char * value, CORBA_Environment *ev); CORBA_unsigned_long DynamicAny_DynEnum_get_as_ulong(DynamicAny_DynEnum _obj, CORBA_Environment *ev); void DynamicAny_DynEnum_set_as_ulong(DynamicAny_DynEnum _obj, const CORBA_unsigned_long value, CORBA_Environment *ev); #define DynamicAny_DynStruct_type DynamicAny_DynAny_type #define DynamicAny_DynStruct_assign DynamicAny_DynAny_assign #define DynamicAny_DynStruct_from_any DynamicAny_DynAny_from_any #define DynamicAny_DynStruct_to_any DynamicAny_DynAny_to_any #define DynamicAny_DynStruct_equal DynamicAny_DynAny_equal #define DynamicAny_DynStruct_destroy DynamicAny_DynAny_destroy #define DynamicAny_DynStruct_copy DynamicAny_DynAny_copy #define DynamicAny_DynStruct_insert_boolean DynamicAny_DynAny_insert_boolean #define DynamicAny_DynStruct_insert_octet DynamicAny_DynAny_insert_octet #define DynamicAny_DynStruct_insert_char DynamicAny_DynAny_insert_char #define DynamicAny_DynStruct_insert_short DynamicAny_DynAny_insert_short #define DynamicAny_DynStruct_insert_ushort DynamicAny_DynAny_insert_ushort #define DynamicAny_DynStruct_insert_long DynamicAny_DynAny_insert_long #define DynamicAny_DynStruct_insert_ulong DynamicAny_DynAny_insert_ulong #define DynamicAny_DynStruct_insert_float DynamicAny_DynAny_insert_float #define DynamicAny_DynStruct_insert_double DynamicAny_DynAny_insert_double #define DynamicAny_DynStruct_insert_string DynamicAny_DynAny_insert_string #define DynamicAny_DynStruct_insert_reference DynamicAny_DynAny_insert_reference #define DynamicAny_DynStruct_insert_typecode DynamicAny_DynAny_insert_typecode #define DynamicAny_DynStruct_insert_longlong DynamicAny_DynAny_insert_longlong #define DynamicAny_DynStruct_insert_ulonglong DynamicAny_DynAny_insert_ulonglong #define DynamicAny_DynStruct_insert_longdouble DynamicAny_DynAny_insert_longdouble #define DynamicAny_DynStruct_insert_wchar DynamicAny_DynAny_insert_wchar #define DynamicAny_DynStruct_insert_wstring DynamicAny_DynAny_insert_wstring #define DynamicAny_DynStruct_insert_any DynamicAny_DynAny_insert_any #define DynamicAny_DynStruct_insert_dyn_any DynamicAny_DynAny_insert_dyn_any #define DynamicAny_DynStruct_get_boolean DynamicAny_DynAny_get_boolean #define DynamicAny_DynStruct_get_octet DynamicAny_DynAny_get_octet #define DynamicAny_DynStruct_get_char DynamicAny_DynAny_get_char #define DynamicAny_DynStruct_get_short DynamicAny_DynAny_get_short #define DynamicAny_DynStruct_get_ushort DynamicAny_DynAny_get_ushort #define DynamicAny_DynStruct_get_long DynamicAny_DynAny_get_long #define DynamicAny_DynStruct_get_ulong DynamicAny_DynAny_get_ulong #define DynamicAny_DynStruct_get_float DynamicAny_DynAny_get_float #define DynamicAny_DynStruct_get_double DynamicAny_DynAny_get_double #define DynamicAny_DynStruct_get_string DynamicAny_DynAny_get_string #define DynamicAny_DynStruct_get_reference DynamicAny_DynAny_get_reference #define DynamicAny_DynStruct_get_typecode DynamicAny_DynAny_get_typecode #define DynamicAny_DynStruct_get_longlong DynamicAny_DynAny_get_longlong #define DynamicAny_DynStruct_get_ulonglong DynamicAny_DynAny_get_ulonglong #define DynamicAny_DynStruct_get_longdouble DynamicAny_DynAny_get_longdouble #define DynamicAny_DynStruct_get_wchar DynamicAny_DynAny_get_wchar #define DynamicAny_DynStruct_get_wstring DynamicAny_DynAny_get_wstring #define DynamicAny_DynStruct_get_any DynamicAny_DynAny_get_any #define DynamicAny_DynStruct_get_dyn_any DynamicAny_DynAny_get_dyn_any #define DynamicAny_DynStruct_seek DynamicAny_DynAny_seek #define DynamicAny_DynStruct_rewind DynamicAny_DynAny_rewind #define DynamicAny_DynStruct_next DynamicAny_DynAny_next #define DynamicAny_DynStruct_component_count DynamicAny_DynAny_component_count #define DynamicAny_DynStruct_current_component DynamicAny_DynAny_current_component #define DynamicAny_DynStruct_insert_abstract DynamicAny_DynAny_insert_abstract #define DynamicAny_DynStruct_get_abstract DynamicAny_DynAny_get_abstract #define DynamicAny_DynStruct_insert_boolean_seq DynamicAny_DynAny_insert_boolean_seq #define DynamicAny_DynStruct_insert_octet_seq DynamicAny_DynAny_insert_octet_seq #define DynamicAny_DynStruct_insert_char_seq DynamicAny_DynAny_insert_char_seq #define DynamicAny_DynStruct_insert_short_seq DynamicAny_DynAny_insert_short_seq #define DynamicAny_DynStruct_insert_ushort_seq DynamicAny_DynAny_insert_ushort_seq #define DynamicAny_DynStruct_insert_long_seq DynamicAny_DynAny_insert_long_seq #define DynamicAny_DynStruct_insert_ulong_seq DynamicAny_DynAny_insert_ulong_seq #define DynamicAny_DynStruct_insert_float_seq DynamicAny_DynAny_insert_float_seq #define DynamicAny_DynStruct_insert_double_seq DynamicAny_DynAny_insert_double_seq #define DynamicAny_DynStruct_insert_longlong_seq DynamicAny_DynAny_insert_longlong_seq #define DynamicAny_DynStruct_insert_ulonglong_seq DynamicAny_DynAny_insert_ulonglong_seq #define DynamicAny_DynStruct_insert_longdouble_seq DynamicAny_DynAny_insert_longdouble_seq #define DynamicAny_DynStruct_insert_wchar_seq DynamicAny_DynAny_insert_wchar_seq #define DynamicAny_DynStruct_get_boolean_seq DynamicAny_DynAny_get_boolean_seq #define DynamicAny_DynStruct_get_octet_seq DynamicAny_DynAny_get_octet_seq #define DynamicAny_DynStruct_get_char_seq DynamicAny_DynAny_get_char_seq #define DynamicAny_DynStruct_get_short_seq DynamicAny_DynAny_get_short_seq #define DynamicAny_DynStruct_get_ushort_seq DynamicAny_DynAny_get_ushort_seq #define DynamicAny_DynStruct_get_long_seq DynamicAny_DynAny_get_long_seq #define DynamicAny_DynStruct_get_ulong_seq DynamicAny_DynAny_get_ulong_seq #define DynamicAny_DynStruct_get_float_seq DynamicAny_DynAny_get_float_seq #define DynamicAny_DynStruct_get_double_seq DynamicAny_DynAny_get_double_seq #define DynamicAny_DynStruct_get_longlong_seq DynamicAny_DynAny_get_longlong_seq #define DynamicAny_DynStruct_get_ulonglong_seq DynamicAny_DynAny_get_ulonglong_seq #define DynamicAny_DynStruct_get_longdouble_seq DynamicAny_DynAny_get_longdouble_seq #define DynamicAny_DynStruct_get_wchar_seq DynamicAny_DynAny_get_wchar_seq DynamicAny_FieldName DynamicAny_DynStruct_current_member_name(DynamicAny_DynStruct _obj, CORBA_Environment *ev); CORBA_TCKind DynamicAny_DynStruct_current_member_kind(DynamicAny_DynStruct _obj, CORBA_Environment *ev); DynamicAny_NameValuePairSeq* DynamicAny_DynStruct_get_members(DynamicAny_DynStruct _obj, CORBA_Environment *ev); void DynamicAny_DynStruct_set_members(DynamicAny_DynStruct _obj, const DynamicAny_NameValuePairSeq* value, CORBA_Environment *ev); DynamicAny_NameDynAnyPairSeq* DynamicAny_DynStruct_get_members_as_dyn_any(DynamicAny_DynStruct _obj, CORBA_Environment *ev); void DynamicAny_DynStruct_set_members_as_dyn_any(DynamicAny_DynStruct _obj, const DynamicAny_NameDynAnyPairSeq* value, CORBA_Environment *ev); #define DynamicAny_DynUnion_type DynamicAny_DynAny_type #define DynamicAny_DynUnion_assign DynamicAny_DynAny_assign #define DynamicAny_DynUnion_from_any DynamicAny_DynAny_from_any #define DynamicAny_DynUnion_to_any DynamicAny_DynAny_to_any #define DynamicAny_DynUnion_equal DynamicAny_DynAny_equal #define DynamicAny_DynUnion_destroy DynamicAny_DynAny_destroy #define DynamicAny_DynUnion_copy DynamicAny_DynAny_copy #define DynamicAny_DynUnion_insert_boolean DynamicAny_DynAny_insert_boolean #define DynamicAny_DynUnion_insert_octet DynamicAny_DynAny_insert_octet #define DynamicAny_DynUnion_insert_char DynamicAny_DynAny_insert_char #define DynamicAny_DynUnion_insert_short DynamicAny_DynAny_insert_short #define DynamicAny_DynUnion_insert_ushort DynamicAny_DynAny_insert_ushort #define DynamicAny_DynUnion_insert_long DynamicAny_DynAny_insert_long #define DynamicAny_DynUnion_insert_ulong DynamicAny_DynAny_insert_ulong #define DynamicAny_DynUnion_insert_float DynamicAny_DynAny_insert_float #define DynamicAny_DynUnion_insert_double DynamicAny_DynAny_insert_double #define DynamicAny_DynUnion_insert_string DynamicAny_DynAny_insert_string #define DynamicAny_DynUnion_insert_reference DynamicAny_DynAny_insert_reference #define DynamicAny_DynUnion_insert_typecode DynamicAny_DynAny_insert_typecode #define DynamicAny_DynUnion_insert_longlong DynamicAny_DynAny_insert_longlong #define DynamicAny_DynUnion_insert_ulonglong DynamicAny_DynAny_insert_ulonglong #define DynamicAny_DynUnion_insert_longdouble DynamicAny_DynAny_insert_longdouble #define DynamicAny_DynUnion_insert_wchar DynamicAny_DynAny_insert_wchar #define DynamicAny_DynUnion_insert_wstring DynamicAny_DynAny_insert_wstring #define DynamicAny_DynUnion_insert_any DynamicAny_DynAny_insert_any #define DynamicAny_DynUnion_insert_dyn_any DynamicAny_DynAny_insert_dyn_any #define DynamicAny_DynUnion_get_boolean DynamicAny_DynAny_get_boolean #define DynamicAny_DynUnion_get_octet DynamicAny_DynAny_get_octet #define DynamicAny_DynUnion_get_char DynamicAny_DynAny_get_char #define DynamicAny_DynUnion_get_short DynamicAny_DynAny_get_short #define DynamicAny_DynUnion_get_ushort DynamicAny_DynAny_get_ushort #define DynamicAny_DynUnion_get_long DynamicAny_DynAny_get_long #define DynamicAny_DynUnion_get_ulong DynamicAny_DynAny_get_ulong #define DynamicAny_DynUnion_get_float DynamicAny_DynAny_get_float #define DynamicAny_DynUnion_get_double DynamicAny_DynAny_get_double #define DynamicAny_DynUnion_get_string DynamicAny_DynAny_get_string #define DynamicAny_DynUnion_get_reference DynamicAny_DynAny_get_reference #define DynamicAny_DynUnion_get_typecode DynamicAny_DynAny_get_typecode #define DynamicAny_DynUnion_get_longlong DynamicAny_DynAny_get_longlong #define DynamicAny_DynUnion_get_ulonglong DynamicAny_DynAny_get_ulonglong #define DynamicAny_DynUnion_get_longdouble DynamicAny_DynAny_get_longdouble #define DynamicAny_DynUnion_get_wchar DynamicAny_DynAny_get_wchar #define DynamicAny_DynUnion_get_wstring DynamicAny_DynAny_get_wstring #define DynamicAny_DynUnion_get_any DynamicAny_DynAny_get_any #define DynamicAny_DynUnion_get_dyn_any DynamicAny_DynAny_get_dyn_any #define DynamicAny_DynUnion_seek DynamicAny_DynAny_seek #define DynamicAny_DynUnion_rewind DynamicAny_DynAny_rewind #define DynamicAny_DynUnion_next DynamicAny_DynAny_next #define DynamicAny_DynUnion_component_count DynamicAny_DynAny_component_count #define DynamicAny_DynUnion_current_component DynamicAny_DynAny_current_component #define DynamicAny_DynUnion_insert_abstract DynamicAny_DynAny_insert_abstract #define DynamicAny_DynUnion_get_abstract DynamicAny_DynAny_get_abstract #define DynamicAny_DynUnion_insert_boolean_seq DynamicAny_DynAny_insert_boolean_seq #define DynamicAny_DynUnion_insert_octet_seq DynamicAny_DynAny_insert_octet_seq #define DynamicAny_DynUnion_insert_char_seq DynamicAny_DynAny_insert_char_seq #define DynamicAny_DynUnion_insert_short_seq DynamicAny_DynAny_insert_short_seq #define DynamicAny_DynUnion_insert_ushort_seq DynamicAny_DynAny_insert_ushort_seq #define DynamicAny_DynUnion_insert_long_seq DynamicAny_DynAny_insert_long_seq #define DynamicAny_DynUnion_insert_ulong_seq DynamicAny_DynAny_insert_ulong_seq #define DynamicAny_DynUnion_insert_float_seq DynamicAny_DynAny_insert_float_seq #define DynamicAny_DynUnion_insert_double_seq DynamicAny_DynAny_insert_double_seq #define DynamicAny_DynUnion_insert_longlong_seq DynamicAny_DynAny_insert_longlong_seq #define DynamicAny_DynUnion_insert_ulonglong_seq DynamicAny_DynAny_insert_ulonglong_seq #define DynamicAny_DynUnion_insert_longdouble_seq DynamicAny_DynAny_insert_longdouble_seq #define DynamicAny_DynUnion_insert_wchar_seq DynamicAny_DynAny_insert_wchar_seq #define DynamicAny_DynUnion_get_boolean_seq DynamicAny_DynAny_get_boolean_seq #define DynamicAny_DynUnion_get_octet_seq DynamicAny_DynAny_get_octet_seq #define DynamicAny_DynUnion_get_char_seq DynamicAny_DynAny_get_char_seq #define DynamicAny_DynUnion_get_short_seq DynamicAny_DynAny_get_short_seq #define DynamicAny_DynUnion_get_ushort_seq DynamicAny_DynAny_get_ushort_seq #define DynamicAny_DynUnion_get_long_seq DynamicAny_DynAny_get_long_seq #define DynamicAny_DynUnion_get_ulong_seq DynamicAny_DynAny_get_ulong_seq #define DynamicAny_DynUnion_get_float_seq DynamicAny_DynAny_get_float_seq #define DynamicAny_DynUnion_get_double_seq DynamicAny_DynAny_get_double_seq #define DynamicAny_DynUnion_get_longlong_seq DynamicAny_DynAny_get_longlong_seq #define DynamicAny_DynUnion_get_ulonglong_seq DynamicAny_DynAny_get_ulonglong_seq #define DynamicAny_DynUnion_get_longdouble_seq DynamicAny_DynAny_get_longdouble_seq #define DynamicAny_DynUnion_get_wchar_seq DynamicAny_DynAny_get_wchar_seq DynamicAny_DynAny DynamicAny_DynUnion_get_discriminator(DynamicAny_DynUnion _obj, CORBA_Environment *ev); void DynamicAny_DynUnion_set_discriminator(DynamicAny_DynUnion _obj, const DynamicAny_DynAny d, CORBA_Environment *ev); void DynamicAny_DynUnion_set_to_default_member(DynamicAny_DynUnion _obj, CORBA_Environment *ev); void DynamicAny_DynUnion_set_to_no_active_member(DynamicAny_DynUnion _obj, CORBA_Environment *ev); CORBA_boolean DynamicAny_DynUnion_has_no_active_member(DynamicAny_DynUnion _obj, CORBA_Environment *ev); CORBA_TCKind DynamicAny_DynUnion_discriminator_kind(DynamicAny_DynUnion _obj, CORBA_Environment *ev); DynamicAny_DynAny DynamicAny_DynUnion_member(DynamicAny_DynUnion _obj, CORBA_Environment *ev); DynamicAny_FieldName DynamicAny_DynUnion_member_name(DynamicAny_DynUnion _obj, CORBA_Environment *ev); CORBA_TCKind DynamicAny_DynUnion_member_kind(DynamicAny_DynUnion _obj, CORBA_Environment *ev); #define DynamicAny_DynSequence_type DynamicAny_DynAny_type #define DynamicAny_DynSequence_assign DynamicAny_DynAny_assign #define DynamicAny_DynSequence_from_any DynamicAny_DynAny_from_any #define DynamicAny_DynSequence_to_any DynamicAny_DynAny_to_any #define DynamicAny_DynSequence_equal DynamicAny_DynAny_equal #define DynamicAny_DynSequence_destroy DynamicAny_DynAny_destroy #define DynamicAny_DynSequence_copy DynamicAny_DynAny_copy #define DynamicAny_DynSequence_insert_boolean DynamicAny_DynAny_insert_boolean #define DynamicAny_DynSequence_insert_octet DynamicAny_DynAny_insert_octet #define DynamicAny_DynSequence_insert_char DynamicAny_DynAny_insert_char #define DynamicAny_DynSequence_insert_short DynamicAny_DynAny_insert_short #define DynamicAny_DynSequence_insert_ushort DynamicAny_DynAny_insert_ushort #define DynamicAny_DynSequence_insert_long DynamicAny_DynAny_insert_long #define DynamicAny_DynSequence_insert_ulong DynamicAny_DynAny_insert_ulong #define DynamicAny_DynSequence_insert_float DynamicAny_DynAny_insert_float #define DynamicAny_DynSequence_insert_double DynamicAny_DynAny_insert_double #define DynamicAny_DynSequence_insert_string DynamicAny_DynAny_insert_string #define DynamicAny_DynSequence_insert_reference DynamicAny_DynAny_insert_reference #define DynamicAny_DynSequence_insert_typecode DynamicAny_DynAny_insert_typecode #define DynamicAny_DynSequence_insert_longlong DynamicAny_DynAny_insert_longlong #define DynamicAny_DynSequence_insert_ulonglong DynamicAny_DynAny_insert_ulonglong #define DynamicAny_DynSequence_insert_longdouble DynamicAny_DynAny_insert_longdouble #define DynamicAny_DynSequence_insert_wchar DynamicAny_DynAny_insert_wchar #define DynamicAny_DynSequence_insert_wstring DynamicAny_DynAny_insert_wstring #define DynamicAny_DynSequence_insert_any DynamicAny_DynAny_insert_any #define DynamicAny_DynSequence_insert_dyn_any DynamicAny_DynAny_insert_dyn_any #define DynamicAny_DynSequence_get_boolean DynamicAny_DynAny_get_boolean #define DynamicAny_DynSequence_get_octet DynamicAny_DynAny_get_octet #define DynamicAny_DynSequence_get_char DynamicAny_DynAny_get_char #define DynamicAny_DynSequence_get_short DynamicAny_DynAny_get_short #define DynamicAny_DynSequence_get_ushort DynamicAny_DynAny_get_ushort #define DynamicAny_DynSequence_get_long DynamicAny_DynAny_get_long #define DynamicAny_DynSequence_get_ulong DynamicAny_DynAny_get_ulong #define DynamicAny_DynSequence_get_float DynamicAny_DynAny_get_float #define DynamicAny_DynSequence_get_double DynamicAny_DynAny_get_double #define DynamicAny_DynSequence_get_string DynamicAny_DynAny_get_string #define DynamicAny_DynSequence_get_reference DynamicAny_DynAny_get_reference #define DynamicAny_DynSequence_get_typecode DynamicAny_DynAny_get_typecode #define DynamicAny_DynSequence_get_longlong DynamicAny_DynAny_get_longlong #define DynamicAny_DynSequence_get_ulonglong DynamicAny_DynAny_get_ulonglong #define DynamicAny_DynSequence_get_longdouble DynamicAny_DynAny_get_longdouble #define DynamicAny_DynSequence_get_wchar DynamicAny_DynAny_get_wchar #define DynamicAny_DynSequence_get_wstring DynamicAny_DynAny_get_wstring #define DynamicAny_DynSequence_get_any DynamicAny_DynAny_get_any #define DynamicAny_DynSequence_get_dyn_any DynamicAny_DynAny_get_dyn_any #define DynamicAny_DynSequence_seek DynamicAny_DynAny_seek #define DynamicAny_DynSequence_rewind DynamicAny_DynAny_rewind #define DynamicAny_DynSequence_next DynamicAny_DynAny_next #define DynamicAny_DynSequence_component_count DynamicAny_DynAny_component_count #define DynamicAny_DynSequence_current_component DynamicAny_DynAny_current_component #define DynamicAny_DynSequence_insert_abstract DynamicAny_DynAny_insert_abstract #define DynamicAny_DynSequence_get_abstract DynamicAny_DynAny_get_abstract #define DynamicAny_DynSequence_insert_boolean_seq DynamicAny_DynAny_insert_boolean_seq #define DynamicAny_DynSequence_insert_octet_seq DynamicAny_DynAny_insert_octet_seq #define DynamicAny_DynSequence_insert_char_seq DynamicAny_DynAny_insert_char_seq #define DynamicAny_DynSequence_insert_short_seq DynamicAny_DynAny_insert_short_seq #define DynamicAny_DynSequence_insert_ushort_seq DynamicAny_DynAny_insert_ushort_seq #define DynamicAny_DynSequence_insert_long_seq DynamicAny_DynAny_insert_long_seq #define DynamicAny_DynSequence_insert_ulong_seq DynamicAny_DynAny_insert_ulong_seq #define DynamicAny_DynSequence_insert_float_seq DynamicAny_DynAny_insert_float_seq #define DynamicAny_DynSequence_insert_double_seq DynamicAny_DynAny_insert_double_seq #define DynamicAny_DynSequence_insert_longlong_seq DynamicAny_DynAny_insert_longlong_seq #define DynamicAny_DynSequence_insert_ulonglong_seq DynamicAny_DynAny_insert_ulonglong_seq #define DynamicAny_DynSequence_insert_longdouble_seq DynamicAny_DynAny_insert_longdouble_seq #define DynamicAny_DynSequence_insert_wchar_seq DynamicAny_DynAny_insert_wchar_seq #define DynamicAny_DynSequence_get_boolean_seq DynamicAny_DynAny_get_boolean_seq #define DynamicAny_DynSequence_get_octet_seq DynamicAny_DynAny_get_octet_seq #define DynamicAny_DynSequence_get_char_seq DynamicAny_DynAny_get_char_seq #define DynamicAny_DynSequence_get_short_seq DynamicAny_DynAny_get_short_seq #define DynamicAny_DynSequence_get_ushort_seq DynamicAny_DynAny_get_ushort_seq #define DynamicAny_DynSequence_get_long_seq DynamicAny_DynAny_get_long_seq #define DynamicAny_DynSequence_get_ulong_seq DynamicAny_DynAny_get_ulong_seq #define DynamicAny_DynSequence_get_float_seq DynamicAny_DynAny_get_float_seq #define DynamicAny_DynSequence_get_double_seq DynamicAny_DynAny_get_double_seq #define DynamicAny_DynSequence_get_longlong_seq DynamicAny_DynAny_get_longlong_seq #define DynamicAny_DynSequence_get_ulonglong_seq DynamicAny_DynAny_get_ulonglong_seq #define DynamicAny_DynSequence_get_longdouble_seq DynamicAny_DynAny_get_longdouble_seq #define DynamicAny_DynSequence_get_wchar_seq DynamicAny_DynAny_get_wchar_seq CORBA_unsigned_long DynamicAny_DynSequence_get_length(DynamicAny_DynSequence _obj, CORBA_Environment *ev); void DynamicAny_DynSequence_set_length(DynamicAny_DynSequence _obj, const CORBA_unsigned_long len, CORBA_Environment *ev); DynamicAny_AnySeq* DynamicAny_DynSequence_get_elements(DynamicAny_DynSequence _obj, CORBA_Environment *ev); void DynamicAny_DynSequence_set_elements(DynamicAny_DynSequence _obj, const DynamicAny_AnySeq* value, CORBA_Environment *ev); DynamicAny_DynAnySeq* DynamicAny_DynSequence_get_elements_as_dyn_any(DynamicAny_DynSequence _obj, CORBA_Environment *ev); void DynamicAny_DynSequence_set_elements_as_dyn_any(DynamicAny_DynSequence _obj, const DynamicAny_DynAnySeq* value, CORBA_Environment *ev); #define DynamicAny_DynArray_type DynamicAny_DynAny_type #define DynamicAny_DynArray_assign DynamicAny_DynAny_assign #define DynamicAny_DynArray_from_any DynamicAny_DynAny_from_any #define DynamicAny_DynArray_to_any DynamicAny_DynAny_to_any #define DynamicAny_DynArray_equal DynamicAny_DynAny_equal #define DynamicAny_DynArray_destroy DynamicAny_DynAny_destroy #define DynamicAny_DynArray_copy DynamicAny_DynAny_copy #define DynamicAny_DynArray_insert_boolean DynamicAny_DynAny_insert_boolean #define DynamicAny_DynArray_insert_octet DynamicAny_DynAny_insert_octet #define DynamicAny_DynArray_insert_char DynamicAny_DynAny_insert_char #define DynamicAny_DynArray_insert_short DynamicAny_DynAny_insert_short #define DynamicAny_DynArray_insert_ushort DynamicAny_DynAny_insert_ushort #define DynamicAny_DynArray_insert_long DynamicAny_DynAny_insert_long #define DynamicAny_DynArray_insert_ulong DynamicAny_DynAny_insert_ulong #define DynamicAny_DynArray_insert_float DynamicAny_DynAny_insert_float #define DynamicAny_DynArray_insert_double DynamicAny_DynAny_insert_double #define DynamicAny_DynArray_insert_string DynamicAny_DynAny_insert_string #define DynamicAny_DynArray_insert_reference DynamicAny_DynAny_insert_reference #define DynamicAny_DynArray_insert_typecode DynamicAny_DynAny_insert_typecode #define DynamicAny_DynArray_insert_longlong DynamicAny_DynAny_insert_longlong #define DynamicAny_DynArray_insert_ulonglong DynamicAny_DynAny_insert_ulonglong #define DynamicAny_DynArray_insert_longdouble DynamicAny_DynAny_insert_longdouble #define DynamicAny_DynArray_insert_wchar DynamicAny_DynAny_insert_wchar #define DynamicAny_DynArray_insert_wstring DynamicAny_DynAny_insert_wstring #define DynamicAny_DynArray_insert_any DynamicAny_DynAny_insert_any #define DynamicAny_DynArray_insert_dyn_any DynamicAny_DynAny_insert_dyn_any #define DynamicAny_DynArray_get_boolean DynamicAny_DynAny_get_boolean #define DynamicAny_DynArray_get_octet DynamicAny_DynAny_get_octet #define DynamicAny_DynArray_get_char DynamicAny_DynAny_get_char #define DynamicAny_DynArray_get_short DynamicAny_DynAny_get_short #define DynamicAny_DynArray_get_ushort DynamicAny_DynAny_get_ushort #define DynamicAny_DynArray_get_long DynamicAny_DynAny_get_long #define DynamicAny_DynArray_get_ulong DynamicAny_DynAny_get_ulong #define DynamicAny_DynArray_get_float DynamicAny_DynAny_get_float #define DynamicAny_DynArray_get_double DynamicAny_DynAny_get_double #define DynamicAny_DynArray_get_string DynamicAny_DynAny_get_string #define DynamicAny_DynArray_get_reference DynamicAny_DynAny_get_reference #define DynamicAny_DynArray_get_typecode DynamicAny_DynAny_get_typecode #define DynamicAny_DynArray_get_longlong DynamicAny_DynAny_get_longlong #define DynamicAny_DynArray_get_ulonglong DynamicAny_DynAny_get_ulonglong #define DynamicAny_DynArray_get_longdouble DynamicAny_DynAny_get_longdouble #define DynamicAny_DynArray_get_wchar DynamicAny_DynAny_get_wchar #define DynamicAny_DynArray_get_wstring DynamicAny_DynAny_get_wstring #define DynamicAny_DynArray_get_any DynamicAny_DynAny_get_any #define DynamicAny_DynArray_get_dyn_any DynamicAny_DynAny_get_dyn_any #define DynamicAny_DynArray_seek DynamicAny_DynAny_seek #define DynamicAny_DynArray_rewind DynamicAny_DynAny_rewind #define DynamicAny_DynArray_next DynamicAny_DynAny_next #define DynamicAny_DynArray_component_count DynamicAny_DynAny_component_count #define DynamicAny_DynArray_current_component DynamicAny_DynAny_current_component #define DynamicAny_DynArray_insert_abstract DynamicAny_DynAny_insert_abstract #define DynamicAny_DynArray_get_abstract DynamicAny_DynAny_get_abstract #define DynamicAny_DynArray_insert_boolean_seq DynamicAny_DynAny_insert_boolean_seq #define DynamicAny_DynArray_insert_octet_seq DynamicAny_DynAny_insert_octet_seq #define DynamicAny_DynArray_insert_char_seq DynamicAny_DynAny_insert_char_seq #define DynamicAny_DynArray_insert_short_seq DynamicAny_DynAny_insert_short_seq #define DynamicAny_DynArray_insert_ushort_seq DynamicAny_DynAny_insert_ushort_seq #define DynamicAny_DynArray_insert_long_seq DynamicAny_DynAny_insert_long_seq #define DynamicAny_DynArray_insert_ulong_seq DynamicAny_DynAny_insert_ulong_seq #define DynamicAny_DynArray_insert_float_seq DynamicAny_DynAny_insert_float_seq #define DynamicAny_DynArray_insert_double_seq DynamicAny_DynAny_insert_double_seq #define DynamicAny_DynArray_insert_longlong_seq DynamicAny_DynAny_insert_longlong_seq #define DynamicAny_DynArray_insert_ulonglong_seq DynamicAny_DynAny_insert_ulonglong_seq #define DynamicAny_DynArray_insert_longdouble_seq DynamicAny_DynAny_insert_longdouble_seq #define DynamicAny_DynArray_insert_wchar_seq DynamicAny_DynAny_insert_wchar_seq #define DynamicAny_DynArray_get_boolean_seq DynamicAny_DynAny_get_boolean_seq #define DynamicAny_DynArray_get_octet_seq DynamicAny_DynAny_get_octet_seq #define DynamicAny_DynArray_get_char_seq DynamicAny_DynAny_get_char_seq #define DynamicAny_DynArray_get_short_seq DynamicAny_DynAny_get_short_seq #define DynamicAny_DynArray_get_ushort_seq DynamicAny_DynAny_get_ushort_seq #define DynamicAny_DynArray_get_long_seq DynamicAny_DynAny_get_long_seq #define DynamicAny_DynArray_get_ulong_seq DynamicAny_DynAny_get_ulong_seq #define DynamicAny_DynArray_get_float_seq DynamicAny_DynAny_get_float_seq #define DynamicAny_DynArray_get_double_seq DynamicAny_DynAny_get_double_seq #define DynamicAny_DynArray_get_longlong_seq DynamicAny_DynAny_get_longlong_seq #define DynamicAny_DynArray_get_ulonglong_seq DynamicAny_DynAny_get_ulonglong_seq #define DynamicAny_DynArray_get_longdouble_seq DynamicAny_DynAny_get_longdouble_seq #define DynamicAny_DynArray_get_wchar_seq DynamicAny_DynAny_get_wchar_seq DynamicAny_AnySeq* DynamicAny_DynArray_get_elements(DynamicAny_DynArray _obj, CORBA_Environment *ev); void DynamicAny_DynArray_set_elements(DynamicAny_DynArray _obj, const DynamicAny_AnySeq* value, CORBA_Environment *ev); DynamicAny_DynAnySeq* DynamicAny_DynArray_get_elements_as_dyn_any(DynamicAny_DynArray _obj, CORBA_Environment *ev); void DynamicAny_DynArray_set_elements_as_dyn_any(DynamicAny_DynArray _obj, const DynamicAny_DynAnySeq* value, CORBA_Environment *ev); #define DynamicAny_DynValueCommon_type DynamicAny_DynAny_type #define DynamicAny_DynValueCommon_assign DynamicAny_DynAny_assign #define DynamicAny_DynValueCommon_from_any DynamicAny_DynAny_from_any #define DynamicAny_DynValueCommon_to_any DynamicAny_DynAny_to_any #define DynamicAny_DynValueCommon_equal DynamicAny_DynAny_equal #define DynamicAny_DynValueCommon_destroy DynamicAny_DynAny_destroy #define DynamicAny_DynValueCommon_copy DynamicAny_DynAny_copy #define DynamicAny_DynValueCommon_insert_boolean DynamicAny_DynAny_insert_boolean #define DynamicAny_DynValueCommon_insert_octet DynamicAny_DynAny_insert_octet #define DynamicAny_DynValueCommon_insert_char DynamicAny_DynAny_insert_char #define DynamicAny_DynValueCommon_insert_short DynamicAny_DynAny_insert_short #define DynamicAny_DynValueCommon_insert_ushort DynamicAny_DynAny_insert_ushort #define DynamicAny_DynValueCommon_insert_long DynamicAny_DynAny_insert_long #define DynamicAny_DynValueCommon_insert_ulong DynamicAny_DynAny_insert_ulong #define DynamicAny_DynValueCommon_insert_float DynamicAny_DynAny_insert_float #define DynamicAny_DynValueCommon_insert_double DynamicAny_DynAny_insert_double #define DynamicAny_DynValueCommon_insert_string DynamicAny_DynAny_insert_string #define DynamicAny_DynValueCommon_insert_reference DynamicAny_DynAny_insert_reference #define DynamicAny_DynValueCommon_insert_typecode DynamicAny_DynAny_insert_typecode #define DynamicAny_DynValueCommon_insert_longlong DynamicAny_DynAny_insert_longlong #define DynamicAny_DynValueCommon_insert_ulonglong DynamicAny_DynAny_insert_ulonglong #define DynamicAny_DynValueCommon_insert_longdouble DynamicAny_DynAny_insert_longdouble #define DynamicAny_DynValueCommon_insert_wchar DynamicAny_DynAny_insert_wchar #define DynamicAny_DynValueCommon_insert_wstring DynamicAny_DynAny_insert_wstring #define DynamicAny_DynValueCommon_insert_any DynamicAny_DynAny_insert_any #define DynamicAny_DynValueCommon_insert_dyn_any DynamicAny_DynAny_insert_dyn_any #define DynamicAny_DynValueCommon_get_boolean DynamicAny_DynAny_get_boolean #define DynamicAny_DynValueCommon_get_octet DynamicAny_DynAny_get_octet #define DynamicAny_DynValueCommon_get_char DynamicAny_DynAny_get_char #define DynamicAny_DynValueCommon_get_short DynamicAny_DynAny_get_short #define DynamicAny_DynValueCommon_get_ushort DynamicAny_DynAny_get_ushort #define DynamicAny_DynValueCommon_get_long DynamicAny_DynAny_get_long #define DynamicAny_DynValueCommon_get_ulong DynamicAny_DynAny_get_ulong #define DynamicAny_DynValueCommon_get_float DynamicAny_DynAny_get_float #define DynamicAny_DynValueCommon_get_double DynamicAny_DynAny_get_double #define DynamicAny_DynValueCommon_get_string DynamicAny_DynAny_get_string #define DynamicAny_DynValueCommon_get_reference DynamicAny_DynAny_get_reference #define DynamicAny_DynValueCommon_get_typecode DynamicAny_DynAny_get_typecode #define DynamicAny_DynValueCommon_get_longlong DynamicAny_DynAny_get_longlong #define DynamicAny_DynValueCommon_get_ulonglong DynamicAny_DynAny_get_ulonglong #define DynamicAny_DynValueCommon_get_longdouble DynamicAny_DynAny_get_longdouble #define DynamicAny_DynValueCommon_get_wchar DynamicAny_DynAny_get_wchar #define DynamicAny_DynValueCommon_get_wstring DynamicAny_DynAny_get_wstring #define DynamicAny_DynValueCommon_get_any DynamicAny_DynAny_get_any #define DynamicAny_DynValueCommon_get_dyn_any DynamicAny_DynAny_get_dyn_any #define DynamicAny_DynValueCommon_seek DynamicAny_DynAny_seek #define DynamicAny_DynValueCommon_rewind DynamicAny_DynAny_rewind #define DynamicAny_DynValueCommon_next DynamicAny_DynAny_next #define DynamicAny_DynValueCommon_component_count DynamicAny_DynAny_component_count #define DynamicAny_DynValueCommon_current_component DynamicAny_DynAny_current_component #define DynamicAny_DynValueCommon_insert_abstract DynamicAny_DynAny_insert_abstract #define DynamicAny_DynValueCommon_get_abstract DynamicAny_DynAny_get_abstract #define DynamicAny_DynValueCommon_insert_boolean_seq DynamicAny_DynAny_insert_boolean_seq #define DynamicAny_DynValueCommon_insert_octet_seq DynamicAny_DynAny_insert_octet_seq #define DynamicAny_DynValueCommon_insert_char_seq DynamicAny_DynAny_insert_char_seq #define DynamicAny_DynValueCommon_insert_short_seq DynamicAny_DynAny_insert_short_seq #define DynamicAny_DynValueCommon_insert_ushort_seq DynamicAny_DynAny_insert_ushort_seq #define DynamicAny_DynValueCommon_insert_long_seq DynamicAny_DynAny_insert_long_seq #define DynamicAny_DynValueCommon_insert_ulong_seq DynamicAny_DynAny_insert_ulong_seq #define DynamicAny_DynValueCommon_insert_float_seq DynamicAny_DynAny_insert_float_seq #define DynamicAny_DynValueCommon_insert_double_seq DynamicAny_DynAny_insert_double_seq #define DynamicAny_DynValueCommon_insert_longlong_seq DynamicAny_DynAny_insert_longlong_seq #define DynamicAny_DynValueCommon_insert_ulonglong_seq DynamicAny_DynAny_insert_ulonglong_seq #define DynamicAny_DynValueCommon_insert_longdouble_seq DynamicAny_DynAny_insert_longdouble_seq #define DynamicAny_DynValueCommon_insert_wchar_seq DynamicAny_DynAny_insert_wchar_seq #define DynamicAny_DynValueCommon_get_boolean_seq DynamicAny_DynAny_get_boolean_seq #define DynamicAny_DynValueCommon_get_octet_seq DynamicAny_DynAny_get_octet_seq #define DynamicAny_DynValueCommon_get_char_seq DynamicAny_DynAny_get_char_seq #define DynamicAny_DynValueCommon_get_short_seq DynamicAny_DynAny_get_short_seq #define DynamicAny_DynValueCommon_get_ushort_seq DynamicAny_DynAny_get_ushort_seq #define DynamicAny_DynValueCommon_get_long_seq DynamicAny_DynAny_get_long_seq #define DynamicAny_DynValueCommon_get_ulong_seq DynamicAny_DynAny_get_ulong_seq #define DynamicAny_DynValueCommon_get_float_seq DynamicAny_DynAny_get_float_seq #define DynamicAny_DynValueCommon_get_double_seq DynamicAny_DynAny_get_double_seq #define DynamicAny_DynValueCommon_get_longlong_seq DynamicAny_DynAny_get_longlong_seq #define DynamicAny_DynValueCommon_get_ulonglong_seq DynamicAny_DynAny_get_ulonglong_seq #define DynamicAny_DynValueCommon_get_longdouble_seq DynamicAny_DynAny_get_longdouble_seq #define DynamicAny_DynValueCommon_get_wchar_seq DynamicAny_DynAny_get_wchar_seq CORBA_boolean DynamicAny_DynValueCommon_is_null(DynamicAny_DynValueCommon _obj, CORBA_Environment *ev); void DynamicAny_DynValueCommon_set_to_null(DynamicAny_DynValueCommon _obj, CORBA_Environment *ev); void DynamicAny_DynValueCommon_set_to_value(DynamicAny_DynValueCommon _obj, CORBA_Environment *ev); #define DynamicAny_DynValue_type DynamicAny_DynAny_type #define DynamicAny_DynValue_assign DynamicAny_DynAny_assign #define DynamicAny_DynValue_from_any DynamicAny_DynAny_from_any #define DynamicAny_DynValue_to_any DynamicAny_DynAny_to_any #define DynamicAny_DynValue_equal DynamicAny_DynAny_equal #define DynamicAny_DynValue_destroy DynamicAny_DynAny_destroy #define DynamicAny_DynValue_copy DynamicAny_DynAny_copy #define DynamicAny_DynValue_insert_boolean DynamicAny_DynAny_insert_boolean #define DynamicAny_DynValue_insert_octet DynamicAny_DynAny_insert_octet #define DynamicAny_DynValue_insert_char DynamicAny_DynAny_insert_char #define DynamicAny_DynValue_insert_short DynamicAny_DynAny_insert_short #define DynamicAny_DynValue_insert_ushort DynamicAny_DynAny_insert_ushort #define DynamicAny_DynValue_insert_long DynamicAny_DynAny_insert_long #define DynamicAny_DynValue_insert_ulong DynamicAny_DynAny_insert_ulong #define DynamicAny_DynValue_insert_float DynamicAny_DynAny_insert_float #define DynamicAny_DynValue_insert_double DynamicAny_DynAny_insert_double #define DynamicAny_DynValue_insert_string DynamicAny_DynAny_insert_string #define DynamicAny_DynValue_insert_reference DynamicAny_DynAny_insert_reference #define DynamicAny_DynValue_insert_typecode DynamicAny_DynAny_insert_typecode #define DynamicAny_DynValue_insert_longlong DynamicAny_DynAny_insert_longlong #define DynamicAny_DynValue_insert_ulonglong DynamicAny_DynAny_insert_ulonglong #define DynamicAny_DynValue_insert_longdouble DynamicAny_DynAny_insert_longdouble #define DynamicAny_DynValue_insert_wchar DynamicAny_DynAny_insert_wchar #define DynamicAny_DynValue_insert_wstring DynamicAny_DynAny_insert_wstring #define DynamicAny_DynValue_insert_any DynamicAny_DynAny_insert_any #define DynamicAny_DynValue_insert_dyn_any DynamicAny_DynAny_insert_dyn_any #define DynamicAny_DynValue_get_boolean DynamicAny_DynAny_get_boolean #define DynamicAny_DynValue_get_octet DynamicAny_DynAny_get_octet #define DynamicAny_DynValue_get_char DynamicAny_DynAny_get_char #define DynamicAny_DynValue_get_short DynamicAny_DynAny_get_short #define DynamicAny_DynValue_get_ushort DynamicAny_DynAny_get_ushort #define DynamicAny_DynValue_get_long DynamicAny_DynAny_get_long #define DynamicAny_DynValue_get_ulong DynamicAny_DynAny_get_ulong #define DynamicAny_DynValue_get_float DynamicAny_DynAny_get_float #define DynamicAny_DynValue_get_double DynamicAny_DynAny_get_double #define DynamicAny_DynValue_get_string DynamicAny_DynAny_get_string #define DynamicAny_DynValue_get_reference DynamicAny_DynAny_get_reference #define DynamicAny_DynValue_get_typecode DynamicAny_DynAny_get_typecode #define DynamicAny_DynValue_get_longlong DynamicAny_DynAny_get_longlong #define DynamicAny_DynValue_get_ulonglong DynamicAny_DynAny_get_ulonglong #define DynamicAny_DynValue_get_longdouble DynamicAny_DynAny_get_longdouble #define DynamicAny_DynValue_get_wchar DynamicAny_DynAny_get_wchar #define DynamicAny_DynValue_get_wstring DynamicAny_DynAny_get_wstring #define DynamicAny_DynValue_get_any DynamicAny_DynAny_get_any #define DynamicAny_DynValue_get_dyn_any DynamicAny_DynAny_get_dyn_any #define DynamicAny_DynValue_seek DynamicAny_DynAny_seek #define DynamicAny_DynValue_rewind DynamicAny_DynAny_rewind #define DynamicAny_DynValue_next DynamicAny_DynAny_next #define DynamicAny_DynValue_component_count DynamicAny_DynAny_component_count #define DynamicAny_DynValue_current_component DynamicAny_DynAny_current_component #define DynamicAny_DynValue_insert_abstract DynamicAny_DynAny_insert_abstract #define DynamicAny_DynValue_get_abstract DynamicAny_DynAny_get_abstract #define DynamicAny_DynValue_insert_boolean_seq DynamicAny_DynAny_insert_boolean_seq #define DynamicAny_DynValue_insert_octet_seq DynamicAny_DynAny_insert_octet_seq #define DynamicAny_DynValue_insert_char_seq DynamicAny_DynAny_insert_char_seq #define DynamicAny_DynValue_insert_short_seq DynamicAny_DynAny_insert_short_seq #define DynamicAny_DynValue_insert_ushort_seq DynamicAny_DynAny_insert_ushort_seq #define DynamicAny_DynValue_insert_long_seq DynamicAny_DynAny_insert_long_seq #define DynamicAny_DynValue_insert_ulong_seq DynamicAny_DynAny_insert_ulong_seq #define DynamicAny_DynValue_insert_float_seq DynamicAny_DynAny_insert_float_seq #define DynamicAny_DynValue_insert_double_seq DynamicAny_DynAny_insert_double_seq #define DynamicAny_DynValue_insert_longlong_seq DynamicAny_DynAny_insert_longlong_seq #define DynamicAny_DynValue_insert_ulonglong_seq DynamicAny_DynAny_insert_ulonglong_seq #define DynamicAny_DynValue_insert_longdouble_seq DynamicAny_DynAny_insert_longdouble_seq #define DynamicAny_DynValue_insert_wchar_seq DynamicAny_DynAny_insert_wchar_seq #define DynamicAny_DynValue_get_boolean_seq DynamicAny_DynAny_get_boolean_seq #define DynamicAny_DynValue_get_octet_seq DynamicAny_DynAny_get_octet_seq #define DynamicAny_DynValue_get_char_seq DynamicAny_DynAny_get_char_seq #define DynamicAny_DynValue_get_short_seq DynamicAny_DynAny_get_short_seq #define DynamicAny_DynValue_get_ushort_seq DynamicAny_DynAny_get_ushort_seq #define DynamicAny_DynValue_get_long_seq DynamicAny_DynAny_get_long_seq #define DynamicAny_DynValue_get_ulong_seq DynamicAny_DynAny_get_ulong_seq #define DynamicAny_DynValue_get_float_seq DynamicAny_DynAny_get_float_seq #define DynamicAny_DynValue_get_double_seq DynamicAny_DynAny_get_double_seq #define DynamicAny_DynValue_get_longlong_seq DynamicAny_DynAny_get_longlong_seq #define DynamicAny_DynValue_get_ulonglong_seq DynamicAny_DynAny_get_ulonglong_seq #define DynamicAny_DynValue_get_longdouble_seq DynamicAny_DynAny_get_longdouble_seq #define DynamicAny_DynValue_get_wchar_seq DynamicAny_DynAny_get_wchar_seq #define DynamicAny_DynValue_is_null DynamicAny_DynValueCommon_is_null #define DynamicAny_DynValue_set_to_null DynamicAny_DynValueCommon_set_to_null #define DynamicAny_DynValue_set_to_value DynamicAny_DynValueCommon_set_to_value DynamicAny_FieldName DynamicAny_DynValue_current_member_name(DynamicAny_DynValue _obj, CORBA_Environment *ev); CORBA_TCKind DynamicAny_DynValue_current_member_kind(DynamicAny_DynValue _obj, CORBA_Environment *ev); DynamicAny_NameValuePairSeq* DynamicAny_DynValue_get_members(DynamicAny_DynValue _obj, CORBA_Environment *ev); void DynamicAny_DynValue_set_members(DynamicAny_DynValue _obj, const DynamicAny_NameValuePairSeq* value, CORBA_Environment *ev); DynamicAny_NameDynAnyPairSeq* DynamicAny_DynValue_get_members_as_dyn_any(DynamicAny_DynValue _obj, CORBA_Environment *ev); void DynamicAny_DynValue_set_members_as_dyn_any(DynamicAny_DynValue _obj, const DynamicAny_NameDynAnyPairSeq* value, CORBA_Environment *ev); #define DynamicAny_DynValueBox_type DynamicAny_DynAny_type #define DynamicAny_DynValueBox_assign DynamicAny_DynAny_assign #define DynamicAny_DynValueBox_from_any DynamicAny_DynAny_from_any #define DynamicAny_DynValueBox_to_any DynamicAny_DynAny_to_any #define DynamicAny_DynValueBox_equal DynamicAny_DynAny_equal #define DynamicAny_DynValueBox_destroy DynamicAny_DynAny_destroy #define DynamicAny_DynValueBox_copy DynamicAny_DynAny_copy #define DynamicAny_DynValueBox_insert_boolean DynamicAny_DynAny_insert_boolean #define DynamicAny_DynValueBox_insert_octet DynamicAny_DynAny_insert_octet #define DynamicAny_DynValueBox_insert_char DynamicAny_DynAny_insert_char #define DynamicAny_DynValueBox_insert_short DynamicAny_DynAny_insert_short #define DynamicAny_DynValueBox_insert_ushort DynamicAny_DynAny_insert_ushort #define DynamicAny_DynValueBox_insert_long DynamicAny_DynAny_insert_long #define DynamicAny_DynValueBox_insert_ulong DynamicAny_DynAny_insert_ulong #define DynamicAny_DynValueBox_insert_float DynamicAny_DynAny_insert_float #define DynamicAny_DynValueBox_insert_double DynamicAny_DynAny_insert_double #define DynamicAny_DynValueBox_insert_string DynamicAny_DynAny_insert_string #define DynamicAny_DynValueBox_insert_reference DynamicAny_DynAny_insert_reference #define DynamicAny_DynValueBox_insert_typecode DynamicAny_DynAny_insert_typecode #define DynamicAny_DynValueBox_insert_longlong DynamicAny_DynAny_insert_longlong #define DynamicAny_DynValueBox_insert_ulonglong DynamicAny_DynAny_insert_ulonglong #define DynamicAny_DynValueBox_insert_longdouble DynamicAny_DynAny_insert_longdouble #define DynamicAny_DynValueBox_insert_wchar DynamicAny_DynAny_insert_wchar #define DynamicAny_DynValueBox_insert_wstring DynamicAny_DynAny_insert_wstring #define DynamicAny_DynValueBox_insert_any DynamicAny_DynAny_insert_any #define DynamicAny_DynValueBox_insert_dyn_any DynamicAny_DynAny_insert_dyn_any #define DynamicAny_DynValueBox_get_boolean DynamicAny_DynAny_get_boolean #define DynamicAny_DynValueBox_get_octet DynamicAny_DynAny_get_octet #define DynamicAny_DynValueBox_get_char DynamicAny_DynAny_get_char #define DynamicAny_DynValueBox_get_short DynamicAny_DynAny_get_short #define DynamicAny_DynValueBox_get_ushort DynamicAny_DynAny_get_ushort #define DynamicAny_DynValueBox_get_long DynamicAny_DynAny_get_long #define DynamicAny_DynValueBox_get_ulong DynamicAny_DynAny_get_ulong #define DynamicAny_DynValueBox_get_float DynamicAny_DynAny_get_float #define DynamicAny_DynValueBox_get_double DynamicAny_DynAny_get_double #define DynamicAny_DynValueBox_get_string DynamicAny_DynAny_get_string #define DynamicAny_DynValueBox_get_reference DynamicAny_DynAny_get_reference #define DynamicAny_DynValueBox_get_typecode DynamicAny_DynAny_get_typecode #define DynamicAny_DynValueBox_get_longlong DynamicAny_DynAny_get_longlong #define DynamicAny_DynValueBox_get_ulonglong DynamicAny_DynAny_get_ulonglong #define DynamicAny_DynValueBox_get_longdouble DynamicAny_DynAny_get_longdouble #define DynamicAny_DynValueBox_get_wchar DynamicAny_DynAny_get_wchar #define DynamicAny_DynValueBox_get_wstring DynamicAny_DynAny_get_wstring #define DynamicAny_DynValueBox_get_any DynamicAny_DynAny_get_any #define DynamicAny_DynValueBox_get_dyn_any DynamicAny_DynAny_get_dyn_any #define DynamicAny_DynValueBox_seek DynamicAny_DynAny_seek #define DynamicAny_DynValueBox_rewind DynamicAny_DynAny_rewind #define DynamicAny_DynValueBox_next DynamicAny_DynAny_next #define DynamicAny_DynValueBox_component_count DynamicAny_DynAny_component_count #define DynamicAny_DynValueBox_current_component DynamicAny_DynAny_current_component #define DynamicAny_DynValueBox_insert_abstract DynamicAny_DynAny_insert_abstract #define DynamicAny_DynValueBox_get_abstract DynamicAny_DynAny_get_abstract #define DynamicAny_DynValueBox_insert_boolean_seq DynamicAny_DynAny_insert_boolean_seq #define DynamicAny_DynValueBox_insert_octet_seq DynamicAny_DynAny_insert_octet_seq #define DynamicAny_DynValueBox_insert_char_seq DynamicAny_DynAny_insert_char_seq #define DynamicAny_DynValueBox_insert_short_seq DynamicAny_DynAny_insert_short_seq #define DynamicAny_DynValueBox_insert_ushort_seq DynamicAny_DynAny_insert_ushort_seq #define DynamicAny_DynValueBox_insert_long_seq DynamicAny_DynAny_insert_long_seq #define DynamicAny_DynValueBox_insert_ulong_seq DynamicAny_DynAny_insert_ulong_seq #define DynamicAny_DynValueBox_insert_float_seq DynamicAny_DynAny_insert_float_seq #define DynamicAny_DynValueBox_insert_double_seq DynamicAny_DynAny_insert_double_seq #define DynamicAny_DynValueBox_insert_longlong_seq DynamicAny_DynAny_insert_longlong_seq #define DynamicAny_DynValueBox_insert_ulonglong_seq DynamicAny_DynAny_insert_ulonglong_seq #define DynamicAny_DynValueBox_insert_longdouble_seq DynamicAny_DynAny_insert_longdouble_seq #define DynamicAny_DynValueBox_insert_wchar_seq DynamicAny_DynAny_insert_wchar_seq #define DynamicAny_DynValueBox_get_boolean_seq DynamicAny_DynAny_get_boolean_seq #define DynamicAny_DynValueBox_get_octet_seq DynamicAny_DynAny_get_octet_seq #define DynamicAny_DynValueBox_get_char_seq DynamicAny_DynAny_get_char_seq #define DynamicAny_DynValueBox_get_short_seq DynamicAny_DynAny_get_short_seq #define DynamicAny_DynValueBox_get_ushort_seq DynamicAny_DynAny_get_ushort_seq #define DynamicAny_DynValueBox_get_long_seq DynamicAny_DynAny_get_long_seq #define DynamicAny_DynValueBox_get_ulong_seq DynamicAny_DynAny_get_ulong_seq #define DynamicAny_DynValueBox_get_float_seq DynamicAny_DynAny_get_float_seq #define DynamicAny_DynValueBox_get_double_seq DynamicAny_DynAny_get_double_seq #define DynamicAny_DynValueBox_get_longlong_seq DynamicAny_DynAny_get_longlong_seq #define DynamicAny_DynValueBox_get_ulonglong_seq DynamicAny_DynAny_get_ulonglong_seq #define DynamicAny_DynValueBox_get_longdouble_seq DynamicAny_DynAny_get_longdouble_seq #define DynamicAny_DynValueBox_get_wchar_seq DynamicAny_DynAny_get_wchar_seq #define DynamicAny_DynValueBox_is_null DynamicAny_DynValueCommon_is_null #define DynamicAny_DynValueBox_set_to_null DynamicAny_DynValueCommon_set_to_null #define DynamicAny_DynValueBox_set_to_value DynamicAny_DynValueCommon_set_to_value CORBA_any* DynamicAny_DynValueBox_get_boxed_value(DynamicAny_DynValueBox _obj, CORBA_Environment *ev); void DynamicAny_DynValueBox_set_boxed_value(DynamicAny_DynValueBox _obj, const CORBA_any* boxed, CORBA_Environment *ev); DynamicAny_DynAny DynamicAny_DynValueBox_get_boxed_value_as_dyn_any(DynamicAny_DynValueBox _obj, CORBA_Environment *ev); void DynamicAny_DynValueBox_set_boxed_value_as_dyn_any(DynamicAny_DynValueBox _obj, const DynamicAny_DynAny boxed, CORBA_Environment *ev); DynamicAny_DynAny DynamicAny_DynAnyFactory_create_dyn_any(DynamicAny_DynAnyFactory _obj, const CORBA_any* value, CORBA_Environment *ev); DynamicAny_DynAny DynamicAny_DynAnyFactory_create_dyn_any_from_type_code(DynamicAny_DynAnyFactory _obj, const CORBA_TypeCode type, CORBA_Environment *ev); DynamicAny_DynAny DynamicAny_DynAnyFactory_create_dyn_any_without_truncation(DynamicAny_DynAnyFactory _obj, const CORBA_any* value, CORBA_Environment *ev); DynamicAny_DynAnySeq* DynamicAny_DynAnyFactory_create_multiple_dyn_anys(DynamicAny_DynAnyFactory _obj, const DynamicAny_AnySeq* values, const CORBA_boolean allow_truncate, CORBA_Environment *ev); DynamicAny_AnySeq* DynamicAny_DynAnyFactory_create_multiple_anys(DynamicAny_DynAnyFactory _obj, const DynamicAny_DynAnySeq* values, CORBA_Environment *ev); #ifndef __ORBIT_IMETHODS_INDEX #define __ORBIT_IMETHODS_INDEX #define ORBIT_IMETHODS_INDEX(m) (m ## __imethods_index) #endif /* __ORBIT_IMETHODS_INDEX */ #ifdef __cplusplus } #endif /* __cplusplus */ #ifndef EXCLUDE_ORBIT_H #include #endif /* EXCLUDE_ORBIT_H */ #endif #undef ORBIT_IDL_SERIAL ORBit2-2.14.19/include/orbit/dynamic/dynamic.h0000644000175000001440000000037311334247617015644 00000000000000#ifndef ORBIT_DYNAMIC_H #define ORBIT_DYNAMIC_H 1 #include G_BEGIN_DECLS #ifdef ORBIT2_INTERNAL_API gpointer ORBit_dynany_new_default (const CORBA_TypeCode tc); #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/orbit-types.h0000644000175000001440000000035711334247617015057 00000000000000#ifndef ORBIT_TYPES_H #define ORBIT_TYPES_H 1 #include #ifdef ORBIT2_INTERNAL_API # include #endif #include #include #endif ORBit2-2.14.19/include/orbit/Makefile.am0000644000175000001440000000025611334247617014457 00000000000000SUBDIRS=GIOP util orb-core poa dynamic orbitincludedir=$(includedir)/orbit-2.0/orbit orbitinclude_HEADERS=orbit.h orbit-config.h orbit-types.h BUILT_SOURCES=orbit-config.h ORBit2-2.14.19/include/orbit/orbit-config.h.in0000644000175000001440000000236111334247617015562 00000000000000#ifndef ORBIT_CONFIG_H #define ORBIT_CONFIG_H 1 #define ORBIT_CONFIG_SERIAL @ORBIT_SERIAL@ #ifndef ORBIT_MAJOR_VERSION #define ORBIT_MAJOR_VERSION (@ORBIT_MAJOR_VERSION@) #define ORBIT_MINOR_VERSION (@ORBIT_MINOR_VERSION@) #define ORBIT_MICRO_VERSION (@ORBIT_MICRO_VERSION@) #endif #define ORBIT_IMPLEMENTS_IS_A 1 /* * Alignment of CORBA types mapped to C. * These have *nothing* to do with CDR alignment. */ #define ORBIT_ALIGNOF_CORBA_OCTET @ORBIT_ALIGNOF_CORBA_OCTET@ #define ORBIT_ALIGNOF_CORBA_BOOLEAN @ORBIT_ALIGNOF_CORBA_BOOLEAN@ #define ORBIT_ALIGNOF_CORBA_CHAR @ORBIT_ALIGNOF_CORBA_CHAR@ #define ORBIT_ALIGNOF_CORBA_WCHAR @ORBIT_ALIGNOF_CORBA_WCHAR@ #define ORBIT_ALIGNOF_CORBA_SHORT @ORBIT_ALIGNOF_CORBA_SHORT@ #define ORBIT_ALIGNOF_CORBA_LONG @ORBIT_ALIGNOF_CORBA_LONG@ #define ORBIT_ALIGNOF_CORBA_LONG_LONG @ORBIT_ALIGNOF_CORBA_LONG_LONG@ #define ORBIT_ALIGNOF_CORBA_FLOAT @ORBIT_ALIGNOF_CORBA_FLOAT@ #define ORBIT_ALIGNOF_CORBA_DOUBLE @ORBIT_ALIGNOF_CORBA_DOUBLE@ #define ORBIT_ALIGNOF_CORBA_LONG_DOUBLE @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ #define ORBIT_ALIGNOF_CORBA_STRUCT @ORBIT_ALIGNOF_CORBA_STRUCT@ #define ORBIT_ALIGNOF_CORBA_POINTER @ORBIT_ALIGNOF_CORBA_POINTER@ #endif ORBit2-2.14.19/include/orbit/Makefile.in0000644000175000001440000005114511450333732014464 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = include/orbit DIST_COMMON = $(orbitinclude_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/orbit-config.h.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = orbit-config.h CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(orbitincludedir)" HEADERS = $(orbitinclude_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = GIOP util orb-core poa dynamic orbitincludedir = $(includedir)/orbit-2.0/orbit orbitinclude_HEADERS = orbit.h orbit-config.h orbit-types.h BUILT_SOURCES = orbit-config.h all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/orbit/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu include/orbit/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): orbit-config.h: $(top_builddir)/config.status $(srcdir)/orbit-config.h.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-orbitincludeHEADERS: $(orbitinclude_HEADERS) @$(NORMAL_INSTALL) test -z "$(orbitincludedir)" || $(MKDIR_P) "$(DESTDIR)$(orbitincludedir)" @list='$(orbitinclude_HEADERS)'; test -n "$(orbitincludedir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(orbitincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(orbitincludedir)" || exit $$?; \ done uninstall-orbitincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(orbitinclude_HEADERS)'; test -n "$(orbitincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(orbitincludedir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(orbitincludedir)" && rm -f $$files # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-recursive all-am: Makefile $(HEADERS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(orbitincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-orbitincludeHEADERS install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-orbitincludeHEADERS .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all check \ ctags-recursive install install-am install-strip \ tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-orbitincludeHEADERS \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-orbitincludeHEADERS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/include/orbit/orbit.h0000644000175000001440000000133711334247617013714 00000000000000/* This stays outside */ #include #ifdef ORBIT_IDL_SERIAL #if ORBIT_IDL_SERIAL < ORBIT_CONFIG_SERIAL #error "You need to rerun 'orbit-idl' on the .idl file whose stubs you are using. These stubs were generated with an older version of ORBit, and need to be regenerated." #endif #endif #ifndef ORBIT_H #define ORBIT_H 1 #include #ifdef ORBIT2_INTERNAL_API # include #endif #include #include #include G_BEGIN_DECLS extern const char *orbit_version; extern unsigned int orbit_major_version; extern unsigned int orbit_minor_version; extern unsigned int orbit_micro_version; G_END_DECLS #endif ORBit2-2.14.19/include/orbit/poa/0000755000175000001440000000000011450334030013240 500000000000000ORBit2-2.14.19/include/orbit/poa/Makefile.am0000644000175000001440000000124611334247617015236 00000000000000poaincludedir=$(includedir)/orbit-2.0/orbit/poa poainclude_HEADERS= \ poa-types.h \ poa.h \ poa-basics.h \ poa-defs.h \ poa-policy.h \ portableserver-poa-type.h \ portableserver-current-type.h \ orbit-adaptor.h BUILT_SOURCES = poa-defs.h IDL_FLAGS = -I$(top_srcdir)/src/idl/CORBA_PIDL \ -I$(top_srcdir)/src/idl/CORBA \ -I$(top_srcdir)/src/orb/orb-core \ -I$(top_srcdir)/src/idl/misc \ --define=Object=OObject --define=TypeCode=TTypeCode \ --noskels --nodefskels --nostubs --nocommon --noidata \ --showcpperrors IDL_FILES=poa-defs.idl IDL_DIR=$(top_srcdir)/src/orb/poa/ include $(top_srcdir)/Makefile.shared CLEANFILES=$(BUILT_SOURCES) ORBit2-2.14.19/include/orbit/poa/Makefile.in0000644000175000001440000004061011450333733015237 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ DIST_COMMON = $(poainclude_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(top_srcdir)/Makefile.shared subdir = include/orbit/poa ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(poaincludedir)" HEADERS = $(poainclude_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ poaincludedir = $(includedir)/orbit-2.0/orbit/poa poainclude_HEADERS = \ poa-types.h \ poa.h \ poa-basics.h \ poa-defs.h \ poa-policy.h \ portableserver-poa-type.h \ portableserver-current-type.h \ orbit-adaptor.h BUILT_SOURCES = poa-defs.h IDL_FLAGS = -I$(top_srcdir)/src/idl/CORBA_PIDL \ -I$(top_srcdir)/src/idl/CORBA \ -I$(top_srcdir)/src/orb/orb-core \ -I$(top_srcdir)/src/idl/misc \ --define=Object=OObject --define=TypeCode=TTypeCode \ --noskels --nodefskels --nostubs --nocommon --noidata \ --showcpperrors IDL_FILES = poa-defs.idl IDL_DIR = $(top_srcdir)/src/orb/poa/ @MAINTAINER_MODE_TRUE@IDL_DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) @MAINTAINER_MODE_TRUE@IDL_DEP_FILES = $(IDL_FILES:%.idl=.deps/%.idl.P) CLEANFILES = $(BUILT_SOURCES) all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.shared $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/orbit/poa/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu include/orbit/poa/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-poaincludeHEADERS: $(poainclude_HEADERS) @$(NORMAL_INSTALL) test -z "$(poaincludedir)" || $(MKDIR_P) "$(DESTDIR)$(poaincludedir)" @list='$(poainclude_HEADERS)'; test -n "$(poaincludedir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(poaincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(poaincludedir)" || exit $$?; \ done uninstall-poaincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(poainclude_HEADERS)'; test -n "$(poaincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(poaincludedir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(poaincludedir)" && rm -f $$files ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(HEADERS) installdirs: for dir in "$(DESTDIR)$(poaincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-local \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-poaincludeHEADERS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-poaincludeHEADERS .MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool ctags distclean distclean-generic \ distclean-libtool distclean-local distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-poaincludeHEADERS install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags uninstall uninstall-am \ uninstall-poaincludeHEADERS %-stubs.c %-skels.c %-common.c %-imodule.c %-skelimpl.c: %.h true %.h: $(IDL_DIR)%.idl $(IDL_COMPILER) -(rm -f $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c || true) > /dev/null $(IDL_COMPILER) $(IDL_FLAGS) --deps $(*D)/.deps/$(*F).idl.P $< for I in $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c; do \ if test -f $$I; then \ sed -e 's,OObject,Object,g' -e 's,TTypeCode,TypeCode,g' $$I > $$I.out; \ mv $$I.out $$I ; \ fi; \ done @MAINTAINER_MODE_TRUE@-include $(IDL_DEP_FILES) distclean-local: -rm -rf .deps # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/include/orbit/poa/poa.h0000644000175000001440000001414311334247617014132 00000000000000#ifndef POA_H #define POA_H 1 #include #include G_BEGIN_DECLS typedef struct { void *_private; } POA_PortableServer_ServantManager__epv; typedef struct { void *_private; PortableServer_Servant(*incarnate) (PortableServer_Servant _servant, const PortableServer_ObjectId * oid, const PortableServer_POA adapter, CORBA_Environment * ev); void (*etherealize) (PortableServer_Servant _servant, const PortableServer_ObjectId * oid, const PortableServer_POA adapter, const PortableServer_Servant serv, const CORBA_boolean cleanup_in_progress, const CORBA_boolean remaining_activations, CORBA_Environment * ev); } POA_PortableServer_ServantActivator__epv; typedef struct { PortableServer_ServantBase__epv *_base_epv; POA_PortableServer_ServantManager__epv *PortableServer_ServantManager_epv; POA_PortableServer_ServantActivator__epv *PortableServer_ServantActivator_epv; } POA_PortableServer_ServantActivator__vepv; typedef struct { void *_private; POA_PortableServer_ServantActivator__vepv *vepv; } POA_PortableServer_ServantActivator; typedef struct { void *_private; PortableServer_Servant(*preinvoke) (PortableServer_Servant _servant, const PortableServer_ObjectId * oid, const PortableServer_POA adapter, const CORBA_Identifier operation, PortableServer_ServantLocator_Cookie * the_cookie, CORBA_Environment * ev); void (*postinvoke) (PortableServer_Servant _servant, const PortableServer_ObjectId * oid, const PortableServer_POA adapter, const CORBA_Identifier operation, const PortableServer_ServantLocator_Cookie the_cookie, const PortableServer_Servant the_servant, CORBA_Environment * ev); } POA_PortableServer_ServantLocator__epv; typedef struct { PortableServer_ServantBase__epv *_base_epv; POA_PortableServer_ServantManager__epv *PortableServer_ServantManager_epv; POA_PortableServer_ServantLocator__epv *PortableServer_ServantLocator_epv; } POA_PortableServer_ServantLocator__vepv; typedef struct { void *_private; POA_PortableServer_ServantLocator__vepv *vepv; } POA_PortableServer_ServantLocator; #include #include void PortableServer_ServantBase__init (PortableServer_Servant servant, CORBA_Environment *ev); void PortableServer_ServantBase__fini (PortableServer_Servant servant, CORBA_Environment *ev); void PortableServer_RefCountServantBase__init (PortableServer_Servant servant, CORBA_Environment *ev); void PortableServer_RefCountServantBase__fini (PortableServer_Servant servant, CORBA_Environment *ev); void PortableServer_ServantBase__add_ref (PortableServer_Servant servant, CORBA_Environment *ev); void PortableServer_ServantBase__remove_ref (PortableServer_Servant servant, CORBA_Environment *ev); void PortableServer_RefCountServantBase__add_ref (PortableServer_Servant servant, CORBA_Environment *ev); void PortableServer_RefCountServantBase__remove_ref (PortableServer_Servant servant, CORBA_Environment *ev); PortableServer_POA PortableServer_ServantBase__default_POA (PortableServer_Servant servant, CORBA_Environment *ev); CORBA_InterfaceDef PortableServer_ServantBase__get_interface (PortableServer_Servant servant, CORBA_Environment *ev); CORBA_boolean PortableServer_ServantBase__is_a (PortableServer_Servant servant, const CORBA_char *logical_type_id, CORBA_Environment *ev); #define PortableServer_RefCount_ServantBase__default_POA \ PortableServer_ServantBase__default_POA #define PortableServer_RefCount_ServantBase__get_interface \ PortableServer_ServantBase__get_interface #define PortableServer_RefCount_ServantBase__is_a \ PortableServer_ServantBase__is_a PortableServer_ObjectId *PortableServer_string_to_ObjectId(CORBA_char *str, CORBA_Environment *nv); PortableServer_ObjectId *PortableServer_wstring_to_ObjectId(CORBA_wchar *str, CORBA_Environment *ev); CORBA_char *PortableServer_ObjectId_to_string(PortableServer_ObjectId *oid, CORBA_Environment *ev); CORBA_wchar *PortableServer_ObjectId_to_wstring(PortableServer_ObjectId *oid, CORBA_Environment *ev); PortableServer_POA ORBit_POA_new_from (CORBA_ORB orb, PortableServer_POA parent, const CORBA_char *adaptor_name, const CORBA_PolicyList *opt_policies, CORBA_Environment *ev); #if defined(ORBIT2_INTERNAL_API) || defined (ORBIT2_STUBS_API) void ORBit_skel_class_register (PortableServer_ClassInfo *ci, PortableServer_ServantBase *servant, void (*opt_finalize) (PortableServer_Servant, CORBA_Environment *), CORBA_unsigned_long class_offset, CORBA_unsigned_long first_parent_id, ...); /* DEPRECATED */ void ORBit_classinfo_register (PortableServer_ClassInfo *ci); #define ORBIT_SERVANT_SET_CLASSINFO(servant,ci) G_STMT_START { \ ((PortableServer_ServantBase *)(servant))->vepv[0]->_private = (ci); \ } G_STMT_END #endif /* defined(ORBIT2_INTERNAL_API) || defined (ORBIT2_STUBS_API) */ #ifdef ORBIT2_INTERNAL_API PortableServer_ClassInfo *ORBit_classinfo_lookup (const char *type_id); void ORBit_POAObject_post_invoke (ORBit_POAObject obj); gboolean ORBit_poa_allow_cross_thread_call (ORBit_POAObject pobj, ORBit_IMethodFlag method_flags); void ORBit_recv_buffer_return_sys_exception (GIOPRecvBuffer *buf, CORBA_Environment *ev); void ORBit_poa_init (void); #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/poa/poa-policy.h0000644000175000001440000000073011334247617015424 00000000000000#ifndef POA_POLICY_H #define POA_POLICY_H 1 #include G_BEGIN_DECLS #ifdef ORBIT2_INTERNAL_API #define ORBit_PortableServer_OKEYRAND_POLICY_ID CORBA_VPVID_ORBit0|1 typedef CORBA_Policy ORBit_PortableServer_OkeyrandPolicy; ORBit_PortableServer_OkeyrandPolicy PortableServer_POA_create_okeyrand_policy(PortableServer_POA _obj, const CORBA_unsigned_long poa_rand_len, CORBA_Environment *ev); #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/poa/poa-defs.h0000644000175000001440000017250611450333751015053 00000000000000/* * This file was generated by orbit-idl-2 - DO NOT EDIT! */ #ifndef poa_defs_H #define poa_defs_H 1 #include #define ORBIT_IDL_SERIAL 20 #include #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /** typedefs **/ #if !defined(ORBIT_DECL_PortableServer_POA) && !defined(_PortableServer_POA_defined) #define ORBIT_DECL_PortableServer_POA 1 #define _PortableServer_POA_defined 1 typedef struct PortableServer_POA_type *PortableServer_POA; #ifndef TC_PortableServer_POA # define TC_PortableServer_POA TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Object) #define ORBIT_DECL_CORBA_sequence_CORBA_Object 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_0 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_2 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_7 's' #if !defined(_CORBA_sequence_CORBA_Object_defined) #define _CORBA_sequence_CORBA_Object_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_Object* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_Object; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Object_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_0 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_2 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Object_struct; #define TC_CORBA_sequence_CORBA_Object ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Object_struct) #endif #define CORBA_sequence_CORBA_Object__alloc() ((CORBA_sequence_CORBA_Object *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Object)) #define CORBA_sequence_CORBA_Object__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Object,(m),(d)) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_PortableServer_POA) #define ORBIT_DECL_CORBA_sequence_PortableServer_POA 1 #define ORBIT_IMPL_CORBA_sequence_PortableServer_POA_0 'p' #define ORBIT_IMPL_CORBA_sequence_PortableServer_POA_1 'o' #define ORBIT_IMPL_CORBA_sequence_PortableServer_POA_2 'a' #define ORBIT_IMPL_CORBA_sequence_PortableServer_POA_3 '_' #define ORBIT_IMPL_CORBA_sequence_PortableServer_POA_4 'd' #define ORBIT_IMPL_CORBA_sequence_PortableServer_POA_5 'e' #define ORBIT_IMPL_CORBA_sequence_PortableServer_POA_6 'f' #define ORBIT_IMPL_CORBA_sequence_PortableServer_POA_7 's' #if !defined(_CORBA_sequence_PortableServer_POA_defined) #define _CORBA_sequence_PortableServer_POA_defined 1 typedef CORBA_sequence_CORBA_Object CORBA_sequence_PortableServer_POA; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_PortableServer_POA_0) #define TC_IMPL_TC_CORBA_sequence_PortableServer_POA_0 'p' #define TC_IMPL_TC_CORBA_sequence_PortableServer_POA_1 'o' #define TC_IMPL_TC_CORBA_sequence_PortableServer_POA_2 'a' #define TC_IMPL_TC_CORBA_sequence_PortableServer_POA_3 '_' #define TC_IMPL_TC_CORBA_sequence_PortableServer_POA_4 'd' #define TC_IMPL_TC_CORBA_sequence_PortableServer_POA_5 'e' #define TC_IMPL_TC_CORBA_sequence_PortableServer_POA_6 'f' #define TC_IMPL_TC_CORBA_sequence_PortableServer_POA_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_PortableServer_POA_struct; #define TC_CORBA_sequence_PortableServer_POA ((CORBA_TypeCode)&TC_CORBA_sequence_PortableServer_POA_struct) #endif #define CORBA_sequence_PortableServer_POA__alloc CORBA_sequence_CORBA_Object__alloc #define CORBA_sequence_PortableServer_POA__freekids CORBA_sequence_CORBA_Object__freekids #define CORBA_sequence_PortableServer_POA_allocbuf CORBA_sequence_CORBA_Object_allocbuf #define CORBA_sequence_PortableServer_POA_marshal(x,y,z) CORBA_sequence_CORBA_Object_marshal((x),(y),(z)) #define CORBA_sequence_PortableServer_POA_demarshal(x,y,z,i) CORBA_sequence_CORBA_Object_demarshal((x),(y),(z),(i)) #endif #if !defined(_PortableServer_POAList_defined) #define _PortableServer_POAList_defined 1 typedef CORBA_sequence_PortableServer_POA PortableServer_POAList; #define PortableServer_POAList_marshal(x,y,z) CORBA_sequence_PortableServer_POA_marshal((x),(y),(z)) #define PortableServer_POAList_demarshal(x,y,z,i) CORBA_sequence_PortableServer_POA_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_PortableServer_POAList_0) #define TC_IMPL_TC_PortableServer_POAList_0 'p' #define TC_IMPL_TC_PortableServer_POAList_1 'o' #define TC_IMPL_TC_PortableServer_POAList_2 'a' #define TC_IMPL_TC_PortableServer_POAList_3 '_' #define TC_IMPL_TC_PortableServer_POAList_4 'd' #define TC_IMPL_TC_PortableServer_POAList_5 'e' #define TC_IMPL_TC_PortableServer_POAList_6 'f' #define TC_IMPL_TC_PortableServer_POAList_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_POAList_struct; #define TC_PortableServer_POAList ((CORBA_TypeCode)&TC_PortableServer_POAList_struct) #endif #define PortableServer_POAList__alloc() ((PortableServer_POAList *)ORBit_small_alloc (TC_CORBA_sequence_PortableServer_POA)) #define PortableServer_POAList__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_PortableServer_POA,(m),(d)) #define PortableServer_POAList_allocbuf(l) ((PortableServer_POA*)ORBit_small_allocbuf (TC_CORBA_sequence_PortableServer_POA, (l))) #endif #if !defined(_PortableServer_Servant_defined) #define _PortableServer_Servant_defined 1 typedef struct PortableServer_Servant_type *PortableServer_Servant; #endif #if !defined(_PortableServer_ObjectId_defined) #define _PortableServer_ObjectId_defined 1 typedef CORBA_OctetSeq PortableServer_ObjectId; #define PortableServer_ObjectId_marshal(x,y,z) CORBA_OctetSeq_marshal((x),(y),(z)) #define PortableServer_ObjectId_demarshal(x,y,z,i) CORBA_OctetSeq_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_PortableServer_ObjectId_0) #define TC_IMPL_TC_PortableServer_ObjectId_0 'p' #define TC_IMPL_TC_PortableServer_ObjectId_1 'o' #define TC_IMPL_TC_PortableServer_ObjectId_2 'a' #define TC_IMPL_TC_PortableServer_ObjectId_3 '_' #define TC_IMPL_TC_PortableServer_ObjectId_4 'd' #define TC_IMPL_TC_PortableServer_ObjectId_5 'e' #define TC_IMPL_TC_PortableServer_ObjectId_6 'f' #define TC_IMPL_TC_PortableServer_ObjectId_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_ObjectId_struct; #define TC_PortableServer_ObjectId ((CORBA_TypeCode)&TC_PortableServer_ObjectId_struct) #endif #define PortableServer_ObjectId__alloc() ((PortableServer_ObjectId *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define PortableServer_ObjectId__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define PortableServer_ObjectId_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #undef ex_PortableServer_ForwardRequest #define ex_PortableServer_ForwardRequest "IDL:omg.org/PortableServer/ForwardRequest:1.0" #if !defined(_PortableServer_ForwardRequest_defined) #define _PortableServer_ForwardRequest_defined 1 typedef struct PortableServer_ForwardRequest_type PortableServer_ForwardRequest; struct PortableServer_ForwardRequest_type { CORBA_Object forward_reference; }; #if !defined(TC_IMPL_TC_PortableServer_ForwardRequest_0) #define TC_IMPL_TC_PortableServer_ForwardRequest_0 'p' #define TC_IMPL_TC_PortableServer_ForwardRequest_1 'o' #define TC_IMPL_TC_PortableServer_ForwardRequest_2 'a' #define TC_IMPL_TC_PortableServer_ForwardRequest_3 '_' #define TC_IMPL_TC_PortableServer_ForwardRequest_4 'd' #define TC_IMPL_TC_PortableServer_ForwardRequest_5 'e' #define TC_IMPL_TC_PortableServer_ForwardRequest_6 'f' #define TC_IMPL_TC_PortableServer_ForwardRequest_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_ForwardRequest_struct; #define TC_PortableServer_ForwardRequest ((CORBA_TypeCode)&TC_PortableServer_ForwardRequest_struct) #endif #define PortableServer_ForwardRequest__alloc() ((PortableServer_ForwardRequest *)ORBit_small_alloc (TC_PortableServer_ForwardRequest)) #define PortableServer_ForwardRequest__freekids(m,d) ORBit_small_freekids (TC_PortableServer_ForwardRequest,(m),(d)) #endif #ifndef PortableServer_THREAD_POLICY_ID #define PortableServer_THREAD_POLICY_ID 16U #endif /* !PortableServer_THREAD_POLICY_ID */ #ifndef PortableServer_LIFESPAN_POLICY_ID #define PortableServer_LIFESPAN_POLICY_ID 17U #endif /* !PortableServer_LIFESPAN_POLICY_ID */ #ifndef PortableServer_ID_UNIQUENESS_POLICY_ID #define PortableServer_ID_UNIQUENESS_POLICY_ID 18U #endif /* !PortableServer_ID_UNIQUENESS_POLICY_ID */ #ifndef PortableServer_ID_ASSIGNMENT_POLICY_ID #define PortableServer_ID_ASSIGNMENT_POLICY_ID 19U #endif /* !PortableServer_ID_ASSIGNMENT_POLICY_ID */ #ifndef PortableServer_IMPLICIT_ACTIVATION_POLICY_ID #define PortableServer_IMPLICIT_ACTIVATION_POLICY_ID 20U #endif /* !PortableServer_IMPLICIT_ACTIVATION_POLICY_ID */ #ifndef PortableServer_SERVANT_RETENTION_POLICY_ID #define PortableServer_SERVANT_RETENTION_POLICY_ID 21U #endif /* !PortableServer_SERVANT_RETENTION_POLICY_ID */ #ifndef PortableServer_REQUEST_PROCESSING_POLICY_ID #define PortableServer_REQUEST_PROCESSING_POLICY_ID 22U #endif /* !PortableServer_REQUEST_PROCESSING_POLICY_ID */ #if !defined(_PortableServer_ThreadPolicyValue_defined) #define _PortableServer_ThreadPolicyValue_defined 1 typedef enum { PortableServer_ORB_CTRL_MODEL, PortableServer_SINGLE_THREAD_MODEL, PortableServer_MAIN_THREAD_MODEL } PortableServer_ThreadPolicyValue; #if !defined(TC_IMPL_TC_PortableServer_ThreadPolicyValue_0) #define TC_IMPL_TC_PortableServer_ThreadPolicyValue_0 'p' #define TC_IMPL_TC_PortableServer_ThreadPolicyValue_1 'o' #define TC_IMPL_TC_PortableServer_ThreadPolicyValue_2 'a' #define TC_IMPL_TC_PortableServer_ThreadPolicyValue_3 '_' #define TC_IMPL_TC_PortableServer_ThreadPolicyValue_4 'd' #define TC_IMPL_TC_PortableServer_ThreadPolicyValue_5 'e' #define TC_IMPL_TC_PortableServer_ThreadPolicyValue_6 'f' #define TC_IMPL_TC_PortableServer_ThreadPolicyValue_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_ThreadPolicyValue_struct; #define TC_PortableServer_ThreadPolicyValue ((CORBA_TypeCode)&TC_PortableServer_ThreadPolicyValue_struct) #endif #endif #if !defined(ORBIT_DECL_PortableServer_ThreadPolicy) && !defined(_PortableServer_ThreadPolicy_defined) #define ORBIT_DECL_PortableServer_ThreadPolicy 1 #define _PortableServer_ThreadPolicy_defined 1 typedef struct PortableServer_ThreadPolicy_type *PortableServer_ThreadPolicy; #ifndef TC_PortableServer_ThreadPolicy # define TC_PortableServer_ThreadPolicy TC_CORBA_Object #endif #endif #if !defined(_PortableServer_LifespanPolicyValue_defined) #define _PortableServer_LifespanPolicyValue_defined 1 typedef enum { PortableServer_TRANSIENT, PortableServer_PERSISTENT } PortableServer_LifespanPolicyValue; #if !defined(TC_IMPL_TC_PortableServer_LifespanPolicyValue_0) #define TC_IMPL_TC_PortableServer_LifespanPolicyValue_0 'p' #define TC_IMPL_TC_PortableServer_LifespanPolicyValue_1 'o' #define TC_IMPL_TC_PortableServer_LifespanPolicyValue_2 'a' #define TC_IMPL_TC_PortableServer_LifespanPolicyValue_3 '_' #define TC_IMPL_TC_PortableServer_LifespanPolicyValue_4 'd' #define TC_IMPL_TC_PortableServer_LifespanPolicyValue_5 'e' #define TC_IMPL_TC_PortableServer_LifespanPolicyValue_6 'f' #define TC_IMPL_TC_PortableServer_LifespanPolicyValue_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_LifespanPolicyValue_struct; #define TC_PortableServer_LifespanPolicyValue ((CORBA_TypeCode)&TC_PortableServer_LifespanPolicyValue_struct) #endif #endif #if !defined(ORBIT_DECL_PortableServer_LifespanPolicy) && !defined(_PortableServer_LifespanPolicy_defined) #define ORBIT_DECL_PortableServer_LifespanPolicy 1 #define _PortableServer_LifespanPolicy_defined 1 typedef struct PortableServer_LifespanPolicy_type *PortableServer_LifespanPolicy; #ifndef TC_PortableServer_LifespanPolicy # define TC_PortableServer_LifespanPolicy TC_CORBA_Object #endif #endif #if !defined(_PortableServer_IdUniquenessPolicyValue_defined) #define _PortableServer_IdUniquenessPolicyValue_defined 1 typedef enum { PortableServer_UNIQUE_ID, PortableServer_MULTIPLE_ID } PortableServer_IdUniquenessPolicyValue; #if !defined(TC_IMPL_TC_PortableServer_IdUniquenessPolicyValue_0) #define TC_IMPL_TC_PortableServer_IdUniquenessPolicyValue_0 'p' #define TC_IMPL_TC_PortableServer_IdUniquenessPolicyValue_1 'o' #define TC_IMPL_TC_PortableServer_IdUniquenessPolicyValue_2 'a' #define TC_IMPL_TC_PortableServer_IdUniquenessPolicyValue_3 '_' #define TC_IMPL_TC_PortableServer_IdUniquenessPolicyValue_4 'd' #define TC_IMPL_TC_PortableServer_IdUniquenessPolicyValue_5 'e' #define TC_IMPL_TC_PortableServer_IdUniquenessPolicyValue_6 'f' #define TC_IMPL_TC_PortableServer_IdUniquenessPolicyValue_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_IdUniquenessPolicyValue_struct; #define TC_PortableServer_IdUniquenessPolicyValue ((CORBA_TypeCode)&TC_PortableServer_IdUniquenessPolicyValue_struct) #endif #endif #if !defined(ORBIT_DECL_PortableServer_IdUniquenessPolicy) && !defined(_PortableServer_IdUniquenessPolicy_defined) #define ORBIT_DECL_PortableServer_IdUniquenessPolicy 1 #define _PortableServer_IdUniquenessPolicy_defined 1 typedef struct PortableServer_IdUniquenessPolicy_type *PortableServer_IdUniquenessPolicy; #ifndef TC_PortableServer_IdUniquenessPolicy # define TC_PortableServer_IdUniquenessPolicy TC_CORBA_Object #endif #endif #if !defined(_PortableServer_IdAssignmentPolicyValue_defined) #define _PortableServer_IdAssignmentPolicyValue_defined 1 typedef enum { PortableServer_USER_ID, PortableServer_SYSTEM_ID } PortableServer_IdAssignmentPolicyValue; #if !defined(TC_IMPL_TC_PortableServer_IdAssignmentPolicyValue_0) #define TC_IMPL_TC_PortableServer_IdAssignmentPolicyValue_0 'p' #define TC_IMPL_TC_PortableServer_IdAssignmentPolicyValue_1 'o' #define TC_IMPL_TC_PortableServer_IdAssignmentPolicyValue_2 'a' #define TC_IMPL_TC_PortableServer_IdAssignmentPolicyValue_3 '_' #define TC_IMPL_TC_PortableServer_IdAssignmentPolicyValue_4 'd' #define TC_IMPL_TC_PortableServer_IdAssignmentPolicyValue_5 'e' #define TC_IMPL_TC_PortableServer_IdAssignmentPolicyValue_6 'f' #define TC_IMPL_TC_PortableServer_IdAssignmentPolicyValue_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_IdAssignmentPolicyValue_struct; #define TC_PortableServer_IdAssignmentPolicyValue ((CORBA_TypeCode)&TC_PortableServer_IdAssignmentPolicyValue_struct) #endif #endif #if !defined(ORBIT_DECL_PortableServer_IdAssignmentPolicy) && !defined(_PortableServer_IdAssignmentPolicy_defined) #define ORBIT_DECL_PortableServer_IdAssignmentPolicy 1 #define _PortableServer_IdAssignmentPolicy_defined 1 typedef struct PortableServer_IdAssignmentPolicy_type *PortableServer_IdAssignmentPolicy; #ifndef TC_PortableServer_IdAssignmentPolicy # define TC_PortableServer_IdAssignmentPolicy TC_CORBA_Object #endif #endif #if !defined(_PortableServer_ImplicitActivationPolicyValue_defined) #define _PortableServer_ImplicitActivationPolicyValue_defined 1 typedef enum { PortableServer_IMPLICIT_ACTIVATION, PortableServer_NO_IMPLICIT_ACTIVATION } PortableServer_ImplicitActivationPolicyValue; #if !defined(TC_IMPL_TC_PortableServer_ImplicitActivationPolicyValue_0) #define TC_IMPL_TC_PortableServer_ImplicitActivationPolicyValue_0 'p' #define TC_IMPL_TC_PortableServer_ImplicitActivationPolicyValue_1 'o' #define TC_IMPL_TC_PortableServer_ImplicitActivationPolicyValue_2 'a' #define TC_IMPL_TC_PortableServer_ImplicitActivationPolicyValue_3 '_' #define TC_IMPL_TC_PortableServer_ImplicitActivationPolicyValue_4 'd' #define TC_IMPL_TC_PortableServer_ImplicitActivationPolicyValue_5 'e' #define TC_IMPL_TC_PortableServer_ImplicitActivationPolicyValue_6 'f' #define TC_IMPL_TC_PortableServer_ImplicitActivationPolicyValue_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_ImplicitActivationPolicyValue_struct; #define TC_PortableServer_ImplicitActivationPolicyValue ((CORBA_TypeCode)&TC_PortableServer_ImplicitActivationPolicyValue_struct) #endif #endif #if !defined(ORBIT_DECL_PortableServer_ImplicitActivationPolicy) && !defined(_PortableServer_ImplicitActivationPolicy_defined) #define ORBIT_DECL_PortableServer_ImplicitActivationPolicy 1 #define _PortableServer_ImplicitActivationPolicy_defined 1 typedef struct PortableServer_ImplicitActivationPolicy_type *PortableServer_ImplicitActivationPolicy; #ifndef TC_PortableServer_ImplicitActivationPolicy # define TC_PortableServer_ImplicitActivationPolicy TC_CORBA_Object #endif #endif #if !defined(_PortableServer_ServantRetentionPolicyValue_defined) #define _PortableServer_ServantRetentionPolicyValue_defined 1 typedef enum { PortableServer_RETAIN, PortableServer_NON_RETAIN } PortableServer_ServantRetentionPolicyValue; #if !defined(TC_IMPL_TC_PortableServer_ServantRetentionPolicyValue_0) #define TC_IMPL_TC_PortableServer_ServantRetentionPolicyValue_0 'p' #define TC_IMPL_TC_PortableServer_ServantRetentionPolicyValue_1 'o' #define TC_IMPL_TC_PortableServer_ServantRetentionPolicyValue_2 'a' #define TC_IMPL_TC_PortableServer_ServantRetentionPolicyValue_3 '_' #define TC_IMPL_TC_PortableServer_ServantRetentionPolicyValue_4 'd' #define TC_IMPL_TC_PortableServer_ServantRetentionPolicyValue_5 'e' #define TC_IMPL_TC_PortableServer_ServantRetentionPolicyValue_6 'f' #define TC_IMPL_TC_PortableServer_ServantRetentionPolicyValue_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_ServantRetentionPolicyValue_struct; #define TC_PortableServer_ServantRetentionPolicyValue ((CORBA_TypeCode)&TC_PortableServer_ServantRetentionPolicyValue_struct) #endif #endif #if !defined(ORBIT_DECL_PortableServer_ServantRetentionPolicy) && !defined(_PortableServer_ServantRetentionPolicy_defined) #define ORBIT_DECL_PortableServer_ServantRetentionPolicy 1 #define _PortableServer_ServantRetentionPolicy_defined 1 typedef struct PortableServer_ServantRetentionPolicy_type *PortableServer_ServantRetentionPolicy; #ifndef TC_PortableServer_ServantRetentionPolicy # define TC_PortableServer_ServantRetentionPolicy TC_CORBA_Object #endif #endif #if !defined(_PortableServer_RequestProcessingPolicyValue_defined) #define _PortableServer_RequestProcessingPolicyValue_defined 1 typedef enum { PortableServer_USE_ACTIVE_OBJECT_MAP_ONLY, PortableServer_USE_DEFAULT_SERVANT, PortableServer_USE_SERVANT_MANAGER } PortableServer_RequestProcessingPolicyValue; #if !defined(TC_IMPL_TC_PortableServer_RequestProcessingPolicyValue_0) #define TC_IMPL_TC_PortableServer_RequestProcessingPolicyValue_0 'p' #define TC_IMPL_TC_PortableServer_RequestProcessingPolicyValue_1 'o' #define TC_IMPL_TC_PortableServer_RequestProcessingPolicyValue_2 'a' #define TC_IMPL_TC_PortableServer_RequestProcessingPolicyValue_3 '_' #define TC_IMPL_TC_PortableServer_RequestProcessingPolicyValue_4 'd' #define TC_IMPL_TC_PortableServer_RequestProcessingPolicyValue_5 'e' #define TC_IMPL_TC_PortableServer_RequestProcessingPolicyValue_6 'f' #define TC_IMPL_TC_PortableServer_RequestProcessingPolicyValue_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_RequestProcessingPolicyValue_struct; #define TC_PortableServer_RequestProcessingPolicyValue ((CORBA_TypeCode)&TC_PortableServer_RequestProcessingPolicyValue_struct) #endif #endif #if !defined(ORBIT_DECL_PortableServer_RequestProcessingPolicy) && !defined(_PortableServer_RequestProcessingPolicy_defined) #define ORBIT_DECL_PortableServer_RequestProcessingPolicy 1 #define _PortableServer_RequestProcessingPolicy_defined 1 typedef struct PortableServer_RequestProcessingPolicy_type *PortableServer_RequestProcessingPolicy; #ifndef TC_PortableServer_RequestProcessingPolicy # define TC_PortableServer_RequestProcessingPolicy TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_PortableServer_POAManager) && !defined(_PortableServer_POAManager_defined) #define ORBIT_DECL_PortableServer_POAManager 1 #define _PortableServer_POAManager_defined 1 typedef struct PortableServer_POAManager_type *PortableServer_POAManager; #ifndef TC_PortableServer_POAManager # define TC_PortableServer_POAManager TC_CORBA_Object #endif #endif #undef ex_PortableServer_POAManager_AdapterInactive #define ex_PortableServer_POAManager_AdapterInactive "IDL:omg.org/PortableServer/POAManager/AdapterInactive:1.0" #if !defined(_PortableServer_POAManager_AdapterInactive_defined) #define _PortableServer_POAManager_AdapterInactive_defined 1 typedef struct PortableServer_POAManager_AdapterInactive_type PortableServer_POAManager_AdapterInactive; struct PortableServer_POAManager_AdapterInactive_type { int dummy; }; #if !defined(TC_IMPL_TC_PortableServer_POAManager_AdapterInactive_0) #define TC_IMPL_TC_PortableServer_POAManager_AdapterInactive_0 'p' #define TC_IMPL_TC_PortableServer_POAManager_AdapterInactive_1 'o' #define TC_IMPL_TC_PortableServer_POAManager_AdapterInactive_2 'a' #define TC_IMPL_TC_PortableServer_POAManager_AdapterInactive_3 '_' #define TC_IMPL_TC_PortableServer_POAManager_AdapterInactive_4 'd' #define TC_IMPL_TC_PortableServer_POAManager_AdapterInactive_5 'e' #define TC_IMPL_TC_PortableServer_POAManager_AdapterInactive_6 'f' #define TC_IMPL_TC_PortableServer_POAManager_AdapterInactive_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_POAManager_AdapterInactive_struct; #define TC_PortableServer_POAManager_AdapterInactive ((CORBA_TypeCode)&TC_PortableServer_POAManager_AdapterInactive_struct) #endif #define PortableServer_POAManager_AdapterInactive__alloc() ((PortableServer_POAManager_AdapterInactive *)ORBit_small_alloc (TC_PortableServer_POAManager_AdapterInactive)) #define PortableServer_POAManager_AdapterInactive__freekids(m,d) ORBit_small_freekids (TC_PortableServer_POAManager_AdapterInactive,(m),(d)) #endif #if !defined(_PortableServer_POAManager_State_defined) #define _PortableServer_POAManager_State_defined 1 typedef enum { PortableServer_POAManager_HOLDING, PortableServer_POAManager_ACTIVE, PortableServer_POAManager_DISCARDING, PortableServer_POAManager_INACTIVE } PortableServer_POAManager_State; #if !defined(TC_IMPL_TC_PortableServer_POAManager_State_0) #define TC_IMPL_TC_PortableServer_POAManager_State_0 'p' #define TC_IMPL_TC_PortableServer_POAManager_State_1 'o' #define TC_IMPL_TC_PortableServer_POAManager_State_2 'a' #define TC_IMPL_TC_PortableServer_POAManager_State_3 '_' #define TC_IMPL_TC_PortableServer_POAManager_State_4 'd' #define TC_IMPL_TC_PortableServer_POAManager_State_5 'e' #define TC_IMPL_TC_PortableServer_POAManager_State_6 'f' #define TC_IMPL_TC_PortableServer_POAManager_State_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_POAManager_State_struct; #define TC_PortableServer_POAManager_State ((CORBA_TypeCode)&TC_PortableServer_POAManager_State_struct) #endif #endif #if !defined(ORBIT_DECL_PortableServer_POAManagerFactory) && !defined(_PortableServer_POAManagerFactory_defined) #define ORBIT_DECL_PortableServer_POAManagerFactory 1 #define _PortableServer_POAManagerFactory_defined 1 typedef struct PortableServer_POAManagerFactory_type *PortableServer_POAManagerFactory; #ifndef TC_PortableServer_POAManagerFactory # define TC_PortableServer_POAManagerFactory TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Object) #define ORBIT_DECL_CORBA_sequence_CORBA_Object 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_0 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_2 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_7 's' #if !defined(_CORBA_sequence_CORBA_Object_defined) #define _CORBA_sequence_CORBA_Object_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_Object* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_Object; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Object_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_0 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_2 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Object_struct; #define TC_CORBA_sequence_CORBA_Object ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Object_struct) #endif #define CORBA_sequence_CORBA_Object__alloc() ((CORBA_sequence_CORBA_Object *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Object)) #define CORBA_sequence_CORBA_Object__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Object,(m),(d)) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_PortableServer_POAManager) #define ORBIT_DECL_CORBA_sequence_PortableServer_POAManager 1 #define ORBIT_IMPL_CORBA_sequence_PortableServer_POAManager_0 'p' #define ORBIT_IMPL_CORBA_sequence_PortableServer_POAManager_1 'o' #define ORBIT_IMPL_CORBA_sequence_PortableServer_POAManager_2 'a' #define ORBIT_IMPL_CORBA_sequence_PortableServer_POAManager_3 '_' #define ORBIT_IMPL_CORBA_sequence_PortableServer_POAManager_4 'd' #define ORBIT_IMPL_CORBA_sequence_PortableServer_POAManager_5 'e' #define ORBIT_IMPL_CORBA_sequence_PortableServer_POAManager_6 'f' #define ORBIT_IMPL_CORBA_sequence_PortableServer_POAManager_7 's' #if !defined(_CORBA_sequence_PortableServer_POAManager_defined) #define _CORBA_sequence_PortableServer_POAManager_defined 1 typedef CORBA_sequence_CORBA_Object CORBA_sequence_PortableServer_POAManager; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_PortableServer_POAManager_0) #define TC_IMPL_TC_CORBA_sequence_PortableServer_POAManager_0 'p' #define TC_IMPL_TC_CORBA_sequence_PortableServer_POAManager_1 'o' #define TC_IMPL_TC_CORBA_sequence_PortableServer_POAManager_2 'a' #define TC_IMPL_TC_CORBA_sequence_PortableServer_POAManager_3 '_' #define TC_IMPL_TC_CORBA_sequence_PortableServer_POAManager_4 'd' #define TC_IMPL_TC_CORBA_sequence_PortableServer_POAManager_5 'e' #define TC_IMPL_TC_CORBA_sequence_PortableServer_POAManager_6 'f' #define TC_IMPL_TC_CORBA_sequence_PortableServer_POAManager_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_PortableServer_POAManager_struct; #define TC_CORBA_sequence_PortableServer_POAManager ((CORBA_TypeCode)&TC_CORBA_sequence_PortableServer_POAManager_struct) #endif #define CORBA_sequence_PortableServer_POAManager__alloc CORBA_sequence_CORBA_Object__alloc #define CORBA_sequence_PortableServer_POAManager__freekids CORBA_sequence_CORBA_Object__freekids #define CORBA_sequence_PortableServer_POAManager_allocbuf CORBA_sequence_CORBA_Object_allocbuf #define CORBA_sequence_PortableServer_POAManager_marshal(x,y,z) CORBA_sequence_CORBA_Object_marshal((x),(y),(z)) #define CORBA_sequence_PortableServer_POAManager_demarshal(x,y,z,i) CORBA_sequence_CORBA_Object_demarshal((x),(y),(z),(i)) #endif #if !defined(_PortableServer_POAManagerFactory_POAManagerSeq_defined) #define _PortableServer_POAManagerFactory_POAManagerSeq_defined 1 typedef CORBA_sequence_PortableServer_POAManager PortableServer_POAManagerFactory_POAManagerSeq; #define PortableServer_POAManagerFactory_POAManagerSeq_marshal(x,y,z) CORBA_sequence_PortableServer_POAManager_marshal((x),(y),(z)) #define PortableServer_POAManagerFactory_POAManagerSeq_demarshal(x,y,z,i) CORBA_sequence_PortableServer_POAManager_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_PortableServer_POAManagerFactory_POAManagerSeq_0) #define TC_IMPL_TC_PortableServer_POAManagerFactory_POAManagerSeq_0 'p' #define TC_IMPL_TC_PortableServer_POAManagerFactory_POAManagerSeq_1 'o' #define TC_IMPL_TC_PortableServer_POAManagerFactory_POAManagerSeq_2 'a' #define TC_IMPL_TC_PortableServer_POAManagerFactory_POAManagerSeq_3 '_' #define TC_IMPL_TC_PortableServer_POAManagerFactory_POAManagerSeq_4 'd' #define TC_IMPL_TC_PortableServer_POAManagerFactory_POAManagerSeq_5 'e' #define TC_IMPL_TC_PortableServer_POAManagerFactory_POAManagerSeq_6 'f' #define TC_IMPL_TC_PortableServer_POAManagerFactory_POAManagerSeq_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_POAManagerFactory_POAManagerSeq_struct; #define TC_PortableServer_POAManagerFactory_POAManagerSeq ((CORBA_TypeCode)&TC_PortableServer_POAManagerFactory_POAManagerSeq_struct) #endif #define PortableServer_POAManagerFactory_POAManagerSeq__alloc() ((PortableServer_POAManagerFactory_POAManagerSeq *)ORBit_small_alloc (TC_CORBA_sequence_PortableServer_POAManager)) #define PortableServer_POAManagerFactory_POAManagerSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_PortableServer_POAManager,(m),(d)) #define PortableServer_POAManagerFactory_POAManagerSeq_allocbuf(l) ((PortableServer_POAManager*)ORBit_small_allocbuf (TC_CORBA_sequence_PortableServer_POAManager, (l))) #endif #undef ex_PortableServer_POAManagerFactory_ManagerAlreadyExists #define ex_PortableServer_POAManagerFactory_ManagerAlreadyExists "IDL:omg.org/PortableServer/POAManagerFactory/ManagerAlreadyExists:1.0" #if !defined(_PortableServer_POAManagerFactory_ManagerAlreadyExists_defined) #define _PortableServer_POAManagerFactory_ManagerAlreadyExists_defined 1 typedef struct PortableServer_POAManagerFactory_ManagerAlreadyExists_type PortableServer_POAManagerFactory_ManagerAlreadyExists; struct PortableServer_POAManagerFactory_ManagerAlreadyExists_type { int dummy; }; #if !defined(TC_IMPL_TC_PortableServer_POAManagerFactory_ManagerAlreadyExists_0) #define TC_IMPL_TC_PortableServer_POAManagerFactory_ManagerAlreadyExists_0 'p' #define TC_IMPL_TC_PortableServer_POAManagerFactory_ManagerAlreadyExists_1 'o' #define TC_IMPL_TC_PortableServer_POAManagerFactory_ManagerAlreadyExists_2 'a' #define TC_IMPL_TC_PortableServer_POAManagerFactory_ManagerAlreadyExists_3 '_' #define TC_IMPL_TC_PortableServer_POAManagerFactory_ManagerAlreadyExists_4 'd' #define TC_IMPL_TC_PortableServer_POAManagerFactory_ManagerAlreadyExists_5 'e' #define TC_IMPL_TC_PortableServer_POAManagerFactory_ManagerAlreadyExists_6 'f' #define TC_IMPL_TC_PortableServer_POAManagerFactory_ManagerAlreadyExists_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_POAManagerFactory_ManagerAlreadyExists_struct; #define TC_PortableServer_POAManagerFactory_ManagerAlreadyExists ((CORBA_TypeCode)&TC_PortableServer_POAManagerFactory_ManagerAlreadyExists_struct) #endif #define PortableServer_POAManagerFactory_ManagerAlreadyExists__alloc() ((PortableServer_POAManagerFactory_ManagerAlreadyExists *)ORBit_small_alloc (TC_PortableServer_POAManagerFactory_ManagerAlreadyExists)) #define PortableServer_POAManagerFactory_ManagerAlreadyExists__freekids(m,d) ORBit_small_freekids (TC_PortableServer_POAManagerFactory_ManagerAlreadyExists,(m),(d)) #endif #if !defined(ORBIT_DECL_PortableServer_AdapterActivator) && !defined(_PortableServer_AdapterActivator_defined) #define ORBIT_DECL_PortableServer_AdapterActivator 1 #define _PortableServer_AdapterActivator_defined 1 typedef struct PortableServer_AdapterActivator_type *PortableServer_AdapterActivator; #ifndef TC_PortableServer_AdapterActivator # define TC_PortableServer_AdapterActivator TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_PortableServer_ServantManager) && !defined(_PortableServer_ServantManager_defined) #define ORBIT_DECL_PortableServer_ServantManager 1 #define _PortableServer_ServantManager_defined 1 typedef struct PortableServer_ServantManager_type *PortableServer_ServantManager; #ifndef TC_PortableServer_ServantManager # define TC_PortableServer_ServantManager TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_PortableServer_ServantActivator) && !defined(_PortableServer_ServantActivator_defined) #define ORBIT_DECL_PortableServer_ServantActivator 1 #define _PortableServer_ServantActivator_defined 1 typedef struct PortableServer_ServantActivator_type *PortableServer_ServantActivator; #ifndef TC_PortableServer_ServantActivator # define TC_PortableServer_ServantActivator TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_PortableServer_ServantLocator) && !defined(_PortableServer_ServantLocator_defined) #define ORBIT_DECL_PortableServer_ServantLocator 1 #define _PortableServer_ServantLocator_defined 1 typedef struct PortableServer_ServantLocator_type *PortableServer_ServantLocator; #ifndef TC_PortableServer_ServantLocator # define TC_PortableServer_ServantLocator TC_CORBA_Object #endif #endif #if !defined(_PortableServer_ServantLocator_Cookie_defined) #define _PortableServer_ServantLocator_Cookie_defined 1 typedef struct PortableServer_ServantLocator_Cookie_type *PortableServer_ServantLocator_Cookie; #endif #if !defined(ORBIT_DECL_PortableServer_POA) && !defined(_PortableServer_POA_defined) #define ORBIT_DECL_PortableServer_POA 1 #define _PortableServer_POA_defined 1 typedef struct PortableServer_POA_type *PortableServer_POA; #ifndef TC_PortableServer_POA # define TC_PortableServer_POA TC_CORBA_Object #endif #endif #undef ex_PortableServer_POA_AdapterAlreadyExists #define ex_PortableServer_POA_AdapterAlreadyExists "IDL:omg.org/PortableServer/POA/AdapterAlreadyExists:1.0" #if !defined(_PortableServer_POA_AdapterAlreadyExists_defined) #define _PortableServer_POA_AdapterAlreadyExists_defined 1 typedef struct PortableServer_POA_AdapterAlreadyExists_type PortableServer_POA_AdapterAlreadyExists; struct PortableServer_POA_AdapterAlreadyExists_type { int dummy; }; #if !defined(TC_IMPL_TC_PortableServer_POA_AdapterAlreadyExists_0) #define TC_IMPL_TC_PortableServer_POA_AdapterAlreadyExists_0 'p' #define TC_IMPL_TC_PortableServer_POA_AdapterAlreadyExists_1 'o' #define TC_IMPL_TC_PortableServer_POA_AdapterAlreadyExists_2 'a' #define TC_IMPL_TC_PortableServer_POA_AdapterAlreadyExists_3 '_' #define TC_IMPL_TC_PortableServer_POA_AdapterAlreadyExists_4 'd' #define TC_IMPL_TC_PortableServer_POA_AdapterAlreadyExists_5 'e' #define TC_IMPL_TC_PortableServer_POA_AdapterAlreadyExists_6 'f' #define TC_IMPL_TC_PortableServer_POA_AdapterAlreadyExists_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_POA_AdapterAlreadyExists_struct; #define TC_PortableServer_POA_AdapterAlreadyExists ((CORBA_TypeCode)&TC_PortableServer_POA_AdapterAlreadyExists_struct) #endif #define PortableServer_POA_AdapterAlreadyExists__alloc() ((PortableServer_POA_AdapterAlreadyExists *)ORBit_small_alloc (TC_PortableServer_POA_AdapterAlreadyExists)) #define PortableServer_POA_AdapterAlreadyExists__freekids(m,d) ORBit_small_freekids (TC_PortableServer_POA_AdapterAlreadyExists,(m),(d)) #endif #undef ex_PortableServer_POA_AdapterNonExistent #define ex_PortableServer_POA_AdapterNonExistent "IDL:omg.org/PortableServer/POA/AdapterNonExistent:1.0" #if !defined(_PortableServer_POA_AdapterNonExistent_defined) #define _PortableServer_POA_AdapterNonExistent_defined 1 typedef struct PortableServer_POA_AdapterNonExistent_type PortableServer_POA_AdapterNonExistent; struct PortableServer_POA_AdapterNonExistent_type { int dummy; }; #if !defined(TC_IMPL_TC_PortableServer_POA_AdapterNonExistent_0) #define TC_IMPL_TC_PortableServer_POA_AdapterNonExistent_0 'p' #define TC_IMPL_TC_PortableServer_POA_AdapterNonExistent_1 'o' #define TC_IMPL_TC_PortableServer_POA_AdapterNonExistent_2 'a' #define TC_IMPL_TC_PortableServer_POA_AdapterNonExistent_3 '_' #define TC_IMPL_TC_PortableServer_POA_AdapterNonExistent_4 'd' #define TC_IMPL_TC_PortableServer_POA_AdapterNonExistent_5 'e' #define TC_IMPL_TC_PortableServer_POA_AdapterNonExistent_6 'f' #define TC_IMPL_TC_PortableServer_POA_AdapterNonExistent_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_POA_AdapterNonExistent_struct; #define TC_PortableServer_POA_AdapterNonExistent ((CORBA_TypeCode)&TC_PortableServer_POA_AdapterNonExistent_struct) #endif #define PortableServer_POA_AdapterNonExistent__alloc() ((PortableServer_POA_AdapterNonExistent *)ORBit_small_alloc (TC_PortableServer_POA_AdapterNonExistent)) #define PortableServer_POA_AdapterNonExistent__freekids(m,d) ORBit_small_freekids (TC_PortableServer_POA_AdapterNonExistent,(m),(d)) #endif #undef ex_PortableServer_POA_InvalidPolicy #define ex_PortableServer_POA_InvalidPolicy "IDL:omg.org/PortableServer/POA/InvalidPolicy:1.0" #if !defined(_PortableServer_POA_InvalidPolicy_defined) #define _PortableServer_POA_InvalidPolicy_defined 1 typedef struct PortableServer_POA_InvalidPolicy_type PortableServer_POA_InvalidPolicy; struct PortableServer_POA_InvalidPolicy_type { CORBA_unsigned_short index; }; #if !defined(TC_IMPL_TC_PortableServer_POA_InvalidPolicy_0) #define TC_IMPL_TC_PortableServer_POA_InvalidPolicy_0 'p' #define TC_IMPL_TC_PortableServer_POA_InvalidPolicy_1 'o' #define TC_IMPL_TC_PortableServer_POA_InvalidPolicy_2 'a' #define TC_IMPL_TC_PortableServer_POA_InvalidPolicy_3 '_' #define TC_IMPL_TC_PortableServer_POA_InvalidPolicy_4 'd' #define TC_IMPL_TC_PortableServer_POA_InvalidPolicy_5 'e' #define TC_IMPL_TC_PortableServer_POA_InvalidPolicy_6 'f' #define TC_IMPL_TC_PortableServer_POA_InvalidPolicy_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_POA_InvalidPolicy_struct; #define TC_PortableServer_POA_InvalidPolicy ((CORBA_TypeCode)&TC_PortableServer_POA_InvalidPolicy_struct) #endif #define PortableServer_POA_InvalidPolicy__alloc() ((PortableServer_POA_InvalidPolicy *)ORBit_small_alloc (TC_PortableServer_POA_InvalidPolicy)) #define PortableServer_POA_InvalidPolicy__freekids(m,d) ORBit_small_freekids (TC_PortableServer_POA_InvalidPolicy,(m),(d)) #endif #undef ex_PortableServer_POA_NoServant #define ex_PortableServer_POA_NoServant "IDL:omg.org/PortableServer/POA/NoServant:1.0" #if !defined(_PortableServer_POA_NoServant_defined) #define _PortableServer_POA_NoServant_defined 1 typedef struct PortableServer_POA_NoServant_type PortableServer_POA_NoServant; struct PortableServer_POA_NoServant_type { int dummy; }; #if !defined(TC_IMPL_TC_PortableServer_POA_NoServant_0) #define TC_IMPL_TC_PortableServer_POA_NoServant_0 'p' #define TC_IMPL_TC_PortableServer_POA_NoServant_1 'o' #define TC_IMPL_TC_PortableServer_POA_NoServant_2 'a' #define TC_IMPL_TC_PortableServer_POA_NoServant_3 '_' #define TC_IMPL_TC_PortableServer_POA_NoServant_4 'd' #define TC_IMPL_TC_PortableServer_POA_NoServant_5 'e' #define TC_IMPL_TC_PortableServer_POA_NoServant_6 'f' #define TC_IMPL_TC_PortableServer_POA_NoServant_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_POA_NoServant_struct; #define TC_PortableServer_POA_NoServant ((CORBA_TypeCode)&TC_PortableServer_POA_NoServant_struct) #endif #define PortableServer_POA_NoServant__alloc() ((PortableServer_POA_NoServant *)ORBit_small_alloc (TC_PortableServer_POA_NoServant)) #define PortableServer_POA_NoServant__freekids(m,d) ORBit_small_freekids (TC_PortableServer_POA_NoServant,(m),(d)) #endif #undef ex_PortableServer_POA_ObjectAlreadyActive #define ex_PortableServer_POA_ObjectAlreadyActive "IDL:omg.org/PortableServer/POA/ObjectAlreadyActive:1.0" #if !defined(_PortableServer_POA_ObjectAlreadyActive_defined) #define _PortableServer_POA_ObjectAlreadyActive_defined 1 typedef struct PortableServer_POA_ObjectAlreadyActive_type PortableServer_POA_ObjectAlreadyActive; struct PortableServer_POA_ObjectAlreadyActive_type { int dummy; }; #if !defined(TC_IMPL_TC_PortableServer_POA_ObjectAlreadyActive_0) #define TC_IMPL_TC_PortableServer_POA_ObjectAlreadyActive_0 'p' #define TC_IMPL_TC_PortableServer_POA_ObjectAlreadyActive_1 'o' #define TC_IMPL_TC_PortableServer_POA_ObjectAlreadyActive_2 'a' #define TC_IMPL_TC_PortableServer_POA_ObjectAlreadyActive_3 '_' #define TC_IMPL_TC_PortableServer_POA_ObjectAlreadyActive_4 'd' #define TC_IMPL_TC_PortableServer_POA_ObjectAlreadyActive_5 'e' #define TC_IMPL_TC_PortableServer_POA_ObjectAlreadyActive_6 'f' #define TC_IMPL_TC_PortableServer_POA_ObjectAlreadyActive_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_POA_ObjectAlreadyActive_struct; #define TC_PortableServer_POA_ObjectAlreadyActive ((CORBA_TypeCode)&TC_PortableServer_POA_ObjectAlreadyActive_struct) #endif #define PortableServer_POA_ObjectAlreadyActive__alloc() ((PortableServer_POA_ObjectAlreadyActive *)ORBit_small_alloc (TC_PortableServer_POA_ObjectAlreadyActive)) #define PortableServer_POA_ObjectAlreadyActive__freekids(m,d) ORBit_small_freekids (TC_PortableServer_POA_ObjectAlreadyActive,(m),(d)) #endif #undef ex_PortableServer_POA_ObjectNotActive #define ex_PortableServer_POA_ObjectNotActive "IDL:omg.org/PortableServer/POA/ObjectNotActive:1.0" #if !defined(_PortableServer_POA_ObjectNotActive_defined) #define _PortableServer_POA_ObjectNotActive_defined 1 typedef struct PortableServer_POA_ObjectNotActive_type PortableServer_POA_ObjectNotActive; struct PortableServer_POA_ObjectNotActive_type { int dummy; }; #if !defined(TC_IMPL_TC_PortableServer_POA_ObjectNotActive_0) #define TC_IMPL_TC_PortableServer_POA_ObjectNotActive_0 'p' #define TC_IMPL_TC_PortableServer_POA_ObjectNotActive_1 'o' #define TC_IMPL_TC_PortableServer_POA_ObjectNotActive_2 'a' #define TC_IMPL_TC_PortableServer_POA_ObjectNotActive_3 '_' #define TC_IMPL_TC_PortableServer_POA_ObjectNotActive_4 'd' #define TC_IMPL_TC_PortableServer_POA_ObjectNotActive_5 'e' #define TC_IMPL_TC_PortableServer_POA_ObjectNotActive_6 'f' #define TC_IMPL_TC_PortableServer_POA_ObjectNotActive_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_POA_ObjectNotActive_struct; #define TC_PortableServer_POA_ObjectNotActive ((CORBA_TypeCode)&TC_PortableServer_POA_ObjectNotActive_struct) #endif #define PortableServer_POA_ObjectNotActive__alloc() ((PortableServer_POA_ObjectNotActive *)ORBit_small_alloc (TC_PortableServer_POA_ObjectNotActive)) #define PortableServer_POA_ObjectNotActive__freekids(m,d) ORBit_small_freekids (TC_PortableServer_POA_ObjectNotActive,(m),(d)) #endif #undef ex_PortableServer_POA_ServantAlreadyActive #define ex_PortableServer_POA_ServantAlreadyActive "IDL:omg.org/PortableServer/POA/ServantAlreadyActive:1.0" #if !defined(_PortableServer_POA_ServantAlreadyActive_defined) #define _PortableServer_POA_ServantAlreadyActive_defined 1 typedef struct PortableServer_POA_ServantAlreadyActive_type PortableServer_POA_ServantAlreadyActive; struct PortableServer_POA_ServantAlreadyActive_type { int dummy; }; #if !defined(TC_IMPL_TC_PortableServer_POA_ServantAlreadyActive_0) #define TC_IMPL_TC_PortableServer_POA_ServantAlreadyActive_0 'p' #define TC_IMPL_TC_PortableServer_POA_ServantAlreadyActive_1 'o' #define TC_IMPL_TC_PortableServer_POA_ServantAlreadyActive_2 'a' #define TC_IMPL_TC_PortableServer_POA_ServantAlreadyActive_3 '_' #define TC_IMPL_TC_PortableServer_POA_ServantAlreadyActive_4 'd' #define TC_IMPL_TC_PortableServer_POA_ServantAlreadyActive_5 'e' #define TC_IMPL_TC_PortableServer_POA_ServantAlreadyActive_6 'f' #define TC_IMPL_TC_PortableServer_POA_ServantAlreadyActive_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_POA_ServantAlreadyActive_struct; #define TC_PortableServer_POA_ServantAlreadyActive ((CORBA_TypeCode)&TC_PortableServer_POA_ServantAlreadyActive_struct) #endif #define PortableServer_POA_ServantAlreadyActive__alloc() ((PortableServer_POA_ServantAlreadyActive *)ORBit_small_alloc (TC_PortableServer_POA_ServantAlreadyActive)) #define PortableServer_POA_ServantAlreadyActive__freekids(m,d) ORBit_small_freekids (TC_PortableServer_POA_ServantAlreadyActive,(m),(d)) #endif #undef ex_PortableServer_POA_ServantNotActive #define ex_PortableServer_POA_ServantNotActive "IDL:omg.org/PortableServer/POA/ServantNotActive:1.0" #if !defined(_PortableServer_POA_ServantNotActive_defined) #define _PortableServer_POA_ServantNotActive_defined 1 typedef struct PortableServer_POA_ServantNotActive_type PortableServer_POA_ServantNotActive; struct PortableServer_POA_ServantNotActive_type { int dummy; }; #if !defined(TC_IMPL_TC_PortableServer_POA_ServantNotActive_0) #define TC_IMPL_TC_PortableServer_POA_ServantNotActive_0 'p' #define TC_IMPL_TC_PortableServer_POA_ServantNotActive_1 'o' #define TC_IMPL_TC_PortableServer_POA_ServantNotActive_2 'a' #define TC_IMPL_TC_PortableServer_POA_ServantNotActive_3 '_' #define TC_IMPL_TC_PortableServer_POA_ServantNotActive_4 'd' #define TC_IMPL_TC_PortableServer_POA_ServantNotActive_5 'e' #define TC_IMPL_TC_PortableServer_POA_ServantNotActive_6 'f' #define TC_IMPL_TC_PortableServer_POA_ServantNotActive_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_POA_ServantNotActive_struct; #define TC_PortableServer_POA_ServantNotActive ((CORBA_TypeCode)&TC_PortableServer_POA_ServantNotActive_struct) #endif #define PortableServer_POA_ServantNotActive__alloc() ((PortableServer_POA_ServantNotActive *)ORBit_small_alloc (TC_PortableServer_POA_ServantNotActive)) #define PortableServer_POA_ServantNotActive__freekids(m,d) ORBit_small_freekids (TC_PortableServer_POA_ServantNotActive,(m),(d)) #endif #undef ex_PortableServer_POA_WrongAdapter #define ex_PortableServer_POA_WrongAdapter "IDL:omg.org/PortableServer/POA/WrongAdapter:1.0" #if !defined(_PortableServer_POA_WrongAdapter_defined) #define _PortableServer_POA_WrongAdapter_defined 1 typedef struct PortableServer_POA_WrongAdapter_type PortableServer_POA_WrongAdapter; struct PortableServer_POA_WrongAdapter_type { int dummy; }; #if !defined(TC_IMPL_TC_PortableServer_POA_WrongAdapter_0) #define TC_IMPL_TC_PortableServer_POA_WrongAdapter_0 'p' #define TC_IMPL_TC_PortableServer_POA_WrongAdapter_1 'o' #define TC_IMPL_TC_PortableServer_POA_WrongAdapter_2 'a' #define TC_IMPL_TC_PortableServer_POA_WrongAdapter_3 '_' #define TC_IMPL_TC_PortableServer_POA_WrongAdapter_4 'd' #define TC_IMPL_TC_PortableServer_POA_WrongAdapter_5 'e' #define TC_IMPL_TC_PortableServer_POA_WrongAdapter_6 'f' #define TC_IMPL_TC_PortableServer_POA_WrongAdapter_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_POA_WrongAdapter_struct; #define TC_PortableServer_POA_WrongAdapter ((CORBA_TypeCode)&TC_PortableServer_POA_WrongAdapter_struct) #endif #define PortableServer_POA_WrongAdapter__alloc() ((PortableServer_POA_WrongAdapter *)ORBit_small_alloc (TC_PortableServer_POA_WrongAdapter)) #define PortableServer_POA_WrongAdapter__freekids(m,d) ORBit_small_freekids (TC_PortableServer_POA_WrongAdapter,(m),(d)) #endif #undef ex_PortableServer_POA_WrongPolicy #define ex_PortableServer_POA_WrongPolicy "IDL:omg.org/PortableServer/POA/WrongPolicy:1.0" #if !defined(_PortableServer_POA_WrongPolicy_defined) #define _PortableServer_POA_WrongPolicy_defined 1 typedef struct PortableServer_POA_WrongPolicy_type PortableServer_POA_WrongPolicy; struct PortableServer_POA_WrongPolicy_type { int dummy; }; #if !defined(TC_IMPL_TC_PortableServer_POA_WrongPolicy_0) #define TC_IMPL_TC_PortableServer_POA_WrongPolicy_0 'p' #define TC_IMPL_TC_PortableServer_POA_WrongPolicy_1 'o' #define TC_IMPL_TC_PortableServer_POA_WrongPolicy_2 'a' #define TC_IMPL_TC_PortableServer_POA_WrongPolicy_3 '_' #define TC_IMPL_TC_PortableServer_POA_WrongPolicy_4 'd' #define TC_IMPL_TC_PortableServer_POA_WrongPolicy_5 'e' #define TC_IMPL_TC_PortableServer_POA_WrongPolicy_6 'f' #define TC_IMPL_TC_PortableServer_POA_WrongPolicy_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_POA_WrongPolicy_struct; #define TC_PortableServer_POA_WrongPolicy ((CORBA_TypeCode)&TC_PortableServer_POA_WrongPolicy_struct) #endif #define PortableServer_POA_WrongPolicy__alloc() ((PortableServer_POA_WrongPolicy *)ORBit_small_alloc (TC_PortableServer_POA_WrongPolicy)) #define PortableServer_POA_WrongPolicy__freekids(m,d) ORBit_small_freekids (TC_PortableServer_POA_WrongPolicy,(m),(d)) #endif #if !defined(ORBIT_DECL_PortableServer_Current) && !defined(_PortableServer_Current_defined) #define ORBIT_DECL_PortableServer_Current 1 #define _PortableServer_Current_defined 1 typedef struct PortableServer_Current_type *PortableServer_Current; #ifndef TC_PortableServer_Current # define TC_PortableServer_Current TC_CORBA_Object #endif #endif #undef ex_PortableServer_Current_NoContext #define ex_PortableServer_Current_NoContext "IDL:omg.org/PortableServer/Current/NoContext:1.0" #if !defined(_PortableServer_Current_NoContext_defined) #define _PortableServer_Current_NoContext_defined 1 typedef struct PortableServer_Current_NoContext_type PortableServer_Current_NoContext; struct PortableServer_Current_NoContext_type { int dummy; }; #if !defined(TC_IMPL_TC_PortableServer_Current_NoContext_0) #define TC_IMPL_TC_PortableServer_Current_NoContext_0 'p' #define TC_IMPL_TC_PortableServer_Current_NoContext_1 'o' #define TC_IMPL_TC_PortableServer_Current_NoContext_2 'a' #define TC_IMPL_TC_PortableServer_Current_NoContext_3 '_' #define TC_IMPL_TC_PortableServer_Current_NoContext_4 'd' #define TC_IMPL_TC_PortableServer_Current_NoContext_5 'e' #define TC_IMPL_TC_PortableServer_Current_NoContext_6 'f' #define TC_IMPL_TC_PortableServer_Current_NoContext_7 's' #ifdef ORBIT_IDL_C_IMODULE_poa_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_PortableServer_Current_NoContext_struct; #define TC_PortableServer_Current_NoContext ((CORBA_TypeCode)&TC_PortableServer_Current_NoContext_struct) #endif #define PortableServer_Current_NoContext__alloc() ((PortableServer_Current_NoContext *)ORBit_small_alloc (TC_PortableServer_Current_NoContext)) #define PortableServer_Current_NoContext__freekids(m,d) ORBit_small_freekids (TC_PortableServer_Current_NoContext,(m),(d)) #endif /** stub prototypes **/ #define PortableServer_ThreadPolicy__get_policy_type CORBA_Policy__get_policy_type #define PortableServer_ThreadPolicy_copy CORBA_Policy_copy #define PortableServer_ThreadPolicy_destroy CORBA_Policy_destroy PortableServer_ThreadPolicyValue PortableServer_ThreadPolicy__get_value(PortableServer_ThreadPolicy _obj, CORBA_Environment *ev); #define PortableServer_LifespanPolicy__get_policy_type CORBA_Policy__get_policy_type #define PortableServer_LifespanPolicy_copy CORBA_Policy_copy #define PortableServer_LifespanPolicy_destroy CORBA_Policy_destroy PortableServer_LifespanPolicyValue PortableServer_LifespanPolicy__get_value(PortableServer_LifespanPolicy _obj, CORBA_Environment *ev); #define PortableServer_IdUniquenessPolicy__get_policy_type CORBA_Policy__get_policy_type #define PortableServer_IdUniquenessPolicy_copy CORBA_Policy_copy #define PortableServer_IdUniquenessPolicy_destroy CORBA_Policy_destroy PortableServer_IdUniquenessPolicyValue PortableServer_IdUniquenessPolicy__get_value(PortableServer_IdUniquenessPolicy _obj, CORBA_Environment *ev); #define PortableServer_IdAssignmentPolicy__get_policy_type CORBA_Policy__get_policy_type #define PortableServer_IdAssignmentPolicy_copy CORBA_Policy_copy #define PortableServer_IdAssignmentPolicy_destroy CORBA_Policy_destroy PortableServer_IdAssignmentPolicyValue PortableServer_IdAssignmentPolicy__get_value(PortableServer_IdAssignmentPolicy _obj, CORBA_Environment *ev); #define PortableServer_ImplicitActivationPolicy__get_policy_type CORBA_Policy__get_policy_type #define PortableServer_ImplicitActivationPolicy_copy CORBA_Policy_copy #define PortableServer_ImplicitActivationPolicy_destroy CORBA_Policy_destroy PortableServer_ImplicitActivationPolicyValue PortableServer_ImplicitActivationPolicy__get_value(PortableServer_ImplicitActivationPolicy _obj, CORBA_Environment *ev); #define PortableServer_ServantRetentionPolicy__get_policy_type CORBA_Policy__get_policy_type #define PortableServer_ServantRetentionPolicy_copy CORBA_Policy_copy #define PortableServer_ServantRetentionPolicy_destroy CORBA_Policy_destroy PortableServer_ServantRetentionPolicyValue PortableServer_ServantRetentionPolicy__get_value(PortableServer_ServantRetentionPolicy _obj, CORBA_Environment *ev); #define PortableServer_RequestProcessingPolicy__get_policy_type CORBA_Policy__get_policy_type #define PortableServer_RequestProcessingPolicy_copy CORBA_Policy_copy #define PortableServer_RequestProcessingPolicy_destroy CORBA_Policy_destroy PortableServer_RequestProcessingPolicyValue PortableServer_RequestProcessingPolicy__get_value(PortableServer_RequestProcessingPolicy _obj, CORBA_Environment *ev); void PortableServer_POAManager_activate(PortableServer_POAManager _obj, CORBA_Environment *ev); void PortableServer_POAManager_hold_requests(PortableServer_POAManager _obj, const CORBA_boolean wait_for_completion, CORBA_Environment *ev); void PortableServer_POAManager_discard_requests(PortableServer_POAManager _obj, const CORBA_boolean wait_for_completion, CORBA_Environment *ev); void PortableServer_POAManager_deactivate(PortableServer_POAManager _obj, const CORBA_boolean etherealize_objects, const CORBA_boolean wait_for_completion, CORBA_Environment *ev); PortableServer_POAManager_State PortableServer_POAManager_get_state(PortableServer_POAManager _obj, CORBA_Environment *ev); CORBA_string PortableServer_POAManager_get_id(PortableServer_POAManager _obj, CORBA_Environment *ev); PortableServer_POAManager PortableServer_POAManagerFactory_create_POAManager(PortableServer_POAManagerFactory _obj, const CORBA_char * id, const CORBA_PolicyList* policies, CORBA_Environment *ev); PortableServer_POAManagerFactory_POAManagerSeq* PortableServer_POAManagerFactory_list(PortableServer_POAManagerFactory _obj, CORBA_Environment *ev); PortableServer_POAManager PortableServer_POAManagerFactory_find(PortableServer_POAManagerFactory _obj, const CORBA_char * id, CORBA_Environment *ev); CORBA_boolean PortableServer_AdapterActivator_unknown_adapter(PortableServer_AdapterActivator _obj, const PortableServer_POA parent, const CORBA_char * name, CORBA_Environment *ev); PortableServer_Servant PortableServer_ServantActivator_incarnate(PortableServer_ServantActivator _obj, const PortableServer_ObjectId* oid, const PortableServer_POA adapter, CORBA_Environment *ev); void PortableServer_ServantActivator_etherealize(PortableServer_ServantActivator _obj, const PortableServer_ObjectId* oid, const PortableServer_POA adapter, const PortableServer_Servant serv, const CORBA_boolean cleanup_in_progress, const CORBA_boolean remaining_activations, CORBA_Environment *ev); PortableServer_Servant PortableServer_ServantLocator_preinvoke(PortableServer_ServantLocator _obj, const PortableServer_ObjectId* oid, const PortableServer_POA adapter, const CORBA_char * operation, PortableServer_ServantLocator_Cookie the_cookie, CORBA_Environment *ev); void PortableServer_ServantLocator_postinvoke(PortableServer_ServantLocator _obj, const PortableServer_ObjectId* oid, const PortableServer_POA adapter, const CORBA_char * operation, const PortableServer_ServantLocator_Cookie the_cookie, const PortableServer_Servant the_servant, CORBA_Environment *ev); PortableServer_POA PortableServer_POA_create_POA(PortableServer_POA _obj, const CORBA_char * adapter_name, const PortableServer_POAManager a_POAManager, const CORBA_PolicyList* policies, CORBA_Environment *ev); PortableServer_POA PortableServer_POA_find_POA(PortableServer_POA _obj, const CORBA_char * adapter_name, const CORBA_boolean activate_it, CORBA_Environment *ev); void PortableServer_POA_destroy(PortableServer_POA _obj, const CORBA_boolean etherealize_objects, const CORBA_boolean wait_for_completion, CORBA_Environment *ev); PortableServer_ThreadPolicy PortableServer_POA_create_thread_policy(PortableServer_POA _obj, const PortableServer_ThreadPolicyValue value, CORBA_Environment *ev); PortableServer_LifespanPolicy PortableServer_POA_create_lifespan_policy(PortableServer_POA _obj, const PortableServer_LifespanPolicyValue value, CORBA_Environment *ev); PortableServer_IdUniquenessPolicy PortableServer_POA_create_id_uniqueness_policy(PortableServer_POA _obj, const PortableServer_IdUniquenessPolicyValue value, CORBA_Environment *ev); PortableServer_IdAssignmentPolicy PortableServer_POA_create_id_assignment_policy(PortableServer_POA _obj, const PortableServer_IdAssignmentPolicyValue value, CORBA_Environment *ev); PortableServer_ImplicitActivationPolicy PortableServer_POA_create_implicit_activation_policy(PortableServer_POA _obj, const PortableServer_ImplicitActivationPolicyValue value, CORBA_Environment *ev); PortableServer_ServantRetentionPolicy PortableServer_POA_create_servant_retention_policy(PortableServer_POA _obj, const PortableServer_ServantRetentionPolicyValue value, CORBA_Environment *ev); PortableServer_RequestProcessingPolicy PortableServer_POA_create_request_processing_policy(PortableServer_POA _obj, const PortableServer_RequestProcessingPolicyValue value, CORBA_Environment *ev); CORBA_string PortableServer_POA__get_the_name(PortableServer_POA _obj, CORBA_Environment *ev); PortableServer_POA PortableServer_POA__get_the_parent(PortableServer_POA _obj, CORBA_Environment *ev); PortableServer_POAList* PortableServer_POA__get_the_children(PortableServer_POA _obj, CORBA_Environment *ev); PortableServer_POAManager PortableServer_POA__get_the_POAManager(PortableServer_POA _obj, CORBA_Environment *ev); PortableServer_AdapterActivator PortableServer_POA__get_the_activator(PortableServer_POA _obj, CORBA_Environment *ev); void PortableServer_POA__set_the_activator(PortableServer_POA _obj, const PortableServer_AdapterActivator value, CORBA_Environment *ev); PortableServer_ServantManager PortableServer_POA_get_servant_manager(PortableServer_POA _obj, CORBA_Environment *ev); void PortableServer_POA_set_servant_manager(PortableServer_POA _obj, const PortableServer_ServantManager imgr, CORBA_Environment *ev); PortableServer_Servant PortableServer_POA_get_servant(PortableServer_POA _obj, CORBA_Environment *ev); void PortableServer_POA_set_servant(PortableServer_POA _obj, const PortableServer_Servant p_servant, CORBA_Environment *ev); PortableServer_ObjectId* PortableServer_POA_activate_object(PortableServer_POA _obj, const PortableServer_Servant p_servant, CORBA_Environment *ev); void PortableServer_POA_activate_object_with_id(PortableServer_POA _obj, const PortableServer_ObjectId* id, const PortableServer_Servant p_servant, CORBA_Environment *ev); void PortableServer_POA_deactivate_object(PortableServer_POA _obj, const PortableServer_ObjectId* oid, CORBA_Environment *ev); CORBA_Object PortableServer_POA_create_reference(PortableServer_POA _obj, const CORBA_char * intf, CORBA_Environment *ev); CORBA_Object PortableServer_POA_create_reference_with_id(PortableServer_POA _obj, const PortableServer_ObjectId* oid, const CORBA_char * intf, CORBA_Environment *ev); PortableServer_ObjectId* PortableServer_POA_servant_to_id(PortableServer_POA _obj, const PortableServer_Servant p_servant, CORBA_Environment *ev); CORBA_Object PortableServer_POA_servant_to_reference(PortableServer_POA _obj, const PortableServer_Servant p_servant, CORBA_Environment *ev); PortableServer_Servant PortableServer_POA_reference_to_servant(PortableServer_POA _obj, const CORBA_Object reference, CORBA_Environment *ev); PortableServer_ObjectId* PortableServer_POA_reference_to_id(PortableServer_POA _obj, const CORBA_Object reference, CORBA_Environment *ev); PortableServer_Servant PortableServer_POA_id_to_servant(PortableServer_POA _obj, const PortableServer_ObjectId* oid, CORBA_Environment *ev); CORBA_Object PortableServer_POA_id_to_reference(PortableServer_POA _obj, const PortableServer_ObjectId* oid, CORBA_Environment *ev); CORBA_OctetSeq* PortableServer_POA__get_id(PortableServer_POA _obj, CORBA_Environment *ev); PortableServer_POAManagerFactory PortableServer_POA__get_the_POAManagerFactory(PortableServer_POA _obj, CORBA_Environment *ev); PortableServer_POA PortableServer_Current_get_POA(PortableServer_Current _obj, CORBA_Environment *ev); PortableServer_ObjectId* PortableServer_Current_get_object_id(PortableServer_Current _obj, CORBA_Environment *ev); CORBA_Object PortableServer_Current_get_reference(PortableServer_Current _obj, CORBA_Environment *ev); PortableServer_Servant PortableServer_Current_get_servant(PortableServer_Current _obj, CORBA_Environment *ev); #ifndef __ORBIT_IMETHODS_INDEX #define __ORBIT_IMETHODS_INDEX #define ORBIT_IMETHODS_INDEX(m) (m ## __imethods_index) #endif /* __ORBIT_IMETHODS_INDEX */ #ifdef __cplusplus } #endif /* __cplusplus */ #ifndef EXCLUDE_ORBIT_H #include #endif /* EXCLUDE_ORBIT_H */ #endif #undef ORBIT_IDL_SERIAL ORBit2-2.14.19/include/orbit/poa/poa-types.h0000644000175000001440000000512211334247617015271 00000000000000#ifndef POA_TYPES_H #define POA_TYPES_H 1 #include G_BEGIN_DECLS #if defined(ORBIT2_INTERNAL_API) || defined (ORBIT2_STUBS_API) typedef struct { void (*dummy_padding) (void); ORBit_impl_finder impl_finder; const char *class_name; CORBA_unsigned_long *class_id; ORBit_VepvIdx *vepvmap; ORBit_IInterface *idata; } PortableServer_ClassInfo; #endif /* defined(ORBIT2_INTERNAL_API) || defined (ORBIT2_STUBS_API) */ #ifdef ORBIT2_INTERNAL_API struct ORBit_POAObject_type { struct ORBit_OAObject_type base; PortableServer_Servant servant; PortableServer_POA poa; PortableServer_ObjectId *object_id; ORBit_VepvIdx *vepvmap_cache; guint16 life_flags; guint16 use_cnt; ORBit_POAObject next; }; #define ORBit_LifeF_NeedPostInvoke (1<<0) #define ORBit_LifeF_DoEtherealize (1<<1) #define ORBit_LifeF_IsCleanup (1<<2) #define ORBit_LifeF_DeactivateDo (1<<4) #define ORBit_LifeF_Deactivating (1<<5) #define ORBit_LifeF_Deactivated (1<<6) #define ORBit_LifeF_DestroyDo (1<<8) #define ORBit_LifeF_Destroying (1<<9) #define ORBit_LifeF_Destroyed (1<<10) #define ORBIT_SERVANT_TO_CLASSINFO(servant) ( \ (PortableServer_ClassInfo*) \ ( ((PortableServer_ServantBase *)(servant))->vepv[0]->_private ) \ ) #endif /* ORBIT2_INTERNAL_API */ #if defined(ORBIT2_INTERNAL_API) || defined (ORBIT2_STUBS_API) void ORBit_c_stub_invoke (CORBA_Object obj, ORBit_IMethods *methods, glong method_index, gpointer ret, gpointer args, CORBA_Context ctx, CORBA_Environment *ev, glong class_id, glong method_offset, ORBitSmallSkeleton skel_impl); #define ORBIT_VEPV_OFFSET(vepv_type,epv_member) \ ((CORBA_unsigned_long) (G_STRUCT_OFFSET (vepv_type, epv_member)) / sizeof (GFunc)) /* * These macros are deprecated, they remain on the off-chance that * someone compiles a really, really old stub. Their functionality * is always short-circuited because ORBit_small_flags & * ORBIT_SMALL_FAST_LOCALS is now never true. */ #define ORBIT_STUB_IsBypass(obj, classid) FALSE #define ORBIT_STUB_GetEpv(obj, clsid) NULL #define ORBIT_STUB_PreCall(x) #define ORBIT_STUB_PostCall(x) #endif /* defined(ORBIT2_INTERNAL_API) || defined (ORBIT2_STUBS_API) */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/poa/portableserver-current-type.h0000644000175000001440000000051011334247617021042 00000000000000#ifndef PORTABLESERVER_CURRENT_TYPE_H #define PORTABLESERVER_CURRENT_TYPE_H 1 #include G_BEGIN_DECLS #ifdef ORBIT2_INTERNAL_API struct PortableServer_Current_type { struct ORBit_RootObject_struct parent; CORBA_ORB orb; }; #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/poa/portableserver-poa-type.h0000644000175000001440000000313011334247617020140 00000000000000#ifndef PORTABLESERVER_POA_TYPE_H #define PORTABLESERVER_POA_TYPE_H 1 #include G_BEGIN_DECLS #ifdef ORBIT2_INTERNAL_API struct PortableServer_POAManager_type { struct ORBit_RootObject_struct parent; GSList *poa_collection; PortableServer_POAManager_State state; CORBA_ORB orb; }; struct PortableServer_POA_type { struct ORBit_ObjectAdaptor_type base; guint16 use_cnt; guint16 life_flags; int poa_id; int next_sysid; char *name; CORBA_ORB orb; PortableServer_POA parent_poa; PortableServer_POAManager poa_manager; PortableServer_AdapterActivator the_activator; PortableServer_ServantManager servant_manager; PortableServer_Servant default_servant; GHashTable *oid_to_obj_map; CORBA_unsigned_long next_id; GSList *held_requests; GHashTable *child_poas; PortableServer_ThreadPolicyValue p_thread; PortableServer_LifespanPolicyValue p_lifespan; PortableServer_IdUniquenessPolicyValue p_id_uniqueness; PortableServer_IdAssignmentPolicyValue p_id_assignment; PortableServer_ImplicitActivationPolicyValue p_implicit_activation; PortableServer_ServantRetentionPolicyValue p_servant_retention; PortableServer_RequestProcessingPolicyValue p_request_processing; }; #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/poa/orbit-adaptor.h0000644000175000001440000000755611334247617016134 00000000000000#ifndef __ORBIT_ADAPTOR_H__ #define __ORBIT_ADAPTOR_H__ #include #include G_BEGIN_DECLS typedef enum { ORBIT_THREAD_HINT_NONE = 0, ORBIT_THREAD_HINT_PER_OBJECT, ORBIT_THREAD_HINT_PER_REQUEST, ORBIT_THREAD_HINT_PER_POA, ORBIT_THREAD_HINT_PER_CONNECTION, ORBIT_THREAD_HINT_ONEWAY_AT_IDLE, ORBIT_THREAD_HINT_ALL_AT_IDLE, ORBIT_THREAD_HINT_ON_CONTEXT } ORBitThreadHint; typedef struct ORBit_ObjectAdaptor_type *ORBit_ObjectAdaptor; void ORBit_ObjectAdaptor_set_thread_hint (ORBit_ObjectAdaptor adaptor, ORBitThreadHint thread_hint, ...); void ORBit_ObjectAdaptor_set_thread_hintv (ORBit_ObjectAdaptor adaptor, ORBitThreadHint thread_hint, va_list args); ORBitThreadHint ORBit_ObjectAdaptor_get_thread_hint (ORBit_ObjectAdaptor adaptor); void ORBit_ObjectAdaptor_object_bind_to_current_thread (CORBA_Object obj); #ifdef ORBIT2_INTERNAL_API void ORBit_handle_locate_request (CORBA_ORB orb, GIOPRecvBuffer *recv_buffer); void ORBit_handle_request (CORBA_ORB orb, GIOPRecvBuffer *recv_buffer); void ORBit_small_handle_request (ORBit_OAObject adaptor_obj, CORBA_Identifier opname, gpointer ret, gpointer *args, CORBA_Context ctx, GIOPRecvBuffer *recv_buffer, CORBA_Environment *ev); gboolean ORBit_OAObject_is_active (ORBit_OAObject adaptor_obj); ORBit_ObjectKey *ORBit_OAObject_object_to_objkey (ORBit_OAObject adaptor_obj); void ORBit_OAObject_invoke (ORBit_OAObject adaptor_obj, gpointer ret, gpointer *args, CORBA_Context ctx, gpointer data, CORBA_Environment *ev); /* * ORBit_OAObject */ typedef gboolean (*ORBitStateCheckFunc) (ORBit_OAObject adaptor_obj); typedef ORBit_ObjectKey *(*ORBitKeyGenFunc) (ORBit_OAObject adaptor_obj); typedef void (*ORBitInvokeFunc) (ORBit_OAObject adaptor_obj, gpointer ret, gpointer *args, CORBA_Context ctx, gpointer data, CORBA_Environment *ev); typedef void (*ORBitReqFunc) (ORBit_OAObject adaptor_obj, CORBA_Identifier opname, gpointer ret, gpointer *args, CORBA_Context ctx, GIOPRecvBuffer *recv_buffer, CORBA_Environment *ev); typedef enum { ORBIT_ADAPTOR_POA = 1 << 0 } ORBit_Adaptor_type; struct ORBit_OAObject_Interface_type { ORBit_Adaptor_type adaptor_type; ORBitStateCheckFunc is_active; ORBitKeyGenFunc object_to_objkey; ORBitInvokeFunc invoke; ORBitReqFunc handle_request; }; typedef struct ORBit_OAObject_Interface_type *ORBit_OAObject_Interface; struct ORBit_OAObject_type { struct ORBit_RootObject_struct parent; CORBA_Object objref; ORBit_OAObject_Interface interface; }; /* * ORBit_ObjectAdaptor */ typedef CORBA_sequence_CORBA_octet ORBit_AdaptorKey; typedef void (*ORBitReqHandlerFunc) (ORBit_ObjectAdaptor adaptor, GIOPRecvBuffer *recv_buffer, ORBit_ObjectKey *objkey); struct ORBit_ObjectAdaptor_type { struct ORBit_RootObject_struct parent; GMutex *lock; ORBitReqHandlerFunc handle_request; ORBit_AdaptorKey adaptor_key; ORBitThreadHint thread_hint; GMainContext *context; }; int ORBit_adaptor_setup (ORBit_ObjectAdaptor adaptor, CORBA_ORB orb); #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif /* __ORBIT_ADAPTOR_H__ */ ORBit2-2.14.19/include/orbit/poa/poa-basics.h0000644000175000001440000000523111334247617015372 00000000000000#ifndef _POA_BASICS_H_ #define _POA_BASICS_H_ 1 #include G_BEGIN_DECLS #if !defined(_PortableServer_Servant_defined) #define _PortableServer_Servant_defined 1 typedef gpointer PortableServer_Servant; #else #error "Include mixup: poa-defs.h included before poa-basics.h" #endif #if !defined(ORBIT_DECL_PortableServer_POA) && !defined(_PortableServer_POA_defined) #define ORBIT_DECL_PortableServer_POA 1 #define _PortableServer_POA_defined 1 typedef struct PortableServer_POA_type *PortableServer_POA; #endif typedef struct { void *_private; void (*finalize) (PortableServer_Servant, CORBA_Environment *); PortableServer_POA (*default_POA) (PortableServer_Servant, CORBA_Environment *); void (*add_ref) (PortableServer_Servant, CORBA_Environment *); void (*remove_ref) (PortableServer_Servant, CORBA_Environment *); CORBA_InterfaceDef (*get_interface) (PortableServer_Servant, CORBA_Environment *); CORBA_boolean (*is_a) (PortableServer_Servant, const char *, CORBA_Environment *); CORBA_boolean (*non_existent) (PortableServer_Servant, CORBA_Environment *); } PortableServer_ServantBase__epv; typedef PortableServer_ServantBase__epv *PortableServer_ServantBase__vepv; typedef struct { void *_private; PortableServer_ServantBase__vepv *vepv; } PortableServer_ServantBase; typedef PortableServer_ServantBase__epv PortableServer_RefCountServantBase__epv; typedef PortableServer_ServantBase__epv *PortableServer_RefCountServantBase__vepv; typedef PortableServer_ServantBase PortableServer_RefCountServantBase; #if defined(ORBIT2_INTERNAL_API) || defined (ORBIT2_STUBS_API) typedef struct ORBit_POAObject_type *ORBit_POAObject; typedef struct ORBit_OAObject_type *ORBit_OAObject; typedef gshort ORBit_VepvIdx; typedef void (*ORBitSmallSkeleton) (PortableServer_ServantBase *servant, gpointer ret, gpointer *args, gpointer ctx, CORBA_Environment *ev, gpointer implementation); typedef ORBitSmallSkeleton (*ORBit_impl_finder) (PortableServer_ServantBase *servant, const char *method, gpointer *m_data, gpointer *implementation); /* stub compatibility */ typedef ORBit_impl_finder ORBit_small_impl_finder; #endif /* defined(ORBIT2_INTERNAL_API) || defined (ORBIT2_STUBS_API) */ G_END_DECLS #endif /* _POA_BASICS_H_ 1 */ ORBit2-2.14.19/include/orbit/orb-core/0000755000175000001440000000000011450334030014171 500000000000000ORBit2-2.14.19/include/orbit/orb-core/Makefile.am0000644000175000001440000000255111334247617016167 00000000000000orbcoreincludedir =$(includedir)/orbit-2.0/orbit/orb-core orbcoreinclude_HEADERS = \ corba-environment-type.h \ corba-nvlist.h \ corba-object-type.h \ corba-orb-type.h \ corba-orb.h \ corba-pobj.h \ corba-typecode-type.h \ orb-core.h \ orb-types.h \ orbit-object.h \ orbit-small.h \ corba-defs.h \ corba-context.h \ corba-context-type.h \ iop-defs.h \ corba-object.h \ corba-policy-type.h \ corba-string.h \ corba-environment.h \ corba-any.h \ orb-core-types.h \ corba-typecode.h \ allocators.h \ corba-any-type.h \ orbit-interface.h BUILT_SOURCES = corba-defs.h iop-defs.h orbit-interface.h IDL_FLAGS_NO_DEFS = -I$(top_srcdir)/src/idl/CORBA_PIDL \ -I$(top_srcdir)/src/idl/CORBA \ -I$(top_srcdir)/src/idl/interop \ -I$(top_srcdir)/src/orb/orb-core \ --noskels --nodefskels --nostubs --noidata \ --nocommon \ --showcpperrors IDL_FLAGS = $(IDL_FLAGS_NO_DEFS) \ --define=Object=OObject \ --define=TypeCode=TTypeCode IDL_FILES=corba-defs.idl iop-defs.idl orbit-interface.idl IDL_DIR=$(top_srcdir)/src/orb/orb-core/ include $(top_srcdir)/Makefile.shared orbit-interface.h: $(top_srcdir)/src/orb/orb-core/orbit-interface.idl $(IDL_COMPILER) -(rm -f orbit-interface.h || true ) > /dev/null $(IDL_COMPILER) $(IDL_FLAGS_NO_DEFS) --deps .deps/orbit-interface.idl.P $< CLEANFILES=$(BUILT_SOURCES) ORBit2-2.14.19/include/orbit/orb-core/Makefile.in0000644000175000001440000004225311450333733016175 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ DIST_COMMON = $(orbcoreinclude_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(top_srcdir)/Makefile.shared subdir = include/orbit/orb-core ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(orbcoreincludedir)" HEADERS = $(orbcoreinclude_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ orbcoreincludedir = $(includedir)/orbit-2.0/orbit/orb-core orbcoreinclude_HEADERS = \ corba-environment-type.h \ corba-nvlist.h \ corba-object-type.h \ corba-orb-type.h \ corba-orb.h \ corba-pobj.h \ corba-typecode-type.h \ orb-core.h \ orb-types.h \ orbit-object.h \ orbit-small.h \ corba-defs.h \ corba-context.h \ corba-context-type.h \ iop-defs.h \ corba-object.h \ corba-policy-type.h \ corba-string.h \ corba-environment.h \ corba-any.h \ orb-core-types.h \ corba-typecode.h \ allocators.h \ corba-any-type.h \ orbit-interface.h BUILT_SOURCES = corba-defs.h iop-defs.h orbit-interface.h IDL_FLAGS_NO_DEFS = -I$(top_srcdir)/src/idl/CORBA_PIDL \ -I$(top_srcdir)/src/idl/CORBA \ -I$(top_srcdir)/src/idl/interop \ -I$(top_srcdir)/src/orb/orb-core \ --noskels --nodefskels --nostubs --noidata \ --nocommon \ --showcpperrors IDL_FLAGS = $(IDL_FLAGS_NO_DEFS) \ --define=Object=OObject \ --define=TypeCode=TTypeCode IDL_FILES = corba-defs.idl iop-defs.idl orbit-interface.idl IDL_DIR = $(top_srcdir)/src/orb/orb-core/ @MAINTAINER_MODE_TRUE@IDL_DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) @MAINTAINER_MODE_TRUE@IDL_DEP_FILES = $(IDL_FILES:%.idl=.deps/%.idl.P) CLEANFILES = $(BUILT_SOURCES) all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.shared $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/orbit/orb-core/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu include/orbit/orb-core/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-orbcoreincludeHEADERS: $(orbcoreinclude_HEADERS) @$(NORMAL_INSTALL) test -z "$(orbcoreincludedir)" || $(MKDIR_P) "$(DESTDIR)$(orbcoreincludedir)" @list='$(orbcoreinclude_HEADERS)'; test -n "$(orbcoreincludedir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(orbcoreincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(orbcoreincludedir)" || exit $$?; \ done uninstall-orbcoreincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(orbcoreinclude_HEADERS)'; test -n "$(orbcoreincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(orbcoreincludedir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(orbcoreincludedir)" && rm -f $$files ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(HEADERS) installdirs: for dir in "$(DESTDIR)$(orbcoreincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-local \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-orbcoreincludeHEADERS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-orbcoreincludeHEADERS .MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool ctags distclean distclean-generic \ distclean-libtool distclean-local distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man \ install-orbcoreincludeHEADERS install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \ uninstall-am uninstall-orbcoreincludeHEADERS %-stubs.c %-skels.c %-common.c %-imodule.c %-skelimpl.c: %.h true %.h: $(IDL_DIR)%.idl $(IDL_COMPILER) -(rm -f $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c || true) > /dev/null $(IDL_COMPILER) $(IDL_FLAGS) --deps $(*D)/.deps/$(*F).idl.P $< for I in $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c; do \ if test -f $$I; then \ sed -e 's,OObject,Object,g' -e 's,TTypeCode,TypeCode,g' $$I > $$I.out; \ mv $$I.out $$I ; \ fi; \ done @MAINTAINER_MODE_TRUE@-include $(IDL_DEP_FILES) distclean-local: -rm -rf .deps orbit-interface.h: $(top_srcdir)/src/orb/orb-core/orbit-interface.idl $(IDL_COMPILER) -(rm -f orbit-interface.h || true ) > /dev/null $(IDL_COMPILER) $(IDL_FLAGS_NO_DEFS) --deps .deps/orbit-interface.idl.P $< # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/include/orbit/orb-core/orb-core.h0000644000175000001440000000103611334247617016011 00000000000000#ifndef ORB_CORE_H #define ORB_CORE_H 1 #include #include #include #include #include #include #include #include #include #include #include #include #endif ORBit2-2.14.19/include/orbit/orb-core/corba-pobj.h0000644000175000001440000000021011334247617016310 00000000000000#ifndef CORBA_POBJ_H #define CORBA_POBJ_H 1 #include #include #endif ORBit2-2.14.19/include/orbit/orb-core/corba-orb-type.h0000644000175000001440000000570611334247617017136 00000000000000#ifndef CORBA_ORB_TYPE #define CORBA_ORB_TYPE 1 #include #include G_BEGIN_DECLS #if !defined(ORBIT_DECL_CORBA_ORB) && !defined(_CORBA_ORB_defined) #define ORBIT_DECL_CORBA_ORB 1 #define _CORBA_ORB_defined 1 typedef struct CORBA_ORB_type *CORBA_ORB; #endif #if !defined(_CORBA_ORB_ObjectId_defined) #define _CORBA_ORB_ObjectId_defined 1 typedef CORBA_string CORBA_ORB_ObjectId; #define CORBA_ORB_ObjectId_marshal(x,y,z) CORBA_string_marshal((x),(y),(z)) #define CORBA_ORB_ObjectId_demarshal(x,y,z,i) CORBA_string_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ORB_ObjectId_0) #define TC_IMPL_TC_CORBA_ORB_ObjectId_0 'c' #define TC_IMPL_TC_CORBA_ORB_ObjectId_1 'o' #define TC_IMPL_TC_CORBA_ORB_ObjectId_2 'r' #define TC_IMPL_TC_CORBA_ORB_ObjectId_3 'b' #define TC_IMPL_TC_CORBA_ORB_ObjectId_4 'a' #define TC_IMPL_TC_CORBA_ORB_ObjectId_5 '_' #define TC_IMPL_TC_CORBA_ORB_ObjectId_6 'd' #define TC_IMPL_TC_CORBA_ORB_ObjectId_7 'e' #define TC_IMPL_TC_CORBA_ORB_ObjectId_8 'f' #define TC_IMPL_TC_CORBA_ORB_ObjectId_9 's' extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ORB_ObjectId_struct; #define TC_CORBA_ORB_ObjectId ((CORBA_TypeCode)&TC_CORBA_ORB_ObjectId_struct) #endif #define CORBA_ORB_ObjectId__freekids CORBA_string__freekids #endif #if !defined(_CORBA_InterfaceDef_defined) #define _CORBA_InterfaceDef_defined 1 #define CORBA_InterfaceDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_InterfaceDef; extern CORBA_unsigned_long CORBA_InterfaceDef__classid; #if !defined(TC_IMPL_TC_CORBA_InterfaceDef_0) #define TC_IMPL_TC_CORBA_InterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_InterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_InterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_InterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_InterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_InterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_InterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_InterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_InterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_InterfaceDef_9 's' extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_InterfaceDef_struct; #define TC_CORBA_InterfaceDef ((CORBA_TypeCode)&TC_CORBA_InterfaceDef_struct) #endif #endif #ifdef ORBIT2_INTERNAL_API struct CORBA_ORB_type { struct ORBit_RootObject_struct root_object; GMutex *lock; GIOPVersion default_giop_version; GSList *servers; GSList *profiles; GPtrArray *adaptors; GHashTable *forw_binds; GSList *current_invocations; gpointer default_ctx; GHashTable *initial_refs; guint life_flags; /* * HashTable of Object Adaptor generated refs that have * been externalised and refs that we have received. */ GHashTable *objrefs; }; #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/orb-core/corba-nvlist.h0000644000175000001440000000124211334247617016703 00000000000000#ifndef CORBA_NVLIST_H #define CORBA_NVLIST_H 1 #include #include G_BEGIN_DECLS void CORBA_NVList_add_item(CORBA_NVList list, const CORBA_Identifier item_name, const CORBA_TypeCode item_type, const CORBA_OpaqueValue value, const CORBA_long value_len, const CORBA_Flags item_flags, CORBA_Environment * ev); void CORBA_NVList_free(CORBA_NVList list, CORBA_Environment * ev); void CORBA_NVList_free_memory(CORBA_NVList list, CORBA_Environment * ev); void CORBA_NVList_get_count(CORBA_NVList list, CORBA_long * count, CORBA_Environment * ev); G_END_DECLS #endif ORBit2-2.14.19/include/orbit/orb-core/corba-context-type.h0000644000175000001440000000042511334247617020031 00000000000000#ifndef CORBA_CONTEXT_TYPE_H #define CORBA_CONTEXT_TYPE_H 1 #include G_BEGIN_DECLS #ifdef ORBIT2_INTERNAL_API typedef struct { CORBA_unsigned_long len; const CORBA_char *str; } ORBit_ContextMarshalItem; #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/orb-core/corba-context.h0000644000175000001440000000135711334247617017057 00000000000000#ifndef CORBA_CONTEXT_H #define CORBA_CONTEXT_H 1 #include G_BEGIN_DECLS #ifdef ORBIT2_INTERNAL_API struct CORBA_Context_type { struct ORBit_RootObject_struct parent; GHashTable *mappings; GSList *children; gchar *the_name; CORBA_Context parent_ctx; }; void ORBit_Context_marshal (CORBA_Context ctx, const ORBit_ContextMarshalItem *mlist, CORBA_unsigned_long nitems, GIOPSendBuffer *buf); gboolean ORBit_Context_demarshal (CORBA_Context parent, CORBA_Context initme, GIOPRecvBuffer *recv_buffer); void ORBit_Context_server_free (CORBA_Context ctx); #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/orb-core/corba-orb.h0000644000175000001440000000246411334247617016155 00000000000000#ifndef CORBA_ORB_H #define CORBA_ORB_H 1 #include #include #include G_BEGIN_DECLS CORBA_ORB CORBA_ORB_init (int *argc, char **argv, CORBA_ORBid orb_identifier, CORBA_Environment *ev); /* Will return TRUE if the named protocol is supported by * the ORB. Currently supported values of "name" are: * * "IPv4" * "IPv6" * "UNIX" * "IrDA" * "SSL" * * Unknown or unsupported values of "name" will make this * method return FALSE.*/ gboolean ORBit_proto_use (const char *name); /* Will return the maximum allowed GIOP buffer size. You will * need to know this if your are e.g. streaming large data chunks * to an ORBit2 client. The return type should be gulong but we * are bound by the type chosen internally by linc2. */ glong ORBit_get_giop_recv_limit (void); #ifdef ORBIT2_INTERNAL_API void ORBit_ORB_forw_bind (CORBA_ORB orb, CORBA_sequence_CORBA_octet *okey, CORBA_Object oref, CORBA_Environment *ev); guint ORBit_ORB_idle_init (CORBA_ORB orb); void ORBit_ORB_start_servers (CORBA_ORB orb); #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/orb-core/corba-defs.h0000644000175000001440000177504211450333751016320 00000000000000/* * This file was generated by orbit-idl-2 - DO NOT EDIT! */ #ifndef corba_defs_H #define corba_defs_H 1 #include #define ORBIT_IDL_SERIAL 20 #include #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /** typedefs **/ #if !defined(ORBIT_DECL_CORBA_ConstructionPolicy) && !defined(_CORBA_ConstructionPolicy_defined) #define ORBIT_DECL_CORBA_ConstructionPolicy 1 #define _CORBA_ConstructionPolicy_defined 1 #define CORBA_ConstructionPolicy__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ConstructionPolicy; extern CORBA_unsigned_long CORBA_ConstructionPolicy__classid; #if !defined(TC_IMPL_TC_CORBA_ConstructionPolicy_0) #define TC_IMPL_TC_CORBA_ConstructionPolicy_0 'c' #define TC_IMPL_TC_CORBA_ConstructionPolicy_1 'o' #define TC_IMPL_TC_CORBA_ConstructionPolicy_2 'r' #define TC_IMPL_TC_CORBA_ConstructionPolicy_3 'b' #define TC_IMPL_TC_CORBA_ConstructionPolicy_4 'a' #define TC_IMPL_TC_CORBA_ConstructionPolicy_5 '_' #define TC_IMPL_TC_CORBA_ConstructionPolicy_6 'd' #define TC_IMPL_TC_CORBA_ConstructionPolicy_7 'e' #define TC_IMPL_TC_CORBA_ConstructionPolicy_8 'f' #define TC_IMPL_TC_CORBA_ConstructionPolicy_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ConstructionPolicy_struct; #define TC_CORBA_ConstructionPolicy ((CORBA_TypeCode)&TC_CORBA_ConstructionPolicy_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_Current) && !defined(_CORBA_Current_defined) #define ORBIT_DECL_CORBA_Current 1 #define _CORBA_Current_defined 1 #define CORBA_Current__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_Current; extern CORBA_unsigned_long CORBA_Current__classid; #if !defined(TC_IMPL_TC_CORBA_Current_0) #define TC_IMPL_TC_CORBA_Current_0 'c' #define TC_IMPL_TC_CORBA_Current_1 'o' #define TC_IMPL_TC_CORBA_Current_2 'r' #define TC_IMPL_TC_CORBA_Current_3 'b' #define TC_IMPL_TC_CORBA_Current_4 'a' #define TC_IMPL_TC_CORBA_Current_5 '_' #define TC_IMPL_TC_CORBA_Current_6 'd' #define TC_IMPL_TC_CORBA_Current_7 'e' #define TC_IMPL_TC_CORBA_Current_8 'f' #define TC_IMPL_TC_CORBA_Current_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_Current_struct; #define TC_CORBA_Current ((CORBA_TypeCode)&TC_CORBA_Current_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_DomainManager) && !defined(_CORBA_DomainManager_defined) #define ORBIT_DECL_CORBA_DomainManager 1 #define _CORBA_DomainManager_defined 1 #define CORBA_DomainManager__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_DomainManager; extern CORBA_unsigned_long CORBA_DomainManager__classid; #if !defined(TC_IMPL_TC_CORBA_DomainManager_0) #define TC_IMPL_TC_CORBA_DomainManager_0 'c' #define TC_IMPL_TC_CORBA_DomainManager_1 'o' #define TC_IMPL_TC_CORBA_DomainManager_2 'r' #define TC_IMPL_TC_CORBA_DomainManager_3 'b' #define TC_IMPL_TC_CORBA_DomainManager_4 'a' #define TC_IMPL_TC_CORBA_DomainManager_5 '_' #define TC_IMPL_TC_CORBA_DomainManager_6 'd' #define TC_IMPL_TC_CORBA_DomainManager_7 'e' #define TC_IMPL_TC_CORBA_DomainManager_8 'f' #define TC_IMPL_TC_CORBA_DomainManager_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_DomainManager_struct; #define TC_CORBA_DomainManager ((CORBA_TypeCode)&TC_CORBA_DomainManager_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_Policy) && !defined(_CORBA_Policy_defined) #define ORBIT_DECL_CORBA_Policy 1 #define _CORBA_Policy_defined 1 #define CORBA_Policy__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_Policy; extern CORBA_unsigned_long CORBA_Policy__classid; #if !defined(TC_IMPL_TC_CORBA_Policy_0) #define TC_IMPL_TC_CORBA_Policy_0 'c' #define TC_IMPL_TC_CORBA_Policy_1 'o' #define TC_IMPL_TC_CORBA_Policy_2 'r' #define TC_IMPL_TC_CORBA_Policy_3 'b' #define TC_IMPL_TC_CORBA_Policy_4 'a' #define TC_IMPL_TC_CORBA_Policy_5 '_' #define TC_IMPL_TC_CORBA_Policy_6 'd' #define TC_IMPL_TC_CORBA_Policy_7 'e' #define TC_IMPL_TC_CORBA_Policy_8 'f' #define TC_IMPL_TC_CORBA_Policy_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_Policy_struct; #define TC_CORBA_Policy ((CORBA_TypeCode)&TC_CORBA_Policy_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_AbstractInterfaceDef) && !defined(_CORBA_AbstractInterfaceDef_defined) #define ORBIT_DECL_CORBA_AbstractInterfaceDef 1 #define _CORBA_AbstractInterfaceDef_defined 1 #define CORBA_AbstractInterfaceDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_AbstractInterfaceDef; extern CORBA_unsigned_long CORBA_AbstractInterfaceDef__classid; #if !defined(TC_IMPL_TC_CORBA_AbstractInterfaceDef_0) #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_AbstractInterfaceDef_struct; #define TC_CORBA_AbstractInterfaceDef ((CORBA_TypeCode)&TC_CORBA_AbstractInterfaceDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_AliasDef) && !defined(_CORBA_AliasDef_defined) #define ORBIT_DECL_CORBA_AliasDef 1 #define _CORBA_AliasDef_defined 1 #define CORBA_AliasDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_AliasDef; extern CORBA_unsigned_long CORBA_AliasDef__classid; #if !defined(TC_IMPL_TC_CORBA_AliasDef_0) #define TC_IMPL_TC_CORBA_AliasDef_0 'c' #define TC_IMPL_TC_CORBA_AliasDef_1 'o' #define TC_IMPL_TC_CORBA_AliasDef_2 'r' #define TC_IMPL_TC_CORBA_AliasDef_3 'b' #define TC_IMPL_TC_CORBA_AliasDef_4 'a' #define TC_IMPL_TC_CORBA_AliasDef_5 '_' #define TC_IMPL_TC_CORBA_AliasDef_6 'd' #define TC_IMPL_TC_CORBA_AliasDef_7 'e' #define TC_IMPL_TC_CORBA_AliasDef_8 'f' #define TC_IMPL_TC_CORBA_AliasDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_AliasDef_struct; #define TC_CORBA_AliasDef ((CORBA_TypeCode)&TC_CORBA_AliasDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_ArrayDef) && !defined(_CORBA_ArrayDef_defined) #define ORBIT_DECL_CORBA_ArrayDef 1 #define _CORBA_ArrayDef_defined 1 #define CORBA_ArrayDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ArrayDef; extern CORBA_unsigned_long CORBA_ArrayDef__classid; #if !defined(TC_IMPL_TC_CORBA_ArrayDef_0) #define TC_IMPL_TC_CORBA_ArrayDef_0 'c' #define TC_IMPL_TC_CORBA_ArrayDef_1 'o' #define TC_IMPL_TC_CORBA_ArrayDef_2 'r' #define TC_IMPL_TC_CORBA_ArrayDef_3 'b' #define TC_IMPL_TC_CORBA_ArrayDef_4 'a' #define TC_IMPL_TC_CORBA_ArrayDef_5 '_' #define TC_IMPL_TC_CORBA_ArrayDef_6 'd' #define TC_IMPL_TC_CORBA_ArrayDef_7 'e' #define TC_IMPL_TC_CORBA_ArrayDef_8 'f' #define TC_IMPL_TC_CORBA_ArrayDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ArrayDef_struct; #define TC_CORBA_ArrayDef ((CORBA_TypeCode)&TC_CORBA_ArrayDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_AttributeDef) && !defined(_CORBA_AttributeDef_defined) #define ORBIT_DECL_CORBA_AttributeDef 1 #define _CORBA_AttributeDef_defined 1 #define CORBA_AttributeDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_AttributeDef; extern CORBA_unsigned_long CORBA_AttributeDef__classid; #if !defined(TC_IMPL_TC_CORBA_AttributeDef_0) #define TC_IMPL_TC_CORBA_AttributeDef_0 'c' #define TC_IMPL_TC_CORBA_AttributeDef_1 'o' #define TC_IMPL_TC_CORBA_AttributeDef_2 'r' #define TC_IMPL_TC_CORBA_AttributeDef_3 'b' #define TC_IMPL_TC_CORBA_AttributeDef_4 'a' #define TC_IMPL_TC_CORBA_AttributeDef_5 '_' #define TC_IMPL_TC_CORBA_AttributeDef_6 'd' #define TC_IMPL_TC_CORBA_AttributeDef_7 'e' #define TC_IMPL_TC_CORBA_AttributeDef_8 'f' #define TC_IMPL_TC_CORBA_AttributeDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_AttributeDef_struct; #define TC_CORBA_AttributeDef ((CORBA_TypeCode)&TC_CORBA_AttributeDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_ConstantDef) && !defined(_CORBA_ConstantDef_defined) #define ORBIT_DECL_CORBA_ConstantDef 1 #define _CORBA_ConstantDef_defined 1 #define CORBA_ConstantDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ConstantDef; extern CORBA_unsigned_long CORBA_ConstantDef__classid; #if !defined(TC_IMPL_TC_CORBA_ConstantDef_0) #define TC_IMPL_TC_CORBA_ConstantDef_0 'c' #define TC_IMPL_TC_CORBA_ConstantDef_1 'o' #define TC_IMPL_TC_CORBA_ConstantDef_2 'r' #define TC_IMPL_TC_CORBA_ConstantDef_3 'b' #define TC_IMPL_TC_CORBA_ConstantDef_4 'a' #define TC_IMPL_TC_CORBA_ConstantDef_5 '_' #define TC_IMPL_TC_CORBA_ConstantDef_6 'd' #define TC_IMPL_TC_CORBA_ConstantDef_7 'e' #define TC_IMPL_TC_CORBA_ConstantDef_8 'f' #define TC_IMPL_TC_CORBA_ConstantDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ConstantDef_struct; #define TC_CORBA_ConstantDef ((CORBA_TypeCode)&TC_CORBA_ConstantDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_Contained) && !defined(_CORBA_Contained_defined) #define ORBIT_DECL_CORBA_Contained 1 #define _CORBA_Contained_defined 1 #define CORBA_Contained__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_Contained; extern CORBA_unsigned_long CORBA_Contained__classid; #if !defined(TC_IMPL_TC_CORBA_Contained_0) #define TC_IMPL_TC_CORBA_Contained_0 'c' #define TC_IMPL_TC_CORBA_Contained_1 'o' #define TC_IMPL_TC_CORBA_Contained_2 'r' #define TC_IMPL_TC_CORBA_Contained_3 'b' #define TC_IMPL_TC_CORBA_Contained_4 'a' #define TC_IMPL_TC_CORBA_Contained_5 '_' #define TC_IMPL_TC_CORBA_Contained_6 'd' #define TC_IMPL_TC_CORBA_Contained_7 'e' #define TC_IMPL_TC_CORBA_Contained_8 'f' #define TC_IMPL_TC_CORBA_Contained_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_Contained_struct; #define TC_CORBA_Contained ((CORBA_TypeCode)&TC_CORBA_Contained_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_Container) && !defined(_CORBA_Container_defined) #define ORBIT_DECL_CORBA_Container 1 #define _CORBA_Container_defined 1 #define CORBA_Container__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_Container; extern CORBA_unsigned_long CORBA_Container__classid; #if !defined(TC_IMPL_TC_CORBA_Container_0) #define TC_IMPL_TC_CORBA_Container_0 'c' #define TC_IMPL_TC_CORBA_Container_1 'o' #define TC_IMPL_TC_CORBA_Container_2 'r' #define TC_IMPL_TC_CORBA_Container_3 'b' #define TC_IMPL_TC_CORBA_Container_4 'a' #define TC_IMPL_TC_CORBA_Container_5 '_' #define TC_IMPL_TC_CORBA_Container_6 'd' #define TC_IMPL_TC_CORBA_Container_7 'e' #define TC_IMPL_TC_CORBA_Container_8 'f' #define TC_IMPL_TC_CORBA_Container_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_Container_struct; #define TC_CORBA_Container ((CORBA_TypeCode)&TC_CORBA_Container_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_EnumDef) && !defined(_CORBA_EnumDef_defined) #define ORBIT_DECL_CORBA_EnumDef 1 #define _CORBA_EnumDef_defined 1 #define CORBA_EnumDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_EnumDef; extern CORBA_unsigned_long CORBA_EnumDef__classid; #if !defined(TC_IMPL_TC_CORBA_EnumDef_0) #define TC_IMPL_TC_CORBA_EnumDef_0 'c' #define TC_IMPL_TC_CORBA_EnumDef_1 'o' #define TC_IMPL_TC_CORBA_EnumDef_2 'r' #define TC_IMPL_TC_CORBA_EnumDef_3 'b' #define TC_IMPL_TC_CORBA_EnumDef_4 'a' #define TC_IMPL_TC_CORBA_EnumDef_5 '_' #define TC_IMPL_TC_CORBA_EnumDef_6 'd' #define TC_IMPL_TC_CORBA_EnumDef_7 'e' #define TC_IMPL_TC_CORBA_EnumDef_8 'f' #define TC_IMPL_TC_CORBA_EnumDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_EnumDef_struct; #define TC_CORBA_EnumDef ((CORBA_TypeCode)&TC_CORBA_EnumDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_ExceptionDef) && !defined(_CORBA_ExceptionDef_defined) #define ORBIT_DECL_CORBA_ExceptionDef 1 #define _CORBA_ExceptionDef_defined 1 #define CORBA_ExceptionDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ExceptionDef; extern CORBA_unsigned_long CORBA_ExceptionDef__classid; #if !defined(TC_IMPL_TC_CORBA_ExceptionDef_0) #define TC_IMPL_TC_CORBA_ExceptionDef_0 'c' #define TC_IMPL_TC_CORBA_ExceptionDef_1 'o' #define TC_IMPL_TC_CORBA_ExceptionDef_2 'r' #define TC_IMPL_TC_CORBA_ExceptionDef_3 'b' #define TC_IMPL_TC_CORBA_ExceptionDef_4 'a' #define TC_IMPL_TC_CORBA_ExceptionDef_5 '_' #define TC_IMPL_TC_CORBA_ExceptionDef_6 'd' #define TC_IMPL_TC_CORBA_ExceptionDef_7 'e' #define TC_IMPL_TC_CORBA_ExceptionDef_8 'f' #define TC_IMPL_TC_CORBA_ExceptionDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExceptionDef_struct; #define TC_CORBA_ExceptionDef ((CORBA_TypeCode)&TC_CORBA_ExceptionDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_ExtInterfaceDef) && !defined(_CORBA_ExtInterfaceDef_defined) #define ORBIT_DECL_CORBA_ExtInterfaceDef 1 #define _CORBA_ExtInterfaceDef_defined 1 #define CORBA_ExtInterfaceDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ExtInterfaceDef; extern CORBA_unsigned_long CORBA_ExtInterfaceDef__classid; #if !defined(TC_IMPL_TC_CORBA_ExtInterfaceDef_0) #define TC_IMPL_TC_CORBA_ExtInterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtInterfaceDef_struct; #define TC_CORBA_ExtInterfaceDef ((CORBA_TypeCode)&TC_CORBA_ExtInterfaceDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_ExtValueDef) && !defined(_CORBA_ExtValueDef_defined) #define ORBIT_DECL_CORBA_ExtValueDef 1 #define _CORBA_ExtValueDef_defined 1 #define CORBA_ExtValueDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ExtValueDef; extern CORBA_unsigned_long CORBA_ExtValueDef__classid; #if !defined(TC_IMPL_TC_CORBA_ExtValueDef_0) #define TC_IMPL_TC_CORBA_ExtValueDef_0 'c' #define TC_IMPL_TC_CORBA_ExtValueDef_1 'o' #define TC_IMPL_TC_CORBA_ExtValueDef_2 'r' #define TC_IMPL_TC_CORBA_ExtValueDef_3 'b' #define TC_IMPL_TC_CORBA_ExtValueDef_4 'a' #define TC_IMPL_TC_CORBA_ExtValueDef_5 '_' #define TC_IMPL_TC_CORBA_ExtValueDef_6 'd' #define TC_IMPL_TC_CORBA_ExtValueDef_7 'e' #define TC_IMPL_TC_CORBA_ExtValueDef_8 'f' #define TC_IMPL_TC_CORBA_ExtValueDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtValueDef_struct; #define TC_CORBA_ExtValueDef ((CORBA_TypeCode)&TC_CORBA_ExtValueDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_ExtAbstractInterfaceDef) && !defined(_CORBA_ExtAbstractInterfaceDef_defined) #define ORBIT_DECL_CORBA_ExtAbstractInterfaceDef 1 #define _CORBA_ExtAbstractInterfaceDef_defined 1 #define CORBA_ExtAbstractInterfaceDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ExtAbstractInterfaceDef; extern CORBA_unsigned_long CORBA_ExtAbstractInterfaceDef__classid; #if !defined(TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_0) #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtAbstractInterfaceDef_struct; #define TC_CORBA_ExtAbstractInterfaceDef ((CORBA_TypeCode)&TC_CORBA_ExtAbstractInterfaceDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_ExtLocalInterfaceDef) && !defined(_CORBA_ExtLocalInterfaceDef_defined) #define ORBIT_DECL_CORBA_ExtLocalInterfaceDef 1 #define _CORBA_ExtLocalInterfaceDef_defined 1 #define CORBA_ExtLocalInterfaceDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ExtLocalInterfaceDef; extern CORBA_unsigned_long CORBA_ExtLocalInterfaceDef__classid; #if !defined(TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_0) #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtLocalInterfaceDef_struct; #define TC_CORBA_ExtLocalInterfaceDef ((CORBA_TypeCode)&TC_CORBA_ExtLocalInterfaceDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_FixedDef) && !defined(_CORBA_FixedDef_defined) #define ORBIT_DECL_CORBA_FixedDef 1 #define _CORBA_FixedDef_defined 1 #define CORBA_FixedDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_FixedDef; extern CORBA_unsigned_long CORBA_FixedDef__classid; #if !defined(TC_IMPL_TC_CORBA_FixedDef_0) #define TC_IMPL_TC_CORBA_FixedDef_0 'c' #define TC_IMPL_TC_CORBA_FixedDef_1 'o' #define TC_IMPL_TC_CORBA_FixedDef_2 'r' #define TC_IMPL_TC_CORBA_FixedDef_3 'b' #define TC_IMPL_TC_CORBA_FixedDef_4 'a' #define TC_IMPL_TC_CORBA_FixedDef_5 '_' #define TC_IMPL_TC_CORBA_FixedDef_6 'd' #define TC_IMPL_TC_CORBA_FixedDef_7 'e' #define TC_IMPL_TC_CORBA_FixedDef_8 'f' #define TC_IMPL_TC_CORBA_FixedDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_FixedDef_struct; #define TC_CORBA_FixedDef ((CORBA_TypeCode)&TC_CORBA_FixedDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_IDLType) && !defined(_CORBA_IDLType_defined) #define ORBIT_DECL_CORBA_IDLType 1 #define _CORBA_IDLType_defined 1 #define CORBA_IDLType__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_IDLType; extern CORBA_unsigned_long CORBA_IDLType__classid; #if !defined(TC_IMPL_TC_CORBA_IDLType_0) #define TC_IMPL_TC_CORBA_IDLType_0 'c' #define TC_IMPL_TC_CORBA_IDLType_1 'o' #define TC_IMPL_TC_CORBA_IDLType_2 'r' #define TC_IMPL_TC_CORBA_IDLType_3 'b' #define TC_IMPL_TC_CORBA_IDLType_4 'a' #define TC_IMPL_TC_CORBA_IDLType_5 '_' #define TC_IMPL_TC_CORBA_IDLType_6 'd' #define TC_IMPL_TC_CORBA_IDLType_7 'e' #define TC_IMPL_TC_CORBA_IDLType_8 'f' #define TC_IMPL_TC_CORBA_IDLType_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_IDLType_struct; #define TC_CORBA_IDLType ((CORBA_TypeCode)&TC_CORBA_IDLType_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_InterfaceDef) && !defined(_CORBA_InterfaceDef_defined) #define ORBIT_DECL_CORBA_InterfaceDef 1 #define _CORBA_InterfaceDef_defined 1 #define CORBA_InterfaceDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_InterfaceDef; extern CORBA_unsigned_long CORBA_InterfaceDef__classid; #if !defined(TC_IMPL_TC_CORBA_InterfaceDef_0) #define TC_IMPL_TC_CORBA_InterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_InterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_InterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_InterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_InterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_InterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_InterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_InterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_InterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_InterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_InterfaceDef_struct; #define TC_CORBA_InterfaceDef ((CORBA_TypeCode)&TC_CORBA_InterfaceDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_IRObject) && !defined(_CORBA_IRObject_defined) #define ORBIT_DECL_CORBA_IRObject 1 #define _CORBA_IRObject_defined 1 #define CORBA_IRObject__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_IRObject; extern CORBA_unsigned_long CORBA_IRObject__classid; #if !defined(TC_IMPL_TC_CORBA_IRObject_0) #define TC_IMPL_TC_CORBA_IRObject_0 'c' #define TC_IMPL_TC_CORBA_IRObject_1 'o' #define TC_IMPL_TC_CORBA_IRObject_2 'r' #define TC_IMPL_TC_CORBA_IRObject_3 'b' #define TC_IMPL_TC_CORBA_IRObject_4 'a' #define TC_IMPL_TC_CORBA_IRObject_5 '_' #define TC_IMPL_TC_CORBA_IRObject_6 'd' #define TC_IMPL_TC_CORBA_IRObject_7 'e' #define TC_IMPL_TC_CORBA_IRObject_8 'f' #define TC_IMPL_TC_CORBA_IRObject_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_IRObject_struct; #define TC_CORBA_IRObject ((CORBA_TypeCode)&TC_CORBA_IRObject_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_LocalInterfaceDef) && !defined(_CORBA_LocalInterfaceDef_defined) #define ORBIT_DECL_CORBA_LocalInterfaceDef 1 #define _CORBA_LocalInterfaceDef_defined 1 #define CORBA_LocalInterfaceDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_LocalInterfaceDef; extern CORBA_unsigned_long CORBA_LocalInterfaceDef__classid; #if !defined(TC_IMPL_TC_CORBA_LocalInterfaceDef_0) #define TC_IMPL_TC_CORBA_LocalInterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_LocalInterfaceDef_struct; #define TC_CORBA_LocalInterfaceDef ((CORBA_TypeCode)&TC_CORBA_LocalInterfaceDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_ModuleDef) && !defined(_CORBA_ModuleDef_defined) #define ORBIT_DECL_CORBA_ModuleDef 1 #define _CORBA_ModuleDef_defined 1 #define CORBA_ModuleDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ModuleDef; extern CORBA_unsigned_long CORBA_ModuleDef__classid; #if !defined(TC_IMPL_TC_CORBA_ModuleDef_0) #define TC_IMPL_TC_CORBA_ModuleDef_0 'c' #define TC_IMPL_TC_CORBA_ModuleDef_1 'o' #define TC_IMPL_TC_CORBA_ModuleDef_2 'r' #define TC_IMPL_TC_CORBA_ModuleDef_3 'b' #define TC_IMPL_TC_CORBA_ModuleDef_4 'a' #define TC_IMPL_TC_CORBA_ModuleDef_5 '_' #define TC_IMPL_TC_CORBA_ModuleDef_6 'd' #define TC_IMPL_TC_CORBA_ModuleDef_7 'e' #define TC_IMPL_TC_CORBA_ModuleDef_8 'f' #define TC_IMPL_TC_CORBA_ModuleDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ModuleDef_struct; #define TC_CORBA_ModuleDef ((CORBA_TypeCode)&TC_CORBA_ModuleDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_NativeDef) && !defined(_CORBA_NativeDef_defined) #define ORBIT_DECL_CORBA_NativeDef 1 #define _CORBA_NativeDef_defined 1 #define CORBA_NativeDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_NativeDef; extern CORBA_unsigned_long CORBA_NativeDef__classid; #if !defined(TC_IMPL_TC_CORBA_NativeDef_0) #define TC_IMPL_TC_CORBA_NativeDef_0 'c' #define TC_IMPL_TC_CORBA_NativeDef_1 'o' #define TC_IMPL_TC_CORBA_NativeDef_2 'r' #define TC_IMPL_TC_CORBA_NativeDef_3 'b' #define TC_IMPL_TC_CORBA_NativeDef_4 'a' #define TC_IMPL_TC_CORBA_NativeDef_5 '_' #define TC_IMPL_TC_CORBA_NativeDef_6 'd' #define TC_IMPL_TC_CORBA_NativeDef_7 'e' #define TC_IMPL_TC_CORBA_NativeDef_8 'f' #define TC_IMPL_TC_CORBA_NativeDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_NativeDef_struct; #define TC_CORBA_NativeDef ((CORBA_TypeCode)&TC_CORBA_NativeDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_OperationDef) && !defined(_CORBA_OperationDef_defined) #define ORBIT_DECL_CORBA_OperationDef 1 #define _CORBA_OperationDef_defined 1 #define CORBA_OperationDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_OperationDef; extern CORBA_unsigned_long CORBA_OperationDef__classid; #if !defined(TC_IMPL_TC_CORBA_OperationDef_0) #define TC_IMPL_TC_CORBA_OperationDef_0 'c' #define TC_IMPL_TC_CORBA_OperationDef_1 'o' #define TC_IMPL_TC_CORBA_OperationDef_2 'r' #define TC_IMPL_TC_CORBA_OperationDef_3 'b' #define TC_IMPL_TC_CORBA_OperationDef_4 'a' #define TC_IMPL_TC_CORBA_OperationDef_5 '_' #define TC_IMPL_TC_CORBA_OperationDef_6 'd' #define TC_IMPL_TC_CORBA_OperationDef_7 'e' #define TC_IMPL_TC_CORBA_OperationDef_8 'f' #define TC_IMPL_TC_CORBA_OperationDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_OperationDef_struct; #define TC_CORBA_OperationDef ((CORBA_TypeCode)&TC_CORBA_OperationDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_PrimitiveDef) && !defined(_CORBA_PrimitiveDef_defined) #define ORBIT_DECL_CORBA_PrimitiveDef 1 #define _CORBA_PrimitiveDef_defined 1 #define CORBA_PrimitiveDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_PrimitiveDef; extern CORBA_unsigned_long CORBA_PrimitiveDef__classid; #if !defined(TC_IMPL_TC_CORBA_PrimitiveDef_0) #define TC_IMPL_TC_CORBA_PrimitiveDef_0 'c' #define TC_IMPL_TC_CORBA_PrimitiveDef_1 'o' #define TC_IMPL_TC_CORBA_PrimitiveDef_2 'r' #define TC_IMPL_TC_CORBA_PrimitiveDef_3 'b' #define TC_IMPL_TC_CORBA_PrimitiveDef_4 'a' #define TC_IMPL_TC_CORBA_PrimitiveDef_5 '_' #define TC_IMPL_TC_CORBA_PrimitiveDef_6 'd' #define TC_IMPL_TC_CORBA_PrimitiveDef_7 'e' #define TC_IMPL_TC_CORBA_PrimitiveDef_8 'f' #define TC_IMPL_TC_CORBA_PrimitiveDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_PrimitiveDef_struct; #define TC_CORBA_PrimitiveDef ((CORBA_TypeCode)&TC_CORBA_PrimitiveDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_Repository) && !defined(_CORBA_Repository_defined) #define ORBIT_DECL_CORBA_Repository 1 #define _CORBA_Repository_defined 1 #define CORBA_Repository__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_Repository; extern CORBA_unsigned_long CORBA_Repository__classid; #if !defined(TC_IMPL_TC_CORBA_Repository_0) #define TC_IMPL_TC_CORBA_Repository_0 'c' #define TC_IMPL_TC_CORBA_Repository_1 'o' #define TC_IMPL_TC_CORBA_Repository_2 'r' #define TC_IMPL_TC_CORBA_Repository_3 'b' #define TC_IMPL_TC_CORBA_Repository_4 'a' #define TC_IMPL_TC_CORBA_Repository_5 '_' #define TC_IMPL_TC_CORBA_Repository_6 'd' #define TC_IMPL_TC_CORBA_Repository_7 'e' #define TC_IMPL_TC_CORBA_Repository_8 'f' #define TC_IMPL_TC_CORBA_Repository_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_Repository_struct; #define TC_CORBA_Repository ((CORBA_TypeCode)&TC_CORBA_Repository_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_SequenceDef) && !defined(_CORBA_SequenceDef_defined) #define ORBIT_DECL_CORBA_SequenceDef 1 #define _CORBA_SequenceDef_defined 1 #define CORBA_SequenceDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_SequenceDef; extern CORBA_unsigned_long CORBA_SequenceDef__classid; #if !defined(TC_IMPL_TC_CORBA_SequenceDef_0) #define TC_IMPL_TC_CORBA_SequenceDef_0 'c' #define TC_IMPL_TC_CORBA_SequenceDef_1 'o' #define TC_IMPL_TC_CORBA_SequenceDef_2 'r' #define TC_IMPL_TC_CORBA_SequenceDef_3 'b' #define TC_IMPL_TC_CORBA_SequenceDef_4 'a' #define TC_IMPL_TC_CORBA_SequenceDef_5 '_' #define TC_IMPL_TC_CORBA_SequenceDef_6 'd' #define TC_IMPL_TC_CORBA_SequenceDef_7 'e' #define TC_IMPL_TC_CORBA_SequenceDef_8 'f' #define TC_IMPL_TC_CORBA_SequenceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_SequenceDef_struct; #define TC_CORBA_SequenceDef ((CORBA_TypeCode)&TC_CORBA_SequenceDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_StringDef) && !defined(_CORBA_StringDef_defined) #define ORBIT_DECL_CORBA_StringDef 1 #define _CORBA_StringDef_defined 1 #define CORBA_StringDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_StringDef; extern CORBA_unsigned_long CORBA_StringDef__classid; #if !defined(TC_IMPL_TC_CORBA_StringDef_0) #define TC_IMPL_TC_CORBA_StringDef_0 'c' #define TC_IMPL_TC_CORBA_StringDef_1 'o' #define TC_IMPL_TC_CORBA_StringDef_2 'r' #define TC_IMPL_TC_CORBA_StringDef_3 'b' #define TC_IMPL_TC_CORBA_StringDef_4 'a' #define TC_IMPL_TC_CORBA_StringDef_5 '_' #define TC_IMPL_TC_CORBA_StringDef_6 'd' #define TC_IMPL_TC_CORBA_StringDef_7 'e' #define TC_IMPL_TC_CORBA_StringDef_8 'f' #define TC_IMPL_TC_CORBA_StringDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_StringDef_struct; #define TC_CORBA_StringDef ((CORBA_TypeCode)&TC_CORBA_StringDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_StructDef) && !defined(_CORBA_StructDef_defined) #define ORBIT_DECL_CORBA_StructDef 1 #define _CORBA_StructDef_defined 1 #define CORBA_StructDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_StructDef; extern CORBA_unsigned_long CORBA_StructDef__classid; #if !defined(TC_IMPL_TC_CORBA_StructDef_0) #define TC_IMPL_TC_CORBA_StructDef_0 'c' #define TC_IMPL_TC_CORBA_StructDef_1 'o' #define TC_IMPL_TC_CORBA_StructDef_2 'r' #define TC_IMPL_TC_CORBA_StructDef_3 'b' #define TC_IMPL_TC_CORBA_StructDef_4 'a' #define TC_IMPL_TC_CORBA_StructDef_5 '_' #define TC_IMPL_TC_CORBA_StructDef_6 'd' #define TC_IMPL_TC_CORBA_StructDef_7 'e' #define TC_IMPL_TC_CORBA_StructDef_8 'f' #define TC_IMPL_TC_CORBA_StructDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_StructDef_struct; #define TC_CORBA_StructDef ((CORBA_TypeCode)&TC_CORBA_StructDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_TypeCode) && !defined(_CORBA_TypeCode_defined) #define ORBIT_DECL_CORBA_TypeCode 1 #define _CORBA_TypeCode_defined 1 #define CORBA_TypeCode__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_TypeCode; extern CORBA_unsigned_long CORBA_TypeCode__classid; #if !defined(TC_IMPL_TC_CORBA_TypeCode_0) #define TC_IMPL_TC_CORBA_TypeCode_0 'c' #define TC_IMPL_TC_CORBA_TypeCode_1 'o' #define TC_IMPL_TC_CORBA_TypeCode_2 'r' #define TC_IMPL_TC_CORBA_TypeCode_3 'b' #define TC_IMPL_TC_CORBA_TypeCode_4 'a' #define TC_IMPL_TC_CORBA_TypeCode_5 '_' #define TC_IMPL_TC_CORBA_TypeCode_6 'd' #define TC_IMPL_TC_CORBA_TypeCode_7 'e' #define TC_IMPL_TC_CORBA_TypeCode_8 'f' #define TC_IMPL_TC_CORBA_TypeCode_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_TypeCode_struct; #define TC_CORBA_TypeCode ((CORBA_TypeCode)&TC_CORBA_TypeCode_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_TypedefDef) && !defined(_CORBA_TypedefDef_defined) #define ORBIT_DECL_CORBA_TypedefDef 1 #define _CORBA_TypedefDef_defined 1 #define CORBA_TypedefDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_TypedefDef; extern CORBA_unsigned_long CORBA_TypedefDef__classid; #if !defined(TC_IMPL_TC_CORBA_TypedefDef_0) #define TC_IMPL_TC_CORBA_TypedefDef_0 'c' #define TC_IMPL_TC_CORBA_TypedefDef_1 'o' #define TC_IMPL_TC_CORBA_TypedefDef_2 'r' #define TC_IMPL_TC_CORBA_TypedefDef_3 'b' #define TC_IMPL_TC_CORBA_TypedefDef_4 'a' #define TC_IMPL_TC_CORBA_TypedefDef_5 '_' #define TC_IMPL_TC_CORBA_TypedefDef_6 'd' #define TC_IMPL_TC_CORBA_TypedefDef_7 'e' #define TC_IMPL_TC_CORBA_TypedefDef_8 'f' #define TC_IMPL_TC_CORBA_TypedefDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_TypedefDef_struct; #define TC_CORBA_TypedefDef ((CORBA_TypeCode)&TC_CORBA_TypedefDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_UnionDef) && !defined(_CORBA_UnionDef_defined) #define ORBIT_DECL_CORBA_UnionDef 1 #define _CORBA_UnionDef_defined 1 #define CORBA_UnionDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_UnionDef; extern CORBA_unsigned_long CORBA_UnionDef__classid; #if !defined(TC_IMPL_TC_CORBA_UnionDef_0) #define TC_IMPL_TC_CORBA_UnionDef_0 'c' #define TC_IMPL_TC_CORBA_UnionDef_1 'o' #define TC_IMPL_TC_CORBA_UnionDef_2 'r' #define TC_IMPL_TC_CORBA_UnionDef_3 'b' #define TC_IMPL_TC_CORBA_UnionDef_4 'a' #define TC_IMPL_TC_CORBA_UnionDef_5 '_' #define TC_IMPL_TC_CORBA_UnionDef_6 'd' #define TC_IMPL_TC_CORBA_UnionDef_7 'e' #define TC_IMPL_TC_CORBA_UnionDef_8 'f' #define TC_IMPL_TC_CORBA_UnionDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_UnionDef_struct; #define TC_CORBA_UnionDef ((CORBA_TypeCode)&TC_CORBA_UnionDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_ValueDef) && !defined(_CORBA_ValueDef_defined) #define ORBIT_DECL_CORBA_ValueDef 1 #define _CORBA_ValueDef_defined 1 #define CORBA_ValueDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ValueDef; extern CORBA_unsigned_long CORBA_ValueDef__classid; #if !defined(TC_IMPL_TC_CORBA_ValueDef_0) #define TC_IMPL_TC_CORBA_ValueDef_0 'c' #define TC_IMPL_TC_CORBA_ValueDef_1 'o' #define TC_IMPL_TC_CORBA_ValueDef_2 'r' #define TC_IMPL_TC_CORBA_ValueDef_3 'b' #define TC_IMPL_TC_CORBA_ValueDef_4 'a' #define TC_IMPL_TC_CORBA_ValueDef_5 '_' #define TC_IMPL_TC_CORBA_ValueDef_6 'd' #define TC_IMPL_TC_CORBA_ValueDef_7 'e' #define TC_IMPL_TC_CORBA_ValueDef_8 'f' #define TC_IMPL_TC_CORBA_ValueDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ValueDef_struct; #define TC_CORBA_ValueDef ((CORBA_TypeCode)&TC_CORBA_ValueDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_ValueBoxDef) && !defined(_CORBA_ValueBoxDef_defined) #define ORBIT_DECL_CORBA_ValueBoxDef 1 #define _CORBA_ValueBoxDef_defined 1 #define CORBA_ValueBoxDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ValueBoxDef; extern CORBA_unsigned_long CORBA_ValueBoxDef__classid; #if !defined(TC_IMPL_TC_CORBA_ValueBoxDef_0) #define TC_IMPL_TC_CORBA_ValueBoxDef_0 'c' #define TC_IMPL_TC_CORBA_ValueBoxDef_1 'o' #define TC_IMPL_TC_CORBA_ValueBoxDef_2 'r' #define TC_IMPL_TC_CORBA_ValueBoxDef_3 'b' #define TC_IMPL_TC_CORBA_ValueBoxDef_4 'a' #define TC_IMPL_TC_CORBA_ValueBoxDef_5 '_' #define TC_IMPL_TC_CORBA_ValueBoxDef_6 'd' #define TC_IMPL_TC_CORBA_ValueBoxDef_7 'e' #define TC_IMPL_TC_CORBA_ValueBoxDef_8 'f' #define TC_IMPL_TC_CORBA_ValueBoxDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ValueBoxDef_struct; #define TC_CORBA_ValueBoxDef ((CORBA_TypeCode)&TC_CORBA_ValueBoxDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_ValueMemberDef) && !defined(_CORBA_ValueMemberDef_defined) #define ORBIT_DECL_CORBA_ValueMemberDef 1 #define _CORBA_ValueMemberDef_defined 1 #define CORBA_ValueMemberDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ValueMemberDef; extern CORBA_unsigned_long CORBA_ValueMemberDef__classid; #if !defined(TC_IMPL_TC_CORBA_ValueMemberDef_0) #define TC_IMPL_TC_CORBA_ValueMemberDef_0 'c' #define TC_IMPL_TC_CORBA_ValueMemberDef_1 'o' #define TC_IMPL_TC_CORBA_ValueMemberDef_2 'r' #define TC_IMPL_TC_CORBA_ValueMemberDef_3 'b' #define TC_IMPL_TC_CORBA_ValueMemberDef_4 'a' #define TC_IMPL_TC_CORBA_ValueMemberDef_5 '_' #define TC_IMPL_TC_CORBA_ValueMemberDef_6 'd' #define TC_IMPL_TC_CORBA_ValueMemberDef_7 'e' #define TC_IMPL_TC_CORBA_ValueMemberDef_8 'f' #define TC_IMPL_TC_CORBA_ValueMemberDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ValueMemberDef_struct; #define TC_CORBA_ValueMemberDef ((CORBA_TypeCode)&TC_CORBA_ValueMemberDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_WstringDef) && !defined(_CORBA_WstringDef_defined) #define ORBIT_DECL_CORBA_WstringDef 1 #define _CORBA_WstringDef_defined 1 #define CORBA_WstringDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_WstringDef; extern CORBA_unsigned_long CORBA_WstringDef__classid; #if !defined(TC_IMPL_TC_CORBA_WstringDef_0) #define TC_IMPL_TC_CORBA_WstringDef_0 'c' #define TC_IMPL_TC_CORBA_WstringDef_1 'o' #define TC_IMPL_TC_CORBA_WstringDef_2 'r' #define TC_IMPL_TC_CORBA_WstringDef_3 'b' #define TC_IMPL_TC_CORBA_WstringDef_4 'a' #define TC_IMPL_TC_CORBA_WstringDef_5 '_' #define TC_IMPL_TC_CORBA_WstringDef_6 'd' #define TC_IMPL_TC_CORBA_WstringDef_7 'e' #define TC_IMPL_TC_CORBA_WstringDef_8 'f' #define TC_IMPL_TC_CORBA_WstringDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_WstringDef_struct; #define TC_CORBA_WstringDef ((CORBA_TypeCode)&TC_CORBA_WstringDef_struct) #endif #endif #if !defined(_CORBA_Identifier_defined) #define _CORBA_Identifier_defined 1 typedef CORBA_string CORBA_Identifier; #define CORBA_Identifier_marshal(x,y,z) CORBA_string_marshal((x),(y),(z)) #define CORBA_Identifier_demarshal(x,y,z,i) CORBA_string_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_Identifier_0) #define TC_IMPL_TC_CORBA_Identifier_0 'c' #define TC_IMPL_TC_CORBA_Identifier_1 'o' #define TC_IMPL_TC_CORBA_Identifier_2 'r' #define TC_IMPL_TC_CORBA_Identifier_3 'b' #define TC_IMPL_TC_CORBA_Identifier_4 'a' #define TC_IMPL_TC_CORBA_Identifier_5 '_' #define TC_IMPL_TC_CORBA_Identifier_6 'd' #define TC_IMPL_TC_CORBA_Identifier_7 'e' #define TC_IMPL_TC_CORBA_Identifier_8 'f' #define TC_IMPL_TC_CORBA_Identifier_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_Identifier_struct; #define TC_CORBA_Identifier ((CORBA_TypeCode)&TC_CORBA_Identifier_struct) #endif #define CORBA_Identifier__alloc() ((CORBA_Identifier *)ORBit_small_alloc (TC_CORBA_string)) #define CORBA_Identifier__freekids(m,d) ORBit_small_freekids (TC_CORBA_string,(m),(d)) #endif #ifndef CORBA_OMGVMCID #define CORBA_OMGVMCID 1330446336U #endif /* !CORBA_OMGVMCID */ #if !defined(_CORBA_completion_status_defined) #define _CORBA_completion_status_defined 1 typedef enum { CORBA_COMPLETED_YES, CORBA_COMPLETED_NO, CORBA_COMPLETED_MAYBE } CORBA_completion_status; #if !defined(TC_IMPL_TC_CORBA_completion_status_0) #define TC_IMPL_TC_CORBA_completion_status_0 'c' #define TC_IMPL_TC_CORBA_completion_status_1 'o' #define TC_IMPL_TC_CORBA_completion_status_2 'r' #define TC_IMPL_TC_CORBA_completion_status_3 'b' #define TC_IMPL_TC_CORBA_completion_status_4 'a' #define TC_IMPL_TC_CORBA_completion_status_5 '_' #define TC_IMPL_TC_CORBA_completion_status_6 'd' #define TC_IMPL_TC_CORBA_completion_status_7 'e' #define TC_IMPL_TC_CORBA_completion_status_8 'f' #define TC_IMPL_TC_CORBA_completion_status_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_completion_status_struct; #define TC_CORBA_completion_status ((CORBA_TypeCode)&TC_CORBA_completion_status_struct) #endif #endif #if !defined(_CORBA_exception_type_defined) #define _CORBA_exception_type_defined 1 typedef enum { CORBA_NO_EXCEPTION, CORBA_USER_EXCEPTION, CORBA_SYSTEM_EXCEPTION } CORBA_exception_type; #if !defined(TC_IMPL_TC_CORBA_exception_type_0) #define TC_IMPL_TC_CORBA_exception_type_0 'c' #define TC_IMPL_TC_CORBA_exception_type_1 'o' #define TC_IMPL_TC_CORBA_exception_type_2 'r' #define TC_IMPL_TC_CORBA_exception_type_3 'b' #define TC_IMPL_TC_CORBA_exception_type_4 'a' #define TC_IMPL_TC_CORBA_exception_type_5 '_' #define TC_IMPL_TC_CORBA_exception_type_6 'd' #define TC_IMPL_TC_CORBA_exception_type_7 'e' #define TC_IMPL_TC_CORBA_exception_type_8 'f' #define TC_IMPL_TC_CORBA_exception_type_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_exception_type_struct; #define TC_CORBA_exception_type ((CORBA_TypeCode)&TC_CORBA_exception_type_struct) #endif #endif #undef ex_CORBA_UNKNOWN #define ex_CORBA_UNKNOWN "IDL:omg.org/CORBA/UNKNOWN:1.0" #if !defined(_CORBA_UNKNOWN_defined) #define _CORBA_UNKNOWN_defined 1 typedef struct CORBA_UNKNOWN_type CORBA_UNKNOWN; struct CORBA_UNKNOWN_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_UNKNOWN_0) #define TC_IMPL_TC_CORBA_UNKNOWN_0 'c' #define TC_IMPL_TC_CORBA_UNKNOWN_1 'o' #define TC_IMPL_TC_CORBA_UNKNOWN_2 'r' #define TC_IMPL_TC_CORBA_UNKNOWN_3 'b' #define TC_IMPL_TC_CORBA_UNKNOWN_4 'a' #define TC_IMPL_TC_CORBA_UNKNOWN_5 '_' #define TC_IMPL_TC_CORBA_UNKNOWN_6 'd' #define TC_IMPL_TC_CORBA_UNKNOWN_7 'e' #define TC_IMPL_TC_CORBA_UNKNOWN_8 'f' #define TC_IMPL_TC_CORBA_UNKNOWN_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_UNKNOWN_struct; #define TC_CORBA_UNKNOWN ((CORBA_TypeCode)&TC_CORBA_UNKNOWN_struct) #endif #define CORBA_UNKNOWN__alloc() ((CORBA_UNKNOWN *)ORBit_small_alloc (TC_CORBA_UNKNOWN)) #define CORBA_UNKNOWN__freekids(m,d) ORBit_small_freekids (TC_CORBA_UNKNOWN,(m),(d)) #endif #undef ex_CORBA_BAD_PARAM #define ex_CORBA_BAD_PARAM "IDL:omg.org/CORBA/BAD_PARAM:1.0" #if !defined(_CORBA_BAD_PARAM_defined) #define _CORBA_BAD_PARAM_defined 1 typedef struct CORBA_BAD_PARAM_type CORBA_BAD_PARAM; struct CORBA_BAD_PARAM_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_BAD_PARAM_0) #define TC_IMPL_TC_CORBA_BAD_PARAM_0 'c' #define TC_IMPL_TC_CORBA_BAD_PARAM_1 'o' #define TC_IMPL_TC_CORBA_BAD_PARAM_2 'r' #define TC_IMPL_TC_CORBA_BAD_PARAM_3 'b' #define TC_IMPL_TC_CORBA_BAD_PARAM_4 'a' #define TC_IMPL_TC_CORBA_BAD_PARAM_5 '_' #define TC_IMPL_TC_CORBA_BAD_PARAM_6 'd' #define TC_IMPL_TC_CORBA_BAD_PARAM_7 'e' #define TC_IMPL_TC_CORBA_BAD_PARAM_8 'f' #define TC_IMPL_TC_CORBA_BAD_PARAM_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_BAD_PARAM_struct; #define TC_CORBA_BAD_PARAM ((CORBA_TypeCode)&TC_CORBA_BAD_PARAM_struct) #endif #define CORBA_BAD_PARAM__alloc() ((CORBA_BAD_PARAM *)ORBit_small_alloc (TC_CORBA_BAD_PARAM)) #define CORBA_BAD_PARAM__freekids(m,d) ORBit_small_freekids (TC_CORBA_BAD_PARAM,(m),(d)) #endif #undef ex_CORBA_NO_MEMORY #define ex_CORBA_NO_MEMORY "IDL:omg.org/CORBA/NO_MEMORY:1.0" #if !defined(_CORBA_NO_MEMORY_defined) #define _CORBA_NO_MEMORY_defined 1 typedef struct CORBA_NO_MEMORY_type CORBA_NO_MEMORY; struct CORBA_NO_MEMORY_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_NO_MEMORY_0) #define TC_IMPL_TC_CORBA_NO_MEMORY_0 'c' #define TC_IMPL_TC_CORBA_NO_MEMORY_1 'o' #define TC_IMPL_TC_CORBA_NO_MEMORY_2 'r' #define TC_IMPL_TC_CORBA_NO_MEMORY_3 'b' #define TC_IMPL_TC_CORBA_NO_MEMORY_4 'a' #define TC_IMPL_TC_CORBA_NO_MEMORY_5 '_' #define TC_IMPL_TC_CORBA_NO_MEMORY_6 'd' #define TC_IMPL_TC_CORBA_NO_MEMORY_7 'e' #define TC_IMPL_TC_CORBA_NO_MEMORY_8 'f' #define TC_IMPL_TC_CORBA_NO_MEMORY_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_NO_MEMORY_struct; #define TC_CORBA_NO_MEMORY ((CORBA_TypeCode)&TC_CORBA_NO_MEMORY_struct) #endif #define CORBA_NO_MEMORY__alloc() ((CORBA_NO_MEMORY *)ORBit_small_alloc (TC_CORBA_NO_MEMORY)) #define CORBA_NO_MEMORY__freekids(m,d) ORBit_small_freekids (TC_CORBA_NO_MEMORY,(m),(d)) #endif #undef ex_CORBA_IMP_LIMIT #define ex_CORBA_IMP_LIMIT "IDL:omg.org/CORBA/IMP_LIMIT:1.0" #if !defined(_CORBA_IMP_LIMIT_defined) #define _CORBA_IMP_LIMIT_defined 1 typedef struct CORBA_IMP_LIMIT_type CORBA_IMP_LIMIT; struct CORBA_IMP_LIMIT_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_IMP_LIMIT_0) #define TC_IMPL_TC_CORBA_IMP_LIMIT_0 'c' #define TC_IMPL_TC_CORBA_IMP_LIMIT_1 'o' #define TC_IMPL_TC_CORBA_IMP_LIMIT_2 'r' #define TC_IMPL_TC_CORBA_IMP_LIMIT_3 'b' #define TC_IMPL_TC_CORBA_IMP_LIMIT_4 'a' #define TC_IMPL_TC_CORBA_IMP_LIMIT_5 '_' #define TC_IMPL_TC_CORBA_IMP_LIMIT_6 'd' #define TC_IMPL_TC_CORBA_IMP_LIMIT_7 'e' #define TC_IMPL_TC_CORBA_IMP_LIMIT_8 'f' #define TC_IMPL_TC_CORBA_IMP_LIMIT_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_IMP_LIMIT_struct; #define TC_CORBA_IMP_LIMIT ((CORBA_TypeCode)&TC_CORBA_IMP_LIMIT_struct) #endif #define CORBA_IMP_LIMIT__alloc() ((CORBA_IMP_LIMIT *)ORBit_small_alloc (TC_CORBA_IMP_LIMIT)) #define CORBA_IMP_LIMIT__freekids(m,d) ORBit_small_freekids (TC_CORBA_IMP_LIMIT,(m),(d)) #endif #undef ex_CORBA_COMM_FAILURE #define ex_CORBA_COMM_FAILURE "IDL:omg.org/CORBA/COMM_FAILURE:1.0" #if !defined(_CORBA_COMM_FAILURE_defined) #define _CORBA_COMM_FAILURE_defined 1 typedef struct CORBA_COMM_FAILURE_type CORBA_COMM_FAILURE; struct CORBA_COMM_FAILURE_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_COMM_FAILURE_0) #define TC_IMPL_TC_CORBA_COMM_FAILURE_0 'c' #define TC_IMPL_TC_CORBA_COMM_FAILURE_1 'o' #define TC_IMPL_TC_CORBA_COMM_FAILURE_2 'r' #define TC_IMPL_TC_CORBA_COMM_FAILURE_3 'b' #define TC_IMPL_TC_CORBA_COMM_FAILURE_4 'a' #define TC_IMPL_TC_CORBA_COMM_FAILURE_5 '_' #define TC_IMPL_TC_CORBA_COMM_FAILURE_6 'd' #define TC_IMPL_TC_CORBA_COMM_FAILURE_7 'e' #define TC_IMPL_TC_CORBA_COMM_FAILURE_8 'f' #define TC_IMPL_TC_CORBA_COMM_FAILURE_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_COMM_FAILURE_struct; #define TC_CORBA_COMM_FAILURE ((CORBA_TypeCode)&TC_CORBA_COMM_FAILURE_struct) #endif #define CORBA_COMM_FAILURE__alloc() ((CORBA_COMM_FAILURE *)ORBit_small_alloc (TC_CORBA_COMM_FAILURE)) #define CORBA_COMM_FAILURE__freekids(m,d) ORBit_small_freekids (TC_CORBA_COMM_FAILURE,(m),(d)) #endif #undef ex_CORBA_INV_OBJREF #define ex_CORBA_INV_OBJREF "IDL:omg.org/CORBA/INV_OBJREF:1.0" #if !defined(_CORBA_INV_OBJREF_defined) #define _CORBA_INV_OBJREF_defined 1 typedef struct CORBA_INV_OBJREF_type CORBA_INV_OBJREF; struct CORBA_INV_OBJREF_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_INV_OBJREF_0) #define TC_IMPL_TC_CORBA_INV_OBJREF_0 'c' #define TC_IMPL_TC_CORBA_INV_OBJREF_1 'o' #define TC_IMPL_TC_CORBA_INV_OBJREF_2 'r' #define TC_IMPL_TC_CORBA_INV_OBJREF_3 'b' #define TC_IMPL_TC_CORBA_INV_OBJREF_4 'a' #define TC_IMPL_TC_CORBA_INV_OBJREF_5 '_' #define TC_IMPL_TC_CORBA_INV_OBJREF_6 'd' #define TC_IMPL_TC_CORBA_INV_OBJREF_7 'e' #define TC_IMPL_TC_CORBA_INV_OBJREF_8 'f' #define TC_IMPL_TC_CORBA_INV_OBJREF_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_INV_OBJREF_struct; #define TC_CORBA_INV_OBJREF ((CORBA_TypeCode)&TC_CORBA_INV_OBJREF_struct) #endif #define CORBA_INV_OBJREF__alloc() ((CORBA_INV_OBJREF *)ORBit_small_alloc (TC_CORBA_INV_OBJREF)) #define CORBA_INV_OBJREF__freekids(m,d) ORBit_small_freekids (TC_CORBA_INV_OBJREF,(m),(d)) #endif #undef ex_CORBA_NO_PERMISSION #define ex_CORBA_NO_PERMISSION "IDL:omg.org/CORBA/NO_PERMISSION:1.0" #if !defined(_CORBA_NO_PERMISSION_defined) #define _CORBA_NO_PERMISSION_defined 1 typedef struct CORBA_NO_PERMISSION_type CORBA_NO_PERMISSION; struct CORBA_NO_PERMISSION_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_NO_PERMISSION_0) #define TC_IMPL_TC_CORBA_NO_PERMISSION_0 'c' #define TC_IMPL_TC_CORBA_NO_PERMISSION_1 'o' #define TC_IMPL_TC_CORBA_NO_PERMISSION_2 'r' #define TC_IMPL_TC_CORBA_NO_PERMISSION_3 'b' #define TC_IMPL_TC_CORBA_NO_PERMISSION_4 'a' #define TC_IMPL_TC_CORBA_NO_PERMISSION_5 '_' #define TC_IMPL_TC_CORBA_NO_PERMISSION_6 'd' #define TC_IMPL_TC_CORBA_NO_PERMISSION_7 'e' #define TC_IMPL_TC_CORBA_NO_PERMISSION_8 'f' #define TC_IMPL_TC_CORBA_NO_PERMISSION_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_NO_PERMISSION_struct; #define TC_CORBA_NO_PERMISSION ((CORBA_TypeCode)&TC_CORBA_NO_PERMISSION_struct) #endif #define CORBA_NO_PERMISSION__alloc() ((CORBA_NO_PERMISSION *)ORBit_small_alloc (TC_CORBA_NO_PERMISSION)) #define CORBA_NO_PERMISSION__freekids(m,d) ORBit_small_freekids (TC_CORBA_NO_PERMISSION,(m),(d)) #endif #undef ex_CORBA_INTERNAL #define ex_CORBA_INTERNAL "IDL:omg.org/CORBA/INTERNAL:1.0" #if !defined(_CORBA_INTERNAL_defined) #define _CORBA_INTERNAL_defined 1 typedef struct CORBA_INTERNAL_type CORBA_INTERNAL; struct CORBA_INTERNAL_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_INTERNAL_0) #define TC_IMPL_TC_CORBA_INTERNAL_0 'c' #define TC_IMPL_TC_CORBA_INTERNAL_1 'o' #define TC_IMPL_TC_CORBA_INTERNAL_2 'r' #define TC_IMPL_TC_CORBA_INTERNAL_3 'b' #define TC_IMPL_TC_CORBA_INTERNAL_4 'a' #define TC_IMPL_TC_CORBA_INTERNAL_5 '_' #define TC_IMPL_TC_CORBA_INTERNAL_6 'd' #define TC_IMPL_TC_CORBA_INTERNAL_7 'e' #define TC_IMPL_TC_CORBA_INTERNAL_8 'f' #define TC_IMPL_TC_CORBA_INTERNAL_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_INTERNAL_struct; #define TC_CORBA_INTERNAL ((CORBA_TypeCode)&TC_CORBA_INTERNAL_struct) #endif #define CORBA_INTERNAL__alloc() ((CORBA_INTERNAL *)ORBit_small_alloc (TC_CORBA_INTERNAL)) #define CORBA_INTERNAL__freekids(m,d) ORBit_small_freekids (TC_CORBA_INTERNAL,(m),(d)) #endif #undef ex_CORBA_MARSHAL #define ex_CORBA_MARSHAL "IDL:omg.org/CORBA/MARSHAL:1.0" #if !defined(_CORBA_MARSHAL_defined) #define _CORBA_MARSHAL_defined 1 typedef struct CORBA_MARSHAL_type CORBA_MARSHAL; struct CORBA_MARSHAL_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_MARSHAL_0) #define TC_IMPL_TC_CORBA_MARSHAL_0 'c' #define TC_IMPL_TC_CORBA_MARSHAL_1 'o' #define TC_IMPL_TC_CORBA_MARSHAL_2 'r' #define TC_IMPL_TC_CORBA_MARSHAL_3 'b' #define TC_IMPL_TC_CORBA_MARSHAL_4 'a' #define TC_IMPL_TC_CORBA_MARSHAL_5 '_' #define TC_IMPL_TC_CORBA_MARSHAL_6 'd' #define TC_IMPL_TC_CORBA_MARSHAL_7 'e' #define TC_IMPL_TC_CORBA_MARSHAL_8 'f' #define TC_IMPL_TC_CORBA_MARSHAL_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_MARSHAL_struct; #define TC_CORBA_MARSHAL ((CORBA_TypeCode)&TC_CORBA_MARSHAL_struct) #endif #define CORBA_MARSHAL__alloc() ((CORBA_MARSHAL *)ORBit_small_alloc (TC_CORBA_MARSHAL)) #define CORBA_MARSHAL__freekids(m,d) ORBit_small_freekids (TC_CORBA_MARSHAL,(m),(d)) #endif #undef ex_CORBA_INITIALIZE #define ex_CORBA_INITIALIZE "IDL:omg.org/CORBA/INITIALIZE:1.0" #if !defined(_CORBA_INITIALIZE_defined) #define _CORBA_INITIALIZE_defined 1 typedef struct CORBA_INITIALIZE_type CORBA_INITIALIZE; struct CORBA_INITIALIZE_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_INITIALIZE_0) #define TC_IMPL_TC_CORBA_INITIALIZE_0 'c' #define TC_IMPL_TC_CORBA_INITIALIZE_1 'o' #define TC_IMPL_TC_CORBA_INITIALIZE_2 'r' #define TC_IMPL_TC_CORBA_INITIALIZE_3 'b' #define TC_IMPL_TC_CORBA_INITIALIZE_4 'a' #define TC_IMPL_TC_CORBA_INITIALIZE_5 '_' #define TC_IMPL_TC_CORBA_INITIALIZE_6 'd' #define TC_IMPL_TC_CORBA_INITIALIZE_7 'e' #define TC_IMPL_TC_CORBA_INITIALIZE_8 'f' #define TC_IMPL_TC_CORBA_INITIALIZE_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_INITIALIZE_struct; #define TC_CORBA_INITIALIZE ((CORBA_TypeCode)&TC_CORBA_INITIALIZE_struct) #endif #define CORBA_INITIALIZE__alloc() ((CORBA_INITIALIZE *)ORBit_small_alloc (TC_CORBA_INITIALIZE)) #define CORBA_INITIALIZE__freekids(m,d) ORBit_small_freekids (TC_CORBA_INITIALIZE,(m),(d)) #endif #undef ex_CORBA_NO_IMPLEMENT #define ex_CORBA_NO_IMPLEMENT "IDL:omg.org/CORBA/NO_IMPLEMENT:1.0" #if !defined(_CORBA_NO_IMPLEMENT_defined) #define _CORBA_NO_IMPLEMENT_defined 1 typedef struct CORBA_NO_IMPLEMENT_type CORBA_NO_IMPLEMENT; struct CORBA_NO_IMPLEMENT_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_NO_IMPLEMENT_0) #define TC_IMPL_TC_CORBA_NO_IMPLEMENT_0 'c' #define TC_IMPL_TC_CORBA_NO_IMPLEMENT_1 'o' #define TC_IMPL_TC_CORBA_NO_IMPLEMENT_2 'r' #define TC_IMPL_TC_CORBA_NO_IMPLEMENT_3 'b' #define TC_IMPL_TC_CORBA_NO_IMPLEMENT_4 'a' #define TC_IMPL_TC_CORBA_NO_IMPLEMENT_5 '_' #define TC_IMPL_TC_CORBA_NO_IMPLEMENT_6 'd' #define TC_IMPL_TC_CORBA_NO_IMPLEMENT_7 'e' #define TC_IMPL_TC_CORBA_NO_IMPLEMENT_8 'f' #define TC_IMPL_TC_CORBA_NO_IMPLEMENT_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_NO_IMPLEMENT_struct; #define TC_CORBA_NO_IMPLEMENT ((CORBA_TypeCode)&TC_CORBA_NO_IMPLEMENT_struct) #endif #define CORBA_NO_IMPLEMENT__alloc() ((CORBA_NO_IMPLEMENT *)ORBit_small_alloc (TC_CORBA_NO_IMPLEMENT)) #define CORBA_NO_IMPLEMENT__freekids(m,d) ORBit_small_freekids (TC_CORBA_NO_IMPLEMENT,(m),(d)) #endif #undef ex_CORBA_BAD_TYPECODE #define ex_CORBA_BAD_TYPECODE "IDL:omg.org/CORBA/BAD_TYPECODE:1.0" #if !defined(_CORBA_BAD_TYPECODE_defined) #define _CORBA_BAD_TYPECODE_defined 1 typedef struct CORBA_BAD_TYPECODE_type CORBA_BAD_TYPECODE; struct CORBA_BAD_TYPECODE_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_BAD_TYPECODE_0) #define TC_IMPL_TC_CORBA_BAD_TYPECODE_0 'c' #define TC_IMPL_TC_CORBA_BAD_TYPECODE_1 'o' #define TC_IMPL_TC_CORBA_BAD_TYPECODE_2 'r' #define TC_IMPL_TC_CORBA_BAD_TYPECODE_3 'b' #define TC_IMPL_TC_CORBA_BAD_TYPECODE_4 'a' #define TC_IMPL_TC_CORBA_BAD_TYPECODE_5 '_' #define TC_IMPL_TC_CORBA_BAD_TYPECODE_6 'd' #define TC_IMPL_TC_CORBA_BAD_TYPECODE_7 'e' #define TC_IMPL_TC_CORBA_BAD_TYPECODE_8 'f' #define TC_IMPL_TC_CORBA_BAD_TYPECODE_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_BAD_TYPECODE_struct; #define TC_CORBA_BAD_TYPECODE ((CORBA_TypeCode)&TC_CORBA_BAD_TYPECODE_struct) #endif #define CORBA_BAD_TYPECODE__alloc() ((CORBA_BAD_TYPECODE *)ORBit_small_alloc (TC_CORBA_BAD_TYPECODE)) #define CORBA_BAD_TYPECODE__freekids(m,d) ORBit_small_freekids (TC_CORBA_BAD_TYPECODE,(m),(d)) #endif #undef ex_CORBA_BAD_OPERATION #define ex_CORBA_BAD_OPERATION "IDL:omg.org/CORBA/BAD_OPERATION:1.0" #if !defined(_CORBA_BAD_OPERATION_defined) #define _CORBA_BAD_OPERATION_defined 1 typedef struct CORBA_BAD_OPERATION_type CORBA_BAD_OPERATION; struct CORBA_BAD_OPERATION_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_BAD_OPERATION_0) #define TC_IMPL_TC_CORBA_BAD_OPERATION_0 'c' #define TC_IMPL_TC_CORBA_BAD_OPERATION_1 'o' #define TC_IMPL_TC_CORBA_BAD_OPERATION_2 'r' #define TC_IMPL_TC_CORBA_BAD_OPERATION_3 'b' #define TC_IMPL_TC_CORBA_BAD_OPERATION_4 'a' #define TC_IMPL_TC_CORBA_BAD_OPERATION_5 '_' #define TC_IMPL_TC_CORBA_BAD_OPERATION_6 'd' #define TC_IMPL_TC_CORBA_BAD_OPERATION_7 'e' #define TC_IMPL_TC_CORBA_BAD_OPERATION_8 'f' #define TC_IMPL_TC_CORBA_BAD_OPERATION_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_BAD_OPERATION_struct; #define TC_CORBA_BAD_OPERATION ((CORBA_TypeCode)&TC_CORBA_BAD_OPERATION_struct) #endif #define CORBA_BAD_OPERATION__alloc() ((CORBA_BAD_OPERATION *)ORBit_small_alloc (TC_CORBA_BAD_OPERATION)) #define CORBA_BAD_OPERATION__freekids(m,d) ORBit_small_freekids (TC_CORBA_BAD_OPERATION,(m),(d)) #endif #undef ex_CORBA_NO_RESOURCES #define ex_CORBA_NO_RESOURCES "IDL:omg.org/CORBA/NO_RESOURCES:1.0" #if !defined(_CORBA_NO_RESOURCES_defined) #define _CORBA_NO_RESOURCES_defined 1 typedef struct CORBA_NO_RESOURCES_type CORBA_NO_RESOURCES; struct CORBA_NO_RESOURCES_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_NO_RESOURCES_0) #define TC_IMPL_TC_CORBA_NO_RESOURCES_0 'c' #define TC_IMPL_TC_CORBA_NO_RESOURCES_1 'o' #define TC_IMPL_TC_CORBA_NO_RESOURCES_2 'r' #define TC_IMPL_TC_CORBA_NO_RESOURCES_3 'b' #define TC_IMPL_TC_CORBA_NO_RESOURCES_4 'a' #define TC_IMPL_TC_CORBA_NO_RESOURCES_5 '_' #define TC_IMPL_TC_CORBA_NO_RESOURCES_6 'd' #define TC_IMPL_TC_CORBA_NO_RESOURCES_7 'e' #define TC_IMPL_TC_CORBA_NO_RESOURCES_8 'f' #define TC_IMPL_TC_CORBA_NO_RESOURCES_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_NO_RESOURCES_struct; #define TC_CORBA_NO_RESOURCES ((CORBA_TypeCode)&TC_CORBA_NO_RESOURCES_struct) #endif #define CORBA_NO_RESOURCES__alloc() ((CORBA_NO_RESOURCES *)ORBit_small_alloc (TC_CORBA_NO_RESOURCES)) #define CORBA_NO_RESOURCES__freekids(m,d) ORBit_small_freekids (TC_CORBA_NO_RESOURCES,(m),(d)) #endif #undef ex_CORBA_NO_RESPONSE #define ex_CORBA_NO_RESPONSE "IDL:omg.org/CORBA/NO_RESPONSE:1.0" #if !defined(_CORBA_NO_RESPONSE_defined) #define _CORBA_NO_RESPONSE_defined 1 typedef struct CORBA_NO_RESPONSE_type CORBA_NO_RESPONSE; struct CORBA_NO_RESPONSE_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_NO_RESPONSE_0) #define TC_IMPL_TC_CORBA_NO_RESPONSE_0 'c' #define TC_IMPL_TC_CORBA_NO_RESPONSE_1 'o' #define TC_IMPL_TC_CORBA_NO_RESPONSE_2 'r' #define TC_IMPL_TC_CORBA_NO_RESPONSE_3 'b' #define TC_IMPL_TC_CORBA_NO_RESPONSE_4 'a' #define TC_IMPL_TC_CORBA_NO_RESPONSE_5 '_' #define TC_IMPL_TC_CORBA_NO_RESPONSE_6 'd' #define TC_IMPL_TC_CORBA_NO_RESPONSE_7 'e' #define TC_IMPL_TC_CORBA_NO_RESPONSE_8 'f' #define TC_IMPL_TC_CORBA_NO_RESPONSE_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_NO_RESPONSE_struct; #define TC_CORBA_NO_RESPONSE ((CORBA_TypeCode)&TC_CORBA_NO_RESPONSE_struct) #endif #define CORBA_NO_RESPONSE__alloc() ((CORBA_NO_RESPONSE *)ORBit_small_alloc (TC_CORBA_NO_RESPONSE)) #define CORBA_NO_RESPONSE__freekids(m,d) ORBit_small_freekids (TC_CORBA_NO_RESPONSE,(m),(d)) #endif #undef ex_CORBA_PERSIST_STORE #define ex_CORBA_PERSIST_STORE "IDL:omg.org/CORBA/PERSIST_STORE:1.0" #if !defined(_CORBA_PERSIST_STORE_defined) #define _CORBA_PERSIST_STORE_defined 1 typedef struct CORBA_PERSIST_STORE_type CORBA_PERSIST_STORE; struct CORBA_PERSIST_STORE_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_PERSIST_STORE_0) #define TC_IMPL_TC_CORBA_PERSIST_STORE_0 'c' #define TC_IMPL_TC_CORBA_PERSIST_STORE_1 'o' #define TC_IMPL_TC_CORBA_PERSIST_STORE_2 'r' #define TC_IMPL_TC_CORBA_PERSIST_STORE_3 'b' #define TC_IMPL_TC_CORBA_PERSIST_STORE_4 'a' #define TC_IMPL_TC_CORBA_PERSIST_STORE_5 '_' #define TC_IMPL_TC_CORBA_PERSIST_STORE_6 'd' #define TC_IMPL_TC_CORBA_PERSIST_STORE_7 'e' #define TC_IMPL_TC_CORBA_PERSIST_STORE_8 'f' #define TC_IMPL_TC_CORBA_PERSIST_STORE_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_PERSIST_STORE_struct; #define TC_CORBA_PERSIST_STORE ((CORBA_TypeCode)&TC_CORBA_PERSIST_STORE_struct) #endif #define CORBA_PERSIST_STORE__alloc() ((CORBA_PERSIST_STORE *)ORBit_small_alloc (TC_CORBA_PERSIST_STORE)) #define CORBA_PERSIST_STORE__freekids(m,d) ORBit_small_freekids (TC_CORBA_PERSIST_STORE,(m),(d)) #endif #undef ex_CORBA_BAD_INV_ORDER #define ex_CORBA_BAD_INV_ORDER "IDL:omg.org/CORBA/BAD_INV_ORDER:1.0" #if !defined(_CORBA_BAD_INV_ORDER_defined) #define _CORBA_BAD_INV_ORDER_defined 1 typedef struct CORBA_BAD_INV_ORDER_type CORBA_BAD_INV_ORDER; struct CORBA_BAD_INV_ORDER_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_BAD_INV_ORDER_0) #define TC_IMPL_TC_CORBA_BAD_INV_ORDER_0 'c' #define TC_IMPL_TC_CORBA_BAD_INV_ORDER_1 'o' #define TC_IMPL_TC_CORBA_BAD_INV_ORDER_2 'r' #define TC_IMPL_TC_CORBA_BAD_INV_ORDER_3 'b' #define TC_IMPL_TC_CORBA_BAD_INV_ORDER_4 'a' #define TC_IMPL_TC_CORBA_BAD_INV_ORDER_5 '_' #define TC_IMPL_TC_CORBA_BAD_INV_ORDER_6 'd' #define TC_IMPL_TC_CORBA_BAD_INV_ORDER_7 'e' #define TC_IMPL_TC_CORBA_BAD_INV_ORDER_8 'f' #define TC_IMPL_TC_CORBA_BAD_INV_ORDER_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_BAD_INV_ORDER_struct; #define TC_CORBA_BAD_INV_ORDER ((CORBA_TypeCode)&TC_CORBA_BAD_INV_ORDER_struct) #endif #define CORBA_BAD_INV_ORDER__alloc() ((CORBA_BAD_INV_ORDER *)ORBit_small_alloc (TC_CORBA_BAD_INV_ORDER)) #define CORBA_BAD_INV_ORDER__freekids(m,d) ORBit_small_freekids (TC_CORBA_BAD_INV_ORDER,(m),(d)) #endif #undef ex_CORBA_TRANSIENT #define ex_CORBA_TRANSIENT "IDL:omg.org/CORBA/TRANSIENT:1.0" #if !defined(_CORBA_TRANSIENT_defined) #define _CORBA_TRANSIENT_defined 1 typedef struct CORBA_TRANSIENT_type CORBA_TRANSIENT; struct CORBA_TRANSIENT_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_TRANSIENT_0) #define TC_IMPL_TC_CORBA_TRANSIENT_0 'c' #define TC_IMPL_TC_CORBA_TRANSIENT_1 'o' #define TC_IMPL_TC_CORBA_TRANSIENT_2 'r' #define TC_IMPL_TC_CORBA_TRANSIENT_3 'b' #define TC_IMPL_TC_CORBA_TRANSIENT_4 'a' #define TC_IMPL_TC_CORBA_TRANSIENT_5 '_' #define TC_IMPL_TC_CORBA_TRANSIENT_6 'd' #define TC_IMPL_TC_CORBA_TRANSIENT_7 'e' #define TC_IMPL_TC_CORBA_TRANSIENT_8 'f' #define TC_IMPL_TC_CORBA_TRANSIENT_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_TRANSIENT_struct; #define TC_CORBA_TRANSIENT ((CORBA_TypeCode)&TC_CORBA_TRANSIENT_struct) #endif #define CORBA_TRANSIENT__alloc() ((CORBA_TRANSIENT *)ORBit_small_alloc (TC_CORBA_TRANSIENT)) #define CORBA_TRANSIENT__freekids(m,d) ORBit_small_freekids (TC_CORBA_TRANSIENT,(m),(d)) #endif #undef ex_CORBA_FREE_MEM #define ex_CORBA_FREE_MEM "IDL:omg.org/CORBA/FREE_MEM:1.0" #if !defined(_CORBA_FREE_MEM_defined) #define _CORBA_FREE_MEM_defined 1 typedef struct CORBA_FREE_MEM_type CORBA_FREE_MEM; struct CORBA_FREE_MEM_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_FREE_MEM_0) #define TC_IMPL_TC_CORBA_FREE_MEM_0 'c' #define TC_IMPL_TC_CORBA_FREE_MEM_1 'o' #define TC_IMPL_TC_CORBA_FREE_MEM_2 'r' #define TC_IMPL_TC_CORBA_FREE_MEM_3 'b' #define TC_IMPL_TC_CORBA_FREE_MEM_4 'a' #define TC_IMPL_TC_CORBA_FREE_MEM_5 '_' #define TC_IMPL_TC_CORBA_FREE_MEM_6 'd' #define TC_IMPL_TC_CORBA_FREE_MEM_7 'e' #define TC_IMPL_TC_CORBA_FREE_MEM_8 'f' #define TC_IMPL_TC_CORBA_FREE_MEM_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_FREE_MEM_struct; #define TC_CORBA_FREE_MEM ((CORBA_TypeCode)&TC_CORBA_FREE_MEM_struct) #endif #define CORBA_FREE_MEM__alloc() ((CORBA_FREE_MEM *)ORBit_small_alloc (TC_CORBA_FREE_MEM)) #define CORBA_FREE_MEM__freekids(m,d) ORBit_small_freekids (TC_CORBA_FREE_MEM,(m),(d)) #endif #undef ex_CORBA_INV_IDENT #define ex_CORBA_INV_IDENT "IDL:omg.org/CORBA/INV_IDENT:1.0" #if !defined(_CORBA_INV_IDENT_defined) #define _CORBA_INV_IDENT_defined 1 typedef struct CORBA_INV_IDENT_type CORBA_INV_IDENT; struct CORBA_INV_IDENT_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_INV_IDENT_0) #define TC_IMPL_TC_CORBA_INV_IDENT_0 'c' #define TC_IMPL_TC_CORBA_INV_IDENT_1 'o' #define TC_IMPL_TC_CORBA_INV_IDENT_2 'r' #define TC_IMPL_TC_CORBA_INV_IDENT_3 'b' #define TC_IMPL_TC_CORBA_INV_IDENT_4 'a' #define TC_IMPL_TC_CORBA_INV_IDENT_5 '_' #define TC_IMPL_TC_CORBA_INV_IDENT_6 'd' #define TC_IMPL_TC_CORBA_INV_IDENT_7 'e' #define TC_IMPL_TC_CORBA_INV_IDENT_8 'f' #define TC_IMPL_TC_CORBA_INV_IDENT_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_INV_IDENT_struct; #define TC_CORBA_INV_IDENT ((CORBA_TypeCode)&TC_CORBA_INV_IDENT_struct) #endif #define CORBA_INV_IDENT__alloc() ((CORBA_INV_IDENT *)ORBit_small_alloc (TC_CORBA_INV_IDENT)) #define CORBA_INV_IDENT__freekids(m,d) ORBit_small_freekids (TC_CORBA_INV_IDENT,(m),(d)) #endif #undef ex_CORBA_INV_FLAG #define ex_CORBA_INV_FLAG "IDL:omg.org/CORBA/INV_FLAG:1.0" #if !defined(_CORBA_INV_FLAG_defined) #define _CORBA_INV_FLAG_defined 1 typedef struct CORBA_INV_FLAG_type CORBA_INV_FLAG; struct CORBA_INV_FLAG_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_INV_FLAG_0) #define TC_IMPL_TC_CORBA_INV_FLAG_0 'c' #define TC_IMPL_TC_CORBA_INV_FLAG_1 'o' #define TC_IMPL_TC_CORBA_INV_FLAG_2 'r' #define TC_IMPL_TC_CORBA_INV_FLAG_3 'b' #define TC_IMPL_TC_CORBA_INV_FLAG_4 'a' #define TC_IMPL_TC_CORBA_INV_FLAG_5 '_' #define TC_IMPL_TC_CORBA_INV_FLAG_6 'd' #define TC_IMPL_TC_CORBA_INV_FLAG_7 'e' #define TC_IMPL_TC_CORBA_INV_FLAG_8 'f' #define TC_IMPL_TC_CORBA_INV_FLAG_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_INV_FLAG_struct; #define TC_CORBA_INV_FLAG ((CORBA_TypeCode)&TC_CORBA_INV_FLAG_struct) #endif #define CORBA_INV_FLAG__alloc() ((CORBA_INV_FLAG *)ORBit_small_alloc (TC_CORBA_INV_FLAG)) #define CORBA_INV_FLAG__freekids(m,d) ORBit_small_freekids (TC_CORBA_INV_FLAG,(m),(d)) #endif #undef ex_CORBA_INTF_REPOS #define ex_CORBA_INTF_REPOS "IDL:omg.org/CORBA/INTF_REPOS:1.0" #if !defined(_CORBA_INTF_REPOS_defined) #define _CORBA_INTF_REPOS_defined 1 typedef struct CORBA_INTF_REPOS_type CORBA_INTF_REPOS; struct CORBA_INTF_REPOS_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_INTF_REPOS_0) #define TC_IMPL_TC_CORBA_INTF_REPOS_0 'c' #define TC_IMPL_TC_CORBA_INTF_REPOS_1 'o' #define TC_IMPL_TC_CORBA_INTF_REPOS_2 'r' #define TC_IMPL_TC_CORBA_INTF_REPOS_3 'b' #define TC_IMPL_TC_CORBA_INTF_REPOS_4 'a' #define TC_IMPL_TC_CORBA_INTF_REPOS_5 '_' #define TC_IMPL_TC_CORBA_INTF_REPOS_6 'd' #define TC_IMPL_TC_CORBA_INTF_REPOS_7 'e' #define TC_IMPL_TC_CORBA_INTF_REPOS_8 'f' #define TC_IMPL_TC_CORBA_INTF_REPOS_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_INTF_REPOS_struct; #define TC_CORBA_INTF_REPOS ((CORBA_TypeCode)&TC_CORBA_INTF_REPOS_struct) #endif #define CORBA_INTF_REPOS__alloc() ((CORBA_INTF_REPOS *)ORBit_small_alloc (TC_CORBA_INTF_REPOS)) #define CORBA_INTF_REPOS__freekids(m,d) ORBit_small_freekids (TC_CORBA_INTF_REPOS,(m),(d)) #endif #undef ex_CORBA_BAD_CONTEXT #define ex_CORBA_BAD_CONTEXT "IDL:omg.org/CORBA/BAD_CONTEXT:1.0" #if !defined(_CORBA_BAD_CONTEXT_defined) #define _CORBA_BAD_CONTEXT_defined 1 typedef struct CORBA_BAD_CONTEXT_type CORBA_BAD_CONTEXT; struct CORBA_BAD_CONTEXT_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_BAD_CONTEXT_0) #define TC_IMPL_TC_CORBA_BAD_CONTEXT_0 'c' #define TC_IMPL_TC_CORBA_BAD_CONTEXT_1 'o' #define TC_IMPL_TC_CORBA_BAD_CONTEXT_2 'r' #define TC_IMPL_TC_CORBA_BAD_CONTEXT_3 'b' #define TC_IMPL_TC_CORBA_BAD_CONTEXT_4 'a' #define TC_IMPL_TC_CORBA_BAD_CONTEXT_5 '_' #define TC_IMPL_TC_CORBA_BAD_CONTEXT_6 'd' #define TC_IMPL_TC_CORBA_BAD_CONTEXT_7 'e' #define TC_IMPL_TC_CORBA_BAD_CONTEXT_8 'f' #define TC_IMPL_TC_CORBA_BAD_CONTEXT_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_BAD_CONTEXT_struct; #define TC_CORBA_BAD_CONTEXT ((CORBA_TypeCode)&TC_CORBA_BAD_CONTEXT_struct) #endif #define CORBA_BAD_CONTEXT__alloc() ((CORBA_BAD_CONTEXT *)ORBit_small_alloc (TC_CORBA_BAD_CONTEXT)) #define CORBA_BAD_CONTEXT__freekids(m,d) ORBit_small_freekids (TC_CORBA_BAD_CONTEXT,(m),(d)) #endif #undef ex_CORBA_OBJ_ADAPTER #define ex_CORBA_OBJ_ADAPTER "IDL:omg.org/CORBA/OBJ_ADAPTER:1.0" #if !defined(_CORBA_OBJ_ADAPTER_defined) #define _CORBA_OBJ_ADAPTER_defined 1 typedef struct CORBA_OBJ_ADAPTER_type CORBA_OBJ_ADAPTER; struct CORBA_OBJ_ADAPTER_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_OBJ_ADAPTER_0) #define TC_IMPL_TC_CORBA_OBJ_ADAPTER_0 'c' #define TC_IMPL_TC_CORBA_OBJ_ADAPTER_1 'o' #define TC_IMPL_TC_CORBA_OBJ_ADAPTER_2 'r' #define TC_IMPL_TC_CORBA_OBJ_ADAPTER_3 'b' #define TC_IMPL_TC_CORBA_OBJ_ADAPTER_4 'a' #define TC_IMPL_TC_CORBA_OBJ_ADAPTER_5 '_' #define TC_IMPL_TC_CORBA_OBJ_ADAPTER_6 'd' #define TC_IMPL_TC_CORBA_OBJ_ADAPTER_7 'e' #define TC_IMPL_TC_CORBA_OBJ_ADAPTER_8 'f' #define TC_IMPL_TC_CORBA_OBJ_ADAPTER_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_OBJ_ADAPTER_struct; #define TC_CORBA_OBJ_ADAPTER ((CORBA_TypeCode)&TC_CORBA_OBJ_ADAPTER_struct) #endif #define CORBA_OBJ_ADAPTER__alloc() ((CORBA_OBJ_ADAPTER *)ORBit_small_alloc (TC_CORBA_OBJ_ADAPTER)) #define CORBA_OBJ_ADAPTER__freekids(m,d) ORBit_small_freekids (TC_CORBA_OBJ_ADAPTER,(m),(d)) #endif #undef ex_CORBA_DATA_CONVERSION #define ex_CORBA_DATA_CONVERSION "IDL:omg.org/CORBA/DATA_CONVERSION:1.0" #if !defined(_CORBA_DATA_CONVERSION_defined) #define _CORBA_DATA_CONVERSION_defined 1 typedef struct CORBA_DATA_CONVERSION_type CORBA_DATA_CONVERSION; struct CORBA_DATA_CONVERSION_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_DATA_CONVERSION_0) #define TC_IMPL_TC_CORBA_DATA_CONVERSION_0 'c' #define TC_IMPL_TC_CORBA_DATA_CONVERSION_1 'o' #define TC_IMPL_TC_CORBA_DATA_CONVERSION_2 'r' #define TC_IMPL_TC_CORBA_DATA_CONVERSION_3 'b' #define TC_IMPL_TC_CORBA_DATA_CONVERSION_4 'a' #define TC_IMPL_TC_CORBA_DATA_CONVERSION_5 '_' #define TC_IMPL_TC_CORBA_DATA_CONVERSION_6 'd' #define TC_IMPL_TC_CORBA_DATA_CONVERSION_7 'e' #define TC_IMPL_TC_CORBA_DATA_CONVERSION_8 'f' #define TC_IMPL_TC_CORBA_DATA_CONVERSION_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_DATA_CONVERSION_struct; #define TC_CORBA_DATA_CONVERSION ((CORBA_TypeCode)&TC_CORBA_DATA_CONVERSION_struct) #endif #define CORBA_DATA_CONVERSION__alloc() ((CORBA_DATA_CONVERSION *)ORBit_small_alloc (TC_CORBA_DATA_CONVERSION)) #define CORBA_DATA_CONVERSION__freekids(m,d) ORBit_small_freekids (TC_CORBA_DATA_CONVERSION,(m),(d)) #endif #undef ex_CORBA_OBJECT_NOT_EXIST #define ex_CORBA_OBJECT_NOT_EXIST "IDL:omg.org/CORBA/OBJECT_NOT_EXIST:1.0" #if !defined(_CORBA_OBJECT_NOT_EXIST_defined) #define _CORBA_OBJECT_NOT_EXIST_defined 1 typedef struct CORBA_OBJECT_NOT_EXIST_type CORBA_OBJECT_NOT_EXIST; struct CORBA_OBJECT_NOT_EXIST_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_OBJECT_NOT_EXIST_0) #define TC_IMPL_TC_CORBA_OBJECT_NOT_EXIST_0 'c' #define TC_IMPL_TC_CORBA_OBJECT_NOT_EXIST_1 'o' #define TC_IMPL_TC_CORBA_OBJECT_NOT_EXIST_2 'r' #define TC_IMPL_TC_CORBA_OBJECT_NOT_EXIST_3 'b' #define TC_IMPL_TC_CORBA_OBJECT_NOT_EXIST_4 'a' #define TC_IMPL_TC_CORBA_OBJECT_NOT_EXIST_5 '_' #define TC_IMPL_TC_CORBA_OBJECT_NOT_EXIST_6 'd' #define TC_IMPL_TC_CORBA_OBJECT_NOT_EXIST_7 'e' #define TC_IMPL_TC_CORBA_OBJECT_NOT_EXIST_8 'f' #define TC_IMPL_TC_CORBA_OBJECT_NOT_EXIST_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_OBJECT_NOT_EXIST_struct; #define TC_CORBA_OBJECT_NOT_EXIST ((CORBA_TypeCode)&TC_CORBA_OBJECT_NOT_EXIST_struct) #endif #define CORBA_OBJECT_NOT_EXIST__alloc() ((CORBA_OBJECT_NOT_EXIST *)ORBit_small_alloc (TC_CORBA_OBJECT_NOT_EXIST)) #define CORBA_OBJECT_NOT_EXIST__freekids(m,d) ORBit_small_freekids (TC_CORBA_OBJECT_NOT_EXIST,(m),(d)) #endif #undef ex_CORBA_TRANSACTION_REQUIRED #define ex_CORBA_TRANSACTION_REQUIRED "IDL:omg.org/CORBA/TRANSACTION_REQUIRED:1.0" #if !defined(_CORBA_TRANSACTION_REQUIRED_defined) #define _CORBA_TRANSACTION_REQUIRED_defined 1 typedef struct CORBA_TRANSACTION_REQUIRED_type CORBA_TRANSACTION_REQUIRED; struct CORBA_TRANSACTION_REQUIRED_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_TRANSACTION_REQUIRED_0) #define TC_IMPL_TC_CORBA_TRANSACTION_REQUIRED_0 'c' #define TC_IMPL_TC_CORBA_TRANSACTION_REQUIRED_1 'o' #define TC_IMPL_TC_CORBA_TRANSACTION_REQUIRED_2 'r' #define TC_IMPL_TC_CORBA_TRANSACTION_REQUIRED_3 'b' #define TC_IMPL_TC_CORBA_TRANSACTION_REQUIRED_4 'a' #define TC_IMPL_TC_CORBA_TRANSACTION_REQUIRED_5 '_' #define TC_IMPL_TC_CORBA_TRANSACTION_REQUIRED_6 'd' #define TC_IMPL_TC_CORBA_TRANSACTION_REQUIRED_7 'e' #define TC_IMPL_TC_CORBA_TRANSACTION_REQUIRED_8 'f' #define TC_IMPL_TC_CORBA_TRANSACTION_REQUIRED_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_TRANSACTION_REQUIRED_struct; #define TC_CORBA_TRANSACTION_REQUIRED ((CORBA_TypeCode)&TC_CORBA_TRANSACTION_REQUIRED_struct) #endif #define CORBA_TRANSACTION_REQUIRED__alloc() ((CORBA_TRANSACTION_REQUIRED *)ORBit_small_alloc (TC_CORBA_TRANSACTION_REQUIRED)) #define CORBA_TRANSACTION_REQUIRED__freekids(m,d) ORBit_small_freekids (TC_CORBA_TRANSACTION_REQUIRED,(m),(d)) #endif #undef ex_CORBA_TRANSACTION_ROLLEDBACK #define ex_CORBA_TRANSACTION_ROLLEDBACK "IDL:omg.org/CORBA/TRANSACTION_ROLLEDBACK:1.0" #if !defined(_CORBA_TRANSACTION_ROLLEDBACK_defined) #define _CORBA_TRANSACTION_ROLLEDBACK_defined 1 typedef struct CORBA_TRANSACTION_ROLLEDBACK_type CORBA_TRANSACTION_ROLLEDBACK; struct CORBA_TRANSACTION_ROLLEDBACK_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_TRANSACTION_ROLLEDBACK_0) #define TC_IMPL_TC_CORBA_TRANSACTION_ROLLEDBACK_0 'c' #define TC_IMPL_TC_CORBA_TRANSACTION_ROLLEDBACK_1 'o' #define TC_IMPL_TC_CORBA_TRANSACTION_ROLLEDBACK_2 'r' #define TC_IMPL_TC_CORBA_TRANSACTION_ROLLEDBACK_3 'b' #define TC_IMPL_TC_CORBA_TRANSACTION_ROLLEDBACK_4 'a' #define TC_IMPL_TC_CORBA_TRANSACTION_ROLLEDBACK_5 '_' #define TC_IMPL_TC_CORBA_TRANSACTION_ROLLEDBACK_6 'd' #define TC_IMPL_TC_CORBA_TRANSACTION_ROLLEDBACK_7 'e' #define TC_IMPL_TC_CORBA_TRANSACTION_ROLLEDBACK_8 'f' #define TC_IMPL_TC_CORBA_TRANSACTION_ROLLEDBACK_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_TRANSACTION_ROLLEDBACK_struct; #define TC_CORBA_TRANSACTION_ROLLEDBACK ((CORBA_TypeCode)&TC_CORBA_TRANSACTION_ROLLEDBACK_struct) #endif #define CORBA_TRANSACTION_ROLLEDBACK__alloc() ((CORBA_TRANSACTION_ROLLEDBACK *)ORBit_small_alloc (TC_CORBA_TRANSACTION_ROLLEDBACK)) #define CORBA_TRANSACTION_ROLLEDBACK__freekids(m,d) ORBit_small_freekids (TC_CORBA_TRANSACTION_ROLLEDBACK,(m),(d)) #endif #undef ex_CORBA_INVALID_TRANSACTION #define ex_CORBA_INVALID_TRANSACTION "IDL:omg.org/CORBA/INVALID_TRANSACTION:1.0" #if !defined(_CORBA_INVALID_TRANSACTION_defined) #define _CORBA_INVALID_TRANSACTION_defined 1 typedef struct CORBA_INVALID_TRANSACTION_type CORBA_INVALID_TRANSACTION; struct CORBA_INVALID_TRANSACTION_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_INVALID_TRANSACTION_0) #define TC_IMPL_TC_CORBA_INVALID_TRANSACTION_0 'c' #define TC_IMPL_TC_CORBA_INVALID_TRANSACTION_1 'o' #define TC_IMPL_TC_CORBA_INVALID_TRANSACTION_2 'r' #define TC_IMPL_TC_CORBA_INVALID_TRANSACTION_3 'b' #define TC_IMPL_TC_CORBA_INVALID_TRANSACTION_4 'a' #define TC_IMPL_TC_CORBA_INVALID_TRANSACTION_5 '_' #define TC_IMPL_TC_CORBA_INVALID_TRANSACTION_6 'd' #define TC_IMPL_TC_CORBA_INVALID_TRANSACTION_7 'e' #define TC_IMPL_TC_CORBA_INVALID_TRANSACTION_8 'f' #define TC_IMPL_TC_CORBA_INVALID_TRANSACTION_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_INVALID_TRANSACTION_struct; #define TC_CORBA_INVALID_TRANSACTION ((CORBA_TypeCode)&TC_CORBA_INVALID_TRANSACTION_struct) #endif #define CORBA_INVALID_TRANSACTION__alloc() ((CORBA_INVALID_TRANSACTION *)ORBit_small_alloc (TC_CORBA_INVALID_TRANSACTION)) #define CORBA_INVALID_TRANSACTION__freekids(m,d) ORBit_small_freekids (TC_CORBA_INVALID_TRANSACTION,(m),(d)) #endif #undef ex_CORBA_INV_POLICY #define ex_CORBA_INV_POLICY "IDL:omg.org/CORBA/INV_POLICY:1.0" #if !defined(_CORBA_INV_POLICY_defined) #define _CORBA_INV_POLICY_defined 1 typedef struct CORBA_INV_POLICY_type CORBA_INV_POLICY; struct CORBA_INV_POLICY_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_INV_POLICY_0) #define TC_IMPL_TC_CORBA_INV_POLICY_0 'c' #define TC_IMPL_TC_CORBA_INV_POLICY_1 'o' #define TC_IMPL_TC_CORBA_INV_POLICY_2 'r' #define TC_IMPL_TC_CORBA_INV_POLICY_3 'b' #define TC_IMPL_TC_CORBA_INV_POLICY_4 'a' #define TC_IMPL_TC_CORBA_INV_POLICY_5 '_' #define TC_IMPL_TC_CORBA_INV_POLICY_6 'd' #define TC_IMPL_TC_CORBA_INV_POLICY_7 'e' #define TC_IMPL_TC_CORBA_INV_POLICY_8 'f' #define TC_IMPL_TC_CORBA_INV_POLICY_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_INV_POLICY_struct; #define TC_CORBA_INV_POLICY ((CORBA_TypeCode)&TC_CORBA_INV_POLICY_struct) #endif #define CORBA_INV_POLICY__alloc() ((CORBA_INV_POLICY *)ORBit_small_alloc (TC_CORBA_INV_POLICY)) #define CORBA_INV_POLICY__freekids(m,d) ORBit_small_freekids (TC_CORBA_INV_POLICY,(m),(d)) #endif #undef ex_CORBA_CODESET_INCOMPATIBLE #define ex_CORBA_CODESET_INCOMPATIBLE "IDL:omg.org/CORBA/CODESET_INCOMPATIBLE:1.0" #if !defined(_CORBA_CODESET_INCOMPATIBLE_defined) #define _CORBA_CODESET_INCOMPATIBLE_defined 1 typedef struct CORBA_CODESET_INCOMPATIBLE_type CORBA_CODESET_INCOMPATIBLE; struct CORBA_CODESET_INCOMPATIBLE_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_CODESET_INCOMPATIBLE_0) #define TC_IMPL_TC_CORBA_CODESET_INCOMPATIBLE_0 'c' #define TC_IMPL_TC_CORBA_CODESET_INCOMPATIBLE_1 'o' #define TC_IMPL_TC_CORBA_CODESET_INCOMPATIBLE_2 'r' #define TC_IMPL_TC_CORBA_CODESET_INCOMPATIBLE_3 'b' #define TC_IMPL_TC_CORBA_CODESET_INCOMPATIBLE_4 'a' #define TC_IMPL_TC_CORBA_CODESET_INCOMPATIBLE_5 '_' #define TC_IMPL_TC_CORBA_CODESET_INCOMPATIBLE_6 'd' #define TC_IMPL_TC_CORBA_CODESET_INCOMPATIBLE_7 'e' #define TC_IMPL_TC_CORBA_CODESET_INCOMPATIBLE_8 'f' #define TC_IMPL_TC_CORBA_CODESET_INCOMPATIBLE_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_CODESET_INCOMPATIBLE_struct; #define TC_CORBA_CODESET_INCOMPATIBLE ((CORBA_TypeCode)&TC_CORBA_CODESET_INCOMPATIBLE_struct) #endif #define CORBA_CODESET_INCOMPATIBLE__alloc() ((CORBA_CODESET_INCOMPATIBLE *)ORBit_small_alloc (TC_CORBA_CODESET_INCOMPATIBLE)) #define CORBA_CODESET_INCOMPATIBLE__freekids(m,d) ORBit_small_freekids (TC_CORBA_CODESET_INCOMPATIBLE,(m),(d)) #endif #undef ex_CORBA_REBIND #define ex_CORBA_REBIND "IDL:omg.org/CORBA/REBIND:1.0" #if !defined(_CORBA_REBIND_defined) #define _CORBA_REBIND_defined 1 typedef struct CORBA_REBIND_type CORBA_REBIND; struct CORBA_REBIND_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_REBIND_0) #define TC_IMPL_TC_CORBA_REBIND_0 'c' #define TC_IMPL_TC_CORBA_REBIND_1 'o' #define TC_IMPL_TC_CORBA_REBIND_2 'r' #define TC_IMPL_TC_CORBA_REBIND_3 'b' #define TC_IMPL_TC_CORBA_REBIND_4 'a' #define TC_IMPL_TC_CORBA_REBIND_5 '_' #define TC_IMPL_TC_CORBA_REBIND_6 'd' #define TC_IMPL_TC_CORBA_REBIND_7 'e' #define TC_IMPL_TC_CORBA_REBIND_8 'f' #define TC_IMPL_TC_CORBA_REBIND_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_REBIND_struct; #define TC_CORBA_REBIND ((CORBA_TypeCode)&TC_CORBA_REBIND_struct) #endif #define CORBA_REBIND__alloc() ((CORBA_REBIND *)ORBit_small_alloc (TC_CORBA_REBIND)) #define CORBA_REBIND__freekids(m,d) ORBit_small_freekids (TC_CORBA_REBIND,(m),(d)) #endif #undef ex_CORBA_TIMEOUT #define ex_CORBA_TIMEOUT "IDL:omg.org/CORBA/TIMEOUT:1.0" #if !defined(_CORBA_TIMEOUT_defined) #define _CORBA_TIMEOUT_defined 1 typedef struct CORBA_TIMEOUT_type CORBA_TIMEOUT; struct CORBA_TIMEOUT_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_TIMEOUT_0) #define TC_IMPL_TC_CORBA_TIMEOUT_0 'c' #define TC_IMPL_TC_CORBA_TIMEOUT_1 'o' #define TC_IMPL_TC_CORBA_TIMEOUT_2 'r' #define TC_IMPL_TC_CORBA_TIMEOUT_3 'b' #define TC_IMPL_TC_CORBA_TIMEOUT_4 'a' #define TC_IMPL_TC_CORBA_TIMEOUT_5 '_' #define TC_IMPL_TC_CORBA_TIMEOUT_6 'd' #define TC_IMPL_TC_CORBA_TIMEOUT_7 'e' #define TC_IMPL_TC_CORBA_TIMEOUT_8 'f' #define TC_IMPL_TC_CORBA_TIMEOUT_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_TIMEOUT_struct; #define TC_CORBA_TIMEOUT ((CORBA_TypeCode)&TC_CORBA_TIMEOUT_struct) #endif #define CORBA_TIMEOUT__alloc() ((CORBA_TIMEOUT *)ORBit_small_alloc (TC_CORBA_TIMEOUT)) #define CORBA_TIMEOUT__freekids(m,d) ORBit_small_freekids (TC_CORBA_TIMEOUT,(m),(d)) #endif #undef ex_CORBA_TRANSACTION_UNAVAILABLE #define ex_CORBA_TRANSACTION_UNAVAILABLE "IDL:omg.org/CORBA/TRANSACTION_UNAVAILABLE:1.0" #if !defined(_CORBA_TRANSACTION_UNAVAILABLE_defined) #define _CORBA_TRANSACTION_UNAVAILABLE_defined 1 typedef struct CORBA_TRANSACTION_UNAVAILABLE_type CORBA_TRANSACTION_UNAVAILABLE; struct CORBA_TRANSACTION_UNAVAILABLE_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_TRANSACTION_UNAVAILABLE_0) #define TC_IMPL_TC_CORBA_TRANSACTION_UNAVAILABLE_0 'c' #define TC_IMPL_TC_CORBA_TRANSACTION_UNAVAILABLE_1 'o' #define TC_IMPL_TC_CORBA_TRANSACTION_UNAVAILABLE_2 'r' #define TC_IMPL_TC_CORBA_TRANSACTION_UNAVAILABLE_3 'b' #define TC_IMPL_TC_CORBA_TRANSACTION_UNAVAILABLE_4 'a' #define TC_IMPL_TC_CORBA_TRANSACTION_UNAVAILABLE_5 '_' #define TC_IMPL_TC_CORBA_TRANSACTION_UNAVAILABLE_6 'd' #define TC_IMPL_TC_CORBA_TRANSACTION_UNAVAILABLE_7 'e' #define TC_IMPL_TC_CORBA_TRANSACTION_UNAVAILABLE_8 'f' #define TC_IMPL_TC_CORBA_TRANSACTION_UNAVAILABLE_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_TRANSACTION_UNAVAILABLE_struct; #define TC_CORBA_TRANSACTION_UNAVAILABLE ((CORBA_TypeCode)&TC_CORBA_TRANSACTION_UNAVAILABLE_struct) #endif #define CORBA_TRANSACTION_UNAVAILABLE__alloc() ((CORBA_TRANSACTION_UNAVAILABLE *)ORBit_small_alloc (TC_CORBA_TRANSACTION_UNAVAILABLE)) #define CORBA_TRANSACTION_UNAVAILABLE__freekids(m,d) ORBit_small_freekids (TC_CORBA_TRANSACTION_UNAVAILABLE,(m),(d)) #endif #undef ex_CORBA_TRANSACTION_MODE #define ex_CORBA_TRANSACTION_MODE "IDL:omg.org/CORBA/TRANSACTION_MODE:1.0" #if !defined(_CORBA_TRANSACTION_MODE_defined) #define _CORBA_TRANSACTION_MODE_defined 1 typedef struct CORBA_TRANSACTION_MODE_type CORBA_TRANSACTION_MODE; struct CORBA_TRANSACTION_MODE_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_TRANSACTION_MODE_0) #define TC_IMPL_TC_CORBA_TRANSACTION_MODE_0 'c' #define TC_IMPL_TC_CORBA_TRANSACTION_MODE_1 'o' #define TC_IMPL_TC_CORBA_TRANSACTION_MODE_2 'r' #define TC_IMPL_TC_CORBA_TRANSACTION_MODE_3 'b' #define TC_IMPL_TC_CORBA_TRANSACTION_MODE_4 'a' #define TC_IMPL_TC_CORBA_TRANSACTION_MODE_5 '_' #define TC_IMPL_TC_CORBA_TRANSACTION_MODE_6 'd' #define TC_IMPL_TC_CORBA_TRANSACTION_MODE_7 'e' #define TC_IMPL_TC_CORBA_TRANSACTION_MODE_8 'f' #define TC_IMPL_TC_CORBA_TRANSACTION_MODE_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_TRANSACTION_MODE_struct; #define TC_CORBA_TRANSACTION_MODE ((CORBA_TypeCode)&TC_CORBA_TRANSACTION_MODE_struct) #endif #define CORBA_TRANSACTION_MODE__alloc() ((CORBA_TRANSACTION_MODE *)ORBit_small_alloc (TC_CORBA_TRANSACTION_MODE)) #define CORBA_TRANSACTION_MODE__freekids(m,d) ORBit_small_freekids (TC_CORBA_TRANSACTION_MODE,(m),(d)) #endif #undef ex_CORBA_BAD_QOS #define ex_CORBA_BAD_QOS "IDL:omg.org/CORBA/BAD_QOS:1.0" #if !defined(_CORBA_BAD_QOS_defined) #define _CORBA_BAD_QOS_defined 1 typedef struct CORBA_BAD_QOS_type CORBA_BAD_QOS; struct CORBA_BAD_QOS_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_BAD_QOS_0) #define TC_IMPL_TC_CORBA_BAD_QOS_0 'c' #define TC_IMPL_TC_CORBA_BAD_QOS_1 'o' #define TC_IMPL_TC_CORBA_BAD_QOS_2 'r' #define TC_IMPL_TC_CORBA_BAD_QOS_3 'b' #define TC_IMPL_TC_CORBA_BAD_QOS_4 'a' #define TC_IMPL_TC_CORBA_BAD_QOS_5 '_' #define TC_IMPL_TC_CORBA_BAD_QOS_6 'd' #define TC_IMPL_TC_CORBA_BAD_QOS_7 'e' #define TC_IMPL_TC_CORBA_BAD_QOS_8 'f' #define TC_IMPL_TC_CORBA_BAD_QOS_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_BAD_QOS_struct; #define TC_CORBA_BAD_QOS ((CORBA_TypeCode)&TC_CORBA_BAD_QOS_struct) #endif #define CORBA_BAD_QOS__alloc() ((CORBA_BAD_QOS *)ORBit_small_alloc (TC_CORBA_BAD_QOS)) #define CORBA_BAD_QOS__freekids(m,d) ORBit_small_freekids (TC_CORBA_BAD_QOS,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_Current) && !defined(_CORBA_Current_defined) #define ORBIT_DECL_CORBA_Current 1 #define _CORBA_Current_defined 1 #define CORBA_Current__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_Current; extern CORBA_unsigned_long CORBA_Current__classid; #if !defined(TC_IMPL_TC_CORBA_Current_0) #define TC_IMPL_TC_CORBA_Current_0 'c' #define TC_IMPL_TC_CORBA_Current_1 'o' #define TC_IMPL_TC_CORBA_Current_2 'r' #define TC_IMPL_TC_CORBA_Current_3 'b' #define TC_IMPL_TC_CORBA_Current_4 'a' #define TC_IMPL_TC_CORBA_Current_5 '_' #define TC_IMPL_TC_CORBA_Current_6 'd' #define TC_IMPL_TC_CORBA_Current_7 'e' #define TC_IMPL_TC_CORBA_Current_8 'f' #define TC_IMPL_TC_CORBA_Current_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_Current_struct; #define TC_CORBA_Current ((CORBA_TypeCode)&TC_CORBA_Current_struct) #endif #endif #if !defined(_CORBA_PolicyType_defined) #define _CORBA_PolicyType_defined 1 typedef CORBA_unsigned_long CORBA_PolicyType; #define CORBA_PolicyType_marshal(x,y,z) CORBA_unsigned_long_marshal((x),(y),(z)) #define CORBA_PolicyType_demarshal(x,y,z,i) CORBA_unsigned_long_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_PolicyType_0) #define TC_IMPL_TC_CORBA_PolicyType_0 'c' #define TC_IMPL_TC_CORBA_PolicyType_1 'o' #define TC_IMPL_TC_CORBA_PolicyType_2 'r' #define TC_IMPL_TC_CORBA_PolicyType_3 'b' #define TC_IMPL_TC_CORBA_PolicyType_4 'a' #define TC_IMPL_TC_CORBA_PolicyType_5 '_' #define TC_IMPL_TC_CORBA_PolicyType_6 'd' #define TC_IMPL_TC_CORBA_PolicyType_7 'e' #define TC_IMPL_TC_CORBA_PolicyType_8 'f' #define TC_IMPL_TC_CORBA_PolicyType_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_PolicyType_struct; #define TC_CORBA_PolicyType ((CORBA_TypeCode)&TC_CORBA_PolicyType_struct) #endif #define CORBA_PolicyType__alloc() ((CORBA_PolicyType *)ORBit_small_alloc (TC_CORBA_unsigned_long)) #define CORBA_PolicyType__freekids(m,d) ORBit_small_freekids (TC_CORBA_unsigned_long,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_Policy) && !defined(_CORBA_Policy_defined) #define ORBIT_DECL_CORBA_Policy 1 #define _CORBA_Policy_defined 1 #define CORBA_Policy__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_Policy; extern CORBA_unsigned_long CORBA_Policy__classid; #if !defined(TC_IMPL_TC_CORBA_Policy_0) #define TC_IMPL_TC_CORBA_Policy_0 'c' #define TC_IMPL_TC_CORBA_Policy_1 'o' #define TC_IMPL_TC_CORBA_Policy_2 'r' #define TC_IMPL_TC_CORBA_Policy_3 'b' #define TC_IMPL_TC_CORBA_Policy_4 'a' #define TC_IMPL_TC_CORBA_Policy_5 '_' #define TC_IMPL_TC_CORBA_Policy_6 'd' #define TC_IMPL_TC_CORBA_Policy_7 'e' #define TC_IMPL_TC_CORBA_Policy_8 'f' #define TC_IMPL_TC_CORBA_Policy_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_Policy_struct; #define TC_CORBA_Policy ((CORBA_TypeCode)&TC_CORBA_Policy_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Object) #define ORBIT_DECL_CORBA_sequence_CORBA_Object 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_9 's' #if !defined(_CORBA_sequence_CORBA_Object_defined) #define _CORBA_sequence_CORBA_Object_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_Object* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_Object; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Object_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Object_struct; #define TC_CORBA_sequence_CORBA_Object ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Object_struct) #endif #define CORBA_sequence_CORBA_Object__alloc() ((CORBA_sequence_CORBA_Object *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Object)) #define CORBA_sequence_CORBA_Object__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Object,(m),(d)) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Policy) #define ORBIT_DECL_CORBA_sequence_CORBA_Policy 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Policy_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_Policy_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_Policy_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_Policy_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_Policy_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Policy_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Policy_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Policy_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Policy_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Policy_9 's' #if !defined(_CORBA_sequence_CORBA_Policy_defined) #define _CORBA_sequence_CORBA_Policy_defined 1 typedef CORBA_sequence_CORBA_Object CORBA_sequence_CORBA_Policy; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Policy_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Policy_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_Policy_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_Policy_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_Policy_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_Policy_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Policy_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Policy_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Policy_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Policy_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Policy_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Policy_struct; #define TC_CORBA_sequence_CORBA_Policy ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Policy_struct) #endif #define CORBA_sequence_CORBA_Policy__alloc CORBA_sequence_CORBA_Object__alloc #define CORBA_sequence_CORBA_Policy__freekids CORBA_sequence_CORBA_Object__freekids #define CORBA_sequence_CORBA_Policy_allocbuf CORBA_sequence_CORBA_Object_allocbuf #define CORBA_sequence_CORBA_Policy_marshal(x,y,z) CORBA_sequence_CORBA_Object_marshal((x),(y),(z)) #define CORBA_sequence_CORBA_Policy_demarshal(x,y,z,i) CORBA_sequence_CORBA_Object_demarshal((x),(y),(z),(i)) #endif #if !defined(_CORBA_PolicyList_defined) #define _CORBA_PolicyList_defined 1 typedef CORBA_sequence_CORBA_Policy CORBA_PolicyList; #define CORBA_PolicyList_marshal(x,y,z) CORBA_sequence_CORBA_Policy_marshal((x),(y),(z)) #define CORBA_PolicyList_demarshal(x,y,z,i) CORBA_sequence_CORBA_Policy_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_PolicyList_0) #define TC_IMPL_TC_CORBA_PolicyList_0 'c' #define TC_IMPL_TC_CORBA_PolicyList_1 'o' #define TC_IMPL_TC_CORBA_PolicyList_2 'r' #define TC_IMPL_TC_CORBA_PolicyList_3 'b' #define TC_IMPL_TC_CORBA_PolicyList_4 'a' #define TC_IMPL_TC_CORBA_PolicyList_5 '_' #define TC_IMPL_TC_CORBA_PolicyList_6 'd' #define TC_IMPL_TC_CORBA_PolicyList_7 'e' #define TC_IMPL_TC_CORBA_PolicyList_8 'f' #define TC_IMPL_TC_CORBA_PolicyList_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_PolicyList_struct; #define TC_CORBA_PolicyList ((CORBA_TypeCode)&TC_CORBA_PolicyList_struct) #endif #define CORBA_PolicyList__alloc() ((CORBA_PolicyList *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Policy)) #define CORBA_PolicyList__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Policy,(m),(d)) #define CORBA_PolicyList_allocbuf(l) ((CORBA_Policy*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Policy, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_unsigned_long) #define ORBIT_DECL_CORBA_sequence_CORBA_unsigned_long 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_9 's' #if !defined(_CORBA_sequence_CORBA_unsigned_long_defined) #define _CORBA_sequence_CORBA_unsigned_long_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_unsigned_long* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_unsigned_long; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_unsigned_long_struct; #define TC_CORBA_sequence_CORBA_unsigned_long ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_unsigned_long_struct) #endif #define CORBA_sequence_CORBA_unsigned_long__alloc() ((CORBA_sequence_CORBA_unsigned_long *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_unsigned_long)) #define CORBA_sequence_CORBA_unsigned_long__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_unsigned_long,(m),(d)) #define CORBA_sequence_CORBA_unsigned_long_allocbuf(l) ((CORBA_unsigned_long*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_unsigned_long, (l))) #define CORBA_sequence_CORBA_unsigned_long_allocbuf(l) ((CORBA_unsigned_long*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_unsigned_long, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_PolicyType) #define ORBIT_DECL_CORBA_sequence_CORBA_PolicyType 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_PolicyType_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_PolicyType_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_PolicyType_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_PolicyType_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_PolicyType_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_PolicyType_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_PolicyType_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_PolicyType_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_PolicyType_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_PolicyType_9 's' #if !defined(_CORBA_sequence_CORBA_PolicyType_defined) #define _CORBA_sequence_CORBA_PolicyType_defined 1 typedef CORBA_sequence_CORBA_unsigned_long CORBA_sequence_CORBA_PolicyType; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_PolicyType_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_PolicyType_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_PolicyType_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_PolicyType_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_PolicyType_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_PolicyType_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_PolicyType_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_PolicyType_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_PolicyType_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_PolicyType_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_PolicyType_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_PolicyType_struct; #define TC_CORBA_sequence_CORBA_PolicyType ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_PolicyType_struct) #endif #define CORBA_sequence_CORBA_PolicyType__alloc CORBA_sequence_CORBA_unsigned_long__alloc #define CORBA_sequence_CORBA_PolicyType__freekids CORBA_sequence_CORBA_unsigned_long__freekids #define CORBA_sequence_CORBA_PolicyType_allocbuf CORBA_sequence_CORBA_unsigned_long_allocbuf #define CORBA_sequence_CORBA_PolicyType_marshal(x,y,z) CORBA_sequence_CORBA_unsigned_long_marshal((x),(y),(z)) #define CORBA_sequence_CORBA_PolicyType_demarshal(x,y,z,i) CORBA_sequence_CORBA_unsigned_long_demarshal((x),(y),(z),(i)) #endif #if !defined(_CORBA_PolicyTypeSeq_defined) #define _CORBA_PolicyTypeSeq_defined 1 typedef CORBA_sequence_CORBA_PolicyType CORBA_PolicyTypeSeq; #define CORBA_PolicyTypeSeq_marshal(x,y,z) CORBA_sequence_CORBA_PolicyType_marshal((x),(y),(z)) #define CORBA_PolicyTypeSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_PolicyType_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_PolicyTypeSeq_0) #define TC_IMPL_TC_CORBA_PolicyTypeSeq_0 'c' #define TC_IMPL_TC_CORBA_PolicyTypeSeq_1 'o' #define TC_IMPL_TC_CORBA_PolicyTypeSeq_2 'r' #define TC_IMPL_TC_CORBA_PolicyTypeSeq_3 'b' #define TC_IMPL_TC_CORBA_PolicyTypeSeq_4 'a' #define TC_IMPL_TC_CORBA_PolicyTypeSeq_5 '_' #define TC_IMPL_TC_CORBA_PolicyTypeSeq_6 'd' #define TC_IMPL_TC_CORBA_PolicyTypeSeq_7 'e' #define TC_IMPL_TC_CORBA_PolicyTypeSeq_8 'f' #define TC_IMPL_TC_CORBA_PolicyTypeSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_PolicyTypeSeq_struct; #define TC_CORBA_PolicyTypeSeq ((CORBA_TypeCode)&TC_CORBA_PolicyTypeSeq_struct) #endif #define CORBA_PolicyTypeSeq__alloc() ((CORBA_PolicyTypeSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_PolicyType)) #define CORBA_PolicyTypeSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_PolicyType,(m),(d)) #define CORBA_PolicyTypeSeq_allocbuf(l) ((CORBA_PolicyType*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_PolicyType, (l))) #endif #undef ex_CORBA_InvalidPolicies #define ex_CORBA_InvalidPolicies "IDL:omg.org/CORBA/InvalidPolicies:1.0" #if !defined(_CORBA_InvalidPolicies_defined) #define _CORBA_InvalidPolicies_defined 1 typedef struct CORBA_InvalidPolicies_type CORBA_InvalidPolicies; #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_unsigned_short) #define ORBIT_DECL_CORBA_sequence_CORBA_unsigned_short 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_short_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_short_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_short_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_short_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_short_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_short_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_short_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_short_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_short_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_short_9 's' #if !defined(_CORBA_sequence_CORBA_unsigned_short_defined) #define _CORBA_sequence_CORBA_unsigned_short_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_unsigned_short* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_unsigned_short; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_unsigned_short_struct; #define TC_CORBA_sequence_CORBA_unsigned_short ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_unsigned_short_struct) #endif #define CORBA_sequence_CORBA_unsigned_short__alloc() ((CORBA_sequence_CORBA_unsigned_short *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_unsigned_short)) #define CORBA_sequence_CORBA_unsigned_short__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_unsigned_short,(m),(d)) #define CORBA_sequence_CORBA_unsigned_short_allocbuf(l) ((CORBA_unsigned_short*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_unsigned_short, (l))) #define CORBA_sequence_CORBA_unsigned_short_allocbuf(l) ((CORBA_unsigned_short*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_unsigned_short, (l))) #endif struct CORBA_InvalidPolicies_type { CORBA_sequence_CORBA_unsigned_short indices; }; #if !defined(TC_IMPL_TC_CORBA_InvalidPolicies_0) #define TC_IMPL_TC_CORBA_InvalidPolicies_0 'c' #define TC_IMPL_TC_CORBA_InvalidPolicies_1 'o' #define TC_IMPL_TC_CORBA_InvalidPolicies_2 'r' #define TC_IMPL_TC_CORBA_InvalidPolicies_3 'b' #define TC_IMPL_TC_CORBA_InvalidPolicies_4 'a' #define TC_IMPL_TC_CORBA_InvalidPolicies_5 '_' #define TC_IMPL_TC_CORBA_InvalidPolicies_6 'd' #define TC_IMPL_TC_CORBA_InvalidPolicies_7 'e' #define TC_IMPL_TC_CORBA_InvalidPolicies_8 'f' #define TC_IMPL_TC_CORBA_InvalidPolicies_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_InvalidPolicies_struct; #define TC_CORBA_InvalidPolicies ((CORBA_TypeCode)&TC_CORBA_InvalidPolicies_struct) #endif #define CORBA_InvalidPolicies__alloc() ((CORBA_InvalidPolicies *)ORBit_small_alloc (TC_CORBA_InvalidPolicies)) #define CORBA_InvalidPolicies__freekids(m,d) ORBit_small_freekids (TC_CORBA_InvalidPolicies,(m),(d)) #endif #if !defined(_CORBA_PolicyErrorCode_defined) #define _CORBA_PolicyErrorCode_defined 1 typedef CORBA_short CORBA_PolicyErrorCode; #define CORBA_PolicyErrorCode_marshal(x,y,z) CORBA_short_marshal((x),(y),(z)) #define CORBA_PolicyErrorCode_demarshal(x,y,z,i) CORBA_short_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_PolicyErrorCode_0) #define TC_IMPL_TC_CORBA_PolicyErrorCode_0 'c' #define TC_IMPL_TC_CORBA_PolicyErrorCode_1 'o' #define TC_IMPL_TC_CORBA_PolicyErrorCode_2 'r' #define TC_IMPL_TC_CORBA_PolicyErrorCode_3 'b' #define TC_IMPL_TC_CORBA_PolicyErrorCode_4 'a' #define TC_IMPL_TC_CORBA_PolicyErrorCode_5 '_' #define TC_IMPL_TC_CORBA_PolicyErrorCode_6 'd' #define TC_IMPL_TC_CORBA_PolicyErrorCode_7 'e' #define TC_IMPL_TC_CORBA_PolicyErrorCode_8 'f' #define TC_IMPL_TC_CORBA_PolicyErrorCode_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_PolicyErrorCode_struct; #define TC_CORBA_PolicyErrorCode ((CORBA_TypeCode)&TC_CORBA_PolicyErrorCode_struct) #endif #define CORBA_PolicyErrorCode__alloc() ((CORBA_PolicyErrorCode *)ORBit_small_alloc (TC_CORBA_short)) #define CORBA_PolicyErrorCode__freekids(m,d) ORBit_small_freekids (TC_CORBA_short,(m),(d)) #endif #undef ex_CORBA_PolicyError #define ex_CORBA_PolicyError "IDL:omg.org/CORBA/PolicyError:1.0" #if !defined(_CORBA_PolicyError_defined) #define _CORBA_PolicyError_defined 1 typedef struct CORBA_PolicyError_type CORBA_PolicyError; struct CORBA_PolicyError_type { CORBA_PolicyErrorCode reason; }; #if !defined(TC_IMPL_TC_CORBA_PolicyError_0) #define TC_IMPL_TC_CORBA_PolicyError_0 'c' #define TC_IMPL_TC_CORBA_PolicyError_1 'o' #define TC_IMPL_TC_CORBA_PolicyError_2 'r' #define TC_IMPL_TC_CORBA_PolicyError_3 'b' #define TC_IMPL_TC_CORBA_PolicyError_4 'a' #define TC_IMPL_TC_CORBA_PolicyError_5 '_' #define TC_IMPL_TC_CORBA_PolicyError_6 'd' #define TC_IMPL_TC_CORBA_PolicyError_7 'e' #define TC_IMPL_TC_CORBA_PolicyError_8 'f' #define TC_IMPL_TC_CORBA_PolicyError_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_PolicyError_struct; #define TC_CORBA_PolicyError ((CORBA_TypeCode)&TC_CORBA_PolicyError_struct) #endif #define CORBA_PolicyError__alloc() ((CORBA_PolicyError *)ORBit_small_alloc (TC_CORBA_PolicyError)) #define CORBA_PolicyError__freekids(m,d) ORBit_small_freekids (TC_CORBA_PolicyError,(m),(d)) #endif #ifndef CORBA_BAD_POLICY #define CORBA_BAD_POLICY 0 #endif /* !CORBA_BAD_POLICY */ #ifndef CORBA_UNSUPPORTED_POLICY #define CORBA_UNSUPPORTED_POLICY 1 #endif /* !CORBA_UNSUPPORTED_POLICY */ #ifndef CORBA_BAD_POLICY_TYPE #define CORBA_BAD_POLICY_TYPE 2 #endif /* !CORBA_BAD_POLICY_TYPE */ #ifndef CORBA_BAD_POLICY_VALUE #define CORBA_BAD_POLICY_VALUE 3 #endif /* !CORBA_BAD_POLICY_VALUE */ #ifndef CORBA_UNSUPPORTED_POLICY_VALUE #define CORBA_UNSUPPORTED_POLICY_VALUE 4 #endif /* !CORBA_UNSUPPORTED_POLICY_VALUE */ #if !defined(ORBIT_DECL_CORBA_DomainManager) && !defined(_CORBA_DomainManager_defined) #define ORBIT_DECL_CORBA_DomainManager 1 #define _CORBA_DomainManager_defined 1 #define CORBA_DomainManager__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_DomainManager; extern CORBA_unsigned_long CORBA_DomainManager__classid; #if !defined(TC_IMPL_TC_CORBA_DomainManager_0) #define TC_IMPL_TC_CORBA_DomainManager_0 'c' #define TC_IMPL_TC_CORBA_DomainManager_1 'o' #define TC_IMPL_TC_CORBA_DomainManager_2 'r' #define TC_IMPL_TC_CORBA_DomainManager_3 'b' #define TC_IMPL_TC_CORBA_DomainManager_4 'a' #define TC_IMPL_TC_CORBA_DomainManager_5 '_' #define TC_IMPL_TC_CORBA_DomainManager_6 'd' #define TC_IMPL_TC_CORBA_DomainManager_7 'e' #define TC_IMPL_TC_CORBA_DomainManager_8 'f' #define TC_IMPL_TC_CORBA_DomainManager_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_DomainManager_struct; #define TC_CORBA_DomainManager ((CORBA_TypeCode)&TC_CORBA_DomainManager_struct) #endif #endif #ifndef CORBA_SecConstruction #define CORBA_SecConstruction 11U #endif /* !CORBA_SecConstruction */ #if !defined(ORBIT_DECL_CORBA_ConstructionPolicy) && !defined(_CORBA_ConstructionPolicy_defined) #define ORBIT_DECL_CORBA_ConstructionPolicy 1 #define _CORBA_ConstructionPolicy_defined 1 #define CORBA_ConstructionPolicy__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ConstructionPolicy; extern CORBA_unsigned_long CORBA_ConstructionPolicy__classid; #if !defined(TC_IMPL_TC_CORBA_ConstructionPolicy_0) #define TC_IMPL_TC_CORBA_ConstructionPolicy_0 'c' #define TC_IMPL_TC_CORBA_ConstructionPolicy_1 'o' #define TC_IMPL_TC_CORBA_ConstructionPolicy_2 'r' #define TC_IMPL_TC_CORBA_ConstructionPolicy_3 'b' #define TC_IMPL_TC_CORBA_ConstructionPolicy_4 'a' #define TC_IMPL_TC_CORBA_ConstructionPolicy_5 '_' #define TC_IMPL_TC_CORBA_ConstructionPolicy_6 'd' #define TC_IMPL_TC_CORBA_ConstructionPolicy_7 'e' #define TC_IMPL_TC_CORBA_ConstructionPolicy_8 'f' #define TC_IMPL_TC_CORBA_ConstructionPolicy_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ConstructionPolicy_struct; #define TC_CORBA_ConstructionPolicy ((CORBA_TypeCode)&TC_CORBA_ConstructionPolicy_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Object) #define ORBIT_DECL_CORBA_sequence_CORBA_Object 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_9 's' #if !defined(_CORBA_sequence_CORBA_Object_defined) #define _CORBA_sequence_CORBA_Object_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_Object* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_Object; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Object_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Object_struct; #define TC_CORBA_sequence_CORBA_Object ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Object_struct) #endif #define CORBA_sequence_CORBA_Object__alloc() ((CORBA_sequence_CORBA_Object *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Object)) #define CORBA_sequence_CORBA_Object__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Object,(m),(d)) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_DomainManager) #define ORBIT_DECL_CORBA_sequence_CORBA_DomainManager 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_DomainManager_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_DomainManager_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_DomainManager_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_DomainManager_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_DomainManager_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_DomainManager_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_DomainManager_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_DomainManager_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_DomainManager_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_DomainManager_9 's' #if !defined(_CORBA_sequence_CORBA_DomainManager_defined) #define _CORBA_sequence_CORBA_DomainManager_defined 1 typedef CORBA_sequence_CORBA_Object CORBA_sequence_CORBA_DomainManager; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_DomainManager_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_DomainManager_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_DomainManager_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_DomainManager_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_DomainManager_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_DomainManager_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_DomainManager_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_DomainManager_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_DomainManager_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_DomainManager_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_DomainManager_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_DomainManager_struct; #define TC_CORBA_sequence_CORBA_DomainManager ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_DomainManager_struct) #endif #define CORBA_sequence_CORBA_DomainManager__alloc CORBA_sequence_CORBA_Object__alloc #define CORBA_sequence_CORBA_DomainManager__freekids CORBA_sequence_CORBA_Object__freekids #define CORBA_sequence_CORBA_DomainManager_allocbuf CORBA_sequence_CORBA_Object_allocbuf #define CORBA_sequence_CORBA_DomainManager_marshal(x,y,z) CORBA_sequence_CORBA_Object_marshal((x),(y),(z)) #define CORBA_sequence_CORBA_DomainManager_demarshal(x,y,z,i) CORBA_sequence_CORBA_Object_demarshal((x),(y),(z),(i)) #endif #if !defined(_CORBA_DomainManagersList_defined) #define _CORBA_DomainManagersList_defined 1 typedef CORBA_sequence_CORBA_DomainManager CORBA_DomainManagersList; #define CORBA_DomainManagersList_marshal(x,y,z) CORBA_sequence_CORBA_DomainManager_marshal((x),(y),(z)) #define CORBA_DomainManagersList_demarshal(x,y,z,i) CORBA_sequence_CORBA_DomainManager_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_DomainManagersList_0) #define TC_IMPL_TC_CORBA_DomainManagersList_0 'c' #define TC_IMPL_TC_CORBA_DomainManagersList_1 'o' #define TC_IMPL_TC_CORBA_DomainManagersList_2 'r' #define TC_IMPL_TC_CORBA_DomainManagersList_3 'b' #define TC_IMPL_TC_CORBA_DomainManagersList_4 'a' #define TC_IMPL_TC_CORBA_DomainManagersList_5 '_' #define TC_IMPL_TC_CORBA_DomainManagersList_6 'd' #define TC_IMPL_TC_CORBA_DomainManagersList_7 'e' #define TC_IMPL_TC_CORBA_DomainManagersList_8 'f' #define TC_IMPL_TC_CORBA_DomainManagersList_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_DomainManagersList_struct; #define TC_CORBA_DomainManagersList ((CORBA_TypeCode)&TC_CORBA_DomainManagersList_struct) #endif #define CORBA_DomainManagersList__alloc() ((CORBA_DomainManagersList *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_DomainManager)) #define CORBA_DomainManagersList__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_DomainManager,(m),(d)) #define CORBA_DomainManagersList_allocbuf(l) ((CORBA_DomainManager*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_DomainManager, (l))) #endif #if !defined(_CORBA_ScopedName_defined) #define _CORBA_ScopedName_defined 1 typedef CORBA_string CORBA_ScopedName; #define CORBA_ScopedName_marshal(x,y,z) CORBA_string_marshal((x),(y),(z)) #define CORBA_ScopedName_demarshal(x,y,z,i) CORBA_string_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ScopedName_0) #define TC_IMPL_TC_CORBA_ScopedName_0 'c' #define TC_IMPL_TC_CORBA_ScopedName_1 'o' #define TC_IMPL_TC_CORBA_ScopedName_2 'r' #define TC_IMPL_TC_CORBA_ScopedName_3 'b' #define TC_IMPL_TC_CORBA_ScopedName_4 'a' #define TC_IMPL_TC_CORBA_ScopedName_5 '_' #define TC_IMPL_TC_CORBA_ScopedName_6 'd' #define TC_IMPL_TC_CORBA_ScopedName_7 'e' #define TC_IMPL_TC_CORBA_ScopedName_8 'f' #define TC_IMPL_TC_CORBA_ScopedName_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ScopedName_struct; #define TC_CORBA_ScopedName ((CORBA_TypeCode)&TC_CORBA_ScopedName_struct) #endif #define CORBA_ScopedName__alloc() ((CORBA_ScopedName *)ORBit_small_alloc (TC_CORBA_string)) #define CORBA_ScopedName__freekids(m,d) ORBit_small_freekids (TC_CORBA_string,(m),(d)) #endif #if !defined(_CORBA_RepositoryId_defined) #define _CORBA_RepositoryId_defined 1 typedef CORBA_string CORBA_RepositoryId; #define CORBA_RepositoryId_marshal(x,y,z) CORBA_string_marshal((x),(y),(z)) #define CORBA_RepositoryId_demarshal(x,y,z,i) CORBA_string_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_RepositoryId_0) #define TC_IMPL_TC_CORBA_RepositoryId_0 'c' #define TC_IMPL_TC_CORBA_RepositoryId_1 'o' #define TC_IMPL_TC_CORBA_RepositoryId_2 'r' #define TC_IMPL_TC_CORBA_RepositoryId_3 'b' #define TC_IMPL_TC_CORBA_RepositoryId_4 'a' #define TC_IMPL_TC_CORBA_RepositoryId_5 '_' #define TC_IMPL_TC_CORBA_RepositoryId_6 'd' #define TC_IMPL_TC_CORBA_RepositoryId_7 'e' #define TC_IMPL_TC_CORBA_RepositoryId_8 'f' #define TC_IMPL_TC_CORBA_RepositoryId_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_RepositoryId_struct; #define TC_CORBA_RepositoryId ((CORBA_TypeCode)&TC_CORBA_RepositoryId_struct) #endif #define CORBA_RepositoryId__alloc() ((CORBA_RepositoryId *)ORBit_small_alloc (TC_CORBA_string)) #define CORBA_RepositoryId__freekids(m,d) ORBit_small_freekids (TC_CORBA_string,(m),(d)) #endif #if !defined(_CORBA_DefinitionKind_defined) #define _CORBA_DefinitionKind_defined 1 typedef enum { CORBA_dk_none, CORBA_dk_all, CORBA_dk_Attribute, CORBA_dk_Constant, CORBA_dk_Exception, CORBA_dk_Interface, CORBA_dk_Module, CORBA_dk_Operation, CORBA_dk_Typedef, CORBA_dk_Alias, CORBA_dk_Struct, CORBA_dk_Union, CORBA_dk_Enum, CORBA_dk_Primitive, CORBA_dk_String, CORBA_dk_Sequence, CORBA_dk_Array, CORBA_dk_Repository, CORBA_dk_Wstring, CORBA_dk_Fixed, CORBA_dk_Value, CORBA_dk_ValueBox, CORBA_dk_ValueMember, CORBA_dk_Native, CORBA_dk_AbstractInterface, CORBA_dk_LocalInterface, CORBA_dk_Component, CORBA_dk_Home, CORBA_dk_Factory, CORBA_dk_Finder, CORBA_dk_Emits, CORBA_dk_Publishes, CORBA_dk_Consumes, CORBA_dk_Provides, CORBA_dk_Uses, CORBA_dk_Event } CORBA_DefinitionKind; #if !defined(TC_IMPL_TC_CORBA_DefinitionKind_0) #define TC_IMPL_TC_CORBA_DefinitionKind_0 'c' #define TC_IMPL_TC_CORBA_DefinitionKind_1 'o' #define TC_IMPL_TC_CORBA_DefinitionKind_2 'r' #define TC_IMPL_TC_CORBA_DefinitionKind_3 'b' #define TC_IMPL_TC_CORBA_DefinitionKind_4 'a' #define TC_IMPL_TC_CORBA_DefinitionKind_5 '_' #define TC_IMPL_TC_CORBA_DefinitionKind_6 'd' #define TC_IMPL_TC_CORBA_DefinitionKind_7 'e' #define TC_IMPL_TC_CORBA_DefinitionKind_8 'f' #define TC_IMPL_TC_CORBA_DefinitionKind_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_DefinitionKind_struct; #define TC_CORBA_DefinitionKind ((CORBA_TypeCode)&TC_CORBA_DefinitionKind_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_IRObject) && !defined(_CORBA_IRObject_defined) #define ORBIT_DECL_CORBA_IRObject 1 #define _CORBA_IRObject_defined 1 #define CORBA_IRObject__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_IRObject; extern CORBA_unsigned_long CORBA_IRObject__classid; #if !defined(TC_IMPL_TC_CORBA_IRObject_0) #define TC_IMPL_TC_CORBA_IRObject_0 'c' #define TC_IMPL_TC_CORBA_IRObject_1 'o' #define TC_IMPL_TC_CORBA_IRObject_2 'r' #define TC_IMPL_TC_CORBA_IRObject_3 'b' #define TC_IMPL_TC_CORBA_IRObject_4 'a' #define TC_IMPL_TC_CORBA_IRObject_5 '_' #define TC_IMPL_TC_CORBA_IRObject_6 'd' #define TC_IMPL_TC_CORBA_IRObject_7 'e' #define TC_IMPL_TC_CORBA_IRObject_8 'f' #define TC_IMPL_TC_CORBA_IRObject_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_IRObject_struct; #define TC_CORBA_IRObject ((CORBA_TypeCode)&TC_CORBA_IRObject_struct) #endif #endif #if !defined(_CORBA_VersionSpec_defined) #define _CORBA_VersionSpec_defined 1 typedef CORBA_string CORBA_VersionSpec; #define CORBA_VersionSpec_marshal(x,y,z) CORBA_string_marshal((x),(y),(z)) #define CORBA_VersionSpec_demarshal(x,y,z,i) CORBA_string_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_VersionSpec_0) #define TC_IMPL_TC_CORBA_VersionSpec_0 'c' #define TC_IMPL_TC_CORBA_VersionSpec_1 'o' #define TC_IMPL_TC_CORBA_VersionSpec_2 'r' #define TC_IMPL_TC_CORBA_VersionSpec_3 'b' #define TC_IMPL_TC_CORBA_VersionSpec_4 'a' #define TC_IMPL_TC_CORBA_VersionSpec_5 '_' #define TC_IMPL_TC_CORBA_VersionSpec_6 'd' #define TC_IMPL_TC_CORBA_VersionSpec_7 'e' #define TC_IMPL_TC_CORBA_VersionSpec_8 'f' #define TC_IMPL_TC_CORBA_VersionSpec_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_VersionSpec_struct; #define TC_CORBA_VersionSpec ((CORBA_TypeCode)&TC_CORBA_VersionSpec_struct) #endif #define CORBA_VersionSpec__alloc() ((CORBA_VersionSpec *)ORBit_small_alloc (TC_CORBA_string)) #define CORBA_VersionSpec__freekids(m,d) ORBit_small_freekids (TC_CORBA_string,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_Contained) && !defined(_CORBA_Contained_defined) #define ORBIT_DECL_CORBA_Contained 1 #define _CORBA_Contained_defined 1 #define CORBA_Contained__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_Contained; extern CORBA_unsigned_long CORBA_Contained__classid; #if !defined(TC_IMPL_TC_CORBA_Contained_0) #define TC_IMPL_TC_CORBA_Contained_0 'c' #define TC_IMPL_TC_CORBA_Contained_1 'o' #define TC_IMPL_TC_CORBA_Contained_2 'r' #define TC_IMPL_TC_CORBA_Contained_3 'b' #define TC_IMPL_TC_CORBA_Contained_4 'a' #define TC_IMPL_TC_CORBA_Contained_5 '_' #define TC_IMPL_TC_CORBA_Contained_6 'd' #define TC_IMPL_TC_CORBA_Contained_7 'e' #define TC_IMPL_TC_CORBA_Contained_8 'f' #define TC_IMPL_TC_CORBA_Contained_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_Contained_struct; #define TC_CORBA_Contained ((CORBA_TypeCode)&TC_CORBA_Contained_struct) #endif #endif #if !defined(_CORBA_Contained_Description_defined) #define _CORBA_Contained_Description_defined 1 typedef struct CORBA_Contained_Description_type CORBA_Contained_Description; struct CORBA_Contained_Description_type { CORBA_DefinitionKind kind; CORBA_any value; }; #if !defined(TC_IMPL_TC_CORBA_Contained_Description_0) #define TC_IMPL_TC_CORBA_Contained_Description_0 'c' #define TC_IMPL_TC_CORBA_Contained_Description_1 'o' #define TC_IMPL_TC_CORBA_Contained_Description_2 'r' #define TC_IMPL_TC_CORBA_Contained_Description_3 'b' #define TC_IMPL_TC_CORBA_Contained_Description_4 'a' #define TC_IMPL_TC_CORBA_Contained_Description_5 '_' #define TC_IMPL_TC_CORBA_Contained_Description_6 'd' #define TC_IMPL_TC_CORBA_Contained_Description_7 'e' #define TC_IMPL_TC_CORBA_Contained_Description_8 'f' #define TC_IMPL_TC_CORBA_Contained_Description_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_Contained_Description_struct; #define TC_CORBA_Contained_Description ((CORBA_TypeCode)&TC_CORBA_Contained_Description_struct) #endif #define CORBA_Contained_Description__alloc() ((CORBA_Contained_Description *)ORBit_small_alloc (TC_CORBA_Contained_Description)) #define CORBA_Contained_Description__freekids(m,d) ORBit_small_freekids (TC_CORBA_Contained_Description,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_ModuleDef) && !defined(_CORBA_ModuleDef_defined) #define ORBIT_DECL_CORBA_ModuleDef 1 #define _CORBA_ModuleDef_defined 1 #define CORBA_ModuleDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ModuleDef; extern CORBA_unsigned_long CORBA_ModuleDef__classid; #if !defined(TC_IMPL_TC_CORBA_ModuleDef_0) #define TC_IMPL_TC_CORBA_ModuleDef_0 'c' #define TC_IMPL_TC_CORBA_ModuleDef_1 'o' #define TC_IMPL_TC_CORBA_ModuleDef_2 'r' #define TC_IMPL_TC_CORBA_ModuleDef_3 'b' #define TC_IMPL_TC_CORBA_ModuleDef_4 'a' #define TC_IMPL_TC_CORBA_ModuleDef_5 '_' #define TC_IMPL_TC_CORBA_ModuleDef_6 'd' #define TC_IMPL_TC_CORBA_ModuleDef_7 'e' #define TC_IMPL_TC_CORBA_ModuleDef_8 'f' #define TC_IMPL_TC_CORBA_ModuleDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ModuleDef_struct; #define TC_CORBA_ModuleDef ((CORBA_TypeCode)&TC_CORBA_ModuleDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_ConstantDef) && !defined(_CORBA_ConstantDef_defined) #define ORBIT_DECL_CORBA_ConstantDef 1 #define _CORBA_ConstantDef_defined 1 #define CORBA_ConstantDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ConstantDef; extern CORBA_unsigned_long CORBA_ConstantDef__classid; #if !defined(TC_IMPL_TC_CORBA_ConstantDef_0) #define TC_IMPL_TC_CORBA_ConstantDef_0 'c' #define TC_IMPL_TC_CORBA_ConstantDef_1 'o' #define TC_IMPL_TC_CORBA_ConstantDef_2 'r' #define TC_IMPL_TC_CORBA_ConstantDef_3 'b' #define TC_IMPL_TC_CORBA_ConstantDef_4 'a' #define TC_IMPL_TC_CORBA_ConstantDef_5 '_' #define TC_IMPL_TC_CORBA_ConstantDef_6 'd' #define TC_IMPL_TC_CORBA_ConstantDef_7 'e' #define TC_IMPL_TC_CORBA_ConstantDef_8 'f' #define TC_IMPL_TC_CORBA_ConstantDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ConstantDef_struct; #define TC_CORBA_ConstantDef ((CORBA_TypeCode)&TC_CORBA_ConstantDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_IDLType) && !defined(_CORBA_IDLType_defined) #define ORBIT_DECL_CORBA_IDLType 1 #define _CORBA_IDLType_defined 1 #define CORBA_IDLType__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_IDLType; extern CORBA_unsigned_long CORBA_IDLType__classid; #if !defined(TC_IMPL_TC_CORBA_IDLType_0) #define TC_IMPL_TC_CORBA_IDLType_0 'c' #define TC_IMPL_TC_CORBA_IDLType_1 'o' #define TC_IMPL_TC_CORBA_IDLType_2 'r' #define TC_IMPL_TC_CORBA_IDLType_3 'b' #define TC_IMPL_TC_CORBA_IDLType_4 'a' #define TC_IMPL_TC_CORBA_IDLType_5 '_' #define TC_IMPL_TC_CORBA_IDLType_6 'd' #define TC_IMPL_TC_CORBA_IDLType_7 'e' #define TC_IMPL_TC_CORBA_IDLType_8 'f' #define TC_IMPL_TC_CORBA_IDLType_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_IDLType_struct; #define TC_CORBA_IDLType ((CORBA_TypeCode)&TC_CORBA_IDLType_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_StructDef) && !defined(_CORBA_StructDef_defined) #define ORBIT_DECL_CORBA_StructDef 1 #define _CORBA_StructDef_defined 1 #define CORBA_StructDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_StructDef; extern CORBA_unsigned_long CORBA_StructDef__classid; #if !defined(TC_IMPL_TC_CORBA_StructDef_0) #define TC_IMPL_TC_CORBA_StructDef_0 'c' #define TC_IMPL_TC_CORBA_StructDef_1 'o' #define TC_IMPL_TC_CORBA_StructDef_2 'r' #define TC_IMPL_TC_CORBA_StructDef_3 'b' #define TC_IMPL_TC_CORBA_StructDef_4 'a' #define TC_IMPL_TC_CORBA_StructDef_5 '_' #define TC_IMPL_TC_CORBA_StructDef_6 'd' #define TC_IMPL_TC_CORBA_StructDef_7 'e' #define TC_IMPL_TC_CORBA_StructDef_8 'f' #define TC_IMPL_TC_CORBA_StructDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_StructDef_struct; #define TC_CORBA_StructDef ((CORBA_TypeCode)&TC_CORBA_StructDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_UnionDef) && !defined(_CORBA_UnionDef_defined) #define ORBIT_DECL_CORBA_UnionDef 1 #define _CORBA_UnionDef_defined 1 #define CORBA_UnionDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_UnionDef; extern CORBA_unsigned_long CORBA_UnionDef__classid; #if !defined(TC_IMPL_TC_CORBA_UnionDef_0) #define TC_IMPL_TC_CORBA_UnionDef_0 'c' #define TC_IMPL_TC_CORBA_UnionDef_1 'o' #define TC_IMPL_TC_CORBA_UnionDef_2 'r' #define TC_IMPL_TC_CORBA_UnionDef_3 'b' #define TC_IMPL_TC_CORBA_UnionDef_4 'a' #define TC_IMPL_TC_CORBA_UnionDef_5 '_' #define TC_IMPL_TC_CORBA_UnionDef_6 'd' #define TC_IMPL_TC_CORBA_UnionDef_7 'e' #define TC_IMPL_TC_CORBA_UnionDef_8 'f' #define TC_IMPL_TC_CORBA_UnionDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_UnionDef_struct; #define TC_CORBA_UnionDef ((CORBA_TypeCode)&TC_CORBA_UnionDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_EnumDef) && !defined(_CORBA_EnumDef_defined) #define ORBIT_DECL_CORBA_EnumDef 1 #define _CORBA_EnumDef_defined 1 #define CORBA_EnumDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_EnumDef; extern CORBA_unsigned_long CORBA_EnumDef__classid; #if !defined(TC_IMPL_TC_CORBA_EnumDef_0) #define TC_IMPL_TC_CORBA_EnumDef_0 'c' #define TC_IMPL_TC_CORBA_EnumDef_1 'o' #define TC_IMPL_TC_CORBA_EnumDef_2 'r' #define TC_IMPL_TC_CORBA_EnumDef_3 'b' #define TC_IMPL_TC_CORBA_EnumDef_4 'a' #define TC_IMPL_TC_CORBA_EnumDef_5 '_' #define TC_IMPL_TC_CORBA_EnumDef_6 'd' #define TC_IMPL_TC_CORBA_EnumDef_7 'e' #define TC_IMPL_TC_CORBA_EnumDef_8 'f' #define TC_IMPL_TC_CORBA_EnumDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_EnumDef_struct; #define TC_CORBA_EnumDef ((CORBA_TypeCode)&TC_CORBA_EnumDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_AliasDef) && !defined(_CORBA_AliasDef_defined) #define ORBIT_DECL_CORBA_AliasDef 1 #define _CORBA_AliasDef_defined 1 #define CORBA_AliasDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_AliasDef; extern CORBA_unsigned_long CORBA_AliasDef__classid; #if !defined(TC_IMPL_TC_CORBA_AliasDef_0) #define TC_IMPL_TC_CORBA_AliasDef_0 'c' #define TC_IMPL_TC_CORBA_AliasDef_1 'o' #define TC_IMPL_TC_CORBA_AliasDef_2 'r' #define TC_IMPL_TC_CORBA_AliasDef_3 'b' #define TC_IMPL_TC_CORBA_AliasDef_4 'a' #define TC_IMPL_TC_CORBA_AliasDef_5 '_' #define TC_IMPL_TC_CORBA_AliasDef_6 'd' #define TC_IMPL_TC_CORBA_AliasDef_7 'e' #define TC_IMPL_TC_CORBA_AliasDef_8 'f' #define TC_IMPL_TC_CORBA_AliasDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_AliasDef_struct; #define TC_CORBA_AliasDef ((CORBA_TypeCode)&TC_CORBA_AliasDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_ExceptionDef) && !defined(_CORBA_ExceptionDef_defined) #define ORBIT_DECL_CORBA_ExceptionDef 1 #define _CORBA_ExceptionDef_defined 1 #define CORBA_ExceptionDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ExceptionDef; extern CORBA_unsigned_long CORBA_ExceptionDef__classid; #if !defined(TC_IMPL_TC_CORBA_ExceptionDef_0) #define TC_IMPL_TC_CORBA_ExceptionDef_0 'c' #define TC_IMPL_TC_CORBA_ExceptionDef_1 'o' #define TC_IMPL_TC_CORBA_ExceptionDef_2 'r' #define TC_IMPL_TC_CORBA_ExceptionDef_3 'b' #define TC_IMPL_TC_CORBA_ExceptionDef_4 'a' #define TC_IMPL_TC_CORBA_ExceptionDef_5 '_' #define TC_IMPL_TC_CORBA_ExceptionDef_6 'd' #define TC_IMPL_TC_CORBA_ExceptionDef_7 'e' #define TC_IMPL_TC_CORBA_ExceptionDef_8 'f' #define TC_IMPL_TC_CORBA_ExceptionDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExceptionDef_struct; #define TC_CORBA_ExceptionDef ((CORBA_TypeCode)&TC_CORBA_ExceptionDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_NativeDef) && !defined(_CORBA_NativeDef_defined) #define ORBIT_DECL_CORBA_NativeDef 1 #define _CORBA_NativeDef_defined 1 #define CORBA_NativeDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_NativeDef; extern CORBA_unsigned_long CORBA_NativeDef__classid; #if !defined(TC_IMPL_TC_CORBA_NativeDef_0) #define TC_IMPL_TC_CORBA_NativeDef_0 'c' #define TC_IMPL_TC_CORBA_NativeDef_1 'o' #define TC_IMPL_TC_CORBA_NativeDef_2 'r' #define TC_IMPL_TC_CORBA_NativeDef_3 'b' #define TC_IMPL_TC_CORBA_NativeDef_4 'a' #define TC_IMPL_TC_CORBA_NativeDef_5 '_' #define TC_IMPL_TC_CORBA_NativeDef_6 'd' #define TC_IMPL_TC_CORBA_NativeDef_7 'e' #define TC_IMPL_TC_CORBA_NativeDef_8 'f' #define TC_IMPL_TC_CORBA_NativeDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_NativeDef_struct; #define TC_CORBA_NativeDef ((CORBA_TypeCode)&TC_CORBA_NativeDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_InterfaceDef) && !defined(_CORBA_InterfaceDef_defined) #define ORBIT_DECL_CORBA_InterfaceDef 1 #define _CORBA_InterfaceDef_defined 1 #define CORBA_InterfaceDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_InterfaceDef; extern CORBA_unsigned_long CORBA_InterfaceDef__classid; #if !defined(TC_IMPL_TC_CORBA_InterfaceDef_0) #define TC_IMPL_TC_CORBA_InterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_InterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_InterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_InterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_InterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_InterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_InterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_InterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_InterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_InterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_InterfaceDef_struct; #define TC_CORBA_InterfaceDef ((CORBA_TypeCode)&TC_CORBA_InterfaceDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Object) #define ORBIT_DECL_CORBA_sequence_CORBA_Object 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_9 's' #if !defined(_CORBA_sequence_CORBA_Object_defined) #define _CORBA_sequence_CORBA_Object_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_Object* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_Object; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Object_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Object_struct; #define TC_CORBA_sequence_CORBA_Object ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Object_struct) #endif #define CORBA_sequence_CORBA_Object__alloc() ((CORBA_sequence_CORBA_Object *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Object)) #define CORBA_sequence_CORBA_Object__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Object,(m),(d)) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_InterfaceDef) #define ORBIT_DECL_CORBA_sequence_CORBA_InterfaceDef 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_InterfaceDef_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_InterfaceDef_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_InterfaceDef_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_InterfaceDef_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_InterfaceDef_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_InterfaceDef_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_InterfaceDef_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_InterfaceDef_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_InterfaceDef_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_InterfaceDef_9 's' #if !defined(_CORBA_sequence_CORBA_InterfaceDef_defined) #define _CORBA_sequence_CORBA_InterfaceDef_defined 1 typedef CORBA_sequence_CORBA_Object CORBA_sequence_CORBA_InterfaceDef; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_InterfaceDef_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_InterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_InterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_InterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_InterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_InterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_InterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_InterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_InterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_InterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_InterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_InterfaceDef_struct; #define TC_CORBA_sequence_CORBA_InterfaceDef ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_InterfaceDef_struct) #endif #define CORBA_sequence_CORBA_InterfaceDef__alloc CORBA_sequence_CORBA_Object__alloc #define CORBA_sequence_CORBA_InterfaceDef__freekids CORBA_sequence_CORBA_Object__freekids #define CORBA_sequence_CORBA_InterfaceDef_allocbuf CORBA_sequence_CORBA_Object_allocbuf #define CORBA_sequence_CORBA_InterfaceDef_marshal(x,y,z) CORBA_sequence_CORBA_Object_marshal((x),(y),(z)) #define CORBA_sequence_CORBA_InterfaceDef_demarshal(x,y,z,i) CORBA_sequence_CORBA_Object_demarshal((x),(y),(z),(i)) #endif #if !defined(_CORBA_InterfaceDefSeq_defined) #define _CORBA_InterfaceDefSeq_defined 1 typedef CORBA_sequence_CORBA_InterfaceDef CORBA_InterfaceDefSeq; #define CORBA_InterfaceDefSeq_marshal(x,y,z) CORBA_sequence_CORBA_InterfaceDef_marshal((x),(y),(z)) #define CORBA_InterfaceDefSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_InterfaceDef_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_InterfaceDefSeq_0) #define TC_IMPL_TC_CORBA_InterfaceDefSeq_0 'c' #define TC_IMPL_TC_CORBA_InterfaceDefSeq_1 'o' #define TC_IMPL_TC_CORBA_InterfaceDefSeq_2 'r' #define TC_IMPL_TC_CORBA_InterfaceDefSeq_3 'b' #define TC_IMPL_TC_CORBA_InterfaceDefSeq_4 'a' #define TC_IMPL_TC_CORBA_InterfaceDefSeq_5 '_' #define TC_IMPL_TC_CORBA_InterfaceDefSeq_6 'd' #define TC_IMPL_TC_CORBA_InterfaceDefSeq_7 'e' #define TC_IMPL_TC_CORBA_InterfaceDefSeq_8 'f' #define TC_IMPL_TC_CORBA_InterfaceDefSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_InterfaceDefSeq_struct; #define TC_CORBA_InterfaceDefSeq ((CORBA_TypeCode)&TC_CORBA_InterfaceDefSeq_struct) #endif #define CORBA_InterfaceDefSeq__alloc() ((CORBA_InterfaceDefSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_InterfaceDef)) #define CORBA_InterfaceDefSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_InterfaceDef,(m),(d)) #define CORBA_InterfaceDefSeq_allocbuf(l) ((CORBA_InterfaceDef*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_InterfaceDef, (l))) #endif #if !defined(ORBIT_DECL_CORBA_ValueDef) && !defined(_CORBA_ValueDef_defined) #define ORBIT_DECL_CORBA_ValueDef 1 #define _CORBA_ValueDef_defined 1 #define CORBA_ValueDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ValueDef; extern CORBA_unsigned_long CORBA_ValueDef__classid; #if !defined(TC_IMPL_TC_CORBA_ValueDef_0) #define TC_IMPL_TC_CORBA_ValueDef_0 'c' #define TC_IMPL_TC_CORBA_ValueDef_1 'o' #define TC_IMPL_TC_CORBA_ValueDef_2 'r' #define TC_IMPL_TC_CORBA_ValueDef_3 'b' #define TC_IMPL_TC_CORBA_ValueDef_4 'a' #define TC_IMPL_TC_CORBA_ValueDef_5 '_' #define TC_IMPL_TC_CORBA_ValueDef_6 'd' #define TC_IMPL_TC_CORBA_ValueDef_7 'e' #define TC_IMPL_TC_CORBA_ValueDef_8 'f' #define TC_IMPL_TC_CORBA_ValueDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ValueDef_struct; #define TC_CORBA_ValueDef ((CORBA_TypeCode)&TC_CORBA_ValueDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Object) #define ORBIT_DECL_CORBA_sequence_CORBA_Object 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_9 's' #if !defined(_CORBA_sequence_CORBA_Object_defined) #define _CORBA_sequence_CORBA_Object_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_Object* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_Object; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Object_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Object_struct; #define TC_CORBA_sequence_CORBA_Object ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Object_struct) #endif #define CORBA_sequence_CORBA_Object__alloc() ((CORBA_sequence_CORBA_Object *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Object)) #define CORBA_sequence_CORBA_Object__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Object,(m),(d)) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_ValueDef) #define ORBIT_DECL_CORBA_sequence_CORBA_ValueDef 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_ValueDef_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_ValueDef_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_ValueDef_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_ValueDef_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_ValueDef_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_ValueDef_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_ValueDef_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_ValueDef_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_ValueDef_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_ValueDef_9 's' #if !defined(_CORBA_sequence_CORBA_ValueDef_defined) #define _CORBA_sequence_CORBA_ValueDef_defined 1 typedef CORBA_sequence_CORBA_Object CORBA_sequence_CORBA_ValueDef; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_ValueDef_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_ValueDef_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_ValueDef_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_ValueDef_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_ValueDef_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_ValueDef_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_ValueDef_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_ValueDef_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_ValueDef_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_ValueDef_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_ValueDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_ValueDef_struct; #define TC_CORBA_sequence_CORBA_ValueDef ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_ValueDef_struct) #endif #define CORBA_sequence_CORBA_ValueDef__alloc CORBA_sequence_CORBA_Object__alloc #define CORBA_sequence_CORBA_ValueDef__freekids CORBA_sequence_CORBA_Object__freekids #define CORBA_sequence_CORBA_ValueDef_allocbuf CORBA_sequence_CORBA_Object_allocbuf #define CORBA_sequence_CORBA_ValueDef_marshal(x,y,z) CORBA_sequence_CORBA_Object_marshal((x),(y),(z)) #define CORBA_sequence_CORBA_ValueDef_demarshal(x,y,z,i) CORBA_sequence_CORBA_Object_demarshal((x),(y),(z),(i)) #endif #if !defined(_CORBA_ValueDefSeq_defined) #define _CORBA_ValueDefSeq_defined 1 typedef CORBA_sequence_CORBA_ValueDef CORBA_ValueDefSeq; #define CORBA_ValueDefSeq_marshal(x,y,z) CORBA_sequence_CORBA_ValueDef_marshal((x),(y),(z)) #define CORBA_ValueDefSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_ValueDef_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ValueDefSeq_0) #define TC_IMPL_TC_CORBA_ValueDefSeq_0 'c' #define TC_IMPL_TC_CORBA_ValueDefSeq_1 'o' #define TC_IMPL_TC_CORBA_ValueDefSeq_2 'r' #define TC_IMPL_TC_CORBA_ValueDefSeq_3 'b' #define TC_IMPL_TC_CORBA_ValueDefSeq_4 'a' #define TC_IMPL_TC_CORBA_ValueDefSeq_5 '_' #define TC_IMPL_TC_CORBA_ValueDefSeq_6 'd' #define TC_IMPL_TC_CORBA_ValueDefSeq_7 'e' #define TC_IMPL_TC_CORBA_ValueDefSeq_8 'f' #define TC_IMPL_TC_CORBA_ValueDefSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ValueDefSeq_struct; #define TC_CORBA_ValueDefSeq ((CORBA_TypeCode)&TC_CORBA_ValueDefSeq_struct) #endif #define CORBA_ValueDefSeq__alloc() ((CORBA_ValueDefSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_ValueDef)) #define CORBA_ValueDefSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_ValueDef,(m),(d)) #define CORBA_ValueDefSeq_allocbuf(l) ((CORBA_ValueDef*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ValueDef, (l))) #endif #if !defined(ORBIT_DECL_CORBA_ValueBoxDef) && !defined(_CORBA_ValueBoxDef_defined) #define ORBIT_DECL_CORBA_ValueBoxDef 1 #define _CORBA_ValueBoxDef_defined 1 #define CORBA_ValueBoxDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ValueBoxDef; extern CORBA_unsigned_long CORBA_ValueBoxDef__classid; #if !defined(TC_IMPL_TC_CORBA_ValueBoxDef_0) #define TC_IMPL_TC_CORBA_ValueBoxDef_0 'c' #define TC_IMPL_TC_CORBA_ValueBoxDef_1 'o' #define TC_IMPL_TC_CORBA_ValueBoxDef_2 'r' #define TC_IMPL_TC_CORBA_ValueBoxDef_3 'b' #define TC_IMPL_TC_CORBA_ValueBoxDef_4 'a' #define TC_IMPL_TC_CORBA_ValueBoxDef_5 '_' #define TC_IMPL_TC_CORBA_ValueBoxDef_6 'd' #define TC_IMPL_TC_CORBA_ValueBoxDef_7 'e' #define TC_IMPL_TC_CORBA_ValueBoxDef_8 'f' #define TC_IMPL_TC_CORBA_ValueBoxDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ValueBoxDef_struct; #define TC_CORBA_ValueBoxDef ((CORBA_TypeCode)&TC_CORBA_ValueBoxDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_AbstractInterfaceDef) && !defined(_CORBA_AbstractInterfaceDef_defined) #define ORBIT_DECL_CORBA_AbstractInterfaceDef 1 #define _CORBA_AbstractInterfaceDef_defined 1 #define CORBA_AbstractInterfaceDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_AbstractInterfaceDef; extern CORBA_unsigned_long CORBA_AbstractInterfaceDef__classid; #if !defined(TC_IMPL_TC_CORBA_AbstractInterfaceDef_0) #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_AbstractInterfaceDef_struct; #define TC_CORBA_AbstractInterfaceDef ((CORBA_TypeCode)&TC_CORBA_AbstractInterfaceDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Object) #define ORBIT_DECL_CORBA_sequence_CORBA_Object 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_9 's' #if !defined(_CORBA_sequence_CORBA_Object_defined) #define _CORBA_sequence_CORBA_Object_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_Object* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_Object; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Object_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Object_struct; #define TC_CORBA_sequence_CORBA_Object ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Object_struct) #endif #define CORBA_sequence_CORBA_Object__alloc() ((CORBA_sequence_CORBA_Object *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Object)) #define CORBA_sequence_CORBA_Object__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Object,(m),(d)) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_AbstractInterfaceDef) #define ORBIT_DECL_CORBA_sequence_CORBA_AbstractInterfaceDef 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_AbstractInterfaceDef_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_AbstractInterfaceDef_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_AbstractInterfaceDef_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_AbstractInterfaceDef_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_AbstractInterfaceDef_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_AbstractInterfaceDef_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_AbstractInterfaceDef_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_AbstractInterfaceDef_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_AbstractInterfaceDef_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_AbstractInterfaceDef_9 's' #if !defined(_CORBA_sequence_CORBA_AbstractInterfaceDef_defined) #define _CORBA_sequence_CORBA_AbstractInterfaceDef_defined 1 typedef CORBA_sequence_CORBA_Object CORBA_sequence_CORBA_AbstractInterfaceDef; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_AbstractInterfaceDef_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_AbstractInterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_AbstractInterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_AbstractInterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_AbstractInterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_AbstractInterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_AbstractInterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_AbstractInterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_AbstractInterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_AbstractInterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_AbstractInterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_AbstractInterfaceDef_struct; #define TC_CORBA_sequence_CORBA_AbstractInterfaceDef ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_AbstractInterfaceDef_struct) #endif #define CORBA_sequence_CORBA_AbstractInterfaceDef__alloc CORBA_sequence_CORBA_Object__alloc #define CORBA_sequence_CORBA_AbstractInterfaceDef__freekids CORBA_sequence_CORBA_Object__freekids #define CORBA_sequence_CORBA_AbstractInterfaceDef_allocbuf CORBA_sequence_CORBA_Object_allocbuf #define CORBA_sequence_CORBA_AbstractInterfaceDef_marshal(x,y,z) CORBA_sequence_CORBA_Object_marshal((x),(y),(z)) #define CORBA_sequence_CORBA_AbstractInterfaceDef_demarshal(x,y,z,i) CORBA_sequence_CORBA_Object_demarshal((x),(y),(z),(i)) #endif #if !defined(_CORBA_AbstractInterfaceDefSeq_defined) #define _CORBA_AbstractInterfaceDefSeq_defined 1 typedef CORBA_sequence_CORBA_AbstractInterfaceDef CORBA_AbstractInterfaceDefSeq; #define CORBA_AbstractInterfaceDefSeq_marshal(x,y,z) CORBA_sequence_CORBA_AbstractInterfaceDef_marshal((x),(y),(z)) #define CORBA_AbstractInterfaceDefSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_AbstractInterfaceDef_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_AbstractInterfaceDefSeq_0) #define TC_IMPL_TC_CORBA_AbstractInterfaceDefSeq_0 'c' #define TC_IMPL_TC_CORBA_AbstractInterfaceDefSeq_1 'o' #define TC_IMPL_TC_CORBA_AbstractInterfaceDefSeq_2 'r' #define TC_IMPL_TC_CORBA_AbstractInterfaceDefSeq_3 'b' #define TC_IMPL_TC_CORBA_AbstractInterfaceDefSeq_4 'a' #define TC_IMPL_TC_CORBA_AbstractInterfaceDefSeq_5 '_' #define TC_IMPL_TC_CORBA_AbstractInterfaceDefSeq_6 'd' #define TC_IMPL_TC_CORBA_AbstractInterfaceDefSeq_7 'e' #define TC_IMPL_TC_CORBA_AbstractInterfaceDefSeq_8 'f' #define TC_IMPL_TC_CORBA_AbstractInterfaceDefSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_AbstractInterfaceDefSeq_struct; #define TC_CORBA_AbstractInterfaceDefSeq ((CORBA_TypeCode)&TC_CORBA_AbstractInterfaceDefSeq_struct) #endif #define CORBA_AbstractInterfaceDefSeq__alloc() ((CORBA_AbstractInterfaceDefSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_AbstractInterfaceDef)) #define CORBA_AbstractInterfaceDefSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_AbstractInterfaceDef,(m),(d)) #define CORBA_AbstractInterfaceDefSeq_allocbuf(l) ((CORBA_AbstractInterfaceDef*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_AbstractInterfaceDef, (l))) #endif #if !defined(ORBIT_DECL_CORBA_LocalInterfaceDef) && !defined(_CORBA_LocalInterfaceDef_defined) #define ORBIT_DECL_CORBA_LocalInterfaceDef 1 #define _CORBA_LocalInterfaceDef_defined 1 #define CORBA_LocalInterfaceDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_LocalInterfaceDef; extern CORBA_unsigned_long CORBA_LocalInterfaceDef__classid; #if !defined(TC_IMPL_TC_CORBA_LocalInterfaceDef_0) #define TC_IMPL_TC_CORBA_LocalInterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_LocalInterfaceDef_struct; #define TC_CORBA_LocalInterfaceDef ((CORBA_TypeCode)&TC_CORBA_LocalInterfaceDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Object) #define ORBIT_DECL_CORBA_sequence_CORBA_Object 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_9 's' #if !defined(_CORBA_sequence_CORBA_Object_defined) #define _CORBA_sequence_CORBA_Object_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_Object* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_Object; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Object_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Object_struct; #define TC_CORBA_sequence_CORBA_Object ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Object_struct) #endif #define CORBA_sequence_CORBA_Object__alloc() ((CORBA_sequence_CORBA_Object *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Object)) #define CORBA_sequence_CORBA_Object__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Object,(m),(d)) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_LocalInterfaceDef) #define ORBIT_DECL_CORBA_sequence_CORBA_LocalInterfaceDef 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_LocalInterfaceDef_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_LocalInterfaceDef_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_LocalInterfaceDef_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_LocalInterfaceDef_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_LocalInterfaceDef_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_LocalInterfaceDef_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_LocalInterfaceDef_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_LocalInterfaceDef_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_LocalInterfaceDef_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_LocalInterfaceDef_9 's' #if !defined(_CORBA_sequence_CORBA_LocalInterfaceDef_defined) #define _CORBA_sequence_CORBA_LocalInterfaceDef_defined 1 typedef CORBA_sequence_CORBA_Object CORBA_sequence_CORBA_LocalInterfaceDef; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_LocalInterfaceDef_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_LocalInterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_LocalInterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_LocalInterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_LocalInterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_LocalInterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_LocalInterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_LocalInterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_LocalInterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_LocalInterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_LocalInterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_LocalInterfaceDef_struct; #define TC_CORBA_sequence_CORBA_LocalInterfaceDef ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_LocalInterfaceDef_struct) #endif #define CORBA_sequence_CORBA_LocalInterfaceDef__alloc CORBA_sequence_CORBA_Object__alloc #define CORBA_sequence_CORBA_LocalInterfaceDef__freekids CORBA_sequence_CORBA_Object__freekids #define CORBA_sequence_CORBA_LocalInterfaceDef_allocbuf CORBA_sequence_CORBA_Object_allocbuf #define CORBA_sequence_CORBA_LocalInterfaceDef_marshal(x,y,z) CORBA_sequence_CORBA_Object_marshal((x),(y),(z)) #define CORBA_sequence_CORBA_LocalInterfaceDef_demarshal(x,y,z,i) CORBA_sequence_CORBA_Object_demarshal((x),(y),(z),(i)) #endif #if !defined(_CORBA_LocalInterfaceDefSeq_defined) #define _CORBA_LocalInterfaceDefSeq_defined 1 typedef CORBA_sequence_CORBA_LocalInterfaceDef CORBA_LocalInterfaceDefSeq; #define CORBA_LocalInterfaceDefSeq_marshal(x,y,z) CORBA_sequence_CORBA_LocalInterfaceDef_marshal((x),(y),(z)) #define CORBA_LocalInterfaceDefSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_LocalInterfaceDef_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_LocalInterfaceDefSeq_0) #define TC_IMPL_TC_CORBA_LocalInterfaceDefSeq_0 'c' #define TC_IMPL_TC_CORBA_LocalInterfaceDefSeq_1 'o' #define TC_IMPL_TC_CORBA_LocalInterfaceDefSeq_2 'r' #define TC_IMPL_TC_CORBA_LocalInterfaceDefSeq_3 'b' #define TC_IMPL_TC_CORBA_LocalInterfaceDefSeq_4 'a' #define TC_IMPL_TC_CORBA_LocalInterfaceDefSeq_5 '_' #define TC_IMPL_TC_CORBA_LocalInterfaceDefSeq_6 'd' #define TC_IMPL_TC_CORBA_LocalInterfaceDefSeq_7 'e' #define TC_IMPL_TC_CORBA_LocalInterfaceDefSeq_8 'f' #define TC_IMPL_TC_CORBA_LocalInterfaceDefSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_LocalInterfaceDefSeq_struct; #define TC_CORBA_LocalInterfaceDefSeq ((CORBA_TypeCode)&TC_CORBA_LocalInterfaceDefSeq_struct) #endif #define CORBA_LocalInterfaceDefSeq__alloc() ((CORBA_LocalInterfaceDefSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_LocalInterfaceDef)) #define CORBA_LocalInterfaceDefSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_LocalInterfaceDef,(m),(d)) #define CORBA_LocalInterfaceDefSeq_allocbuf(l) ((CORBA_LocalInterfaceDef*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_LocalInterfaceDef, (l))) #endif #if !defined(ORBIT_DECL_CORBA_ExtInterfaceDef) && !defined(_CORBA_ExtInterfaceDef_defined) #define ORBIT_DECL_CORBA_ExtInterfaceDef 1 #define _CORBA_ExtInterfaceDef_defined 1 #define CORBA_ExtInterfaceDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ExtInterfaceDef; extern CORBA_unsigned_long CORBA_ExtInterfaceDef__classid; #if !defined(TC_IMPL_TC_CORBA_ExtInterfaceDef_0) #define TC_IMPL_TC_CORBA_ExtInterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtInterfaceDef_struct; #define TC_CORBA_ExtInterfaceDef ((CORBA_TypeCode)&TC_CORBA_ExtInterfaceDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Object) #define ORBIT_DECL_CORBA_sequence_CORBA_Object 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_9 's' #if !defined(_CORBA_sequence_CORBA_Object_defined) #define _CORBA_sequence_CORBA_Object_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_Object* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_Object; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Object_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Object_struct; #define TC_CORBA_sequence_CORBA_Object ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Object_struct) #endif #define CORBA_sequence_CORBA_Object__alloc() ((CORBA_sequence_CORBA_Object *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Object)) #define CORBA_sequence_CORBA_Object__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Object,(m),(d)) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_ExtInterfaceDef) #define ORBIT_DECL_CORBA_sequence_CORBA_ExtInterfaceDef 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtInterfaceDef_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtInterfaceDef_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtInterfaceDef_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtInterfaceDef_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtInterfaceDef_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtInterfaceDef_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtInterfaceDef_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtInterfaceDef_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtInterfaceDef_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtInterfaceDef_9 's' #if !defined(_CORBA_sequence_CORBA_ExtInterfaceDef_defined) #define _CORBA_sequence_CORBA_ExtInterfaceDef_defined 1 typedef CORBA_sequence_CORBA_Object CORBA_sequence_CORBA_ExtInterfaceDef; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_ExtInterfaceDef_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtInterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtInterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtInterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtInterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtInterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtInterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtInterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtInterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtInterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtInterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_ExtInterfaceDef_struct; #define TC_CORBA_sequence_CORBA_ExtInterfaceDef ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_ExtInterfaceDef_struct) #endif #define CORBA_sequence_CORBA_ExtInterfaceDef__alloc CORBA_sequence_CORBA_Object__alloc #define CORBA_sequence_CORBA_ExtInterfaceDef__freekids CORBA_sequence_CORBA_Object__freekids #define CORBA_sequence_CORBA_ExtInterfaceDef_allocbuf CORBA_sequence_CORBA_Object_allocbuf #define CORBA_sequence_CORBA_ExtInterfaceDef_marshal(x,y,z) CORBA_sequence_CORBA_Object_marshal((x),(y),(z)) #define CORBA_sequence_CORBA_ExtInterfaceDef_demarshal(x,y,z,i) CORBA_sequence_CORBA_Object_demarshal((x),(y),(z),(i)) #endif #if !defined(_CORBA_ExtInterfaceDefSeq_defined) #define _CORBA_ExtInterfaceDefSeq_defined 1 typedef CORBA_sequence_CORBA_ExtInterfaceDef CORBA_ExtInterfaceDefSeq; #define CORBA_ExtInterfaceDefSeq_marshal(x,y,z) CORBA_sequence_CORBA_ExtInterfaceDef_marshal((x),(y),(z)) #define CORBA_ExtInterfaceDefSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_ExtInterfaceDef_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ExtInterfaceDefSeq_0) #define TC_IMPL_TC_CORBA_ExtInterfaceDefSeq_0 'c' #define TC_IMPL_TC_CORBA_ExtInterfaceDefSeq_1 'o' #define TC_IMPL_TC_CORBA_ExtInterfaceDefSeq_2 'r' #define TC_IMPL_TC_CORBA_ExtInterfaceDefSeq_3 'b' #define TC_IMPL_TC_CORBA_ExtInterfaceDefSeq_4 'a' #define TC_IMPL_TC_CORBA_ExtInterfaceDefSeq_5 '_' #define TC_IMPL_TC_CORBA_ExtInterfaceDefSeq_6 'd' #define TC_IMPL_TC_CORBA_ExtInterfaceDefSeq_7 'e' #define TC_IMPL_TC_CORBA_ExtInterfaceDefSeq_8 'f' #define TC_IMPL_TC_CORBA_ExtInterfaceDefSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtInterfaceDefSeq_struct; #define TC_CORBA_ExtInterfaceDefSeq ((CORBA_TypeCode)&TC_CORBA_ExtInterfaceDefSeq_struct) #endif #define CORBA_ExtInterfaceDefSeq__alloc() ((CORBA_ExtInterfaceDefSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_ExtInterfaceDef)) #define CORBA_ExtInterfaceDefSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_ExtInterfaceDef,(m),(d)) #define CORBA_ExtInterfaceDefSeq_allocbuf(l) ((CORBA_ExtInterfaceDef*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ExtInterfaceDef, (l))) #endif #if !defined(ORBIT_DECL_CORBA_ExtValueDef) && !defined(_CORBA_ExtValueDef_defined) #define ORBIT_DECL_CORBA_ExtValueDef 1 #define _CORBA_ExtValueDef_defined 1 #define CORBA_ExtValueDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ExtValueDef; extern CORBA_unsigned_long CORBA_ExtValueDef__classid; #if !defined(TC_IMPL_TC_CORBA_ExtValueDef_0) #define TC_IMPL_TC_CORBA_ExtValueDef_0 'c' #define TC_IMPL_TC_CORBA_ExtValueDef_1 'o' #define TC_IMPL_TC_CORBA_ExtValueDef_2 'r' #define TC_IMPL_TC_CORBA_ExtValueDef_3 'b' #define TC_IMPL_TC_CORBA_ExtValueDef_4 'a' #define TC_IMPL_TC_CORBA_ExtValueDef_5 '_' #define TC_IMPL_TC_CORBA_ExtValueDef_6 'd' #define TC_IMPL_TC_CORBA_ExtValueDef_7 'e' #define TC_IMPL_TC_CORBA_ExtValueDef_8 'f' #define TC_IMPL_TC_CORBA_ExtValueDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtValueDef_struct; #define TC_CORBA_ExtValueDef ((CORBA_TypeCode)&TC_CORBA_ExtValueDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Object) #define ORBIT_DECL_CORBA_sequence_CORBA_Object 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_9 's' #if !defined(_CORBA_sequence_CORBA_Object_defined) #define _CORBA_sequence_CORBA_Object_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_Object* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_Object; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Object_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Object_struct; #define TC_CORBA_sequence_CORBA_Object ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Object_struct) #endif #define CORBA_sequence_CORBA_Object__alloc() ((CORBA_sequence_CORBA_Object *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Object)) #define CORBA_sequence_CORBA_Object__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Object,(m),(d)) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_ExtValueDef) #define ORBIT_DECL_CORBA_sequence_CORBA_ExtValueDef 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtValueDef_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtValueDef_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtValueDef_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtValueDef_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtValueDef_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtValueDef_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtValueDef_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtValueDef_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtValueDef_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtValueDef_9 's' #if !defined(_CORBA_sequence_CORBA_ExtValueDef_defined) #define _CORBA_sequence_CORBA_ExtValueDef_defined 1 typedef CORBA_sequence_CORBA_Object CORBA_sequence_CORBA_ExtValueDef; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_ExtValueDef_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtValueDef_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtValueDef_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtValueDef_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtValueDef_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtValueDef_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtValueDef_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtValueDef_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtValueDef_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtValueDef_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtValueDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_ExtValueDef_struct; #define TC_CORBA_sequence_CORBA_ExtValueDef ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_ExtValueDef_struct) #endif #define CORBA_sequence_CORBA_ExtValueDef__alloc CORBA_sequence_CORBA_Object__alloc #define CORBA_sequence_CORBA_ExtValueDef__freekids CORBA_sequence_CORBA_Object__freekids #define CORBA_sequence_CORBA_ExtValueDef_allocbuf CORBA_sequence_CORBA_Object_allocbuf #define CORBA_sequence_CORBA_ExtValueDef_marshal(x,y,z) CORBA_sequence_CORBA_Object_marshal((x),(y),(z)) #define CORBA_sequence_CORBA_ExtValueDef_demarshal(x,y,z,i) CORBA_sequence_CORBA_Object_demarshal((x),(y),(z),(i)) #endif #if !defined(_CORBA_ExtValueDefSeq_defined) #define _CORBA_ExtValueDefSeq_defined 1 typedef CORBA_sequence_CORBA_ExtValueDef CORBA_ExtValueDefSeq; #define CORBA_ExtValueDefSeq_marshal(x,y,z) CORBA_sequence_CORBA_ExtValueDef_marshal((x),(y),(z)) #define CORBA_ExtValueDefSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_ExtValueDef_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ExtValueDefSeq_0) #define TC_IMPL_TC_CORBA_ExtValueDefSeq_0 'c' #define TC_IMPL_TC_CORBA_ExtValueDefSeq_1 'o' #define TC_IMPL_TC_CORBA_ExtValueDefSeq_2 'r' #define TC_IMPL_TC_CORBA_ExtValueDefSeq_3 'b' #define TC_IMPL_TC_CORBA_ExtValueDefSeq_4 'a' #define TC_IMPL_TC_CORBA_ExtValueDefSeq_5 '_' #define TC_IMPL_TC_CORBA_ExtValueDefSeq_6 'd' #define TC_IMPL_TC_CORBA_ExtValueDefSeq_7 'e' #define TC_IMPL_TC_CORBA_ExtValueDefSeq_8 'f' #define TC_IMPL_TC_CORBA_ExtValueDefSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtValueDefSeq_struct; #define TC_CORBA_ExtValueDefSeq ((CORBA_TypeCode)&TC_CORBA_ExtValueDefSeq_struct) #endif #define CORBA_ExtValueDefSeq__alloc() ((CORBA_ExtValueDefSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_ExtValueDef)) #define CORBA_ExtValueDefSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_ExtValueDef,(m),(d)) #define CORBA_ExtValueDefSeq_allocbuf(l) ((CORBA_ExtValueDef*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ExtValueDef, (l))) #endif #if !defined(ORBIT_DECL_CORBA_ExtAbstractInterfaceDef) && !defined(_CORBA_ExtAbstractInterfaceDef_defined) #define ORBIT_DECL_CORBA_ExtAbstractInterfaceDef 1 #define _CORBA_ExtAbstractInterfaceDef_defined 1 #define CORBA_ExtAbstractInterfaceDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ExtAbstractInterfaceDef; extern CORBA_unsigned_long CORBA_ExtAbstractInterfaceDef__classid; #if !defined(TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_0) #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtAbstractInterfaceDef_struct; #define TC_CORBA_ExtAbstractInterfaceDef ((CORBA_TypeCode)&TC_CORBA_ExtAbstractInterfaceDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Object) #define ORBIT_DECL_CORBA_sequence_CORBA_Object 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_9 's' #if !defined(_CORBA_sequence_CORBA_Object_defined) #define _CORBA_sequence_CORBA_Object_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_Object* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_Object; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Object_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Object_struct; #define TC_CORBA_sequence_CORBA_Object ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Object_struct) #endif #define CORBA_sequence_CORBA_Object__alloc() ((CORBA_sequence_CORBA_Object *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Object)) #define CORBA_sequence_CORBA_Object__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Object,(m),(d)) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_ExtAbstractInterfaceDef) #define ORBIT_DECL_CORBA_sequence_CORBA_ExtAbstractInterfaceDef 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_9 's' #if !defined(_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_defined) #define _CORBA_sequence_CORBA_ExtAbstractInterfaceDef_defined 1 typedef CORBA_sequence_CORBA_Object CORBA_sequence_CORBA_ExtAbstractInterfaceDef; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_struct; #define TC_CORBA_sequence_CORBA_ExtAbstractInterfaceDef ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_ExtAbstractInterfaceDef_struct) #endif #define CORBA_sequence_CORBA_ExtAbstractInterfaceDef__alloc CORBA_sequence_CORBA_Object__alloc #define CORBA_sequence_CORBA_ExtAbstractInterfaceDef__freekids CORBA_sequence_CORBA_Object__freekids #define CORBA_sequence_CORBA_ExtAbstractInterfaceDef_allocbuf CORBA_sequence_CORBA_Object_allocbuf #define CORBA_sequence_CORBA_ExtAbstractInterfaceDef_marshal(x,y,z) CORBA_sequence_CORBA_Object_marshal((x),(y),(z)) #define CORBA_sequence_CORBA_ExtAbstractInterfaceDef_demarshal(x,y,z,i) CORBA_sequence_CORBA_Object_demarshal((x),(y),(z),(i)) #endif #if !defined(_CORBA_ExtAbstractInterfaceDefSeq_defined) #define _CORBA_ExtAbstractInterfaceDefSeq_defined 1 typedef CORBA_sequence_CORBA_ExtAbstractInterfaceDef CORBA_ExtAbstractInterfaceDefSeq; #define CORBA_ExtAbstractInterfaceDefSeq_marshal(x,y,z) CORBA_sequence_CORBA_ExtAbstractInterfaceDef_marshal((x),(y),(z)) #define CORBA_ExtAbstractInterfaceDefSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_ExtAbstractInterfaceDef_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ExtAbstractInterfaceDefSeq_0) #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDefSeq_0 'c' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDefSeq_1 'o' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDefSeq_2 'r' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDefSeq_3 'b' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDefSeq_4 'a' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDefSeq_5 '_' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDefSeq_6 'd' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDefSeq_7 'e' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDefSeq_8 'f' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDefSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtAbstractInterfaceDefSeq_struct; #define TC_CORBA_ExtAbstractInterfaceDefSeq ((CORBA_TypeCode)&TC_CORBA_ExtAbstractInterfaceDefSeq_struct) #endif #define CORBA_ExtAbstractInterfaceDefSeq__alloc() ((CORBA_ExtAbstractInterfaceDefSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_ExtAbstractInterfaceDef)) #define CORBA_ExtAbstractInterfaceDefSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_ExtAbstractInterfaceDef,(m),(d)) #define CORBA_ExtAbstractInterfaceDefSeq_allocbuf(l) ((CORBA_ExtAbstractInterfaceDef*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ExtAbstractInterfaceDef, (l))) #endif #if !defined(ORBIT_DECL_CORBA_ExtLocalInterfaceDef) && !defined(_CORBA_ExtLocalInterfaceDef_defined) #define ORBIT_DECL_CORBA_ExtLocalInterfaceDef 1 #define _CORBA_ExtLocalInterfaceDef_defined 1 #define CORBA_ExtLocalInterfaceDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ExtLocalInterfaceDef; extern CORBA_unsigned_long CORBA_ExtLocalInterfaceDef__classid; #if !defined(TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_0) #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtLocalInterfaceDef_struct; #define TC_CORBA_ExtLocalInterfaceDef ((CORBA_TypeCode)&TC_CORBA_ExtLocalInterfaceDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Object) #define ORBIT_DECL_CORBA_sequence_CORBA_Object 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_9 's' #if !defined(_CORBA_sequence_CORBA_Object_defined) #define _CORBA_sequence_CORBA_Object_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_Object* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_Object; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Object_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Object_struct; #define TC_CORBA_sequence_CORBA_Object ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Object_struct) #endif #define CORBA_sequence_CORBA_Object__alloc() ((CORBA_sequence_CORBA_Object *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Object)) #define CORBA_sequence_CORBA_Object__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Object,(m),(d)) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_ExtLocalInterfaceDef) #define ORBIT_DECL_CORBA_sequence_CORBA_ExtLocalInterfaceDef 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtLocalInterfaceDef_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtLocalInterfaceDef_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtLocalInterfaceDef_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtLocalInterfaceDef_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtLocalInterfaceDef_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtLocalInterfaceDef_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtLocalInterfaceDef_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtLocalInterfaceDef_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtLocalInterfaceDef_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtLocalInterfaceDef_9 's' #if !defined(_CORBA_sequence_CORBA_ExtLocalInterfaceDef_defined) #define _CORBA_sequence_CORBA_ExtLocalInterfaceDef_defined 1 typedef CORBA_sequence_CORBA_Object CORBA_sequence_CORBA_ExtLocalInterfaceDef; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_ExtLocalInterfaceDef_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtLocalInterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtLocalInterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtLocalInterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtLocalInterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtLocalInterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtLocalInterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtLocalInterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtLocalInterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtLocalInterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtLocalInterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_ExtLocalInterfaceDef_struct; #define TC_CORBA_sequence_CORBA_ExtLocalInterfaceDef ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_ExtLocalInterfaceDef_struct) #endif #define CORBA_sequence_CORBA_ExtLocalInterfaceDef__alloc CORBA_sequence_CORBA_Object__alloc #define CORBA_sequence_CORBA_ExtLocalInterfaceDef__freekids CORBA_sequence_CORBA_Object__freekids #define CORBA_sequence_CORBA_ExtLocalInterfaceDef_allocbuf CORBA_sequence_CORBA_Object_allocbuf #define CORBA_sequence_CORBA_ExtLocalInterfaceDef_marshal(x,y,z) CORBA_sequence_CORBA_Object_marshal((x),(y),(z)) #define CORBA_sequence_CORBA_ExtLocalInterfaceDef_demarshal(x,y,z,i) CORBA_sequence_CORBA_Object_demarshal((x),(y),(z),(i)) #endif #if !defined(_CORBA_ExtLocalInterfaceDefSeq_defined) #define _CORBA_ExtLocalInterfaceDefSeq_defined 1 typedef CORBA_sequence_CORBA_ExtLocalInterfaceDef CORBA_ExtLocalInterfaceDefSeq; #define CORBA_ExtLocalInterfaceDefSeq_marshal(x,y,z) CORBA_sequence_CORBA_ExtLocalInterfaceDef_marshal((x),(y),(z)) #define CORBA_ExtLocalInterfaceDefSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_ExtLocalInterfaceDef_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ExtLocalInterfaceDefSeq_0) #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDefSeq_0 'c' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDefSeq_1 'o' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDefSeq_2 'r' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDefSeq_3 'b' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDefSeq_4 'a' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDefSeq_5 '_' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDefSeq_6 'd' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDefSeq_7 'e' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDefSeq_8 'f' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDefSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtLocalInterfaceDefSeq_struct; #define TC_CORBA_ExtLocalInterfaceDefSeq ((CORBA_TypeCode)&TC_CORBA_ExtLocalInterfaceDefSeq_struct) #endif #define CORBA_ExtLocalInterfaceDefSeq__alloc() ((CORBA_ExtLocalInterfaceDefSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_ExtLocalInterfaceDef)) #define CORBA_ExtLocalInterfaceDefSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_ExtLocalInterfaceDef,(m),(d)) #define CORBA_ExtLocalInterfaceDefSeq_allocbuf(l) ((CORBA_ExtLocalInterfaceDef*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ExtLocalInterfaceDef, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Object) #define ORBIT_DECL_CORBA_sequence_CORBA_Object 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_9 's' #if !defined(_CORBA_sequence_CORBA_Object_defined) #define _CORBA_sequence_CORBA_Object_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_Object* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_Object; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Object_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Object_struct; #define TC_CORBA_sequence_CORBA_Object ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Object_struct) #endif #define CORBA_sequence_CORBA_Object__alloc() ((CORBA_sequence_CORBA_Object *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Object)) #define CORBA_sequence_CORBA_Object__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Object,(m),(d)) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Contained) #define ORBIT_DECL_CORBA_sequence_CORBA_Contained 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Contained_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_Contained_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_Contained_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_Contained_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_Contained_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Contained_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Contained_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Contained_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Contained_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Contained_9 's' #if !defined(_CORBA_sequence_CORBA_Contained_defined) #define _CORBA_sequence_CORBA_Contained_defined 1 typedef CORBA_sequence_CORBA_Object CORBA_sequence_CORBA_Contained; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Contained_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Contained_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_Contained_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_Contained_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_Contained_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_Contained_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Contained_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Contained_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Contained_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Contained_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Contained_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Contained_struct; #define TC_CORBA_sequence_CORBA_Contained ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Contained_struct) #endif #define CORBA_sequence_CORBA_Contained__alloc CORBA_sequence_CORBA_Object__alloc #define CORBA_sequence_CORBA_Contained__freekids CORBA_sequence_CORBA_Object__freekids #define CORBA_sequence_CORBA_Contained_allocbuf CORBA_sequence_CORBA_Object_allocbuf #define CORBA_sequence_CORBA_Contained_marshal(x,y,z) CORBA_sequence_CORBA_Object_marshal((x),(y),(z)) #define CORBA_sequence_CORBA_Contained_demarshal(x,y,z,i) CORBA_sequence_CORBA_Object_demarshal((x),(y),(z),(i)) #endif #if !defined(_CORBA_ContainedSeq_defined) #define _CORBA_ContainedSeq_defined 1 typedef CORBA_sequence_CORBA_Contained CORBA_ContainedSeq; #define CORBA_ContainedSeq_marshal(x,y,z) CORBA_sequence_CORBA_Contained_marshal((x),(y),(z)) #define CORBA_ContainedSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_Contained_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ContainedSeq_0) #define TC_IMPL_TC_CORBA_ContainedSeq_0 'c' #define TC_IMPL_TC_CORBA_ContainedSeq_1 'o' #define TC_IMPL_TC_CORBA_ContainedSeq_2 'r' #define TC_IMPL_TC_CORBA_ContainedSeq_3 'b' #define TC_IMPL_TC_CORBA_ContainedSeq_4 'a' #define TC_IMPL_TC_CORBA_ContainedSeq_5 '_' #define TC_IMPL_TC_CORBA_ContainedSeq_6 'd' #define TC_IMPL_TC_CORBA_ContainedSeq_7 'e' #define TC_IMPL_TC_CORBA_ContainedSeq_8 'f' #define TC_IMPL_TC_CORBA_ContainedSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ContainedSeq_struct; #define TC_CORBA_ContainedSeq ((CORBA_TypeCode)&TC_CORBA_ContainedSeq_struct) #endif #define CORBA_ContainedSeq__alloc() ((CORBA_ContainedSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Contained)) #define CORBA_ContainedSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Contained,(m),(d)) #define CORBA_ContainedSeq_allocbuf(l) ((CORBA_Contained*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Contained, (l))) #endif #if !defined(_CORBA_StructMember_defined) #define _CORBA_StructMember_defined 1 typedef struct CORBA_StructMember_type CORBA_StructMember; struct CORBA_StructMember_type { CORBA_Identifier name; CORBA_TypeCode type; CORBA_IDLType type_def; }; #if !defined(TC_IMPL_TC_CORBA_StructMember_0) #define TC_IMPL_TC_CORBA_StructMember_0 'c' #define TC_IMPL_TC_CORBA_StructMember_1 'o' #define TC_IMPL_TC_CORBA_StructMember_2 'r' #define TC_IMPL_TC_CORBA_StructMember_3 'b' #define TC_IMPL_TC_CORBA_StructMember_4 'a' #define TC_IMPL_TC_CORBA_StructMember_5 '_' #define TC_IMPL_TC_CORBA_StructMember_6 'd' #define TC_IMPL_TC_CORBA_StructMember_7 'e' #define TC_IMPL_TC_CORBA_StructMember_8 'f' #define TC_IMPL_TC_CORBA_StructMember_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_StructMember_struct; #define TC_CORBA_StructMember ((CORBA_TypeCode)&TC_CORBA_StructMember_struct) #endif #define CORBA_StructMember__alloc() ((CORBA_StructMember *)ORBit_small_alloc (TC_CORBA_StructMember)) #define CORBA_StructMember__freekids(m,d) ORBit_small_freekids (TC_CORBA_StructMember,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_StructMember) #define ORBIT_DECL_CORBA_sequence_CORBA_StructMember 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_StructMember_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_StructMember_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_StructMember_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_StructMember_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_StructMember_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_StructMember_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_StructMember_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_StructMember_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_StructMember_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_StructMember_9 's' #if !defined(_CORBA_sequence_CORBA_StructMember_defined) #define _CORBA_sequence_CORBA_StructMember_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_StructMember* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_StructMember; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_StructMember_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_StructMember_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_StructMember_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_StructMember_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_StructMember_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_StructMember_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_StructMember_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_StructMember_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_StructMember_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_StructMember_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_StructMember_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_StructMember_struct; #define TC_CORBA_sequence_CORBA_StructMember ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_StructMember_struct) #endif #define CORBA_sequence_CORBA_StructMember__alloc() ((CORBA_sequence_CORBA_StructMember *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_StructMember)) #define CORBA_sequence_CORBA_StructMember__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_StructMember,(m),(d)) #define CORBA_sequence_CORBA_StructMember_allocbuf(l) ((CORBA_StructMember*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_StructMember, (l))) #define CORBA_sequence_CORBA_StructMember_allocbuf(l) ((CORBA_StructMember*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_StructMember, (l))) #endif #if !defined(_CORBA_StructMemberSeq_defined) #define _CORBA_StructMemberSeq_defined 1 typedef CORBA_sequence_CORBA_StructMember CORBA_StructMemberSeq; #define CORBA_StructMemberSeq_marshal(x,y,z) CORBA_sequence_CORBA_StructMember_marshal((x),(y),(z)) #define CORBA_StructMemberSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_StructMember_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_StructMemberSeq_0) #define TC_IMPL_TC_CORBA_StructMemberSeq_0 'c' #define TC_IMPL_TC_CORBA_StructMemberSeq_1 'o' #define TC_IMPL_TC_CORBA_StructMemberSeq_2 'r' #define TC_IMPL_TC_CORBA_StructMemberSeq_3 'b' #define TC_IMPL_TC_CORBA_StructMemberSeq_4 'a' #define TC_IMPL_TC_CORBA_StructMemberSeq_5 '_' #define TC_IMPL_TC_CORBA_StructMemberSeq_6 'd' #define TC_IMPL_TC_CORBA_StructMemberSeq_7 'e' #define TC_IMPL_TC_CORBA_StructMemberSeq_8 'f' #define TC_IMPL_TC_CORBA_StructMemberSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_StructMemberSeq_struct; #define TC_CORBA_StructMemberSeq ((CORBA_TypeCode)&TC_CORBA_StructMemberSeq_struct) #endif #define CORBA_StructMemberSeq__alloc() ((CORBA_StructMemberSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_StructMember)) #define CORBA_StructMemberSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_StructMember,(m),(d)) #define CORBA_StructMemberSeq_allocbuf(l) ((CORBA_StructMember*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_StructMember, (l))) #endif #if !defined(_CORBA_Initializer_defined) #define _CORBA_Initializer_defined 1 typedef struct CORBA_Initializer_type CORBA_Initializer; struct CORBA_Initializer_type { CORBA_StructMemberSeq members; CORBA_Identifier name; }; #if !defined(TC_IMPL_TC_CORBA_Initializer_0) #define TC_IMPL_TC_CORBA_Initializer_0 'c' #define TC_IMPL_TC_CORBA_Initializer_1 'o' #define TC_IMPL_TC_CORBA_Initializer_2 'r' #define TC_IMPL_TC_CORBA_Initializer_3 'b' #define TC_IMPL_TC_CORBA_Initializer_4 'a' #define TC_IMPL_TC_CORBA_Initializer_5 '_' #define TC_IMPL_TC_CORBA_Initializer_6 'd' #define TC_IMPL_TC_CORBA_Initializer_7 'e' #define TC_IMPL_TC_CORBA_Initializer_8 'f' #define TC_IMPL_TC_CORBA_Initializer_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_Initializer_struct; #define TC_CORBA_Initializer ((CORBA_TypeCode)&TC_CORBA_Initializer_struct) #endif #define CORBA_Initializer__alloc() ((CORBA_Initializer *)ORBit_small_alloc (TC_CORBA_Initializer)) #define CORBA_Initializer__freekids(m,d) ORBit_small_freekids (TC_CORBA_Initializer,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Initializer) #define ORBIT_DECL_CORBA_sequence_CORBA_Initializer 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Initializer_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_Initializer_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_Initializer_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_Initializer_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_Initializer_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Initializer_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Initializer_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Initializer_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Initializer_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Initializer_9 's' #if !defined(_CORBA_sequence_CORBA_Initializer_defined) #define _CORBA_sequence_CORBA_Initializer_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_Initializer* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_Initializer; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Initializer_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Initializer_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_Initializer_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_Initializer_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_Initializer_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_Initializer_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Initializer_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Initializer_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Initializer_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Initializer_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Initializer_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Initializer_struct; #define TC_CORBA_sequence_CORBA_Initializer ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Initializer_struct) #endif #define CORBA_sequence_CORBA_Initializer__alloc() ((CORBA_sequence_CORBA_Initializer *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Initializer)) #define CORBA_sequence_CORBA_Initializer__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Initializer,(m),(d)) #define CORBA_sequence_CORBA_Initializer_allocbuf(l) ((CORBA_Initializer*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Initializer, (l))) #define CORBA_sequence_CORBA_Initializer_allocbuf(l) ((CORBA_Initializer*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Initializer, (l))) #endif #if !defined(_CORBA_InitializerSeq_defined) #define _CORBA_InitializerSeq_defined 1 typedef CORBA_sequence_CORBA_Initializer CORBA_InitializerSeq; #define CORBA_InitializerSeq_marshal(x,y,z) CORBA_sequence_CORBA_Initializer_marshal((x),(y),(z)) #define CORBA_InitializerSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_Initializer_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_InitializerSeq_0) #define TC_IMPL_TC_CORBA_InitializerSeq_0 'c' #define TC_IMPL_TC_CORBA_InitializerSeq_1 'o' #define TC_IMPL_TC_CORBA_InitializerSeq_2 'r' #define TC_IMPL_TC_CORBA_InitializerSeq_3 'b' #define TC_IMPL_TC_CORBA_InitializerSeq_4 'a' #define TC_IMPL_TC_CORBA_InitializerSeq_5 '_' #define TC_IMPL_TC_CORBA_InitializerSeq_6 'd' #define TC_IMPL_TC_CORBA_InitializerSeq_7 'e' #define TC_IMPL_TC_CORBA_InitializerSeq_8 'f' #define TC_IMPL_TC_CORBA_InitializerSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_InitializerSeq_struct; #define TC_CORBA_InitializerSeq ((CORBA_TypeCode)&TC_CORBA_InitializerSeq_struct) #endif #define CORBA_InitializerSeq__alloc() ((CORBA_InitializerSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Initializer)) #define CORBA_InitializerSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Initializer,(m),(d)) #define CORBA_InitializerSeq_allocbuf(l) ((CORBA_Initializer*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Initializer, (l))) #endif #if !defined(_CORBA_UnionMember_defined) #define _CORBA_UnionMember_defined 1 typedef struct CORBA_UnionMember_type CORBA_UnionMember; struct CORBA_UnionMember_type { CORBA_Identifier name; CORBA_any label; CORBA_TypeCode type; CORBA_IDLType type_def; }; #if !defined(TC_IMPL_TC_CORBA_UnionMember_0) #define TC_IMPL_TC_CORBA_UnionMember_0 'c' #define TC_IMPL_TC_CORBA_UnionMember_1 'o' #define TC_IMPL_TC_CORBA_UnionMember_2 'r' #define TC_IMPL_TC_CORBA_UnionMember_3 'b' #define TC_IMPL_TC_CORBA_UnionMember_4 'a' #define TC_IMPL_TC_CORBA_UnionMember_5 '_' #define TC_IMPL_TC_CORBA_UnionMember_6 'd' #define TC_IMPL_TC_CORBA_UnionMember_7 'e' #define TC_IMPL_TC_CORBA_UnionMember_8 'f' #define TC_IMPL_TC_CORBA_UnionMember_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_UnionMember_struct; #define TC_CORBA_UnionMember ((CORBA_TypeCode)&TC_CORBA_UnionMember_struct) #endif #define CORBA_UnionMember__alloc() ((CORBA_UnionMember *)ORBit_small_alloc (TC_CORBA_UnionMember)) #define CORBA_UnionMember__freekids(m,d) ORBit_small_freekids (TC_CORBA_UnionMember,(m),(d)) #endif #if !defined(_CORBA_ExceptionDescription_defined) #define _CORBA_ExceptionDescription_defined 1 typedef struct CORBA_ExceptionDescription_type CORBA_ExceptionDescription; struct CORBA_ExceptionDescription_type { CORBA_Identifier name; CORBA_RepositoryId id; CORBA_RepositoryId defined_in; CORBA_VersionSpec version; CORBA_TypeCode type; }; #if !defined(TC_IMPL_TC_CORBA_ExceptionDescription_0) #define TC_IMPL_TC_CORBA_ExceptionDescription_0 'c' #define TC_IMPL_TC_CORBA_ExceptionDescription_1 'o' #define TC_IMPL_TC_CORBA_ExceptionDescription_2 'r' #define TC_IMPL_TC_CORBA_ExceptionDescription_3 'b' #define TC_IMPL_TC_CORBA_ExceptionDescription_4 'a' #define TC_IMPL_TC_CORBA_ExceptionDescription_5 '_' #define TC_IMPL_TC_CORBA_ExceptionDescription_6 'd' #define TC_IMPL_TC_CORBA_ExceptionDescription_7 'e' #define TC_IMPL_TC_CORBA_ExceptionDescription_8 'f' #define TC_IMPL_TC_CORBA_ExceptionDescription_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExceptionDescription_struct; #define TC_CORBA_ExceptionDescription ((CORBA_TypeCode)&TC_CORBA_ExceptionDescription_struct) #endif #define CORBA_ExceptionDescription__alloc() ((CORBA_ExceptionDescription *)ORBit_small_alloc (TC_CORBA_ExceptionDescription)) #define CORBA_ExceptionDescription__freekids(m,d) ORBit_small_freekids (TC_CORBA_ExceptionDescription,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_ExceptionDescription) #define ORBIT_DECL_CORBA_sequence_CORBA_ExceptionDescription 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_ExceptionDescription_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExceptionDescription_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExceptionDescription_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExceptionDescription_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExceptionDescription_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExceptionDescription_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExceptionDescription_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExceptionDescription_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExceptionDescription_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExceptionDescription_9 's' #if !defined(_CORBA_sequence_CORBA_ExceptionDescription_defined) #define _CORBA_sequence_CORBA_ExceptionDescription_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_ExceptionDescription* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_ExceptionDescription; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDescription_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDescription_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDescription_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDescription_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDescription_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDescription_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDescription_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDescription_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDescription_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDescription_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDescription_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_ExceptionDescription_struct; #define TC_CORBA_sequence_CORBA_ExceptionDescription ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_ExceptionDescription_struct) #endif #define CORBA_sequence_CORBA_ExceptionDescription__alloc() ((CORBA_sequence_CORBA_ExceptionDescription *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_ExceptionDescription)) #define CORBA_sequence_CORBA_ExceptionDescription__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_ExceptionDescription,(m),(d)) #define CORBA_sequence_CORBA_ExceptionDescription_allocbuf(l) ((CORBA_ExceptionDescription*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ExceptionDescription, (l))) #define CORBA_sequence_CORBA_ExceptionDescription_allocbuf(l) ((CORBA_ExceptionDescription*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ExceptionDescription, (l))) #endif #if !defined(_CORBA_ExcDescriptionSeq_defined) #define _CORBA_ExcDescriptionSeq_defined 1 typedef CORBA_sequence_CORBA_ExceptionDescription CORBA_ExcDescriptionSeq; #define CORBA_ExcDescriptionSeq_marshal(x,y,z) CORBA_sequence_CORBA_ExceptionDescription_marshal((x),(y),(z)) #define CORBA_ExcDescriptionSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_ExceptionDescription_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ExcDescriptionSeq_0) #define TC_IMPL_TC_CORBA_ExcDescriptionSeq_0 'c' #define TC_IMPL_TC_CORBA_ExcDescriptionSeq_1 'o' #define TC_IMPL_TC_CORBA_ExcDescriptionSeq_2 'r' #define TC_IMPL_TC_CORBA_ExcDescriptionSeq_3 'b' #define TC_IMPL_TC_CORBA_ExcDescriptionSeq_4 'a' #define TC_IMPL_TC_CORBA_ExcDescriptionSeq_5 '_' #define TC_IMPL_TC_CORBA_ExcDescriptionSeq_6 'd' #define TC_IMPL_TC_CORBA_ExcDescriptionSeq_7 'e' #define TC_IMPL_TC_CORBA_ExcDescriptionSeq_8 'f' #define TC_IMPL_TC_CORBA_ExcDescriptionSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExcDescriptionSeq_struct; #define TC_CORBA_ExcDescriptionSeq ((CORBA_TypeCode)&TC_CORBA_ExcDescriptionSeq_struct) #endif #define CORBA_ExcDescriptionSeq__alloc() ((CORBA_ExcDescriptionSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_ExceptionDescription)) #define CORBA_ExcDescriptionSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_ExceptionDescription,(m),(d)) #define CORBA_ExcDescriptionSeq_allocbuf(l) ((CORBA_ExceptionDescription*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ExceptionDescription, (l))) #endif #if !defined(_CORBA_ExtInitializer_defined) #define _CORBA_ExtInitializer_defined 1 typedef struct CORBA_ExtInitializer_type CORBA_ExtInitializer; struct CORBA_ExtInitializer_type { CORBA_StructMemberSeq members; CORBA_ExcDescriptionSeq exceptions; CORBA_Identifier name; }; #if !defined(TC_IMPL_TC_CORBA_ExtInitializer_0) #define TC_IMPL_TC_CORBA_ExtInitializer_0 'c' #define TC_IMPL_TC_CORBA_ExtInitializer_1 'o' #define TC_IMPL_TC_CORBA_ExtInitializer_2 'r' #define TC_IMPL_TC_CORBA_ExtInitializer_3 'b' #define TC_IMPL_TC_CORBA_ExtInitializer_4 'a' #define TC_IMPL_TC_CORBA_ExtInitializer_5 '_' #define TC_IMPL_TC_CORBA_ExtInitializer_6 'd' #define TC_IMPL_TC_CORBA_ExtInitializer_7 'e' #define TC_IMPL_TC_CORBA_ExtInitializer_8 'f' #define TC_IMPL_TC_CORBA_ExtInitializer_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtInitializer_struct; #define TC_CORBA_ExtInitializer ((CORBA_TypeCode)&TC_CORBA_ExtInitializer_struct) #endif #define CORBA_ExtInitializer__alloc() ((CORBA_ExtInitializer *)ORBit_small_alloc (TC_CORBA_ExtInitializer)) #define CORBA_ExtInitializer__freekids(m,d) ORBit_small_freekids (TC_CORBA_ExtInitializer,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_ExtInitializer) #define ORBIT_DECL_CORBA_sequence_CORBA_ExtInitializer 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtInitializer_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtInitializer_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtInitializer_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtInitializer_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtInitializer_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtInitializer_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtInitializer_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtInitializer_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtInitializer_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtInitializer_9 's' #if !defined(_CORBA_sequence_CORBA_ExtInitializer_defined) #define _CORBA_sequence_CORBA_ExtInitializer_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_ExtInitializer* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_ExtInitializer; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_ExtInitializer_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtInitializer_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtInitializer_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtInitializer_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtInitializer_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtInitializer_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtInitializer_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtInitializer_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtInitializer_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtInitializer_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtInitializer_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_ExtInitializer_struct; #define TC_CORBA_sequence_CORBA_ExtInitializer ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_ExtInitializer_struct) #endif #define CORBA_sequence_CORBA_ExtInitializer__alloc() ((CORBA_sequence_CORBA_ExtInitializer *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_ExtInitializer)) #define CORBA_sequence_CORBA_ExtInitializer__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_ExtInitializer,(m),(d)) #define CORBA_sequence_CORBA_ExtInitializer_allocbuf(l) ((CORBA_ExtInitializer*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ExtInitializer, (l))) #define CORBA_sequence_CORBA_ExtInitializer_allocbuf(l) ((CORBA_ExtInitializer*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ExtInitializer, (l))) #endif #if !defined(_CORBA_ExtInitializerSeq_defined) #define _CORBA_ExtInitializerSeq_defined 1 typedef CORBA_sequence_CORBA_ExtInitializer CORBA_ExtInitializerSeq; #define CORBA_ExtInitializerSeq_marshal(x,y,z) CORBA_sequence_CORBA_ExtInitializer_marshal((x),(y),(z)) #define CORBA_ExtInitializerSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_ExtInitializer_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ExtInitializerSeq_0) #define TC_IMPL_TC_CORBA_ExtInitializerSeq_0 'c' #define TC_IMPL_TC_CORBA_ExtInitializerSeq_1 'o' #define TC_IMPL_TC_CORBA_ExtInitializerSeq_2 'r' #define TC_IMPL_TC_CORBA_ExtInitializerSeq_3 'b' #define TC_IMPL_TC_CORBA_ExtInitializerSeq_4 'a' #define TC_IMPL_TC_CORBA_ExtInitializerSeq_5 '_' #define TC_IMPL_TC_CORBA_ExtInitializerSeq_6 'd' #define TC_IMPL_TC_CORBA_ExtInitializerSeq_7 'e' #define TC_IMPL_TC_CORBA_ExtInitializerSeq_8 'f' #define TC_IMPL_TC_CORBA_ExtInitializerSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtInitializerSeq_struct; #define TC_CORBA_ExtInitializerSeq ((CORBA_TypeCode)&TC_CORBA_ExtInitializerSeq_struct) #endif #define CORBA_ExtInitializerSeq__alloc() ((CORBA_ExtInitializerSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_ExtInitializer)) #define CORBA_ExtInitializerSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_ExtInitializer,(m),(d)) #define CORBA_ExtInitializerSeq_allocbuf(l) ((CORBA_ExtInitializer*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ExtInitializer, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_UnionMember) #define ORBIT_DECL_CORBA_sequence_CORBA_UnionMember 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_UnionMember_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_UnionMember_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_UnionMember_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_UnionMember_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_UnionMember_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_UnionMember_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_UnionMember_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_UnionMember_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_UnionMember_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_UnionMember_9 's' #if !defined(_CORBA_sequence_CORBA_UnionMember_defined) #define _CORBA_sequence_CORBA_UnionMember_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_UnionMember* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_UnionMember; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_UnionMember_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_UnionMember_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_UnionMember_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_UnionMember_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_UnionMember_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_UnionMember_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_UnionMember_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_UnionMember_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_UnionMember_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_UnionMember_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_UnionMember_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_UnionMember_struct; #define TC_CORBA_sequence_CORBA_UnionMember ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_UnionMember_struct) #endif #define CORBA_sequence_CORBA_UnionMember__alloc() ((CORBA_sequence_CORBA_UnionMember *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_UnionMember)) #define CORBA_sequence_CORBA_UnionMember__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_UnionMember,(m),(d)) #define CORBA_sequence_CORBA_UnionMember_allocbuf(l) ((CORBA_UnionMember*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_UnionMember, (l))) #define CORBA_sequence_CORBA_UnionMember_allocbuf(l) ((CORBA_UnionMember*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_UnionMember, (l))) #endif #if !defined(_CORBA_UnionMemberSeq_defined) #define _CORBA_UnionMemberSeq_defined 1 typedef CORBA_sequence_CORBA_UnionMember CORBA_UnionMemberSeq; #define CORBA_UnionMemberSeq_marshal(x,y,z) CORBA_sequence_CORBA_UnionMember_marshal((x),(y),(z)) #define CORBA_UnionMemberSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_UnionMember_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_UnionMemberSeq_0) #define TC_IMPL_TC_CORBA_UnionMemberSeq_0 'c' #define TC_IMPL_TC_CORBA_UnionMemberSeq_1 'o' #define TC_IMPL_TC_CORBA_UnionMemberSeq_2 'r' #define TC_IMPL_TC_CORBA_UnionMemberSeq_3 'b' #define TC_IMPL_TC_CORBA_UnionMemberSeq_4 'a' #define TC_IMPL_TC_CORBA_UnionMemberSeq_5 '_' #define TC_IMPL_TC_CORBA_UnionMemberSeq_6 'd' #define TC_IMPL_TC_CORBA_UnionMemberSeq_7 'e' #define TC_IMPL_TC_CORBA_UnionMemberSeq_8 'f' #define TC_IMPL_TC_CORBA_UnionMemberSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_UnionMemberSeq_struct; #define TC_CORBA_UnionMemberSeq ((CORBA_TypeCode)&TC_CORBA_UnionMemberSeq_struct) #endif #define CORBA_UnionMemberSeq__alloc() ((CORBA_UnionMemberSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_UnionMember)) #define CORBA_UnionMemberSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_UnionMember,(m),(d)) #define CORBA_UnionMemberSeq_allocbuf(l) ((CORBA_UnionMember*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_UnionMember, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_string) #define ORBIT_DECL_CORBA_sequence_CORBA_string 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_string_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_9 's' #if !defined(_CORBA_sequence_CORBA_string_defined) #define _CORBA_sequence_CORBA_string_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_string* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_string; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_string_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_string_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_string_struct; #define TC_CORBA_sequence_CORBA_string ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_string_struct) #endif #define CORBA_sequence_CORBA_string__alloc() ((CORBA_sequence_CORBA_string *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_string)) #define CORBA_sequence_CORBA_string__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_string,(m),(d)) #define CORBA_sequence_CORBA_string_allocbuf(l) ((CORBA_string*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_string, (l))) #define CORBA_sequence_CORBA_string_allocbuf(l) ((CORBA_string*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_string, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Identifier) #define ORBIT_DECL_CORBA_sequence_CORBA_Identifier 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Identifier_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_Identifier_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_Identifier_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_Identifier_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_Identifier_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Identifier_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Identifier_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Identifier_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Identifier_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Identifier_9 's' #if !defined(_CORBA_sequence_CORBA_Identifier_defined) #define _CORBA_sequence_CORBA_Identifier_defined 1 typedef CORBA_sequence_CORBA_string CORBA_sequence_CORBA_Identifier; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Identifier_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Identifier_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_Identifier_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_Identifier_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_Identifier_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_Identifier_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Identifier_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Identifier_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Identifier_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Identifier_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Identifier_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Identifier_struct; #define TC_CORBA_sequence_CORBA_Identifier ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Identifier_struct) #endif #define CORBA_sequence_CORBA_Identifier__alloc CORBA_sequence_CORBA_string__alloc #define CORBA_sequence_CORBA_Identifier__freekids CORBA_sequence_CORBA_string__freekids #define CORBA_sequence_CORBA_Identifier_allocbuf CORBA_sequence_CORBA_string_allocbuf #define CORBA_sequence_CORBA_Identifier_marshal(x,y,z) CORBA_sequence_CORBA_string_marshal((x),(y),(z)) #define CORBA_sequence_CORBA_Identifier_demarshal(x,y,z,i) CORBA_sequence_CORBA_string_demarshal((x),(y),(z),(i)) #endif #if !defined(_CORBA_EnumMemberSeq_defined) #define _CORBA_EnumMemberSeq_defined 1 typedef CORBA_sequence_CORBA_Identifier CORBA_EnumMemberSeq; #define CORBA_EnumMemberSeq_marshal(x,y,z) CORBA_sequence_CORBA_Identifier_marshal((x),(y),(z)) #define CORBA_EnumMemberSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_Identifier_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_EnumMemberSeq_0) #define TC_IMPL_TC_CORBA_EnumMemberSeq_0 'c' #define TC_IMPL_TC_CORBA_EnumMemberSeq_1 'o' #define TC_IMPL_TC_CORBA_EnumMemberSeq_2 'r' #define TC_IMPL_TC_CORBA_EnumMemberSeq_3 'b' #define TC_IMPL_TC_CORBA_EnumMemberSeq_4 'a' #define TC_IMPL_TC_CORBA_EnumMemberSeq_5 '_' #define TC_IMPL_TC_CORBA_EnumMemberSeq_6 'd' #define TC_IMPL_TC_CORBA_EnumMemberSeq_7 'e' #define TC_IMPL_TC_CORBA_EnumMemberSeq_8 'f' #define TC_IMPL_TC_CORBA_EnumMemberSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_EnumMemberSeq_struct; #define TC_CORBA_EnumMemberSeq ((CORBA_TypeCode)&TC_CORBA_EnumMemberSeq_struct) #endif #define CORBA_EnumMemberSeq__alloc() ((CORBA_EnumMemberSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Identifier)) #define CORBA_EnumMemberSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Identifier,(m),(d)) #define CORBA_EnumMemberSeq_allocbuf(l) ((CORBA_Identifier*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Identifier, (l))) #endif #if !defined(ORBIT_DECL_CORBA_Container) && !defined(_CORBA_Container_defined) #define ORBIT_DECL_CORBA_Container 1 #define _CORBA_Container_defined 1 #define CORBA_Container__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_Container; extern CORBA_unsigned_long CORBA_Container__classid; #if !defined(TC_IMPL_TC_CORBA_Container_0) #define TC_IMPL_TC_CORBA_Container_0 'c' #define TC_IMPL_TC_CORBA_Container_1 'o' #define TC_IMPL_TC_CORBA_Container_2 'r' #define TC_IMPL_TC_CORBA_Container_3 'b' #define TC_IMPL_TC_CORBA_Container_4 'a' #define TC_IMPL_TC_CORBA_Container_5 '_' #define TC_IMPL_TC_CORBA_Container_6 'd' #define TC_IMPL_TC_CORBA_Container_7 'e' #define TC_IMPL_TC_CORBA_Container_8 'f' #define TC_IMPL_TC_CORBA_Container_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_Container_struct; #define TC_CORBA_Container ((CORBA_TypeCode)&TC_CORBA_Container_struct) #endif #endif #if !defined(_CORBA_Container_Description_defined) #define _CORBA_Container_Description_defined 1 typedef struct CORBA_Container_Description_type CORBA_Container_Description; struct CORBA_Container_Description_type { CORBA_Contained contained_object; CORBA_DefinitionKind kind; CORBA_any value; }; #if !defined(TC_IMPL_TC_CORBA_Container_Description_0) #define TC_IMPL_TC_CORBA_Container_Description_0 'c' #define TC_IMPL_TC_CORBA_Container_Description_1 'o' #define TC_IMPL_TC_CORBA_Container_Description_2 'r' #define TC_IMPL_TC_CORBA_Container_Description_3 'b' #define TC_IMPL_TC_CORBA_Container_Description_4 'a' #define TC_IMPL_TC_CORBA_Container_Description_5 '_' #define TC_IMPL_TC_CORBA_Container_Description_6 'd' #define TC_IMPL_TC_CORBA_Container_Description_7 'e' #define TC_IMPL_TC_CORBA_Container_Description_8 'f' #define TC_IMPL_TC_CORBA_Container_Description_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_Container_Description_struct; #define TC_CORBA_Container_Description ((CORBA_TypeCode)&TC_CORBA_Container_Description_struct) #endif #define CORBA_Container_Description__alloc() ((CORBA_Container_Description *)ORBit_small_alloc (TC_CORBA_Container_Description)) #define CORBA_Container_Description__freekids(m,d) ORBit_small_freekids (TC_CORBA_Container_Description,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Container_Description) #define ORBIT_DECL_CORBA_sequence_CORBA_Container_Description 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Container_Description_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_Container_Description_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_Container_Description_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_Container_Description_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_Container_Description_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Container_Description_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Container_Description_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Container_Description_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Container_Description_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Container_Description_9 's' #if !defined(_CORBA_sequence_CORBA_Container_Description_defined) #define _CORBA_sequence_CORBA_Container_Description_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_Container_Description* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_Container_Description; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Container_Description_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Container_Description_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_Container_Description_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_Container_Description_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_Container_Description_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_Container_Description_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Container_Description_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Container_Description_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Container_Description_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Container_Description_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Container_Description_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Container_Description_struct; #define TC_CORBA_sequence_CORBA_Container_Description ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Container_Description_struct) #endif #define CORBA_sequence_CORBA_Container_Description__alloc() ((CORBA_sequence_CORBA_Container_Description *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Container_Description)) #define CORBA_sequence_CORBA_Container_Description__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Container_Description,(m),(d)) #define CORBA_sequence_CORBA_Container_Description_allocbuf(l) ((CORBA_Container_Description*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Container_Description, (l))) #define CORBA_sequence_CORBA_Container_Description_allocbuf(l) ((CORBA_Container_Description*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Container_Description, (l))) #endif #if !defined(_CORBA_Container_DescriptionSeq_defined) #define _CORBA_Container_DescriptionSeq_defined 1 typedef CORBA_sequence_CORBA_Container_Description CORBA_Container_DescriptionSeq; #define CORBA_Container_DescriptionSeq_marshal(x,y,z) CORBA_sequence_CORBA_Container_Description_marshal((x),(y),(z)) #define CORBA_Container_DescriptionSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_Container_Description_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_Container_DescriptionSeq_0) #define TC_IMPL_TC_CORBA_Container_DescriptionSeq_0 'c' #define TC_IMPL_TC_CORBA_Container_DescriptionSeq_1 'o' #define TC_IMPL_TC_CORBA_Container_DescriptionSeq_2 'r' #define TC_IMPL_TC_CORBA_Container_DescriptionSeq_3 'b' #define TC_IMPL_TC_CORBA_Container_DescriptionSeq_4 'a' #define TC_IMPL_TC_CORBA_Container_DescriptionSeq_5 '_' #define TC_IMPL_TC_CORBA_Container_DescriptionSeq_6 'd' #define TC_IMPL_TC_CORBA_Container_DescriptionSeq_7 'e' #define TC_IMPL_TC_CORBA_Container_DescriptionSeq_8 'f' #define TC_IMPL_TC_CORBA_Container_DescriptionSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_Container_DescriptionSeq_struct; #define TC_CORBA_Container_DescriptionSeq ((CORBA_TypeCode)&TC_CORBA_Container_DescriptionSeq_struct) #endif #define CORBA_Container_DescriptionSeq__alloc() ((CORBA_Container_DescriptionSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Container_Description)) #define CORBA_Container_DescriptionSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Container_Description,(m),(d)) #define CORBA_Container_DescriptionSeq_allocbuf(l) ((CORBA_Container_Description*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Container_Description, (l))) #endif #if !defined(ORBIT_DECL_CORBA_IDLType) && !defined(_CORBA_IDLType_defined) #define ORBIT_DECL_CORBA_IDLType 1 #define _CORBA_IDLType_defined 1 #define CORBA_IDLType__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_IDLType; extern CORBA_unsigned_long CORBA_IDLType__classid; #if !defined(TC_IMPL_TC_CORBA_IDLType_0) #define TC_IMPL_TC_CORBA_IDLType_0 'c' #define TC_IMPL_TC_CORBA_IDLType_1 'o' #define TC_IMPL_TC_CORBA_IDLType_2 'r' #define TC_IMPL_TC_CORBA_IDLType_3 'b' #define TC_IMPL_TC_CORBA_IDLType_4 'a' #define TC_IMPL_TC_CORBA_IDLType_5 '_' #define TC_IMPL_TC_CORBA_IDLType_6 'd' #define TC_IMPL_TC_CORBA_IDLType_7 'e' #define TC_IMPL_TC_CORBA_IDLType_8 'f' #define TC_IMPL_TC_CORBA_IDLType_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_IDLType_struct; #define TC_CORBA_IDLType ((CORBA_TypeCode)&TC_CORBA_IDLType_struct) #endif #endif #if !defined(_CORBA_PrimitiveKind_defined) #define _CORBA_PrimitiveKind_defined 1 typedef enum { CORBA_pk_null, CORBA_pk_void, CORBA_pk_short, CORBA_pk_long, CORBA_pk_ushort, CORBA_pk_ulong, CORBA_pk_float, CORBA_pk_double, CORBA_pk_boolean, CORBA_pk_char, CORBA_pk_octet, CORBA_pk_any, CORBA_pk_TypeCode, CORBA_pk_Principal, CORBA_pk_string, CORBA_pk_objref, CORBA_pk_longlong, CORBA_pk_ulonglong, CORBA_pk_longdouble, CORBA_pk_wchar, CORBA_pk_wstring, CORBA_pk_value_base } CORBA_PrimitiveKind; #if !defined(TC_IMPL_TC_CORBA_PrimitiveKind_0) #define TC_IMPL_TC_CORBA_PrimitiveKind_0 'c' #define TC_IMPL_TC_CORBA_PrimitiveKind_1 'o' #define TC_IMPL_TC_CORBA_PrimitiveKind_2 'r' #define TC_IMPL_TC_CORBA_PrimitiveKind_3 'b' #define TC_IMPL_TC_CORBA_PrimitiveKind_4 'a' #define TC_IMPL_TC_CORBA_PrimitiveKind_5 '_' #define TC_IMPL_TC_CORBA_PrimitiveKind_6 'd' #define TC_IMPL_TC_CORBA_PrimitiveKind_7 'e' #define TC_IMPL_TC_CORBA_PrimitiveKind_8 'f' #define TC_IMPL_TC_CORBA_PrimitiveKind_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_PrimitiveKind_struct; #define TC_CORBA_PrimitiveKind ((CORBA_TypeCode)&TC_CORBA_PrimitiveKind_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_Repository) && !defined(_CORBA_Repository_defined) #define ORBIT_DECL_CORBA_Repository 1 #define _CORBA_Repository_defined 1 #define CORBA_Repository__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_Repository; extern CORBA_unsigned_long CORBA_Repository__classid; #if !defined(TC_IMPL_TC_CORBA_Repository_0) #define TC_IMPL_TC_CORBA_Repository_0 'c' #define TC_IMPL_TC_CORBA_Repository_1 'o' #define TC_IMPL_TC_CORBA_Repository_2 'r' #define TC_IMPL_TC_CORBA_Repository_3 'b' #define TC_IMPL_TC_CORBA_Repository_4 'a' #define TC_IMPL_TC_CORBA_Repository_5 '_' #define TC_IMPL_TC_CORBA_Repository_6 'd' #define TC_IMPL_TC_CORBA_Repository_7 'e' #define TC_IMPL_TC_CORBA_Repository_8 'f' #define TC_IMPL_TC_CORBA_Repository_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_Repository_struct; #define TC_CORBA_Repository ((CORBA_TypeCode)&TC_CORBA_Repository_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_ModuleDef) && !defined(_CORBA_ModuleDef_defined) #define ORBIT_DECL_CORBA_ModuleDef 1 #define _CORBA_ModuleDef_defined 1 #define CORBA_ModuleDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ModuleDef; extern CORBA_unsigned_long CORBA_ModuleDef__classid; #if !defined(TC_IMPL_TC_CORBA_ModuleDef_0) #define TC_IMPL_TC_CORBA_ModuleDef_0 'c' #define TC_IMPL_TC_CORBA_ModuleDef_1 'o' #define TC_IMPL_TC_CORBA_ModuleDef_2 'r' #define TC_IMPL_TC_CORBA_ModuleDef_3 'b' #define TC_IMPL_TC_CORBA_ModuleDef_4 'a' #define TC_IMPL_TC_CORBA_ModuleDef_5 '_' #define TC_IMPL_TC_CORBA_ModuleDef_6 'd' #define TC_IMPL_TC_CORBA_ModuleDef_7 'e' #define TC_IMPL_TC_CORBA_ModuleDef_8 'f' #define TC_IMPL_TC_CORBA_ModuleDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ModuleDef_struct; #define TC_CORBA_ModuleDef ((CORBA_TypeCode)&TC_CORBA_ModuleDef_struct) #endif #endif #if !defined(_CORBA_ModuleDescription_defined) #define _CORBA_ModuleDescription_defined 1 typedef struct CORBA_ModuleDescription_type CORBA_ModuleDescription; struct CORBA_ModuleDescription_type { CORBA_Identifier name; CORBA_RepositoryId id; CORBA_RepositoryId defined_in; CORBA_VersionSpec version; }; #if !defined(TC_IMPL_TC_CORBA_ModuleDescription_0) #define TC_IMPL_TC_CORBA_ModuleDescription_0 'c' #define TC_IMPL_TC_CORBA_ModuleDescription_1 'o' #define TC_IMPL_TC_CORBA_ModuleDescription_2 'r' #define TC_IMPL_TC_CORBA_ModuleDescription_3 'b' #define TC_IMPL_TC_CORBA_ModuleDescription_4 'a' #define TC_IMPL_TC_CORBA_ModuleDescription_5 '_' #define TC_IMPL_TC_CORBA_ModuleDescription_6 'd' #define TC_IMPL_TC_CORBA_ModuleDescription_7 'e' #define TC_IMPL_TC_CORBA_ModuleDescription_8 'f' #define TC_IMPL_TC_CORBA_ModuleDescription_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ModuleDescription_struct; #define TC_CORBA_ModuleDescription ((CORBA_TypeCode)&TC_CORBA_ModuleDescription_struct) #endif #define CORBA_ModuleDescription__alloc() ((CORBA_ModuleDescription *)ORBit_small_alloc (TC_CORBA_ModuleDescription)) #define CORBA_ModuleDescription__freekids(m,d) ORBit_small_freekids (TC_CORBA_ModuleDescription,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_ConstantDef) && !defined(_CORBA_ConstantDef_defined) #define ORBIT_DECL_CORBA_ConstantDef 1 #define _CORBA_ConstantDef_defined 1 #define CORBA_ConstantDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ConstantDef; extern CORBA_unsigned_long CORBA_ConstantDef__classid; #if !defined(TC_IMPL_TC_CORBA_ConstantDef_0) #define TC_IMPL_TC_CORBA_ConstantDef_0 'c' #define TC_IMPL_TC_CORBA_ConstantDef_1 'o' #define TC_IMPL_TC_CORBA_ConstantDef_2 'r' #define TC_IMPL_TC_CORBA_ConstantDef_3 'b' #define TC_IMPL_TC_CORBA_ConstantDef_4 'a' #define TC_IMPL_TC_CORBA_ConstantDef_5 '_' #define TC_IMPL_TC_CORBA_ConstantDef_6 'd' #define TC_IMPL_TC_CORBA_ConstantDef_7 'e' #define TC_IMPL_TC_CORBA_ConstantDef_8 'f' #define TC_IMPL_TC_CORBA_ConstantDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ConstantDef_struct; #define TC_CORBA_ConstantDef ((CORBA_TypeCode)&TC_CORBA_ConstantDef_struct) #endif #endif #if !defined(_CORBA_ConstantDescription_defined) #define _CORBA_ConstantDescription_defined 1 typedef struct CORBA_ConstantDescription_type CORBA_ConstantDescription; struct CORBA_ConstantDescription_type { CORBA_Identifier name; CORBA_RepositoryId id; CORBA_RepositoryId defined_in; CORBA_VersionSpec version; CORBA_TypeCode type; CORBA_any value; }; #if !defined(TC_IMPL_TC_CORBA_ConstantDescription_0) #define TC_IMPL_TC_CORBA_ConstantDescription_0 'c' #define TC_IMPL_TC_CORBA_ConstantDescription_1 'o' #define TC_IMPL_TC_CORBA_ConstantDescription_2 'r' #define TC_IMPL_TC_CORBA_ConstantDescription_3 'b' #define TC_IMPL_TC_CORBA_ConstantDescription_4 'a' #define TC_IMPL_TC_CORBA_ConstantDescription_5 '_' #define TC_IMPL_TC_CORBA_ConstantDescription_6 'd' #define TC_IMPL_TC_CORBA_ConstantDescription_7 'e' #define TC_IMPL_TC_CORBA_ConstantDescription_8 'f' #define TC_IMPL_TC_CORBA_ConstantDescription_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ConstantDescription_struct; #define TC_CORBA_ConstantDescription ((CORBA_TypeCode)&TC_CORBA_ConstantDescription_struct) #endif #define CORBA_ConstantDescription__alloc() ((CORBA_ConstantDescription *)ORBit_small_alloc (TC_CORBA_ConstantDescription)) #define CORBA_ConstantDescription__freekids(m,d) ORBit_small_freekids (TC_CORBA_ConstantDescription,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_TypedefDef) && !defined(_CORBA_TypedefDef_defined) #define ORBIT_DECL_CORBA_TypedefDef 1 #define _CORBA_TypedefDef_defined 1 #define CORBA_TypedefDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_TypedefDef; extern CORBA_unsigned_long CORBA_TypedefDef__classid; #if !defined(TC_IMPL_TC_CORBA_TypedefDef_0) #define TC_IMPL_TC_CORBA_TypedefDef_0 'c' #define TC_IMPL_TC_CORBA_TypedefDef_1 'o' #define TC_IMPL_TC_CORBA_TypedefDef_2 'r' #define TC_IMPL_TC_CORBA_TypedefDef_3 'b' #define TC_IMPL_TC_CORBA_TypedefDef_4 'a' #define TC_IMPL_TC_CORBA_TypedefDef_5 '_' #define TC_IMPL_TC_CORBA_TypedefDef_6 'd' #define TC_IMPL_TC_CORBA_TypedefDef_7 'e' #define TC_IMPL_TC_CORBA_TypedefDef_8 'f' #define TC_IMPL_TC_CORBA_TypedefDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_TypedefDef_struct; #define TC_CORBA_TypedefDef ((CORBA_TypeCode)&TC_CORBA_TypedefDef_struct) #endif #endif #if !defined(_CORBA_TypeDescription_defined) #define _CORBA_TypeDescription_defined 1 typedef struct CORBA_TypeDescription_type CORBA_TypeDescription; struct CORBA_TypeDescription_type { CORBA_Identifier name; CORBA_RepositoryId id; CORBA_RepositoryId defined_in; CORBA_VersionSpec version; CORBA_TypeCode type; }; #if !defined(TC_IMPL_TC_CORBA_TypeDescription_0) #define TC_IMPL_TC_CORBA_TypeDescription_0 'c' #define TC_IMPL_TC_CORBA_TypeDescription_1 'o' #define TC_IMPL_TC_CORBA_TypeDescription_2 'r' #define TC_IMPL_TC_CORBA_TypeDescription_3 'b' #define TC_IMPL_TC_CORBA_TypeDescription_4 'a' #define TC_IMPL_TC_CORBA_TypeDescription_5 '_' #define TC_IMPL_TC_CORBA_TypeDescription_6 'd' #define TC_IMPL_TC_CORBA_TypeDescription_7 'e' #define TC_IMPL_TC_CORBA_TypeDescription_8 'f' #define TC_IMPL_TC_CORBA_TypeDescription_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_TypeDescription_struct; #define TC_CORBA_TypeDescription ((CORBA_TypeCode)&TC_CORBA_TypeDescription_struct) #endif #define CORBA_TypeDescription__alloc() ((CORBA_TypeDescription *)ORBit_small_alloc (TC_CORBA_TypeDescription)) #define CORBA_TypeDescription__freekids(m,d) ORBit_small_freekids (TC_CORBA_TypeDescription,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_StructDef) && !defined(_CORBA_StructDef_defined) #define ORBIT_DECL_CORBA_StructDef 1 #define _CORBA_StructDef_defined 1 #define CORBA_StructDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_StructDef; extern CORBA_unsigned_long CORBA_StructDef__classid; #if !defined(TC_IMPL_TC_CORBA_StructDef_0) #define TC_IMPL_TC_CORBA_StructDef_0 'c' #define TC_IMPL_TC_CORBA_StructDef_1 'o' #define TC_IMPL_TC_CORBA_StructDef_2 'r' #define TC_IMPL_TC_CORBA_StructDef_3 'b' #define TC_IMPL_TC_CORBA_StructDef_4 'a' #define TC_IMPL_TC_CORBA_StructDef_5 '_' #define TC_IMPL_TC_CORBA_StructDef_6 'd' #define TC_IMPL_TC_CORBA_StructDef_7 'e' #define TC_IMPL_TC_CORBA_StructDef_8 'f' #define TC_IMPL_TC_CORBA_StructDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_StructDef_struct; #define TC_CORBA_StructDef ((CORBA_TypeCode)&TC_CORBA_StructDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_UnionDef) && !defined(_CORBA_UnionDef_defined) #define ORBIT_DECL_CORBA_UnionDef 1 #define _CORBA_UnionDef_defined 1 #define CORBA_UnionDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_UnionDef; extern CORBA_unsigned_long CORBA_UnionDef__classid; #if !defined(TC_IMPL_TC_CORBA_UnionDef_0) #define TC_IMPL_TC_CORBA_UnionDef_0 'c' #define TC_IMPL_TC_CORBA_UnionDef_1 'o' #define TC_IMPL_TC_CORBA_UnionDef_2 'r' #define TC_IMPL_TC_CORBA_UnionDef_3 'b' #define TC_IMPL_TC_CORBA_UnionDef_4 'a' #define TC_IMPL_TC_CORBA_UnionDef_5 '_' #define TC_IMPL_TC_CORBA_UnionDef_6 'd' #define TC_IMPL_TC_CORBA_UnionDef_7 'e' #define TC_IMPL_TC_CORBA_UnionDef_8 'f' #define TC_IMPL_TC_CORBA_UnionDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_UnionDef_struct; #define TC_CORBA_UnionDef ((CORBA_TypeCode)&TC_CORBA_UnionDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_EnumDef) && !defined(_CORBA_EnumDef_defined) #define ORBIT_DECL_CORBA_EnumDef 1 #define _CORBA_EnumDef_defined 1 #define CORBA_EnumDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_EnumDef; extern CORBA_unsigned_long CORBA_EnumDef__classid; #if !defined(TC_IMPL_TC_CORBA_EnumDef_0) #define TC_IMPL_TC_CORBA_EnumDef_0 'c' #define TC_IMPL_TC_CORBA_EnumDef_1 'o' #define TC_IMPL_TC_CORBA_EnumDef_2 'r' #define TC_IMPL_TC_CORBA_EnumDef_3 'b' #define TC_IMPL_TC_CORBA_EnumDef_4 'a' #define TC_IMPL_TC_CORBA_EnumDef_5 '_' #define TC_IMPL_TC_CORBA_EnumDef_6 'd' #define TC_IMPL_TC_CORBA_EnumDef_7 'e' #define TC_IMPL_TC_CORBA_EnumDef_8 'f' #define TC_IMPL_TC_CORBA_EnumDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_EnumDef_struct; #define TC_CORBA_EnumDef ((CORBA_TypeCode)&TC_CORBA_EnumDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_AliasDef) && !defined(_CORBA_AliasDef_defined) #define ORBIT_DECL_CORBA_AliasDef 1 #define _CORBA_AliasDef_defined 1 #define CORBA_AliasDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_AliasDef; extern CORBA_unsigned_long CORBA_AliasDef__classid; #if !defined(TC_IMPL_TC_CORBA_AliasDef_0) #define TC_IMPL_TC_CORBA_AliasDef_0 'c' #define TC_IMPL_TC_CORBA_AliasDef_1 'o' #define TC_IMPL_TC_CORBA_AliasDef_2 'r' #define TC_IMPL_TC_CORBA_AliasDef_3 'b' #define TC_IMPL_TC_CORBA_AliasDef_4 'a' #define TC_IMPL_TC_CORBA_AliasDef_5 '_' #define TC_IMPL_TC_CORBA_AliasDef_6 'd' #define TC_IMPL_TC_CORBA_AliasDef_7 'e' #define TC_IMPL_TC_CORBA_AliasDef_8 'f' #define TC_IMPL_TC_CORBA_AliasDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_AliasDef_struct; #define TC_CORBA_AliasDef ((CORBA_TypeCode)&TC_CORBA_AliasDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_NativeDef) && !defined(_CORBA_NativeDef_defined) #define ORBIT_DECL_CORBA_NativeDef 1 #define _CORBA_NativeDef_defined 1 #define CORBA_NativeDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_NativeDef; extern CORBA_unsigned_long CORBA_NativeDef__classid; #if !defined(TC_IMPL_TC_CORBA_NativeDef_0) #define TC_IMPL_TC_CORBA_NativeDef_0 'c' #define TC_IMPL_TC_CORBA_NativeDef_1 'o' #define TC_IMPL_TC_CORBA_NativeDef_2 'r' #define TC_IMPL_TC_CORBA_NativeDef_3 'b' #define TC_IMPL_TC_CORBA_NativeDef_4 'a' #define TC_IMPL_TC_CORBA_NativeDef_5 '_' #define TC_IMPL_TC_CORBA_NativeDef_6 'd' #define TC_IMPL_TC_CORBA_NativeDef_7 'e' #define TC_IMPL_TC_CORBA_NativeDef_8 'f' #define TC_IMPL_TC_CORBA_NativeDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_NativeDef_struct; #define TC_CORBA_NativeDef ((CORBA_TypeCode)&TC_CORBA_NativeDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_PrimitiveDef) && !defined(_CORBA_PrimitiveDef_defined) #define ORBIT_DECL_CORBA_PrimitiveDef 1 #define _CORBA_PrimitiveDef_defined 1 #define CORBA_PrimitiveDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_PrimitiveDef; extern CORBA_unsigned_long CORBA_PrimitiveDef__classid; #if !defined(TC_IMPL_TC_CORBA_PrimitiveDef_0) #define TC_IMPL_TC_CORBA_PrimitiveDef_0 'c' #define TC_IMPL_TC_CORBA_PrimitiveDef_1 'o' #define TC_IMPL_TC_CORBA_PrimitiveDef_2 'r' #define TC_IMPL_TC_CORBA_PrimitiveDef_3 'b' #define TC_IMPL_TC_CORBA_PrimitiveDef_4 'a' #define TC_IMPL_TC_CORBA_PrimitiveDef_5 '_' #define TC_IMPL_TC_CORBA_PrimitiveDef_6 'd' #define TC_IMPL_TC_CORBA_PrimitiveDef_7 'e' #define TC_IMPL_TC_CORBA_PrimitiveDef_8 'f' #define TC_IMPL_TC_CORBA_PrimitiveDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_PrimitiveDef_struct; #define TC_CORBA_PrimitiveDef ((CORBA_TypeCode)&TC_CORBA_PrimitiveDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_StringDef) && !defined(_CORBA_StringDef_defined) #define ORBIT_DECL_CORBA_StringDef 1 #define _CORBA_StringDef_defined 1 #define CORBA_StringDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_StringDef; extern CORBA_unsigned_long CORBA_StringDef__classid; #if !defined(TC_IMPL_TC_CORBA_StringDef_0) #define TC_IMPL_TC_CORBA_StringDef_0 'c' #define TC_IMPL_TC_CORBA_StringDef_1 'o' #define TC_IMPL_TC_CORBA_StringDef_2 'r' #define TC_IMPL_TC_CORBA_StringDef_3 'b' #define TC_IMPL_TC_CORBA_StringDef_4 'a' #define TC_IMPL_TC_CORBA_StringDef_5 '_' #define TC_IMPL_TC_CORBA_StringDef_6 'd' #define TC_IMPL_TC_CORBA_StringDef_7 'e' #define TC_IMPL_TC_CORBA_StringDef_8 'f' #define TC_IMPL_TC_CORBA_StringDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_StringDef_struct; #define TC_CORBA_StringDef ((CORBA_TypeCode)&TC_CORBA_StringDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_WstringDef) && !defined(_CORBA_WstringDef_defined) #define ORBIT_DECL_CORBA_WstringDef 1 #define _CORBA_WstringDef_defined 1 #define CORBA_WstringDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_WstringDef; extern CORBA_unsigned_long CORBA_WstringDef__classid; #if !defined(TC_IMPL_TC_CORBA_WstringDef_0) #define TC_IMPL_TC_CORBA_WstringDef_0 'c' #define TC_IMPL_TC_CORBA_WstringDef_1 'o' #define TC_IMPL_TC_CORBA_WstringDef_2 'r' #define TC_IMPL_TC_CORBA_WstringDef_3 'b' #define TC_IMPL_TC_CORBA_WstringDef_4 'a' #define TC_IMPL_TC_CORBA_WstringDef_5 '_' #define TC_IMPL_TC_CORBA_WstringDef_6 'd' #define TC_IMPL_TC_CORBA_WstringDef_7 'e' #define TC_IMPL_TC_CORBA_WstringDef_8 'f' #define TC_IMPL_TC_CORBA_WstringDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_WstringDef_struct; #define TC_CORBA_WstringDef ((CORBA_TypeCode)&TC_CORBA_WstringDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_FixedDef) && !defined(_CORBA_FixedDef_defined) #define ORBIT_DECL_CORBA_FixedDef 1 #define _CORBA_FixedDef_defined 1 #define CORBA_FixedDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_FixedDef; extern CORBA_unsigned_long CORBA_FixedDef__classid; #if !defined(TC_IMPL_TC_CORBA_FixedDef_0) #define TC_IMPL_TC_CORBA_FixedDef_0 'c' #define TC_IMPL_TC_CORBA_FixedDef_1 'o' #define TC_IMPL_TC_CORBA_FixedDef_2 'r' #define TC_IMPL_TC_CORBA_FixedDef_3 'b' #define TC_IMPL_TC_CORBA_FixedDef_4 'a' #define TC_IMPL_TC_CORBA_FixedDef_5 '_' #define TC_IMPL_TC_CORBA_FixedDef_6 'd' #define TC_IMPL_TC_CORBA_FixedDef_7 'e' #define TC_IMPL_TC_CORBA_FixedDef_8 'f' #define TC_IMPL_TC_CORBA_FixedDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_FixedDef_struct; #define TC_CORBA_FixedDef ((CORBA_TypeCode)&TC_CORBA_FixedDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_SequenceDef) && !defined(_CORBA_SequenceDef_defined) #define ORBIT_DECL_CORBA_SequenceDef 1 #define _CORBA_SequenceDef_defined 1 #define CORBA_SequenceDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_SequenceDef; extern CORBA_unsigned_long CORBA_SequenceDef__classid; #if !defined(TC_IMPL_TC_CORBA_SequenceDef_0) #define TC_IMPL_TC_CORBA_SequenceDef_0 'c' #define TC_IMPL_TC_CORBA_SequenceDef_1 'o' #define TC_IMPL_TC_CORBA_SequenceDef_2 'r' #define TC_IMPL_TC_CORBA_SequenceDef_3 'b' #define TC_IMPL_TC_CORBA_SequenceDef_4 'a' #define TC_IMPL_TC_CORBA_SequenceDef_5 '_' #define TC_IMPL_TC_CORBA_SequenceDef_6 'd' #define TC_IMPL_TC_CORBA_SequenceDef_7 'e' #define TC_IMPL_TC_CORBA_SequenceDef_8 'f' #define TC_IMPL_TC_CORBA_SequenceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_SequenceDef_struct; #define TC_CORBA_SequenceDef ((CORBA_TypeCode)&TC_CORBA_SequenceDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_ArrayDef) && !defined(_CORBA_ArrayDef_defined) #define ORBIT_DECL_CORBA_ArrayDef 1 #define _CORBA_ArrayDef_defined 1 #define CORBA_ArrayDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ArrayDef; extern CORBA_unsigned_long CORBA_ArrayDef__classid; #if !defined(TC_IMPL_TC_CORBA_ArrayDef_0) #define TC_IMPL_TC_CORBA_ArrayDef_0 'c' #define TC_IMPL_TC_CORBA_ArrayDef_1 'o' #define TC_IMPL_TC_CORBA_ArrayDef_2 'r' #define TC_IMPL_TC_CORBA_ArrayDef_3 'b' #define TC_IMPL_TC_CORBA_ArrayDef_4 'a' #define TC_IMPL_TC_CORBA_ArrayDef_5 '_' #define TC_IMPL_TC_CORBA_ArrayDef_6 'd' #define TC_IMPL_TC_CORBA_ArrayDef_7 'e' #define TC_IMPL_TC_CORBA_ArrayDef_8 'f' #define TC_IMPL_TC_CORBA_ArrayDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ArrayDef_struct; #define TC_CORBA_ArrayDef ((CORBA_TypeCode)&TC_CORBA_ArrayDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_ExceptionDef) && !defined(_CORBA_ExceptionDef_defined) #define ORBIT_DECL_CORBA_ExceptionDef 1 #define _CORBA_ExceptionDef_defined 1 #define CORBA_ExceptionDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ExceptionDef; extern CORBA_unsigned_long CORBA_ExceptionDef__classid; #if !defined(TC_IMPL_TC_CORBA_ExceptionDef_0) #define TC_IMPL_TC_CORBA_ExceptionDef_0 'c' #define TC_IMPL_TC_CORBA_ExceptionDef_1 'o' #define TC_IMPL_TC_CORBA_ExceptionDef_2 'r' #define TC_IMPL_TC_CORBA_ExceptionDef_3 'b' #define TC_IMPL_TC_CORBA_ExceptionDef_4 'a' #define TC_IMPL_TC_CORBA_ExceptionDef_5 '_' #define TC_IMPL_TC_CORBA_ExceptionDef_6 'd' #define TC_IMPL_TC_CORBA_ExceptionDef_7 'e' #define TC_IMPL_TC_CORBA_ExceptionDef_8 'f' #define TC_IMPL_TC_CORBA_ExceptionDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExceptionDef_struct; #define TC_CORBA_ExceptionDef ((CORBA_TypeCode)&TC_CORBA_ExceptionDef_struct) #endif #endif #if !defined(_CORBA_AttributeMode_defined) #define _CORBA_AttributeMode_defined 1 typedef enum { CORBA_ATTR_NORMAL, CORBA_ATTR_READONLY } CORBA_AttributeMode; #if !defined(TC_IMPL_TC_CORBA_AttributeMode_0) #define TC_IMPL_TC_CORBA_AttributeMode_0 'c' #define TC_IMPL_TC_CORBA_AttributeMode_1 'o' #define TC_IMPL_TC_CORBA_AttributeMode_2 'r' #define TC_IMPL_TC_CORBA_AttributeMode_3 'b' #define TC_IMPL_TC_CORBA_AttributeMode_4 'a' #define TC_IMPL_TC_CORBA_AttributeMode_5 '_' #define TC_IMPL_TC_CORBA_AttributeMode_6 'd' #define TC_IMPL_TC_CORBA_AttributeMode_7 'e' #define TC_IMPL_TC_CORBA_AttributeMode_8 'f' #define TC_IMPL_TC_CORBA_AttributeMode_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_AttributeMode_struct; #define TC_CORBA_AttributeMode ((CORBA_TypeCode)&TC_CORBA_AttributeMode_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_AttributeDef) && !defined(_CORBA_AttributeDef_defined) #define ORBIT_DECL_CORBA_AttributeDef 1 #define _CORBA_AttributeDef_defined 1 #define CORBA_AttributeDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_AttributeDef; extern CORBA_unsigned_long CORBA_AttributeDef__classid; #if !defined(TC_IMPL_TC_CORBA_AttributeDef_0) #define TC_IMPL_TC_CORBA_AttributeDef_0 'c' #define TC_IMPL_TC_CORBA_AttributeDef_1 'o' #define TC_IMPL_TC_CORBA_AttributeDef_2 'r' #define TC_IMPL_TC_CORBA_AttributeDef_3 'b' #define TC_IMPL_TC_CORBA_AttributeDef_4 'a' #define TC_IMPL_TC_CORBA_AttributeDef_5 '_' #define TC_IMPL_TC_CORBA_AttributeDef_6 'd' #define TC_IMPL_TC_CORBA_AttributeDef_7 'e' #define TC_IMPL_TC_CORBA_AttributeDef_8 'f' #define TC_IMPL_TC_CORBA_AttributeDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_AttributeDef_struct; #define TC_CORBA_AttributeDef ((CORBA_TypeCode)&TC_CORBA_AttributeDef_struct) #endif #endif #if !defined(_CORBA_AttributeDescription_defined) #define _CORBA_AttributeDescription_defined 1 typedef struct CORBA_AttributeDescription_type CORBA_AttributeDescription; struct CORBA_AttributeDescription_type { CORBA_Identifier name; CORBA_RepositoryId id; CORBA_RepositoryId defined_in; CORBA_VersionSpec version; CORBA_TypeCode type; CORBA_AttributeMode mode; }; #if !defined(TC_IMPL_TC_CORBA_AttributeDescription_0) #define TC_IMPL_TC_CORBA_AttributeDescription_0 'c' #define TC_IMPL_TC_CORBA_AttributeDescription_1 'o' #define TC_IMPL_TC_CORBA_AttributeDescription_2 'r' #define TC_IMPL_TC_CORBA_AttributeDescription_3 'b' #define TC_IMPL_TC_CORBA_AttributeDescription_4 'a' #define TC_IMPL_TC_CORBA_AttributeDescription_5 '_' #define TC_IMPL_TC_CORBA_AttributeDescription_6 'd' #define TC_IMPL_TC_CORBA_AttributeDescription_7 'e' #define TC_IMPL_TC_CORBA_AttributeDescription_8 'f' #define TC_IMPL_TC_CORBA_AttributeDescription_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_AttributeDescription_struct; #define TC_CORBA_AttributeDescription ((CORBA_TypeCode)&TC_CORBA_AttributeDescription_struct) #endif #define CORBA_AttributeDescription__alloc() ((CORBA_AttributeDescription *)ORBit_small_alloc (TC_CORBA_AttributeDescription)) #define CORBA_AttributeDescription__freekids(m,d) ORBit_small_freekids (TC_CORBA_AttributeDescription,(m),(d)) #endif #if !defined(_CORBA_ExtAttributeDescription_defined) #define _CORBA_ExtAttributeDescription_defined 1 typedef struct CORBA_ExtAttributeDescription_type CORBA_ExtAttributeDescription; struct CORBA_ExtAttributeDescription_type { CORBA_Identifier name; CORBA_RepositoryId id; CORBA_RepositoryId defined_in; CORBA_VersionSpec version; CORBA_TypeCode type; CORBA_AttributeMode mode; CORBA_ExcDescriptionSeq get_exceptions; CORBA_ExcDescriptionSeq put_exceptions; }; #if !defined(TC_IMPL_TC_CORBA_ExtAttributeDescription_0) #define TC_IMPL_TC_CORBA_ExtAttributeDescription_0 'c' #define TC_IMPL_TC_CORBA_ExtAttributeDescription_1 'o' #define TC_IMPL_TC_CORBA_ExtAttributeDescription_2 'r' #define TC_IMPL_TC_CORBA_ExtAttributeDescription_3 'b' #define TC_IMPL_TC_CORBA_ExtAttributeDescription_4 'a' #define TC_IMPL_TC_CORBA_ExtAttributeDescription_5 '_' #define TC_IMPL_TC_CORBA_ExtAttributeDescription_6 'd' #define TC_IMPL_TC_CORBA_ExtAttributeDescription_7 'e' #define TC_IMPL_TC_CORBA_ExtAttributeDescription_8 'f' #define TC_IMPL_TC_CORBA_ExtAttributeDescription_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtAttributeDescription_struct; #define TC_CORBA_ExtAttributeDescription ((CORBA_TypeCode)&TC_CORBA_ExtAttributeDescription_struct) #endif #define CORBA_ExtAttributeDescription__alloc() ((CORBA_ExtAttributeDescription *)ORBit_small_alloc (TC_CORBA_ExtAttributeDescription)) #define CORBA_ExtAttributeDescription__freekids(m,d) ORBit_small_freekids (TC_CORBA_ExtAttributeDescription,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_ExtAttributeDef) && !defined(_CORBA_ExtAttributeDef_defined) #define ORBIT_DECL_CORBA_ExtAttributeDef 1 #define _CORBA_ExtAttributeDef_defined 1 #define CORBA_ExtAttributeDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ExtAttributeDef; extern CORBA_unsigned_long CORBA_ExtAttributeDef__classid; #if !defined(TC_IMPL_TC_CORBA_ExtAttributeDef_0) #define TC_IMPL_TC_CORBA_ExtAttributeDef_0 'c' #define TC_IMPL_TC_CORBA_ExtAttributeDef_1 'o' #define TC_IMPL_TC_CORBA_ExtAttributeDef_2 'r' #define TC_IMPL_TC_CORBA_ExtAttributeDef_3 'b' #define TC_IMPL_TC_CORBA_ExtAttributeDef_4 'a' #define TC_IMPL_TC_CORBA_ExtAttributeDef_5 '_' #define TC_IMPL_TC_CORBA_ExtAttributeDef_6 'd' #define TC_IMPL_TC_CORBA_ExtAttributeDef_7 'e' #define TC_IMPL_TC_CORBA_ExtAttributeDef_8 'f' #define TC_IMPL_TC_CORBA_ExtAttributeDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtAttributeDef_struct; #define TC_CORBA_ExtAttributeDef ((CORBA_TypeCode)&TC_CORBA_ExtAttributeDef_struct) #endif #endif #if !defined(_CORBA_OperationMode_defined) #define _CORBA_OperationMode_defined 1 typedef enum { CORBA_OP_NORMAL, CORBA_OP_ONEWAY } CORBA_OperationMode; #if !defined(TC_IMPL_TC_CORBA_OperationMode_0) #define TC_IMPL_TC_CORBA_OperationMode_0 'c' #define TC_IMPL_TC_CORBA_OperationMode_1 'o' #define TC_IMPL_TC_CORBA_OperationMode_2 'r' #define TC_IMPL_TC_CORBA_OperationMode_3 'b' #define TC_IMPL_TC_CORBA_OperationMode_4 'a' #define TC_IMPL_TC_CORBA_OperationMode_5 '_' #define TC_IMPL_TC_CORBA_OperationMode_6 'd' #define TC_IMPL_TC_CORBA_OperationMode_7 'e' #define TC_IMPL_TC_CORBA_OperationMode_8 'f' #define TC_IMPL_TC_CORBA_OperationMode_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_OperationMode_struct; #define TC_CORBA_OperationMode ((CORBA_TypeCode)&TC_CORBA_OperationMode_struct) #endif #endif #if !defined(_CORBA_ParameterMode_defined) #define _CORBA_ParameterMode_defined 1 typedef enum { CORBA_PARAM_IN, CORBA_PARAM_OUT, CORBA_PARAM_INOUT } CORBA_ParameterMode; #if !defined(TC_IMPL_TC_CORBA_ParameterMode_0) #define TC_IMPL_TC_CORBA_ParameterMode_0 'c' #define TC_IMPL_TC_CORBA_ParameterMode_1 'o' #define TC_IMPL_TC_CORBA_ParameterMode_2 'r' #define TC_IMPL_TC_CORBA_ParameterMode_3 'b' #define TC_IMPL_TC_CORBA_ParameterMode_4 'a' #define TC_IMPL_TC_CORBA_ParameterMode_5 '_' #define TC_IMPL_TC_CORBA_ParameterMode_6 'd' #define TC_IMPL_TC_CORBA_ParameterMode_7 'e' #define TC_IMPL_TC_CORBA_ParameterMode_8 'f' #define TC_IMPL_TC_CORBA_ParameterMode_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ParameterMode_struct; #define TC_CORBA_ParameterMode ((CORBA_TypeCode)&TC_CORBA_ParameterMode_struct) #endif #endif #if !defined(_CORBA_ParameterDescription_defined) #define _CORBA_ParameterDescription_defined 1 typedef struct CORBA_ParameterDescription_type CORBA_ParameterDescription; struct CORBA_ParameterDescription_type { CORBA_Identifier name; CORBA_TypeCode type; CORBA_IDLType type_def; CORBA_ParameterMode mode; }; #if !defined(TC_IMPL_TC_CORBA_ParameterDescription_0) #define TC_IMPL_TC_CORBA_ParameterDescription_0 'c' #define TC_IMPL_TC_CORBA_ParameterDescription_1 'o' #define TC_IMPL_TC_CORBA_ParameterDescription_2 'r' #define TC_IMPL_TC_CORBA_ParameterDescription_3 'b' #define TC_IMPL_TC_CORBA_ParameterDescription_4 'a' #define TC_IMPL_TC_CORBA_ParameterDescription_5 '_' #define TC_IMPL_TC_CORBA_ParameterDescription_6 'd' #define TC_IMPL_TC_CORBA_ParameterDescription_7 'e' #define TC_IMPL_TC_CORBA_ParameterDescription_8 'f' #define TC_IMPL_TC_CORBA_ParameterDescription_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ParameterDescription_struct; #define TC_CORBA_ParameterDescription ((CORBA_TypeCode)&TC_CORBA_ParameterDescription_struct) #endif #define CORBA_ParameterDescription__alloc() ((CORBA_ParameterDescription *)ORBit_small_alloc (TC_CORBA_ParameterDescription)) #define CORBA_ParameterDescription__freekids(m,d) ORBit_small_freekids (TC_CORBA_ParameterDescription,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_ParameterDescription) #define ORBIT_DECL_CORBA_sequence_CORBA_ParameterDescription 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_ParameterDescription_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_ParameterDescription_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_ParameterDescription_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_ParameterDescription_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_ParameterDescription_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_ParameterDescription_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_ParameterDescription_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_ParameterDescription_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_ParameterDescription_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_ParameterDescription_9 's' #if !defined(_CORBA_sequence_CORBA_ParameterDescription_defined) #define _CORBA_sequence_CORBA_ParameterDescription_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_ParameterDescription* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_ParameterDescription; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_ParameterDescription_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_ParameterDescription_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_ParameterDescription_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_ParameterDescription_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_ParameterDescription_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_ParameterDescription_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_ParameterDescription_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_ParameterDescription_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_ParameterDescription_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_ParameterDescription_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_ParameterDescription_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_ParameterDescription_struct; #define TC_CORBA_sequence_CORBA_ParameterDescription ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_ParameterDescription_struct) #endif #define CORBA_sequence_CORBA_ParameterDescription__alloc() ((CORBA_sequence_CORBA_ParameterDescription *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_ParameterDescription)) #define CORBA_sequence_CORBA_ParameterDescription__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_ParameterDescription,(m),(d)) #define CORBA_sequence_CORBA_ParameterDescription_allocbuf(l) ((CORBA_ParameterDescription*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ParameterDescription, (l))) #define CORBA_sequence_CORBA_ParameterDescription_allocbuf(l) ((CORBA_ParameterDescription*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ParameterDescription, (l))) #endif #if !defined(_CORBA_ParDescriptionSeq_defined) #define _CORBA_ParDescriptionSeq_defined 1 typedef CORBA_sequence_CORBA_ParameterDescription CORBA_ParDescriptionSeq; #define CORBA_ParDescriptionSeq_marshal(x,y,z) CORBA_sequence_CORBA_ParameterDescription_marshal((x),(y),(z)) #define CORBA_ParDescriptionSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_ParameterDescription_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ParDescriptionSeq_0) #define TC_IMPL_TC_CORBA_ParDescriptionSeq_0 'c' #define TC_IMPL_TC_CORBA_ParDescriptionSeq_1 'o' #define TC_IMPL_TC_CORBA_ParDescriptionSeq_2 'r' #define TC_IMPL_TC_CORBA_ParDescriptionSeq_3 'b' #define TC_IMPL_TC_CORBA_ParDescriptionSeq_4 'a' #define TC_IMPL_TC_CORBA_ParDescriptionSeq_5 '_' #define TC_IMPL_TC_CORBA_ParDescriptionSeq_6 'd' #define TC_IMPL_TC_CORBA_ParDescriptionSeq_7 'e' #define TC_IMPL_TC_CORBA_ParDescriptionSeq_8 'f' #define TC_IMPL_TC_CORBA_ParDescriptionSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ParDescriptionSeq_struct; #define TC_CORBA_ParDescriptionSeq ((CORBA_TypeCode)&TC_CORBA_ParDescriptionSeq_struct) #endif #define CORBA_ParDescriptionSeq__alloc() ((CORBA_ParDescriptionSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_ParameterDescription)) #define CORBA_ParDescriptionSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_ParameterDescription,(m),(d)) #define CORBA_ParDescriptionSeq_allocbuf(l) ((CORBA_ParameterDescription*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ParameterDescription, (l))) #endif #if !defined(_CORBA_ContextIdentifier_defined) #define _CORBA_ContextIdentifier_defined 1 typedef CORBA_Identifier CORBA_ContextIdentifier; #define CORBA_ContextIdentifier_marshal(x,y,z) CORBA_Identifier_marshal((x),(y),(z)) #define CORBA_ContextIdentifier_demarshal(x,y,z,i) CORBA_Identifier_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ContextIdentifier_0) #define TC_IMPL_TC_CORBA_ContextIdentifier_0 'c' #define TC_IMPL_TC_CORBA_ContextIdentifier_1 'o' #define TC_IMPL_TC_CORBA_ContextIdentifier_2 'r' #define TC_IMPL_TC_CORBA_ContextIdentifier_3 'b' #define TC_IMPL_TC_CORBA_ContextIdentifier_4 'a' #define TC_IMPL_TC_CORBA_ContextIdentifier_5 '_' #define TC_IMPL_TC_CORBA_ContextIdentifier_6 'd' #define TC_IMPL_TC_CORBA_ContextIdentifier_7 'e' #define TC_IMPL_TC_CORBA_ContextIdentifier_8 'f' #define TC_IMPL_TC_CORBA_ContextIdentifier_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ContextIdentifier_struct; #define TC_CORBA_ContextIdentifier ((CORBA_TypeCode)&TC_CORBA_ContextIdentifier_struct) #endif #define CORBA_ContextIdentifier__alloc() ((CORBA_ContextIdentifier *)ORBit_small_alloc (TC_CORBA_string)) #define CORBA_ContextIdentifier__freekids(m,d) ORBit_small_freekids (TC_CORBA_string,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_string) #define ORBIT_DECL_CORBA_sequence_CORBA_string 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_string_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_9 's' #if !defined(_CORBA_sequence_CORBA_string_defined) #define _CORBA_sequence_CORBA_string_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_string* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_string; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_string_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_string_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_string_struct; #define TC_CORBA_sequence_CORBA_string ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_string_struct) #endif #define CORBA_sequence_CORBA_string__alloc() ((CORBA_sequence_CORBA_string *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_string)) #define CORBA_sequence_CORBA_string__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_string,(m),(d)) #define CORBA_sequence_CORBA_string_allocbuf(l) ((CORBA_string*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_string, (l))) #define CORBA_sequence_CORBA_string_allocbuf(l) ((CORBA_string*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_string, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_ContextIdentifier) #define ORBIT_DECL_CORBA_sequence_CORBA_ContextIdentifier 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_ContextIdentifier_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_ContextIdentifier_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_ContextIdentifier_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_ContextIdentifier_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_ContextIdentifier_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_ContextIdentifier_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_ContextIdentifier_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_ContextIdentifier_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_ContextIdentifier_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_ContextIdentifier_9 's' #if !defined(_CORBA_sequence_CORBA_ContextIdentifier_defined) #define _CORBA_sequence_CORBA_ContextIdentifier_defined 1 typedef CORBA_sequence_CORBA_string CORBA_sequence_CORBA_ContextIdentifier; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_ContextIdentifier_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_ContextIdentifier_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_ContextIdentifier_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_ContextIdentifier_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_ContextIdentifier_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_ContextIdentifier_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_ContextIdentifier_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_ContextIdentifier_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_ContextIdentifier_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_ContextIdentifier_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_ContextIdentifier_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_ContextIdentifier_struct; #define TC_CORBA_sequence_CORBA_ContextIdentifier ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_ContextIdentifier_struct) #endif #define CORBA_sequence_CORBA_ContextIdentifier__alloc CORBA_sequence_CORBA_string__alloc #define CORBA_sequence_CORBA_ContextIdentifier__freekids CORBA_sequence_CORBA_string__freekids #define CORBA_sequence_CORBA_ContextIdentifier_allocbuf CORBA_sequence_CORBA_string_allocbuf #define CORBA_sequence_CORBA_ContextIdentifier_marshal(x,y,z) CORBA_sequence_CORBA_string_marshal((x),(y),(z)) #define CORBA_sequence_CORBA_ContextIdentifier_demarshal(x,y,z,i) CORBA_sequence_CORBA_string_demarshal((x),(y),(z),(i)) #endif #if !defined(_CORBA_ContextIdSeq_defined) #define _CORBA_ContextIdSeq_defined 1 typedef CORBA_sequence_CORBA_ContextIdentifier CORBA_ContextIdSeq; #define CORBA_ContextIdSeq_marshal(x,y,z) CORBA_sequence_CORBA_ContextIdentifier_marshal((x),(y),(z)) #define CORBA_ContextIdSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_ContextIdentifier_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ContextIdSeq_0) #define TC_IMPL_TC_CORBA_ContextIdSeq_0 'c' #define TC_IMPL_TC_CORBA_ContextIdSeq_1 'o' #define TC_IMPL_TC_CORBA_ContextIdSeq_2 'r' #define TC_IMPL_TC_CORBA_ContextIdSeq_3 'b' #define TC_IMPL_TC_CORBA_ContextIdSeq_4 'a' #define TC_IMPL_TC_CORBA_ContextIdSeq_5 '_' #define TC_IMPL_TC_CORBA_ContextIdSeq_6 'd' #define TC_IMPL_TC_CORBA_ContextIdSeq_7 'e' #define TC_IMPL_TC_CORBA_ContextIdSeq_8 'f' #define TC_IMPL_TC_CORBA_ContextIdSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ContextIdSeq_struct; #define TC_CORBA_ContextIdSeq ((CORBA_TypeCode)&TC_CORBA_ContextIdSeq_struct) #endif #define CORBA_ContextIdSeq__alloc() ((CORBA_ContextIdSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_ContextIdentifier)) #define CORBA_ContextIdSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_ContextIdentifier,(m),(d)) #define CORBA_ContextIdSeq_allocbuf(l) ((CORBA_ContextIdentifier*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ContextIdentifier, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Object) #define ORBIT_DECL_CORBA_sequence_CORBA_Object 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_9 's' #if !defined(_CORBA_sequence_CORBA_Object_defined) #define _CORBA_sequence_CORBA_Object_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_Object* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_Object; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Object_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Object_struct; #define TC_CORBA_sequence_CORBA_Object ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Object_struct) #endif #define CORBA_sequence_CORBA_Object__alloc() ((CORBA_sequence_CORBA_Object *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Object)) #define CORBA_sequence_CORBA_Object__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Object,(m),(d)) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_ExceptionDef) #define ORBIT_DECL_CORBA_sequence_CORBA_ExceptionDef 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_ExceptionDef_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExceptionDef_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExceptionDef_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExceptionDef_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExceptionDef_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExceptionDef_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExceptionDef_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExceptionDef_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExceptionDef_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExceptionDef_9 's' #if !defined(_CORBA_sequence_CORBA_ExceptionDef_defined) #define _CORBA_sequence_CORBA_ExceptionDef_defined 1 typedef CORBA_sequence_CORBA_Object CORBA_sequence_CORBA_ExceptionDef; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDef_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDef_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDef_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDef_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDef_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDef_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDef_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDef_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDef_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDef_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExceptionDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_ExceptionDef_struct; #define TC_CORBA_sequence_CORBA_ExceptionDef ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_ExceptionDef_struct) #endif #define CORBA_sequence_CORBA_ExceptionDef__alloc CORBA_sequence_CORBA_Object__alloc #define CORBA_sequence_CORBA_ExceptionDef__freekids CORBA_sequence_CORBA_Object__freekids #define CORBA_sequence_CORBA_ExceptionDef_allocbuf CORBA_sequence_CORBA_Object_allocbuf #define CORBA_sequence_CORBA_ExceptionDef_marshal(x,y,z) CORBA_sequence_CORBA_Object_marshal((x),(y),(z)) #define CORBA_sequence_CORBA_ExceptionDef_demarshal(x,y,z,i) CORBA_sequence_CORBA_Object_demarshal((x),(y),(z),(i)) #endif #if !defined(_CORBA_ExceptionDefSeq_defined) #define _CORBA_ExceptionDefSeq_defined 1 typedef CORBA_sequence_CORBA_ExceptionDef CORBA_ExceptionDefSeq; #define CORBA_ExceptionDefSeq_marshal(x,y,z) CORBA_sequence_CORBA_ExceptionDef_marshal((x),(y),(z)) #define CORBA_ExceptionDefSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_ExceptionDef_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ExceptionDefSeq_0) #define TC_IMPL_TC_CORBA_ExceptionDefSeq_0 'c' #define TC_IMPL_TC_CORBA_ExceptionDefSeq_1 'o' #define TC_IMPL_TC_CORBA_ExceptionDefSeq_2 'r' #define TC_IMPL_TC_CORBA_ExceptionDefSeq_3 'b' #define TC_IMPL_TC_CORBA_ExceptionDefSeq_4 'a' #define TC_IMPL_TC_CORBA_ExceptionDefSeq_5 '_' #define TC_IMPL_TC_CORBA_ExceptionDefSeq_6 'd' #define TC_IMPL_TC_CORBA_ExceptionDefSeq_7 'e' #define TC_IMPL_TC_CORBA_ExceptionDefSeq_8 'f' #define TC_IMPL_TC_CORBA_ExceptionDefSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExceptionDefSeq_struct; #define TC_CORBA_ExceptionDefSeq ((CORBA_TypeCode)&TC_CORBA_ExceptionDefSeq_struct) #endif #define CORBA_ExceptionDefSeq__alloc() ((CORBA_ExceptionDefSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_ExceptionDef)) #define CORBA_ExceptionDefSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_ExceptionDef,(m),(d)) #define CORBA_ExceptionDefSeq_allocbuf(l) ((CORBA_ExceptionDef*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ExceptionDef, (l))) #endif #if !defined(ORBIT_DECL_CORBA_OperationDef) && !defined(_CORBA_OperationDef_defined) #define ORBIT_DECL_CORBA_OperationDef 1 #define _CORBA_OperationDef_defined 1 #define CORBA_OperationDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_OperationDef; extern CORBA_unsigned_long CORBA_OperationDef__classid; #if !defined(TC_IMPL_TC_CORBA_OperationDef_0) #define TC_IMPL_TC_CORBA_OperationDef_0 'c' #define TC_IMPL_TC_CORBA_OperationDef_1 'o' #define TC_IMPL_TC_CORBA_OperationDef_2 'r' #define TC_IMPL_TC_CORBA_OperationDef_3 'b' #define TC_IMPL_TC_CORBA_OperationDef_4 'a' #define TC_IMPL_TC_CORBA_OperationDef_5 '_' #define TC_IMPL_TC_CORBA_OperationDef_6 'd' #define TC_IMPL_TC_CORBA_OperationDef_7 'e' #define TC_IMPL_TC_CORBA_OperationDef_8 'f' #define TC_IMPL_TC_CORBA_OperationDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_OperationDef_struct; #define TC_CORBA_OperationDef ((CORBA_TypeCode)&TC_CORBA_OperationDef_struct) #endif #endif #if !defined(_CORBA_OperationDescription_defined) #define _CORBA_OperationDescription_defined 1 typedef struct CORBA_OperationDescription_type CORBA_OperationDescription; struct CORBA_OperationDescription_type { CORBA_Identifier name; CORBA_RepositoryId id; CORBA_RepositoryId defined_in; CORBA_VersionSpec version; CORBA_TypeCode result; CORBA_OperationMode mode; CORBA_ContextIdSeq contexts; CORBA_ParDescriptionSeq parameters; CORBA_ExcDescriptionSeq exceptions; }; #if !defined(TC_IMPL_TC_CORBA_OperationDescription_0) #define TC_IMPL_TC_CORBA_OperationDescription_0 'c' #define TC_IMPL_TC_CORBA_OperationDescription_1 'o' #define TC_IMPL_TC_CORBA_OperationDescription_2 'r' #define TC_IMPL_TC_CORBA_OperationDescription_3 'b' #define TC_IMPL_TC_CORBA_OperationDescription_4 'a' #define TC_IMPL_TC_CORBA_OperationDescription_5 '_' #define TC_IMPL_TC_CORBA_OperationDescription_6 'd' #define TC_IMPL_TC_CORBA_OperationDescription_7 'e' #define TC_IMPL_TC_CORBA_OperationDescription_8 'f' #define TC_IMPL_TC_CORBA_OperationDescription_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_OperationDescription_struct; #define TC_CORBA_OperationDescription ((CORBA_TypeCode)&TC_CORBA_OperationDescription_struct) #endif #define CORBA_OperationDescription__alloc() ((CORBA_OperationDescription *)ORBit_small_alloc (TC_CORBA_OperationDescription)) #define CORBA_OperationDescription__freekids(m,d) ORBit_small_freekids (TC_CORBA_OperationDescription,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_string) #define ORBIT_DECL_CORBA_sequence_CORBA_string 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_string_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_9 's' #if !defined(_CORBA_sequence_CORBA_string_defined) #define _CORBA_sequence_CORBA_string_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_string* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_string; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_string_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_string_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_string_struct; #define TC_CORBA_sequence_CORBA_string ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_string_struct) #endif #define CORBA_sequence_CORBA_string__alloc() ((CORBA_sequence_CORBA_string *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_string)) #define CORBA_sequence_CORBA_string__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_string,(m),(d)) #define CORBA_sequence_CORBA_string_allocbuf(l) ((CORBA_string*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_string, (l))) #define CORBA_sequence_CORBA_string_allocbuf(l) ((CORBA_string*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_string, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_RepositoryId) #define ORBIT_DECL_CORBA_sequence_CORBA_RepositoryId 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_RepositoryId_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_RepositoryId_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_RepositoryId_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_RepositoryId_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_RepositoryId_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_RepositoryId_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_RepositoryId_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_RepositoryId_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_RepositoryId_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_RepositoryId_9 's' #if !defined(_CORBA_sequence_CORBA_RepositoryId_defined) #define _CORBA_sequence_CORBA_RepositoryId_defined 1 /* CRACKHEADS */ typedef CORBA_sequence_CORBA_string CORBA_sequence_CORBA_RepositoryId; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_RepositoryId_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_RepositoryId_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_RepositoryId_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_RepositoryId_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_RepositoryId_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_RepositoryId_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_RepositoryId_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_RepositoryId_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_RepositoryId_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_RepositoryId_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_RepositoryId_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_RepositoryId_struct; #define TC_CORBA_sequence_CORBA_RepositoryId ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_RepositoryId_struct) #endif #define CORBA_sequence_CORBA_RepositoryId__alloc CORBA_sequence_CORBA_string__alloc #define CORBA_sequence_CORBA_RepositoryId__freekids CORBA_sequence_CORBA_string__freekids #define CORBA_sequence_CORBA_RepositoryId_allocbuf CORBA_sequence_CORBA_string_allocbuf #define CORBA_sequence_CORBA_RepositoryId_marshal(x,y,z) CORBA_sequence_CORBA_string_marshal((x),(y),(z)) #define CORBA_sequence_CORBA_RepositoryId_demarshal(x,y,z,i) CORBA_sequence_CORBA_string_demarshal((x),(y),(z),(i)) #endif #if !defined(_CORBA_RepositoryIdSeq_defined) #define _CORBA_RepositoryIdSeq_defined 1 typedef CORBA_sequence_CORBA_RepositoryId CORBA_RepositoryIdSeq; #define CORBA_RepositoryIdSeq_marshal(x,y,z) CORBA_sequence_CORBA_RepositoryId_marshal((x),(y),(z)) #define CORBA_RepositoryIdSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_RepositoryId_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_RepositoryIdSeq_0) #define TC_IMPL_TC_CORBA_RepositoryIdSeq_0 'c' #define TC_IMPL_TC_CORBA_RepositoryIdSeq_1 'o' #define TC_IMPL_TC_CORBA_RepositoryIdSeq_2 'r' #define TC_IMPL_TC_CORBA_RepositoryIdSeq_3 'b' #define TC_IMPL_TC_CORBA_RepositoryIdSeq_4 'a' #define TC_IMPL_TC_CORBA_RepositoryIdSeq_5 '_' #define TC_IMPL_TC_CORBA_RepositoryIdSeq_6 'd' #define TC_IMPL_TC_CORBA_RepositoryIdSeq_7 'e' #define TC_IMPL_TC_CORBA_RepositoryIdSeq_8 'f' #define TC_IMPL_TC_CORBA_RepositoryIdSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_RepositoryIdSeq_struct; #define TC_CORBA_RepositoryIdSeq ((CORBA_TypeCode)&TC_CORBA_RepositoryIdSeq_struct) #endif #define CORBA_RepositoryIdSeq__alloc() ((CORBA_RepositoryIdSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_RepositoryId)) #define CORBA_RepositoryIdSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_RepositoryId,(m),(d)) #define CORBA_RepositoryIdSeq_allocbuf(l) ((CORBA_RepositoryId*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_RepositoryId, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_OperationDescription) #define ORBIT_DECL_CORBA_sequence_CORBA_OperationDescription 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_OperationDescription_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_OperationDescription_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_OperationDescription_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_OperationDescription_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_OperationDescription_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_OperationDescription_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_OperationDescription_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_OperationDescription_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_OperationDescription_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_OperationDescription_9 's' #if !defined(_CORBA_sequence_CORBA_OperationDescription_defined) #define _CORBA_sequence_CORBA_OperationDescription_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_OperationDescription* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_OperationDescription; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_OperationDescription_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_OperationDescription_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_OperationDescription_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_OperationDescription_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_OperationDescription_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_OperationDescription_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_OperationDescription_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_OperationDescription_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_OperationDescription_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_OperationDescription_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_OperationDescription_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_OperationDescription_struct; #define TC_CORBA_sequence_CORBA_OperationDescription ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_OperationDescription_struct) #endif #define CORBA_sequence_CORBA_OperationDescription__alloc() ((CORBA_sequence_CORBA_OperationDescription *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_OperationDescription)) #define CORBA_sequence_CORBA_OperationDescription__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_OperationDescription,(m),(d)) #define CORBA_sequence_CORBA_OperationDescription_allocbuf(l) ((CORBA_OperationDescription*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_OperationDescription, (l))) #define CORBA_sequence_CORBA_OperationDescription_allocbuf(l) ((CORBA_OperationDescription*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_OperationDescription, (l))) #endif #if !defined(_CORBA_OpDescriptionSeq_defined) #define _CORBA_OpDescriptionSeq_defined 1 typedef CORBA_sequence_CORBA_OperationDescription CORBA_OpDescriptionSeq; #define CORBA_OpDescriptionSeq_marshal(x,y,z) CORBA_sequence_CORBA_OperationDescription_marshal((x),(y),(z)) #define CORBA_OpDescriptionSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_OperationDescription_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_OpDescriptionSeq_0) #define TC_IMPL_TC_CORBA_OpDescriptionSeq_0 'c' #define TC_IMPL_TC_CORBA_OpDescriptionSeq_1 'o' #define TC_IMPL_TC_CORBA_OpDescriptionSeq_2 'r' #define TC_IMPL_TC_CORBA_OpDescriptionSeq_3 'b' #define TC_IMPL_TC_CORBA_OpDescriptionSeq_4 'a' #define TC_IMPL_TC_CORBA_OpDescriptionSeq_5 '_' #define TC_IMPL_TC_CORBA_OpDescriptionSeq_6 'd' #define TC_IMPL_TC_CORBA_OpDescriptionSeq_7 'e' #define TC_IMPL_TC_CORBA_OpDescriptionSeq_8 'f' #define TC_IMPL_TC_CORBA_OpDescriptionSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_OpDescriptionSeq_struct; #define TC_CORBA_OpDescriptionSeq ((CORBA_TypeCode)&TC_CORBA_OpDescriptionSeq_struct) #endif #define CORBA_OpDescriptionSeq__alloc() ((CORBA_OpDescriptionSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_OperationDescription)) #define CORBA_OpDescriptionSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_OperationDescription,(m),(d)) #define CORBA_OpDescriptionSeq_allocbuf(l) ((CORBA_OperationDescription*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_OperationDescription, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_AttributeDescription) #define ORBIT_DECL_CORBA_sequence_CORBA_AttributeDescription 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_AttributeDescription_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_AttributeDescription_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_AttributeDescription_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_AttributeDescription_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_AttributeDescription_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_AttributeDescription_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_AttributeDescription_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_AttributeDescription_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_AttributeDescription_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_AttributeDescription_9 's' #if !defined(_CORBA_sequence_CORBA_AttributeDescription_defined) #define _CORBA_sequence_CORBA_AttributeDescription_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_AttributeDescription* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_AttributeDescription; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_AttributeDescription_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_AttributeDescription_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_AttributeDescription_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_AttributeDescription_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_AttributeDescription_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_AttributeDescription_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_AttributeDescription_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_AttributeDescription_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_AttributeDescription_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_AttributeDescription_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_AttributeDescription_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_AttributeDescription_struct; #define TC_CORBA_sequence_CORBA_AttributeDescription ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_AttributeDescription_struct) #endif #define CORBA_sequence_CORBA_AttributeDescription__alloc() ((CORBA_sequence_CORBA_AttributeDescription *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_AttributeDescription)) #define CORBA_sequence_CORBA_AttributeDescription__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_AttributeDescription,(m),(d)) #define CORBA_sequence_CORBA_AttributeDescription_allocbuf(l) ((CORBA_AttributeDescription*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_AttributeDescription, (l))) #define CORBA_sequence_CORBA_AttributeDescription_allocbuf(l) ((CORBA_AttributeDescription*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_AttributeDescription, (l))) #endif #if !defined(_CORBA_AttrDescriptionSeq_defined) #define _CORBA_AttrDescriptionSeq_defined 1 typedef CORBA_sequence_CORBA_AttributeDescription CORBA_AttrDescriptionSeq; #define CORBA_AttrDescriptionSeq_marshal(x,y,z) CORBA_sequence_CORBA_AttributeDescription_marshal((x),(y),(z)) #define CORBA_AttrDescriptionSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_AttributeDescription_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_AttrDescriptionSeq_0) #define TC_IMPL_TC_CORBA_AttrDescriptionSeq_0 'c' #define TC_IMPL_TC_CORBA_AttrDescriptionSeq_1 'o' #define TC_IMPL_TC_CORBA_AttrDescriptionSeq_2 'r' #define TC_IMPL_TC_CORBA_AttrDescriptionSeq_3 'b' #define TC_IMPL_TC_CORBA_AttrDescriptionSeq_4 'a' #define TC_IMPL_TC_CORBA_AttrDescriptionSeq_5 '_' #define TC_IMPL_TC_CORBA_AttrDescriptionSeq_6 'd' #define TC_IMPL_TC_CORBA_AttrDescriptionSeq_7 'e' #define TC_IMPL_TC_CORBA_AttrDescriptionSeq_8 'f' #define TC_IMPL_TC_CORBA_AttrDescriptionSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_AttrDescriptionSeq_struct; #define TC_CORBA_AttrDescriptionSeq ((CORBA_TypeCode)&TC_CORBA_AttrDescriptionSeq_struct) #endif #define CORBA_AttrDescriptionSeq__alloc() ((CORBA_AttrDescriptionSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_AttributeDescription)) #define CORBA_AttrDescriptionSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_AttributeDescription,(m),(d)) #define CORBA_AttrDescriptionSeq_allocbuf(l) ((CORBA_AttributeDescription*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_AttributeDescription, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_ExtAttributeDescription) #define ORBIT_DECL_CORBA_sequence_CORBA_ExtAttributeDescription 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtAttributeDescription_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtAttributeDescription_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtAttributeDescription_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtAttributeDescription_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtAttributeDescription_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtAttributeDescription_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtAttributeDescription_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtAttributeDescription_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtAttributeDescription_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_ExtAttributeDescription_9 's' #if !defined(_CORBA_sequence_CORBA_ExtAttributeDescription_defined) #define _CORBA_sequence_CORBA_ExtAttributeDescription_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_ExtAttributeDescription* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_ExtAttributeDescription; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_ExtAttributeDescription_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtAttributeDescription_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtAttributeDescription_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtAttributeDescription_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtAttributeDescription_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtAttributeDescription_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtAttributeDescription_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtAttributeDescription_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtAttributeDescription_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtAttributeDescription_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_ExtAttributeDescription_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_ExtAttributeDescription_struct; #define TC_CORBA_sequence_CORBA_ExtAttributeDescription ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_ExtAttributeDescription_struct) #endif #define CORBA_sequence_CORBA_ExtAttributeDescription__alloc() ((CORBA_sequence_CORBA_ExtAttributeDescription *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_ExtAttributeDescription)) #define CORBA_sequence_CORBA_ExtAttributeDescription__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_ExtAttributeDescription,(m),(d)) #define CORBA_sequence_CORBA_ExtAttributeDescription_allocbuf(l) ((CORBA_ExtAttributeDescription*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ExtAttributeDescription, (l))) #define CORBA_sequence_CORBA_ExtAttributeDescription_allocbuf(l) ((CORBA_ExtAttributeDescription*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ExtAttributeDescription, (l))) #endif #if !defined(_CORBA_ExtAttrDescriptionSeq_defined) #define _CORBA_ExtAttrDescriptionSeq_defined 1 typedef CORBA_sequence_CORBA_ExtAttributeDescription CORBA_ExtAttrDescriptionSeq; #define CORBA_ExtAttrDescriptionSeq_marshal(x,y,z) CORBA_sequence_CORBA_ExtAttributeDescription_marshal((x),(y),(z)) #define CORBA_ExtAttrDescriptionSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_ExtAttributeDescription_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ExtAttrDescriptionSeq_0) #define TC_IMPL_TC_CORBA_ExtAttrDescriptionSeq_0 'c' #define TC_IMPL_TC_CORBA_ExtAttrDescriptionSeq_1 'o' #define TC_IMPL_TC_CORBA_ExtAttrDescriptionSeq_2 'r' #define TC_IMPL_TC_CORBA_ExtAttrDescriptionSeq_3 'b' #define TC_IMPL_TC_CORBA_ExtAttrDescriptionSeq_4 'a' #define TC_IMPL_TC_CORBA_ExtAttrDescriptionSeq_5 '_' #define TC_IMPL_TC_CORBA_ExtAttrDescriptionSeq_6 'd' #define TC_IMPL_TC_CORBA_ExtAttrDescriptionSeq_7 'e' #define TC_IMPL_TC_CORBA_ExtAttrDescriptionSeq_8 'f' #define TC_IMPL_TC_CORBA_ExtAttrDescriptionSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtAttrDescriptionSeq_struct; #define TC_CORBA_ExtAttrDescriptionSeq ((CORBA_TypeCode)&TC_CORBA_ExtAttrDescriptionSeq_struct) #endif #define CORBA_ExtAttrDescriptionSeq__alloc() ((CORBA_ExtAttrDescriptionSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_ExtAttributeDescription)) #define CORBA_ExtAttrDescriptionSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_ExtAttributeDescription,(m),(d)) #define CORBA_ExtAttrDescriptionSeq_allocbuf(l) ((CORBA_ExtAttributeDescription*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ExtAttributeDescription, (l))) #endif #if !defined(ORBIT_DECL_CORBA_InterfaceDef) && !defined(_CORBA_InterfaceDef_defined) #define ORBIT_DECL_CORBA_InterfaceDef 1 #define _CORBA_InterfaceDef_defined 1 #define CORBA_InterfaceDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_InterfaceDef; extern CORBA_unsigned_long CORBA_InterfaceDef__classid; #if !defined(TC_IMPL_TC_CORBA_InterfaceDef_0) #define TC_IMPL_TC_CORBA_InterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_InterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_InterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_InterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_InterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_InterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_InterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_InterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_InterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_InterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_InterfaceDef_struct; #define TC_CORBA_InterfaceDef ((CORBA_TypeCode)&TC_CORBA_InterfaceDef_struct) #endif #endif #if !defined(_CORBA_InterfaceDef_FullInterfaceDescription_defined) #define _CORBA_InterfaceDef_FullInterfaceDescription_defined 1 typedef struct CORBA_InterfaceDef_FullInterfaceDescription_type CORBA_InterfaceDef_FullInterfaceDescription; struct CORBA_InterfaceDef_FullInterfaceDescription_type { CORBA_Identifier name; CORBA_RepositoryId id; CORBA_RepositoryId defined_in; CORBA_VersionSpec version; CORBA_OpDescriptionSeq operations; CORBA_AttrDescriptionSeq attributes; CORBA_RepositoryIdSeq base_interfaces; CORBA_TypeCode type; CORBA_boolean is_abstract; }; #if !defined(TC_IMPL_TC_CORBA_InterfaceDef_FullInterfaceDescription_0) #define TC_IMPL_TC_CORBA_InterfaceDef_FullInterfaceDescription_0 'c' #define TC_IMPL_TC_CORBA_InterfaceDef_FullInterfaceDescription_1 'o' #define TC_IMPL_TC_CORBA_InterfaceDef_FullInterfaceDescription_2 'r' #define TC_IMPL_TC_CORBA_InterfaceDef_FullInterfaceDescription_3 'b' #define TC_IMPL_TC_CORBA_InterfaceDef_FullInterfaceDescription_4 'a' #define TC_IMPL_TC_CORBA_InterfaceDef_FullInterfaceDescription_5 '_' #define TC_IMPL_TC_CORBA_InterfaceDef_FullInterfaceDescription_6 'd' #define TC_IMPL_TC_CORBA_InterfaceDef_FullInterfaceDescription_7 'e' #define TC_IMPL_TC_CORBA_InterfaceDef_FullInterfaceDescription_8 'f' #define TC_IMPL_TC_CORBA_InterfaceDef_FullInterfaceDescription_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_InterfaceDef_FullInterfaceDescription_struct; #define TC_CORBA_InterfaceDef_FullInterfaceDescription ((CORBA_TypeCode)&TC_CORBA_InterfaceDef_FullInterfaceDescription_struct) #endif #define CORBA_InterfaceDef_FullInterfaceDescription__alloc() ((CORBA_InterfaceDef_FullInterfaceDescription *)ORBit_small_alloc (TC_CORBA_InterfaceDef_FullInterfaceDescription)) #define CORBA_InterfaceDef_FullInterfaceDescription__freekids(m,d) ORBit_small_freekids (TC_CORBA_InterfaceDef_FullInterfaceDescription,(m),(d)) #endif #if !defined(_CORBA_InterfaceDescription_defined) #define _CORBA_InterfaceDescription_defined 1 typedef struct CORBA_InterfaceDescription_type CORBA_InterfaceDescription; struct CORBA_InterfaceDescription_type { CORBA_Identifier name; CORBA_RepositoryId id; CORBA_RepositoryId defined_in; CORBA_VersionSpec version; CORBA_RepositoryIdSeq base_interfaces; CORBA_boolean is_abstract; }; #if !defined(TC_IMPL_TC_CORBA_InterfaceDescription_0) #define TC_IMPL_TC_CORBA_InterfaceDescription_0 'c' #define TC_IMPL_TC_CORBA_InterfaceDescription_1 'o' #define TC_IMPL_TC_CORBA_InterfaceDescription_2 'r' #define TC_IMPL_TC_CORBA_InterfaceDescription_3 'b' #define TC_IMPL_TC_CORBA_InterfaceDescription_4 'a' #define TC_IMPL_TC_CORBA_InterfaceDescription_5 '_' #define TC_IMPL_TC_CORBA_InterfaceDescription_6 'd' #define TC_IMPL_TC_CORBA_InterfaceDescription_7 'e' #define TC_IMPL_TC_CORBA_InterfaceDescription_8 'f' #define TC_IMPL_TC_CORBA_InterfaceDescription_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_InterfaceDescription_struct; #define TC_CORBA_InterfaceDescription ((CORBA_TypeCode)&TC_CORBA_InterfaceDescription_struct) #endif #define CORBA_InterfaceDescription__alloc() ((CORBA_InterfaceDescription *)ORBit_small_alloc (TC_CORBA_InterfaceDescription)) #define CORBA_InterfaceDescription__freekids(m,d) ORBit_small_freekids (TC_CORBA_InterfaceDescription,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_InterfaceAttrExtension) && !defined(_CORBA_InterfaceAttrExtension_defined) #define ORBIT_DECL_CORBA_InterfaceAttrExtension 1 #define _CORBA_InterfaceAttrExtension_defined 1 #define CORBA_InterfaceAttrExtension__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_InterfaceAttrExtension; extern CORBA_unsigned_long CORBA_InterfaceAttrExtension__classid; #if !defined(TC_IMPL_TC_CORBA_InterfaceAttrExtension_0) #define TC_IMPL_TC_CORBA_InterfaceAttrExtension_0 'c' #define TC_IMPL_TC_CORBA_InterfaceAttrExtension_1 'o' #define TC_IMPL_TC_CORBA_InterfaceAttrExtension_2 'r' #define TC_IMPL_TC_CORBA_InterfaceAttrExtension_3 'b' #define TC_IMPL_TC_CORBA_InterfaceAttrExtension_4 'a' #define TC_IMPL_TC_CORBA_InterfaceAttrExtension_5 '_' #define TC_IMPL_TC_CORBA_InterfaceAttrExtension_6 'd' #define TC_IMPL_TC_CORBA_InterfaceAttrExtension_7 'e' #define TC_IMPL_TC_CORBA_InterfaceAttrExtension_8 'f' #define TC_IMPL_TC_CORBA_InterfaceAttrExtension_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_InterfaceAttrExtension_struct; #define TC_CORBA_InterfaceAttrExtension ((CORBA_TypeCode)&TC_CORBA_InterfaceAttrExtension_struct) #endif #endif #if !defined(_CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription_defined) #define _CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription_defined 1 typedef struct CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription_type CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription; struct CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription_type { CORBA_Identifier name; CORBA_RepositoryId id; CORBA_RepositoryId defined_in; CORBA_VersionSpec version; CORBA_OpDescriptionSeq operations; CORBA_ExtAttrDescriptionSeq attributes; CORBA_RepositoryIdSeq base_interfaces; CORBA_TypeCode type; }; #if !defined(TC_IMPL_TC_CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription_0) #define TC_IMPL_TC_CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription_0 'c' #define TC_IMPL_TC_CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription_1 'o' #define TC_IMPL_TC_CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription_2 'r' #define TC_IMPL_TC_CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription_3 'b' #define TC_IMPL_TC_CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription_4 'a' #define TC_IMPL_TC_CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription_5 '_' #define TC_IMPL_TC_CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription_6 'd' #define TC_IMPL_TC_CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription_7 'e' #define TC_IMPL_TC_CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription_8 'f' #define TC_IMPL_TC_CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription_struct; #define TC_CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription ((CORBA_TypeCode)&TC_CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription_struct) #endif #define CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription__alloc() ((CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription *)ORBit_small_alloc (TC_CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription)) #define CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription__freekids(m,d) ORBit_small_freekids (TC_CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_ExtInterfaceDef) && !defined(_CORBA_ExtInterfaceDef_defined) #define ORBIT_DECL_CORBA_ExtInterfaceDef 1 #define _CORBA_ExtInterfaceDef_defined 1 #define CORBA_ExtInterfaceDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ExtInterfaceDef; extern CORBA_unsigned_long CORBA_ExtInterfaceDef__classid; #if !defined(TC_IMPL_TC_CORBA_ExtInterfaceDef_0) #define TC_IMPL_TC_CORBA_ExtInterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_ExtInterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtInterfaceDef_struct; #define TC_CORBA_ExtInterfaceDef ((CORBA_TypeCode)&TC_CORBA_ExtInterfaceDef_struct) #endif #endif #if !defined(_CORBA_Visibility_defined) #define _CORBA_Visibility_defined 1 typedef CORBA_short CORBA_Visibility; #define CORBA_Visibility_marshal(x,y,z) CORBA_short_marshal((x),(y),(z)) #define CORBA_Visibility_demarshal(x,y,z,i) CORBA_short_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_Visibility_0) #define TC_IMPL_TC_CORBA_Visibility_0 'c' #define TC_IMPL_TC_CORBA_Visibility_1 'o' #define TC_IMPL_TC_CORBA_Visibility_2 'r' #define TC_IMPL_TC_CORBA_Visibility_3 'b' #define TC_IMPL_TC_CORBA_Visibility_4 'a' #define TC_IMPL_TC_CORBA_Visibility_5 '_' #define TC_IMPL_TC_CORBA_Visibility_6 'd' #define TC_IMPL_TC_CORBA_Visibility_7 'e' #define TC_IMPL_TC_CORBA_Visibility_8 'f' #define TC_IMPL_TC_CORBA_Visibility_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_Visibility_struct; #define TC_CORBA_Visibility ((CORBA_TypeCode)&TC_CORBA_Visibility_struct) #endif #define CORBA_Visibility__alloc() ((CORBA_Visibility *)ORBit_small_alloc (TC_CORBA_short)) #define CORBA_Visibility__freekids(m,d) ORBit_small_freekids (TC_CORBA_short,(m),(d)) #endif #ifndef CORBA_PRIVATE_MEMBER #define CORBA_PRIVATE_MEMBER 0 #endif /* !CORBA_PRIVATE_MEMBER */ #ifndef CORBA_PUBLIC_MEMBER #define CORBA_PUBLIC_MEMBER 1 #endif /* !CORBA_PUBLIC_MEMBER */ #if !defined(_CORBA_ValueMember_defined) #define _CORBA_ValueMember_defined 1 typedef struct CORBA_ValueMember_type CORBA_ValueMember; struct CORBA_ValueMember_type { CORBA_Identifier name; CORBA_RepositoryId id; CORBA_RepositoryId defined_in; CORBA_VersionSpec version; CORBA_TypeCode type; CORBA_IDLType type_def; CORBA_Visibility access; }; #if !defined(TC_IMPL_TC_CORBA_ValueMember_0) #define TC_IMPL_TC_CORBA_ValueMember_0 'c' #define TC_IMPL_TC_CORBA_ValueMember_1 'o' #define TC_IMPL_TC_CORBA_ValueMember_2 'r' #define TC_IMPL_TC_CORBA_ValueMember_3 'b' #define TC_IMPL_TC_CORBA_ValueMember_4 'a' #define TC_IMPL_TC_CORBA_ValueMember_5 '_' #define TC_IMPL_TC_CORBA_ValueMember_6 'd' #define TC_IMPL_TC_CORBA_ValueMember_7 'e' #define TC_IMPL_TC_CORBA_ValueMember_8 'f' #define TC_IMPL_TC_CORBA_ValueMember_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ValueMember_struct; #define TC_CORBA_ValueMember ((CORBA_TypeCode)&TC_CORBA_ValueMember_struct) #endif #define CORBA_ValueMember__alloc() ((CORBA_ValueMember *)ORBit_small_alloc (TC_CORBA_ValueMember)) #define CORBA_ValueMember__freekids(m,d) ORBit_small_freekids (TC_CORBA_ValueMember,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_ValueMember) #define ORBIT_DECL_CORBA_sequence_CORBA_ValueMember 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_ValueMember_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_ValueMember_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_ValueMember_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_ValueMember_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_ValueMember_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_ValueMember_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_ValueMember_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_ValueMember_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_ValueMember_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_ValueMember_9 's' #if !defined(_CORBA_sequence_CORBA_ValueMember_defined) #define _CORBA_sequence_CORBA_ValueMember_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_ValueMember* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_ValueMember; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_ValueMember_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_ValueMember_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_ValueMember_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_ValueMember_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_ValueMember_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_ValueMember_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_ValueMember_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_ValueMember_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_ValueMember_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_ValueMember_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_ValueMember_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_ValueMember_struct; #define TC_CORBA_sequence_CORBA_ValueMember ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_ValueMember_struct) #endif #define CORBA_sequence_CORBA_ValueMember__alloc() ((CORBA_sequence_CORBA_ValueMember *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_ValueMember)) #define CORBA_sequence_CORBA_ValueMember__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_ValueMember,(m),(d)) #define CORBA_sequence_CORBA_ValueMember_allocbuf(l) ((CORBA_ValueMember*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ValueMember, (l))) #define CORBA_sequence_CORBA_ValueMember_allocbuf(l) ((CORBA_ValueMember*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ValueMember, (l))) #endif #if !defined(_CORBA_ValueMemberSeq_defined) #define _CORBA_ValueMemberSeq_defined 1 typedef CORBA_sequence_CORBA_ValueMember CORBA_ValueMemberSeq; #define CORBA_ValueMemberSeq_marshal(x,y,z) CORBA_sequence_CORBA_ValueMember_marshal((x),(y),(z)) #define CORBA_ValueMemberSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_ValueMember_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ValueMemberSeq_0) #define TC_IMPL_TC_CORBA_ValueMemberSeq_0 'c' #define TC_IMPL_TC_CORBA_ValueMemberSeq_1 'o' #define TC_IMPL_TC_CORBA_ValueMemberSeq_2 'r' #define TC_IMPL_TC_CORBA_ValueMemberSeq_3 'b' #define TC_IMPL_TC_CORBA_ValueMemberSeq_4 'a' #define TC_IMPL_TC_CORBA_ValueMemberSeq_5 '_' #define TC_IMPL_TC_CORBA_ValueMemberSeq_6 'd' #define TC_IMPL_TC_CORBA_ValueMemberSeq_7 'e' #define TC_IMPL_TC_CORBA_ValueMemberSeq_8 'f' #define TC_IMPL_TC_CORBA_ValueMemberSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ValueMemberSeq_struct; #define TC_CORBA_ValueMemberSeq ((CORBA_TypeCode)&TC_CORBA_ValueMemberSeq_struct) #endif #define CORBA_ValueMemberSeq__alloc() ((CORBA_ValueMemberSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_ValueMember)) #define CORBA_ValueMemberSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_ValueMember,(m),(d)) #define CORBA_ValueMemberSeq_allocbuf(l) ((CORBA_ValueMember*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ValueMember, (l))) #endif #if !defined(ORBIT_DECL_CORBA_ValueMemberDef) && !defined(_CORBA_ValueMemberDef_defined) #define ORBIT_DECL_CORBA_ValueMemberDef 1 #define _CORBA_ValueMemberDef_defined 1 #define CORBA_ValueMemberDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ValueMemberDef; extern CORBA_unsigned_long CORBA_ValueMemberDef__classid; #if !defined(TC_IMPL_TC_CORBA_ValueMemberDef_0) #define TC_IMPL_TC_CORBA_ValueMemberDef_0 'c' #define TC_IMPL_TC_CORBA_ValueMemberDef_1 'o' #define TC_IMPL_TC_CORBA_ValueMemberDef_2 'r' #define TC_IMPL_TC_CORBA_ValueMemberDef_3 'b' #define TC_IMPL_TC_CORBA_ValueMemberDef_4 'a' #define TC_IMPL_TC_CORBA_ValueMemberDef_5 '_' #define TC_IMPL_TC_CORBA_ValueMemberDef_6 'd' #define TC_IMPL_TC_CORBA_ValueMemberDef_7 'e' #define TC_IMPL_TC_CORBA_ValueMemberDef_8 'f' #define TC_IMPL_TC_CORBA_ValueMemberDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ValueMemberDef_struct; #define TC_CORBA_ValueMemberDef ((CORBA_TypeCode)&TC_CORBA_ValueMemberDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_ValueDef) && !defined(_CORBA_ValueDef_defined) #define ORBIT_DECL_CORBA_ValueDef 1 #define _CORBA_ValueDef_defined 1 #define CORBA_ValueDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ValueDef; extern CORBA_unsigned_long CORBA_ValueDef__classid; #if !defined(TC_IMPL_TC_CORBA_ValueDef_0) #define TC_IMPL_TC_CORBA_ValueDef_0 'c' #define TC_IMPL_TC_CORBA_ValueDef_1 'o' #define TC_IMPL_TC_CORBA_ValueDef_2 'r' #define TC_IMPL_TC_CORBA_ValueDef_3 'b' #define TC_IMPL_TC_CORBA_ValueDef_4 'a' #define TC_IMPL_TC_CORBA_ValueDef_5 '_' #define TC_IMPL_TC_CORBA_ValueDef_6 'd' #define TC_IMPL_TC_CORBA_ValueDef_7 'e' #define TC_IMPL_TC_CORBA_ValueDef_8 'f' #define TC_IMPL_TC_CORBA_ValueDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ValueDef_struct; #define TC_CORBA_ValueDef ((CORBA_TypeCode)&TC_CORBA_ValueDef_struct) #endif #endif #if !defined(_CORBA_ValueDef_FullValueDescription_defined) #define _CORBA_ValueDef_FullValueDescription_defined 1 typedef struct CORBA_ValueDef_FullValueDescription_type CORBA_ValueDef_FullValueDescription; struct CORBA_ValueDef_FullValueDescription_type { CORBA_Identifier name; CORBA_RepositoryId id; CORBA_boolean is_abstract; CORBA_boolean is_custom; CORBA_RepositoryId defined_in; CORBA_VersionSpec version; CORBA_OpDescriptionSeq operations; CORBA_AttrDescriptionSeq attributes; CORBA_ValueMemberSeq members; CORBA_InitializerSeq initializers; CORBA_RepositoryIdSeq supported_interfaces; CORBA_RepositoryIdSeq abstract_base_values; CORBA_boolean is_truncatable; CORBA_RepositoryId base_value; CORBA_TypeCode type; }; #if !defined(TC_IMPL_TC_CORBA_ValueDef_FullValueDescription_0) #define TC_IMPL_TC_CORBA_ValueDef_FullValueDescription_0 'c' #define TC_IMPL_TC_CORBA_ValueDef_FullValueDescription_1 'o' #define TC_IMPL_TC_CORBA_ValueDef_FullValueDescription_2 'r' #define TC_IMPL_TC_CORBA_ValueDef_FullValueDescription_3 'b' #define TC_IMPL_TC_CORBA_ValueDef_FullValueDescription_4 'a' #define TC_IMPL_TC_CORBA_ValueDef_FullValueDescription_5 '_' #define TC_IMPL_TC_CORBA_ValueDef_FullValueDescription_6 'd' #define TC_IMPL_TC_CORBA_ValueDef_FullValueDescription_7 'e' #define TC_IMPL_TC_CORBA_ValueDef_FullValueDescription_8 'f' #define TC_IMPL_TC_CORBA_ValueDef_FullValueDescription_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ValueDef_FullValueDescription_struct; #define TC_CORBA_ValueDef_FullValueDescription ((CORBA_TypeCode)&TC_CORBA_ValueDef_FullValueDescription_struct) #endif #define CORBA_ValueDef_FullValueDescription__alloc() ((CORBA_ValueDef_FullValueDescription *)ORBit_small_alloc (TC_CORBA_ValueDef_FullValueDescription)) #define CORBA_ValueDef_FullValueDescription__freekids(m,d) ORBit_small_freekids (TC_CORBA_ValueDef_FullValueDescription,(m),(d)) #endif #if !defined(_CORBA_ValueDescription_defined) #define _CORBA_ValueDescription_defined 1 typedef struct CORBA_ValueDescription_type CORBA_ValueDescription; struct CORBA_ValueDescription_type { CORBA_Identifier name; CORBA_RepositoryId id; CORBA_boolean is_abstract; CORBA_boolean is_custom; CORBA_RepositoryId defined_in; CORBA_VersionSpec version; CORBA_RepositoryIdSeq supported_interfaces; CORBA_RepositoryIdSeq abstract_base_values; CORBA_boolean is_truncatable; CORBA_RepositoryId base_value; }; #if !defined(TC_IMPL_TC_CORBA_ValueDescription_0) #define TC_IMPL_TC_CORBA_ValueDescription_0 'c' #define TC_IMPL_TC_CORBA_ValueDescription_1 'o' #define TC_IMPL_TC_CORBA_ValueDescription_2 'r' #define TC_IMPL_TC_CORBA_ValueDescription_3 'b' #define TC_IMPL_TC_CORBA_ValueDescription_4 'a' #define TC_IMPL_TC_CORBA_ValueDescription_5 '_' #define TC_IMPL_TC_CORBA_ValueDescription_6 'd' #define TC_IMPL_TC_CORBA_ValueDescription_7 'e' #define TC_IMPL_TC_CORBA_ValueDescription_8 'f' #define TC_IMPL_TC_CORBA_ValueDescription_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ValueDescription_struct; #define TC_CORBA_ValueDescription ((CORBA_TypeCode)&TC_CORBA_ValueDescription_struct) #endif #define CORBA_ValueDescription__alloc() ((CORBA_ValueDescription *)ORBit_small_alloc (TC_CORBA_ValueDescription)) #define CORBA_ValueDescription__freekids(m,d) ORBit_small_freekids (TC_CORBA_ValueDescription,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_ExtValueDef) && !defined(_CORBA_ExtValueDef_defined) #define ORBIT_DECL_CORBA_ExtValueDef 1 #define _CORBA_ExtValueDef_defined 1 #define CORBA_ExtValueDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ExtValueDef; extern CORBA_unsigned_long CORBA_ExtValueDef__classid; #if !defined(TC_IMPL_TC_CORBA_ExtValueDef_0) #define TC_IMPL_TC_CORBA_ExtValueDef_0 'c' #define TC_IMPL_TC_CORBA_ExtValueDef_1 'o' #define TC_IMPL_TC_CORBA_ExtValueDef_2 'r' #define TC_IMPL_TC_CORBA_ExtValueDef_3 'b' #define TC_IMPL_TC_CORBA_ExtValueDef_4 'a' #define TC_IMPL_TC_CORBA_ExtValueDef_5 '_' #define TC_IMPL_TC_CORBA_ExtValueDef_6 'd' #define TC_IMPL_TC_CORBA_ExtValueDef_7 'e' #define TC_IMPL_TC_CORBA_ExtValueDef_8 'f' #define TC_IMPL_TC_CORBA_ExtValueDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtValueDef_struct; #define TC_CORBA_ExtValueDef ((CORBA_TypeCode)&TC_CORBA_ExtValueDef_struct) #endif #endif #if !defined(_CORBA_ExtValueDef_ExtFullValueDescription_defined) #define _CORBA_ExtValueDef_ExtFullValueDescription_defined 1 typedef struct CORBA_ExtValueDef_ExtFullValueDescription_type CORBA_ExtValueDef_ExtFullValueDescription; struct CORBA_ExtValueDef_ExtFullValueDescription_type { CORBA_Identifier name; CORBA_RepositoryId id; CORBA_boolean is_abstract; CORBA_boolean is_custom; CORBA_RepositoryId defined_in; CORBA_VersionSpec version; CORBA_OpDescriptionSeq operations; CORBA_ExtAttrDescriptionSeq attributes; CORBA_ValueMemberSeq members; CORBA_ExtInitializerSeq initializers; CORBA_RepositoryIdSeq supported_interfaces; CORBA_RepositoryIdSeq abstract_base_values; CORBA_boolean is_truncatable; CORBA_RepositoryId base_value; CORBA_TypeCode type; }; #if !defined(TC_IMPL_TC_CORBA_ExtValueDef_ExtFullValueDescription_0) #define TC_IMPL_TC_CORBA_ExtValueDef_ExtFullValueDescription_0 'c' #define TC_IMPL_TC_CORBA_ExtValueDef_ExtFullValueDescription_1 'o' #define TC_IMPL_TC_CORBA_ExtValueDef_ExtFullValueDescription_2 'r' #define TC_IMPL_TC_CORBA_ExtValueDef_ExtFullValueDescription_3 'b' #define TC_IMPL_TC_CORBA_ExtValueDef_ExtFullValueDescription_4 'a' #define TC_IMPL_TC_CORBA_ExtValueDef_ExtFullValueDescription_5 '_' #define TC_IMPL_TC_CORBA_ExtValueDef_ExtFullValueDescription_6 'd' #define TC_IMPL_TC_CORBA_ExtValueDef_ExtFullValueDescription_7 'e' #define TC_IMPL_TC_CORBA_ExtValueDef_ExtFullValueDescription_8 'f' #define TC_IMPL_TC_CORBA_ExtValueDef_ExtFullValueDescription_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtValueDef_ExtFullValueDescription_struct; #define TC_CORBA_ExtValueDef_ExtFullValueDescription ((CORBA_TypeCode)&TC_CORBA_ExtValueDef_ExtFullValueDescription_struct) #endif #define CORBA_ExtValueDef_ExtFullValueDescription__alloc() ((CORBA_ExtValueDef_ExtFullValueDescription *)ORBit_small_alloc (TC_CORBA_ExtValueDef_ExtFullValueDescription)) #define CORBA_ExtValueDef_ExtFullValueDescription__freekids(m,d) ORBit_small_freekids (TC_CORBA_ExtValueDef_ExtFullValueDescription,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_ValueBoxDef) && !defined(_CORBA_ValueBoxDef_defined) #define ORBIT_DECL_CORBA_ValueBoxDef 1 #define _CORBA_ValueBoxDef_defined 1 #define CORBA_ValueBoxDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ValueBoxDef; extern CORBA_unsigned_long CORBA_ValueBoxDef__classid; #if !defined(TC_IMPL_TC_CORBA_ValueBoxDef_0) #define TC_IMPL_TC_CORBA_ValueBoxDef_0 'c' #define TC_IMPL_TC_CORBA_ValueBoxDef_1 'o' #define TC_IMPL_TC_CORBA_ValueBoxDef_2 'r' #define TC_IMPL_TC_CORBA_ValueBoxDef_3 'b' #define TC_IMPL_TC_CORBA_ValueBoxDef_4 'a' #define TC_IMPL_TC_CORBA_ValueBoxDef_5 '_' #define TC_IMPL_TC_CORBA_ValueBoxDef_6 'd' #define TC_IMPL_TC_CORBA_ValueBoxDef_7 'e' #define TC_IMPL_TC_CORBA_ValueBoxDef_8 'f' #define TC_IMPL_TC_CORBA_ValueBoxDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ValueBoxDef_struct; #define TC_CORBA_ValueBoxDef ((CORBA_TypeCode)&TC_CORBA_ValueBoxDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_AbstractInterfaceDef) && !defined(_CORBA_AbstractInterfaceDef_defined) #define ORBIT_DECL_CORBA_AbstractInterfaceDef 1 #define _CORBA_AbstractInterfaceDef_defined 1 #define CORBA_AbstractInterfaceDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_AbstractInterfaceDef; extern CORBA_unsigned_long CORBA_AbstractInterfaceDef__classid; #if !defined(TC_IMPL_TC_CORBA_AbstractInterfaceDef_0) #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_AbstractInterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_AbstractInterfaceDef_struct; #define TC_CORBA_AbstractInterfaceDef ((CORBA_TypeCode)&TC_CORBA_AbstractInterfaceDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_ExtAbstractInterfaceDef) && !defined(_CORBA_ExtAbstractInterfaceDef_defined) #define ORBIT_DECL_CORBA_ExtAbstractInterfaceDef 1 #define _CORBA_ExtAbstractInterfaceDef_defined 1 #define CORBA_ExtAbstractInterfaceDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ExtAbstractInterfaceDef; extern CORBA_unsigned_long CORBA_ExtAbstractInterfaceDef__classid; #if !defined(TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_0) #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_ExtAbstractInterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtAbstractInterfaceDef_struct; #define TC_CORBA_ExtAbstractInterfaceDef ((CORBA_TypeCode)&TC_CORBA_ExtAbstractInterfaceDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_LocalInterfaceDef) && !defined(_CORBA_LocalInterfaceDef_defined) #define ORBIT_DECL_CORBA_LocalInterfaceDef 1 #define _CORBA_LocalInterfaceDef_defined 1 #define CORBA_LocalInterfaceDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_LocalInterfaceDef; extern CORBA_unsigned_long CORBA_LocalInterfaceDef__classid; #if !defined(TC_IMPL_TC_CORBA_LocalInterfaceDef_0) #define TC_IMPL_TC_CORBA_LocalInterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_LocalInterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_LocalInterfaceDef_struct; #define TC_CORBA_LocalInterfaceDef ((CORBA_TypeCode)&TC_CORBA_LocalInterfaceDef_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_ExtLocalInterfaceDef) && !defined(_CORBA_ExtLocalInterfaceDef_defined) #define ORBIT_DECL_CORBA_ExtLocalInterfaceDef 1 #define _CORBA_ExtLocalInterfaceDef_defined 1 #define CORBA_ExtLocalInterfaceDef__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_ExtLocalInterfaceDef; extern CORBA_unsigned_long CORBA_ExtLocalInterfaceDef__classid; #if !defined(TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_0) #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_0 'c' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_1 'o' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_2 'r' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_3 'b' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_4 'a' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_5 '_' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_6 'd' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_7 'e' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_8 'f' #define TC_IMPL_TC_CORBA_ExtLocalInterfaceDef_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ExtLocalInterfaceDef_struct; #define TC_CORBA_ExtLocalInterfaceDef ((CORBA_TypeCode)&TC_CORBA_ExtLocalInterfaceDef_struct) #endif #endif #if !defined(_CORBA_TCKind_defined) #define _CORBA_TCKind_defined 1 typedef enum { CORBA_tk_null, CORBA_tk_void, CORBA_tk_short, CORBA_tk_long, CORBA_tk_ushort, CORBA_tk_ulong, CORBA_tk_float, CORBA_tk_double, CORBA_tk_boolean, CORBA_tk_char, CORBA_tk_octet, CORBA_tk_any, CORBA_tk_TypeCode, CORBA_tk_Principal, CORBA_tk_objref, CORBA_tk_struct, CORBA_tk_union, CORBA_tk_enum, CORBA_tk_string, CORBA_tk_sequence, CORBA_tk_array, CORBA_tk_alias, CORBA_tk_except, CORBA_tk_longlong, CORBA_tk_ulonglong, CORBA_tk_longdouble, CORBA_tk_wchar, CORBA_tk_wstring, CORBA_tk_fixed, CORBA_tk_value, CORBA_tk_value_box, CORBA_tk_native, CORBA_tk_abstract_interface, CORBA_tk_local_interface, CORBA_tk_component, CORBA_tk_home, CORBA_tk_event } CORBA_TCKind; #if !defined(TC_IMPL_TC_CORBA_TCKind_0) #define TC_IMPL_TC_CORBA_TCKind_0 'c' #define TC_IMPL_TC_CORBA_TCKind_1 'o' #define TC_IMPL_TC_CORBA_TCKind_2 'r' #define TC_IMPL_TC_CORBA_TCKind_3 'b' #define TC_IMPL_TC_CORBA_TCKind_4 'a' #define TC_IMPL_TC_CORBA_TCKind_5 '_' #define TC_IMPL_TC_CORBA_TCKind_6 'd' #define TC_IMPL_TC_CORBA_TCKind_7 'e' #define TC_IMPL_TC_CORBA_TCKind_8 'f' #define TC_IMPL_TC_CORBA_TCKind_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_TCKind_struct; #define TC_CORBA_TCKind ((CORBA_TypeCode)&TC_CORBA_TCKind_struct) #endif #endif #if !defined(_CORBA_ValueModifier_defined) #define _CORBA_ValueModifier_defined 1 typedef CORBA_short CORBA_ValueModifier; #define CORBA_ValueModifier_marshal(x,y,z) CORBA_short_marshal((x),(y),(z)) #define CORBA_ValueModifier_demarshal(x,y,z,i) CORBA_short_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ValueModifier_0) #define TC_IMPL_TC_CORBA_ValueModifier_0 'c' #define TC_IMPL_TC_CORBA_ValueModifier_1 'o' #define TC_IMPL_TC_CORBA_ValueModifier_2 'r' #define TC_IMPL_TC_CORBA_ValueModifier_3 'b' #define TC_IMPL_TC_CORBA_ValueModifier_4 'a' #define TC_IMPL_TC_CORBA_ValueModifier_5 '_' #define TC_IMPL_TC_CORBA_ValueModifier_6 'd' #define TC_IMPL_TC_CORBA_ValueModifier_7 'e' #define TC_IMPL_TC_CORBA_ValueModifier_8 'f' #define TC_IMPL_TC_CORBA_ValueModifier_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ValueModifier_struct; #define TC_CORBA_ValueModifier ((CORBA_TypeCode)&TC_CORBA_ValueModifier_struct) #endif #define CORBA_ValueModifier__alloc() ((CORBA_ValueModifier *)ORBit_small_alloc (TC_CORBA_short)) #define CORBA_ValueModifier__freekids(m,d) ORBit_small_freekids (TC_CORBA_short,(m),(d)) #endif #ifndef CORBA_VM_NONE #define CORBA_VM_NONE 0 #endif /* !CORBA_VM_NONE */ #ifndef CORBA_VM_CUSTOM #define CORBA_VM_CUSTOM 1 #endif /* !CORBA_VM_CUSTOM */ #ifndef CORBA_VM_ABSTRACT #define CORBA_VM_ABSTRACT 2 #endif /* !CORBA_VM_ABSTRACT */ #ifndef CORBA_VM_TRUNCATABLE #define CORBA_VM_TRUNCATABLE 3 #endif /* !CORBA_VM_TRUNCATABLE */ #if !defined(ORBIT_DECL_CORBA_TypeCode) && !defined(_CORBA_TypeCode_defined) #define ORBIT_DECL_CORBA_TypeCode 1 #define _CORBA_TypeCode_defined 1 #define CORBA_TypeCode__freekids CORBA_Object__freekids typedef CORBA_Object CORBA_TypeCode; extern CORBA_unsigned_long CORBA_TypeCode__classid; #if !defined(TC_IMPL_TC_CORBA_TypeCode_0) #define TC_IMPL_TC_CORBA_TypeCode_0 'c' #define TC_IMPL_TC_CORBA_TypeCode_1 'o' #define TC_IMPL_TC_CORBA_TypeCode_2 'r' #define TC_IMPL_TC_CORBA_TypeCode_3 'b' #define TC_IMPL_TC_CORBA_TypeCode_4 'a' #define TC_IMPL_TC_CORBA_TypeCode_5 '_' #define TC_IMPL_TC_CORBA_TypeCode_6 'd' #define TC_IMPL_TC_CORBA_TypeCode_7 'e' #define TC_IMPL_TC_CORBA_TypeCode_8 'f' #define TC_IMPL_TC_CORBA_TypeCode_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_TypeCode_struct; #define TC_CORBA_TypeCode ((CORBA_TypeCode)&TC_CORBA_TypeCode_struct) #endif #endif #undef ex_CORBA_TypeCode_Bounds #define ex_CORBA_TypeCode_Bounds "IDL:omg.org/CORBA/TypeCode/Bounds:1.0" #if !defined(_CORBA_TypeCode_Bounds_defined) #define _CORBA_TypeCode_Bounds_defined 1 typedef struct CORBA_TypeCode_Bounds_type CORBA_TypeCode_Bounds; struct CORBA_TypeCode_Bounds_type { int dummy; }; #if !defined(TC_IMPL_TC_CORBA_TypeCode_Bounds_0) #define TC_IMPL_TC_CORBA_TypeCode_Bounds_0 'c' #define TC_IMPL_TC_CORBA_TypeCode_Bounds_1 'o' #define TC_IMPL_TC_CORBA_TypeCode_Bounds_2 'r' #define TC_IMPL_TC_CORBA_TypeCode_Bounds_3 'b' #define TC_IMPL_TC_CORBA_TypeCode_Bounds_4 'a' #define TC_IMPL_TC_CORBA_TypeCode_Bounds_5 '_' #define TC_IMPL_TC_CORBA_TypeCode_Bounds_6 'd' #define TC_IMPL_TC_CORBA_TypeCode_Bounds_7 'e' #define TC_IMPL_TC_CORBA_TypeCode_Bounds_8 'f' #define TC_IMPL_TC_CORBA_TypeCode_Bounds_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_TypeCode_Bounds_struct; #define TC_CORBA_TypeCode_Bounds ((CORBA_TypeCode)&TC_CORBA_TypeCode_Bounds_struct) #endif #define CORBA_TypeCode_Bounds__alloc() ((CORBA_TypeCode_Bounds *)ORBit_small_alloc (TC_CORBA_TypeCode_Bounds)) #define CORBA_TypeCode_Bounds__freekids(m,d) ORBit_small_freekids (TC_CORBA_TypeCode_Bounds,(m),(d)) #endif #undef ex_CORBA_TypeCode_BadKind #define ex_CORBA_TypeCode_BadKind "IDL:omg.org/CORBA/TypeCode/BadKind:1.0" #if !defined(_CORBA_TypeCode_BadKind_defined) #define _CORBA_TypeCode_BadKind_defined 1 typedef struct CORBA_TypeCode_BadKind_type CORBA_TypeCode_BadKind; struct CORBA_TypeCode_BadKind_type { int dummy; }; #if !defined(TC_IMPL_TC_CORBA_TypeCode_BadKind_0) #define TC_IMPL_TC_CORBA_TypeCode_BadKind_0 'c' #define TC_IMPL_TC_CORBA_TypeCode_BadKind_1 'o' #define TC_IMPL_TC_CORBA_TypeCode_BadKind_2 'r' #define TC_IMPL_TC_CORBA_TypeCode_BadKind_3 'b' #define TC_IMPL_TC_CORBA_TypeCode_BadKind_4 'a' #define TC_IMPL_TC_CORBA_TypeCode_BadKind_5 '_' #define TC_IMPL_TC_CORBA_TypeCode_BadKind_6 'd' #define TC_IMPL_TC_CORBA_TypeCode_BadKind_7 'e' #define TC_IMPL_TC_CORBA_TypeCode_BadKind_8 'f' #define TC_IMPL_TC_CORBA_TypeCode_BadKind_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_TypeCode_BadKind_struct; #define TC_CORBA_TypeCode_BadKind ((CORBA_TypeCode)&TC_CORBA_TypeCode_BadKind_struct) #endif #define CORBA_TypeCode_BadKind__alloc() ((CORBA_TypeCode_BadKind *)ORBit_small_alloc (TC_CORBA_TypeCode_BadKind)) #define CORBA_TypeCode_BadKind__freekids(m,d) ORBit_small_freekids (TC_CORBA_TypeCode_BadKind,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_any) #define ORBIT_DECL_CORBA_sequence_CORBA_any 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_any_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_any_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_any_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_any_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_any_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_any_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_any_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_any_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_any_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_any_9 's' #if !defined(_CORBA_sequence_CORBA_any_defined) #define _CORBA_sequence_CORBA_any_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_any* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_any; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_any_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_any_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_any_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_any_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_any_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_any_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_any_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_any_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_any_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_any_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_any_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_any_struct; #define TC_CORBA_sequence_CORBA_any ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_any_struct) #endif #define CORBA_sequence_CORBA_any__alloc() ((CORBA_sequence_CORBA_any *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_any)) #define CORBA_sequence_CORBA_any__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_any,(m),(d)) #define CORBA_sequence_CORBA_any_allocbuf(l) ((CORBA_any*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_any, (l))) #define CORBA_sequence_CORBA_any_allocbuf(l) ((CORBA_any*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_any, (l))) #endif #if !defined(_CORBA_AnySeq_defined) #define _CORBA_AnySeq_defined 1 typedef CORBA_sequence_CORBA_any CORBA_AnySeq; #define CORBA_AnySeq_marshal(x,y,z) CORBA_sequence_CORBA_any_marshal((x),(y),(z)) #define CORBA_AnySeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_any_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_AnySeq_0) #define TC_IMPL_TC_CORBA_AnySeq_0 'c' #define TC_IMPL_TC_CORBA_AnySeq_1 'o' #define TC_IMPL_TC_CORBA_AnySeq_2 'r' #define TC_IMPL_TC_CORBA_AnySeq_3 'b' #define TC_IMPL_TC_CORBA_AnySeq_4 'a' #define TC_IMPL_TC_CORBA_AnySeq_5 '_' #define TC_IMPL_TC_CORBA_AnySeq_6 'd' #define TC_IMPL_TC_CORBA_AnySeq_7 'e' #define TC_IMPL_TC_CORBA_AnySeq_8 'f' #define TC_IMPL_TC_CORBA_AnySeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_AnySeq_struct; #define TC_CORBA_AnySeq ((CORBA_TypeCode)&TC_CORBA_AnySeq_struct) #endif #define CORBA_AnySeq__alloc() ((CORBA_AnySeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_any)) #define CORBA_AnySeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_any,(m),(d)) #define CORBA_AnySeq_allocbuf(l) ((CORBA_any*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_any, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_boolean) #define ORBIT_DECL_CORBA_sequence_CORBA_boolean 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_boolean_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_boolean_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_boolean_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_boolean_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_boolean_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_boolean_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_boolean_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_boolean_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_boolean_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_boolean_9 's' #if !defined(_CORBA_sequence_CORBA_boolean_defined) #define _CORBA_sequence_CORBA_boolean_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_boolean* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_boolean; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_boolean_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_boolean_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_boolean_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_boolean_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_boolean_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_boolean_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_boolean_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_boolean_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_boolean_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_boolean_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_boolean_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_boolean_struct; #define TC_CORBA_sequence_CORBA_boolean ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_boolean_struct) #endif #define CORBA_sequence_CORBA_boolean__alloc() ((CORBA_sequence_CORBA_boolean *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_boolean)) #define CORBA_sequence_CORBA_boolean__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_boolean,(m),(d)) #define CORBA_sequence_CORBA_boolean_allocbuf(l) ((CORBA_boolean*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_boolean, (l))) #define CORBA_sequence_CORBA_boolean_allocbuf(l) ((CORBA_boolean*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_boolean, (l))) #endif #if !defined(_CORBA_BooleanSeq_defined) #define _CORBA_BooleanSeq_defined 1 typedef CORBA_sequence_CORBA_boolean CORBA_BooleanSeq; #define CORBA_BooleanSeq_marshal(x,y,z) CORBA_sequence_CORBA_boolean_marshal((x),(y),(z)) #define CORBA_BooleanSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_boolean_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_BooleanSeq_0) #define TC_IMPL_TC_CORBA_BooleanSeq_0 'c' #define TC_IMPL_TC_CORBA_BooleanSeq_1 'o' #define TC_IMPL_TC_CORBA_BooleanSeq_2 'r' #define TC_IMPL_TC_CORBA_BooleanSeq_3 'b' #define TC_IMPL_TC_CORBA_BooleanSeq_4 'a' #define TC_IMPL_TC_CORBA_BooleanSeq_5 '_' #define TC_IMPL_TC_CORBA_BooleanSeq_6 'd' #define TC_IMPL_TC_CORBA_BooleanSeq_7 'e' #define TC_IMPL_TC_CORBA_BooleanSeq_8 'f' #define TC_IMPL_TC_CORBA_BooleanSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_BooleanSeq_struct; #define TC_CORBA_BooleanSeq ((CORBA_TypeCode)&TC_CORBA_BooleanSeq_struct) #endif #define CORBA_BooleanSeq__alloc() ((CORBA_BooleanSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_boolean)) #define CORBA_BooleanSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_boolean,(m),(d)) #define CORBA_BooleanSeq_allocbuf(l) ((CORBA_boolean*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_boolean, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_char) #define ORBIT_DECL_CORBA_sequence_CORBA_char 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_char_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_char_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_char_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_char_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_char_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_char_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_char_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_char_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_char_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_char_9 's' #if !defined(_CORBA_sequence_CORBA_char_defined) #define _CORBA_sequence_CORBA_char_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_char* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_char; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_char_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_char_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_char_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_char_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_char_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_char_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_char_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_char_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_char_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_char_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_char_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_char_struct; #define TC_CORBA_sequence_CORBA_char ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_char_struct) #endif #define CORBA_sequence_CORBA_char__alloc() ((CORBA_sequence_CORBA_char *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_char)) #define CORBA_sequence_CORBA_char__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_char,(m),(d)) #define CORBA_sequence_CORBA_char_allocbuf(l) ((CORBA_char*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_char, (l))) #define CORBA_sequence_CORBA_char_allocbuf(l) ((CORBA_char*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_char, (l))) #endif #if !defined(_CORBA_CharSeq_defined) #define _CORBA_CharSeq_defined 1 typedef CORBA_sequence_CORBA_char CORBA_CharSeq; #define CORBA_CharSeq_marshal(x,y,z) CORBA_sequence_CORBA_char_marshal((x),(y),(z)) #define CORBA_CharSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_char_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_CharSeq_0) #define TC_IMPL_TC_CORBA_CharSeq_0 'c' #define TC_IMPL_TC_CORBA_CharSeq_1 'o' #define TC_IMPL_TC_CORBA_CharSeq_2 'r' #define TC_IMPL_TC_CORBA_CharSeq_3 'b' #define TC_IMPL_TC_CORBA_CharSeq_4 'a' #define TC_IMPL_TC_CORBA_CharSeq_5 '_' #define TC_IMPL_TC_CORBA_CharSeq_6 'd' #define TC_IMPL_TC_CORBA_CharSeq_7 'e' #define TC_IMPL_TC_CORBA_CharSeq_8 'f' #define TC_IMPL_TC_CORBA_CharSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_CharSeq_struct; #define TC_CORBA_CharSeq ((CORBA_TypeCode)&TC_CORBA_CharSeq_struct) #endif #define CORBA_CharSeq__alloc() ((CORBA_CharSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_char)) #define CORBA_CharSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_char,(m),(d)) #define CORBA_CharSeq_allocbuf(l) ((CORBA_char*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_char, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_wchar) #define ORBIT_DECL_CORBA_sequence_CORBA_wchar 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_wchar_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_wchar_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_wchar_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_wchar_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_wchar_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_wchar_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_wchar_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_wchar_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_wchar_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_wchar_9 's' #if !defined(_CORBA_sequence_CORBA_wchar_defined) #define _CORBA_sequence_CORBA_wchar_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_wchar* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_wchar; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_wchar_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_wchar_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_wchar_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_wchar_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_wchar_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_wchar_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_wchar_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_wchar_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_wchar_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_wchar_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_wchar_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_wchar_struct; #define TC_CORBA_sequence_CORBA_wchar ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_wchar_struct) #endif #define CORBA_sequence_CORBA_wchar__alloc() ((CORBA_sequence_CORBA_wchar *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_wchar)) #define CORBA_sequence_CORBA_wchar__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_wchar,(m),(d)) #define CORBA_sequence_CORBA_wchar_allocbuf(l) ((CORBA_wchar*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_wchar, (l))) #define CORBA_sequence_CORBA_wchar_allocbuf(l) ((CORBA_wchar*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_wchar, (l))) #endif #if !defined(_CORBA_WCharSeq_defined) #define _CORBA_WCharSeq_defined 1 typedef CORBA_sequence_CORBA_wchar CORBA_WCharSeq; #define CORBA_WCharSeq_marshal(x,y,z) CORBA_sequence_CORBA_wchar_marshal((x),(y),(z)) #define CORBA_WCharSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_wchar_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_WCharSeq_0) #define TC_IMPL_TC_CORBA_WCharSeq_0 'c' #define TC_IMPL_TC_CORBA_WCharSeq_1 'o' #define TC_IMPL_TC_CORBA_WCharSeq_2 'r' #define TC_IMPL_TC_CORBA_WCharSeq_3 'b' #define TC_IMPL_TC_CORBA_WCharSeq_4 'a' #define TC_IMPL_TC_CORBA_WCharSeq_5 '_' #define TC_IMPL_TC_CORBA_WCharSeq_6 'd' #define TC_IMPL_TC_CORBA_WCharSeq_7 'e' #define TC_IMPL_TC_CORBA_WCharSeq_8 'f' #define TC_IMPL_TC_CORBA_WCharSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_WCharSeq_struct; #define TC_CORBA_WCharSeq ((CORBA_TypeCode)&TC_CORBA_WCharSeq_struct) #endif #define CORBA_WCharSeq__alloc() ((CORBA_WCharSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_wchar)) #define CORBA_WCharSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_wchar,(m),(d)) #define CORBA_WCharSeq_allocbuf(l) ((CORBA_wchar*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_wchar, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_9 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(_CORBA_OctetSeq_defined) #define _CORBA_OctetSeq_defined 1 typedef CORBA_sequence_CORBA_octet CORBA_OctetSeq; #define CORBA_OctetSeq_marshal(x,y,z) CORBA_sequence_CORBA_octet_marshal((x),(y),(z)) #define CORBA_OctetSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_octet_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_OctetSeq_0) #define TC_IMPL_TC_CORBA_OctetSeq_0 'c' #define TC_IMPL_TC_CORBA_OctetSeq_1 'o' #define TC_IMPL_TC_CORBA_OctetSeq_2 'r' #define TC_IMPL_TC_CORBA_OctetSeq_3 'b' #define TC_IMPL_TC_CORBA_OctetSeq_4 'a' #define TC_IMPL_TC_CORBA_OctetSeq_5 '_' #define TC_IMPL_TC_CORBA_OctetSeq_6 'd' #define TC_IMPL_TC_CORBA_OctetSeq_7 'e' #define TC_IMPL_TC_CORBA_OctetSeq_8 'f' #define TC_IMPL_TC_CORBA_OctetSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_OctetSeq_struct; #define TC_CORBA_OctetSeq ((CORBA_TypeCode)&TC_CORBA_OctetSeq_struct) #endif #define CORBA_OctetSeq__alloc() ((CORBA_OctetSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_OctetSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_OctetSeq_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_short) #define ORBIT_DECL_CORBA_sequence_CORBA_short 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_short_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_short_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_short_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_short_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_short_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_short_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_short_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_short_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_short_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_short_9 's' #if !defined(_CORBA_sequence_CORBA_short_defined) #define _CORBA_sequence_CORBA_short_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_short* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_short; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_short_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_short_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_short_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_short_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_short_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_short_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_short_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_short_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_short_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_short_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_short_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_short_struct; #define TC_CORBA_sequence_CORBA_short ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_short_struct) #endif #define CORBA_sequence_CORBA_short__alloc() ((CORBA_sequence_CORBA_short *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_short)) #define CORBA_sequence_CORBA_short__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_short,(m),(d)) #define CORBA_sequence_CORBA_short_allocbuf(l) ((CORBA_short*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_short, (l))) #define CORBA_sequence_CORBA_short_allocbuf(l) ((CORBA_short*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_short, (l))) #endif #if !defined(_CORBA_ShortSeq_defined) #define _CORBA_ShortSeq_defined 1 typedef CORBA_sequence_CORBA_short CORBA_ShortSeq; #define CORBA_ShortSeq_marshal(x,y,z) CORBA_sequence_CORBA_short_marshal((x),(y),(z)) #define CORBA_ShortSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_short_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ShortSeq_0) #define TC_IMPL_TC_CORBA_ShortSeq_0 'c' #define TC_IMPL_TC_CORBA_ShortSeq_1 'o' #define TC_IMPL_TC_CORBA_ShortSeq_2 'r' #define TC_IMPL_TC_CORBA_ShortSeq_3 'b' #define TC_IMPL_TC_CORBA_ShortSeq_4 'a' #define TC_IMPL_TC_CORBA_ShortSeq_5 '_' #define TC_IMPL_TC_CORBA_ShortSeq_6 'd' #define TC_IMPL_TC_CORBA_ShortSeq_7 'e' #define TC_IMPL_TC_CORBA_ShortSeq_8 'f' #define TC_IMPL_TC_CORBA_ShortSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ShortSeq_struct; #define TC_CORBA_ShortSeq ((CORBA_TypeCode)&TC_CORBA_ShortSeq_struct) #endif #define CORBA_ShortSeq__alloc() ((CORBA_ShortSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_short)) #define CORBA_ShortSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_short,(m),(d)) #define CORBA_ShortSeq_allocbuf(l) ((CORBA_short*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_short, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_unsigned_short) #define ORBIT_DECL_CORBA_sequence_CORBA_unsigned_short 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_short_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_short_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_short_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_short_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_short_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_short_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_short_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_short_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_short_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_short_9 's' #if !defined(_CORBA_sequence_CORBA_unsigned_short_defined) #define _CORBA_sequence_CORBA_unsigned_short_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_unsigned_short* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_unsigned_short; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_short_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_unsigned_short_struct; #define TC_CORBA_sequence_CORBA_unsigned_short ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_unsigned_short_struct) #endif #define CORBA_sequence_CORBA_unsigned_short__alloc() ((CORBA_sequence_CORBA_unsigned_short *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_unsigned_short)) #define CORBA_sequence_CORBA_unsigned_short__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_unsigned_short,(m),(d)) #define CORBA_sequence_CORBA_unsigned_short_allocbuf(l) ((CORBA_unsigned_short*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_unsigned_short, (l))) #define CORBA_sequence_CORBA_unsigned_short_allocbuf(l) ((CORBA_unsigned_short*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_unsigned_short, (l))) #endif #if !defined(_CORBA_UShortSeq_defined) #define _CORBA_UShortSeq_defined 1 typedef CORBA_sequence_CORBA_unsigned_short CORBA_UShortSeq; #define CORBA_UShortSeq_marshal(x,y,z) CORBA_sequence_CORBA_unsigned_short_marshal((x),(y),(z)) #define CORBA_UShortSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_unsigned_short_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_UShortSeq_0) #define TC_IMPL_TC_CORBA_UShortSeq_0 'c' #define TC_IMPL_TC_CORBA_UShortSeq_1 'o' #define TC_IMPL_TC_CORBA_UShortSeq_2 'r' #define TC_IMPL_TC_CORBA_UShortSeq_3 'b' #define TC_IMPL_TC_CORBA_UShortSeq_4 'a' #define TC_IMPL_TC_CORBA_UShortSeq_5 '_' #define TC_IMPL_TC_CORBA_UShortSeq_6 'd' #define TC_IMPL_TC_CORBA_UShortSeq_7 'e' #define TC_IMPL_TC_CORBA_UShortSeq_8 'f' #define TC_IMPL_TC_CORBA_UShortSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_UShortSeq_struct; #define TC_CORBA_UShortSeq ((CORBA_TypeCode)&TC_CORBA_UShortSeq_struct) #endif #define CORBA_UShortSeq__alloc() ((CORBA_UShortSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_unsigned_short)) #define CORBA_UShortSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_unsigned_short,(m),(d)) #define CORBA_UShortSeq_allocbuf(l) ((CORBA_unsigned_short*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_unsigned_short, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_long) #define ORBIT_DECL_CORBA_sequence_CORBA_long 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_long_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_9 's' #if !defined(_CORBA_sequence_CORBA_long_defined) #define _CORBA_sequence_CORBA_long_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_long* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_long; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_long_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_long_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_long_struct; #define TC_CORBA_sequence_CORBA_long ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_long_struct) #endif #define CORBA_sequence_CORBA_long__alloc() ((CORBA_sequence_CORBA_long *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_long)) #define CORBA_sequence_CORBA_long__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_long,(m),(d)) #define CORBA_sequence_CORBA_long_allocbuf(l) ((CORBA_long*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_long, (l))) #define CORBA_sequence_CORBA_long_allocbuf(l) ((CORBA_long*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_long, (l))) #endif #if !defined(_CORBA_LongSeq_defined) #define _CORBA_LongSeq_defined 1 typedef CORBA_sequence_CORBA_long CORBA_LongSeq; #define CORBA_LongSeq_marshal(x,y,z) CORBA_sequence_CORBA_long_marshal((x),(y),(z)) #define CORBA_LongSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_long_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_LongSeq_0) #define TC_IMPL_TC_CORBA_LongSeq_0 'c' #define TC_IMPL_TC_CORBA_LongSeq_1 'o' #define TC_IMPL_TC_CORBA_LongSeq_2 'r' #define TC_IMPL_TC_CORBA_LongSeq_3 'b' #define TC_IMPL_TC_CORBA_LongSeq_4 'a' #define TC_IMPL_TC_CORBA_LongSeq_5 '_' #define TC_IMPL_TC_CORBA_LongSeq_6 'd' #define TC_IMPL_TC_CORBA_LongSeq_7 'e' #define TC_IMPL_TC_CORBA_LongSeq_8 'f' #define TC_IMPL_TC_CORBA_LongSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_LongSeq_struct; #define TC_CORBA_LongSeq ((CORBA_TypeCode)&TC_CORBA_LongSeq_struct) #endif #define CORBA_LongSeq__alloc() ((CORBA_LongSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_long)) #define CORBA_LongSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_long,(m),(d)) #define CORBA_LongSeq_allocbuf(l) ((CORBA_long*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_long, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_unsigned_long) #define ORBIT_DECL_CORBA_sequence_CORBA_unsigned_long 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_9 's' #if !defined(_CORBA_sequence_CORBA_unsigned_long_defined) #define _CORBA_sequence_CORBA_unsigned_long_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_unsigned_long* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_unsigned_long; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_unsigned_long_struct; #define TC_CORBA_sequence_CORBA_unsigned_long ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_unsigned_long_struct) #endif #define CORBA_sequence_CORBA_unsigned_long__alloc() ((CORBA_sequence_CORBA_unsigned_long *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_unsigned_long)) #define CORBA_sequence_CORBA_unsigned_long__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_unsigned_long,(m),(d)) #define CORBA_sequence_CORBA_unsigned_long_allocbuf(l) ((CORBA_unsigned_long*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_unsigned_long, (l))) #define CORBA_sequence_CORBA_unsigned_long_allocbuf(l) ((CORBA_unsigned_long*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_unsigned_long, (l))) #endif #if !defined(_CORBA_ULongSeq_defined) #define _CORBA_ULongSeq_defined 1 typedef CORBA_sequence_CORBA_unsigned_long CORBA_ULongSeq; #define CORBA_ULongSeq_marshal(x,y,z) CORBA_sequence_CORBA_unsigned_long_marshal((x),(y),(z)) #define CORBA_ULongSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_unsigned_long_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ULongSeq_0) #define TC_IMPL_TC_CORBA_ULongSeq_0 'c' #define TC_IMPL_TC_CORBA_ULongSeq_1 'o' #define TC_IMPL_TC_CORBA_ULongSeq_2 'r' #define TC_IMPL_TC_CORBA_ULongSeq_3 'b' #define TC_IMPL_TC_CORBA_ULongSeq_4 'a' #define TC_IMPL_TC_CORBA_ULongSeq_5 '_' #define TC_IMPL_TC_CORBA_ULongSeq_6 'd' #define TC_IMPL_TC_CORBA_ULongSeq_7 'e' #define TC_IMPL_TC_CORBA_ULongSeq_8 'f' #define TC_IMPL_TC_CORBA_ULongSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ULongSeq_struct; #define TC_CORBA_ULongSeq ((CORBA_TypeCode)&TC_CORBA_ULongSeq_struct) #endif #define CORBA_ULongSeq__alloc() ((CORBA_ULongSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_unsigned_long)) #define CORBA_ULongSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_unsigned_long,(m),(d)) #define CORBA_ULongSeq_allocbuf(l) ((CORBA_unsigned_long*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_unsigned_long, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_long_long) #define ORBIT_DECL_CORBA_sequence_CORBA_long_long 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_long_long_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_long_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_long_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_long_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_long_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_long_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_long_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_long_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_long_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_long_9 's' #if !defined(_CORBA_sequence_CORBA_long_long_defined) #define _CORBA_sequence_CORBA_long_long_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_long_long* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_long_long; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_long_long_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_long_long_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_long_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_long_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_long_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_long_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_long_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_long_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_long_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_long_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_long_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_long_long_struct; #define TC_CORBA_sequence_CORBA_long_long ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_long_long_struct) #endif #define CORBA_sequence_CORBA_long_long__alloc() ((CORBA_sequence_CORBA_long_long *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_long_long)) #define CORBA_sequence_CORBA_long_long__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_long_long,(m),(d)) #define CORBA_sequence_CORBA_long_long_allocbuf(l) ((CORBA_long_long*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_long_long, (l))) #define CORBA_sequence_CORBA_long_long_allocbuf(l) ((CORBA_long_long*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_long_long, (l))) #endif #if !defined(_CORBA_LongLongSeq_defined) #define _CORBA_LongLongSeq_defined 1 typedef CORBA_sequence_CORBA_long_long CORBA_LongLongSeq; #define CORBA_LongLongSeq_marshal(x,y,z) CORBA_sequence_CORBA_long_long_marshal((x),(y),(z)) #define CORBA_LongLongSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_long_long_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_LongLongSeq_0) #define TC_IMPL_TC_CORBA_LongLongSeq_0 'c' #define TC_IMPL_TC_CORBA_LongLongSeq_1 'o' #define TC_IMPL_TC_CORBA_LongLongSeq_2 'r' #define TC_IMPL_TC_CORBA_LongLongSeq_3 'b' #define TC_IMPL_TC_CORBA_LongLongSeq_4 'a' #define TC_IMPL_TC_CORBA_LongLongSeq_5 '_' #define TC_IMPL_TC_CORBA_LongLongSeq_6 'd' #define TC_IMPL_TC_CORBA_LongLongSeq_7 'e' #define TC_IMPL_TC_CORBA_LongLongSeq_8 'f' #define TC_IMPL_TC_CORBA_LongLongSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_LongLongSeq_struct; #define TC_CORBA_LongLongSeq ((CORBA_TypeCode)&TC_CORBA_LongLongSeq_struct) #endif #define CORBA_LongLongSeq__alloc() ((CORBA_LongLongSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_long_long)) #define CORBA_LongLongSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_long_long,(m),(d)) #define CORBA_LongLongSeq_allocbuf(l) ((CORBA_long_long*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_long_long, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_unsigned_long_long) #define ORBIT_DECL_CORBA_sequence_CORBA_unsigned_long_long 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_long_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_long_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_long_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_long_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_long_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_long_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_long_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_long_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_long_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_long_9 's' #if !defined(_CORBA_sequence_CORBA_unsigned_long_long_defined) #define _CORBA_sequence_CORBA_unsigned_long_long_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_unsigned_long_long* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_unsigned_long_long; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_long_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_long_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_long_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_long_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_long_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_long_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_long_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_long_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_long_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_long_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_long_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_unsigned_long_long_struct; #define TC_CORBA_sequence_CORBA_unsigned_long_long ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_unsigned_long_long_struct) #endif #define CORBA_sequence_CORBA_unsigned_long_long__alloc() ((CORBA_sequence_CORBA_unsigned_long_long *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_unsigned_long_long)) #define CORBA_sequence_CORBA_unsigned_long_long__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_unsigned_long_long,(m),(d)) #define CORBA_sequence_CORBA_unsigned_long_long_allocbuf(l) ((CORBA_unsigned_long_long*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_unsigned_long_long, (l))) #define CORBA_sequence_CORBA_unsigned_long_long_allocbuf(l) ((CORBA_unsigned_long_long*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_unsigned_long_long, (l))) #endif #if !defined(_CORBA_ULongLongSeq_defined) #define _CORBA_ULongLongSeq_defined 1 typedef CORBA_sequence_CORBA_unsigned_long_long CORBA_ULongLongSeq; #define CORBA_ULongLongSeq_marshal(x,y,z) CORBA_sequence_CORBA_unsigned_long_long_marshal((x),(y),(z)) #define CORBA_ULongLongSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_unsigned_long_long_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ULongLongSeq_0) #define TC_IMPL_TC_CORBA_ULongLongSeq_0 'c' #define TC_IMPL_TC_CORBA_ULongLongSeq_1 'o' #define TC_IMPL_TC_CORBA_ULongLongSeq_2 'r' #define TC_IMPL_TC_CORBA_ULongLongSeq_3 'b' #define TC_IMPL_TC_CORBA_ULongLongSeq_4 'a' #define TC_IMPL_TC_CORBA_ULongLongSeq_5 '_' #define TC_IMPL_TC_CORBA_ULongLongSeq_6 'd' #define TC_IMPL_TC_CORBA_ULongLongSeq_7 'e' #define TC_IMPL_TC_CORBA_ULongLongSeq_8 'f' #define TC_IMPL_TC_CORBA_ULongLongSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ULongLongSeq_struct; #define TC_CORBA_ULongLongSeq ((CORBA_TypeCode)&TC_CORBA_ULongLongSeq_struct) #endif #define CORBA_ULongLongSeq__alloc() ((CORBA_ULongLongSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_unsigned_long_long)) #define CORBA_ULongLongSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_unsigned_long_long,(m),(d)) #define CORBA_ULongLongSeq_allocbuf(l) ((CORBA_unsigned_long_long*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_unsigned_long_long, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_float) #define ORBIT_DECL_CORBA_sequence_CORBA_float 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_float_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_float_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_float_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_float_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_float_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_float_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_float_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_float_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_float_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_float_9 's' #if !defined(_CORBA_sequence_CORBA_float_defined) #define _CORBA_sequence_CORBA_float_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_float* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_float; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_float_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_float_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_float_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_float_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_float_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_float_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_float_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_float_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_float_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_float_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_float_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_float_struct; #define TC_CORBA_sequence_CORBA_float ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_float_struct) #endif #define CORBA_sequence_CORBA_float__alloc() ((CORBA_sequence_CORBA_float *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_float)) #define CORBA_sequence_CORBA_float__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_float,(m),(d)) #define CORBA_sequence_CORBA_float_allocbuf(l) ((CORBA_float*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_float, (l))) #define CORBA_sequence_CORBA_float_allocbuf(l) ((CORBA_float*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_float, (l))) #endif #if !defined(_CORBA_FloatSeq_defined) #define _CORBA_FloatSeq_defined 1 typedef CORBA_sequence_CORBA_float CORBA_FloatSeq; #define CORBA_FloatSeq_marshal(x,y,z) CORBA_sequence_CORBA_float_marshal((x),(y),(z)) #define CORBA_FloatSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_float_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_FloatSeq_0) #define TC_IMPL_TC_CORBA_FloatSeq_0 'c' #define TC_IMPL_TC_CORBA_FloatSeq_1 'o' #define TC_IMPL_TC_CORBA_FloatSeq_2 'r' #define TC_IMPL_TC_CORBA_FloatSeq_3 'b' #define TC_IMPL_TC_CORBA_FloatSeq_4 'a' #define TC_IMPL_TC_CORBA_FloatSeq_5 '_' #define TC_IMPL_TC_CORBA_FloatSeq_6 'd' #define TC_IMPL_TC_CORBA_FloatSeq_7 'e' #define TC_IMPL_TC_CORBA_FloatSeq_8 'f' #define TC_IMPL_TC_CORBA_FloatSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_FloatSeq_struct; #define TC_CORBA_FloatSeq ((CORBA_TypeCode)&TC_CORBA_FloatSeq_struct) #endif #define CORBA_FloatSeq__alloc() ((CORBA_FloatSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_float)) #define CORBA_FloatSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_float,(m),(d)) #define CORBA_FloatSeq_allocbuf(l) ((CORBA_float*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_float, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_double) #define ORBIT_DECL_CORBA_sequence_CORBA_double 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_double_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_double_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_double_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_double_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_double_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_double_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_double_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_double_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_double_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_double_9 's' #if !defined(_CORBA_sequence_CORBA_double_defined) #define _CORBA_sequence_CORBA_double_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_double* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_double; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_double_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_double_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_double_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_double_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_double_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_double_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_double_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_double_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_double_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_double_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_double_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_double_struct; #define TC_CORBA_sequence_CORBA_double ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_double_struct) #endif #define CORBA_sequence_CORBA_double__alloc() ((CORBA_sequence_CORBA_double *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_double)) #define CORBA_sequence_CORBA_double__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_double,(m),(d)) #define CORBA_sequence_CORBA_double_allocbuf(l) ((CORBA_double*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_double, (l))) #define CORBA_sequence_CORBA_double_allocbuf(l) ((CORBA_double*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_double, (l))) #endif #if !defined(_CORBA_DoubleSeq_defined) #define _CORBA_DoubleSeq_defined 1 typedef CORBA_sequence_CORBA_double CORBA_DoubleSeq; #define CORBA_DoubleSeq_marshal(x,y,z) CORBA_sequence_CORBA_double_marshal((x),(y),(z)) #define CORBA_DoubleSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_double_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_DoubleSeq_0) #define TC_IMPL_TC_CORBA_DoubleSeq_0 'c' #define TC_IMPL_TC_CORBA_DoubleSeq_1 'o' #define TC_IMPL_TC_CORBA_DoubleSeq_2 'r' #define TC_IMPL_TC_CORBA_DoubleSeq_3 'b' #define TC_IMPL_TC_CORBA_DoubleSeq_4 'a' #define TC_IMPL_TC_CORBA_DoubleSeq_5 '_' #define TC_IMPL_TC_CORBA_DoubleSeq_6 'd' #define TC_IMPL_TC_CORBA_DoubleSeq_7 'e' #define TC_IMPL_TC_CORBA_DoubleSeq_8 'f' #define TC_IMPL_TC_CORBA_DoubleSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_DoubleSeq_struct; #define TC_CORBA_DoubleSeq ((CORBA_TypeCode)&TC_CORBA_DoubleSeq_struct) #endif #define CORBA_DoubleSeq__alloc() ((CORBA_DoubleSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_double)) #define CORBA_DoubleSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_double,(m),(d)) #define CORBA_DoubleSeq_allocbuf(l) ((CORBA_double*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_double, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_long_double) #define ORBIT_DECL_CORBA_sequence_CORBA_long_double 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_long_double_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_double_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_double_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_double_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_double_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_double_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_double_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_double_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_double_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_long_double_9 's' #if !defined(_CORBA_sequence_CORBA_long_double_defined) #define _CORBA_sequence_CORBA_long_double_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_long_double* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_long_double; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_long_double_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_long_double_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_double_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_double_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_double_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_double_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_double_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_double_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_double_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_double_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_long_double_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_long_double_struct; #define TC_CORBA_sequence_CORBA_long_double ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_long_double_struct) #endif #define CORBA_sequence_CORBA_long_double__alloc() ((CORBA_sequence_CORBA_long_double *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_long_double)) #define CORBA_sequence_CORBA_long_double__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_long_double,(m),(d)) #define CORBA_sequence_CORBA_long_double_allocbuf(l) ((CORBA_long_double*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_long_double, (l))) #define CORBA_sequence_CORBA_long_double_allocbuf(l) ((CORBA_long_double*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_long_double, (l))) #endif #if !defined(_CORBA_LongDoubleSeq_defined) #define _CORBA_LongDoubleSeq_defined 1 typedef CORBA_sequence_CORBA_long_double CORBA_LongDoubleSeq; #define CORBA_LongDoubleSeq_marshal(x,y,z) CORBA_sequence_CORBA_long_double_marshal((x),(y),(z)) #define CORBA_LongDoubleSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_long_double_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_LongDoubleSeq_0) #define TC_IMPL_TC_CORBA_LongDoubleSeq_0 'c' #define TC_IMPL_TC_CORBA_LongDoubleSeq_1 'o' #define TC_IMPL_TC_CORBA_LongDoubleSeq_2 'r' #define TC_IMPL_TC_CORBA_LongDoubleSeq_3 'b' #define TC_IMPL_TC_CORBA_LongDoubleSeq_4 'a' #define TC_IMPL_TC_CORBA_LongDoubleSeq_5 '_' #define TC_IMPL_TC_CORBA_LongDoubleSeq_6 'd' #define TC_IMPL_TC_CORBA_LongDoubleSeq_7 'e' #define TC_IMPL_TC_CORBA_LongDoubleSeq_8 'f' #define TC_IMPL_TC_CORBA_LongDoubleSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_LongDoubleSeq_struct; #define TC_CORBA_LongDoubleSeq ((CORBA_TypeCode)&TC_CORBA_LongDoubleSeq_struct) #endif #define CORBA_LongDoubleSeq__alloc() ((CORBA_LongDoubleSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_long_double)) #define CORBA_LongDoubleSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_long_double,(m),(d)) #define CORBA_LongDoubleSeq_allocbuf(l) ((CORBA_long_double*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_long_double, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_string) #define ORBIT_DECL_CORBA_sequence_CORBA_string 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_string_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_9 's' #if !defined(_CORBA_sequence_CORBA_string_defined) #define _CORBA_sequence_CORBA_string_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_string* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_string; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_string_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_string_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_string_struct; #define TC_CORBA_sequence_CORBA_string ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_string_struct) #endif #define CORBA_sequence_CORBA_string__alloc() ((CORBA_sequence_CORBA_string *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_string)) #define CORBA_sequence_CORBA_string__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_string,(m),(d)) #define CORBA_sequence_CORBA_string_allocbuf(l) ((CORBA_string*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_string, (l))) #define CORBA_sequence_CORBA_string_allocbuf(l) ((CORBA_string*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_string, (l))) #endif #if !defined(_CORBA_StringSeq_defined) #define _CORBA_StringSeq_defined 1 typedef CORBA_sequence_CORBA_string CORBA_StringSeq; #define CORBA_StringSeq_marshal(x,y,z) CORBA_sequence_CORBA_string_marshal((x),(y),(z)) #define CORBA_StringSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_string_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_StringSeq_0) #define TC_IMPL_TC_CORBA_StringSeq_0 'c' #define TC_IMPL_TC_CORBA_StringSeq_1 'o' #define TC_IMPL_TC_CORBA_StringSeq_2 'r' #define TC_IMPL_TC_CORBA_StringSeq_3 'b' #define TC_IMPL_TC_CORBA_StringSeq_4 'a' #define TC_IMPL_TC_CORBA_StringSeq_5 '_' #define TC_IMPL_TC_CORBA_StringSeq_6 'd' #define TC_IMPL_TC_CORBA_StringSeq_7 'e' #define TC_IMPL_TC_CORBA_StringSeq_8 'f' #define TC_IMPL_TC_CORBA_StringSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_StringSeq_struct; #define TC_CORBA_StringSeq ((CORBA_TypeCode)&TC_CORBA_StringSeq_struct) #endif #define CORBA_StringSeq__alloc() ((CORBA_StringSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_string)) #define CORBA_StringSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_string,(m),(d)) #define CORBA_StringSeq_allocbuf(l) ((CORBA_string*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_string, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_wstring) #define ORBIT_DECL_CORBA_sequence_CORBA_wstring 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_wstring_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_wstring_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_wstring_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_wstring_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_wstring_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_wstring_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_wstring_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_wstring_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_wstring_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_wstring_9 's' #if !defined(_CORBA_sequence_CORBA_wstring_defined) #define _CORBA_sequence_CORBA_wstring_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_wstring* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_wstring; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_wstring_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_wstring_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_wstring_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_wstring_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_wstring_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_wstring_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_wstring_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_wstring_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_wstring_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_wstring_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_wstring_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_wstring_struct; #define TC_CORBA_sequence_CORBA_wstring ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_wstring_struct) #endif #define CORBA_sequence_CORBA_wstring__alloc() ((CORBA_sequence_CORBA_wstring *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_wstring)) #define CORBA_sequence_CORBA_wstring__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_wstring,(m),(d)) #define CORBA_sequence_CORBA_wstring_allocbuf(l) ((CORBA_wstring*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_wstring, (l))) #define CORBA_sequence_CORBA_wstring_allocbuf(l) ((CORBA_wstring*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_wstring, (l))) #endif #if !defined(_CORBA_WStringSeq_defined) #define _CORBA_WStringSeq_defined 1 typedef CORBA_sequence_CORBA_wstring CORBA_WStringSeq; #define CORBA_WStringSeq_marshal(x,y,z) CORBA_sequence_CORBA_wstring_marshal((x),(y),(z)) #define CORBA_WStringSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_wstring_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_WStringSeq_0) #define TC_IMPL_TC_CORBA_WStringSeq_0 'c' #define TC_IMPL_TC_CORBA_WStringSeq_1 'o' #define TC_IMPL_TC_CORBA_WStringSeq_2 'r' #define TC_IMPL_TC_CORBA_WStringSeq_3 'b' #define TC_IMPL_TC_CORBA_WStringSeq_4 'a' #define TC_IMPL_TC_CORBA_WStringSeq_5 '_' #define TC_IMPL_TC_CORBA_WStringSeq_6 'd' #define TC_IMPL_TC_CORBA_WStringSeq_7 'e' #define TC_IMPL_TC_CORBA_WStringSeq_8 'f' #define TC_IMPL_TC_CORBA_WStringSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_WStringSeq_struct; #define TC_CORBA_WStringSeq ((CORBA_TypeCode)&TC_CORBA_WStringSeq_struct) #endif #define CORBA_WStringSeq__alloc() ((CORBA_WStringSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_wstring)) #define CORBA_WStringSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_wstring,(m),(d)) #define CORBA_WStringSeq_allocbuf(l) ((CORBA_wstring*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_wstring, (l))) #endif #undef ex_CORBA_BadFixedValue #define ex_CORBA_BadFixedValue "IDL:omg.org/CORBA/BadFixedValue:1.0" #if !defined(_CORBA_BadFixedValue_defined) #define _CORBA_BadFixedValue_defined 1 typedef struct CORBA_BadFixedValue_type CORBA_BadFixedValue; struct CORBA_BadFixedValue_type { CORBA_unsigned_long offset; }; #if !defined(TC_IMPL_TC_CORBA_BadFixedValue_0) #define TC_IMPL_TC_CORBA_BadFixedValue_0 'c' #define TC_IMPL_TC_CORBA_BadFixedValue_1 'o' #define TC_IMPL_TC_CORBA_BadFixedValue_2 'r' #define TC_IMPL_TC_CORBA_BadFixedValue_3 'b' #define TC_IMPL_TC_CORBA_BadFixedValue_4 'a' #define TC_IMPL_TC_CORBA_BadFixedValue_5 '_' #define TC_IMPL_TC_CORBA_BadFixedValue_6 'd' #define TC_IMPL_TC_CORBA_BadFixedValue_7 'e' #define TC_IMPL_TC_CORBA_BadFixedValue_8 'f' #define TC_IMPL_TC_CORBA_BadFixedValue_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_BadFixedValue_struct; #define TC_CORBA_BadFixedValue ((CORBA_TypeCode)&TC_CORBA_BadFixedValue_struct) #endif #define CORBA_BadFixedValue__alloc() ((CORBA_BadFixedValue *)ORBit_small_alloc (TC_CORBA_BadFixedValue)) #define CORBA_BadFixedValue__freekids(m,d) ORBit_small_freekids (TC_CORBA_BadFixedValue,(m),(d)) #endif #ifndef CORBA_VMCID_OMG #define CORBA_VMCID_OMG 1330446336U #endif /* !CORBA_VMCID_OMG */ #ifndef CORBA_VMCID_ORBit0 #define CORBA_VMCID_ORBit0 1330905088U #endif /* !CORBA_VMCID_ORBit0 */ #ifndef CORBA_VPVID_OMG #define CORBA_VPVID_OMG 1330446336U #endif /* !CORBA_VPVID_OMG */ #ifndef CORBA_VPVID_ORBit0 #define CORBA_VPVID_ORBit0 1330905088U #endif /* !CORBA_VPVID_ORBit0 */ #if !defined(_CORBA_SystemException_defined) #define _CORBA_SystemException_defined 1 typedef struct CORBA_SystemException_type CORBA_SystemException; struct CORBA_SystemException_type { CORBA_unsigned_long minor; CORBA_completion_status completed; }; #if !defined(TC_IMPL_TC_CORBA_SystemException_0) #define TC_IMPL_TC_CORBA_SystemException_0 'c' #define TC_IMPL_TC_CORBA_SystemException_1 'o' #define TC_IMPL_TC_CORBA_SystemException_2 'r' #define TC_IMPL_TC_CORBA_SystemException_3 'b' #define TC_IMPL_TC_CORBA_SystemException_4 'a' #define TC_IMPL_TC_CORBA_SystemException_5 '_' #define TC_IMPL_TC_CORBA_SystemException_6 'd' #define TC_IMPL_TC_CORBA_SystemException_7 'e' #define TC_IMPL_TC_CORBA_SystemException_8 'f' #define TC_IMPL_TC_CORBA_SystemException_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_SystemException_struct; #define TC_CORBA_SystemException ((CORBA_TypeCode)&TC_CORBA_SystemException_struct) #endif #define CORBA_SystemException__alloc() ((CORBA_SystemException *)ORBit_small_alloc (TC_CORBA_SystemException)) #define CORBA_SystemException__freekids(m,d) ORBit_small_freekids (TC_CORBA_SystemException,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_Context) && !defined(_CORBA_Context_defined) #define ORBIT_DECL_CORBA_Context 1 #define _CORBA_Context_defined 1 typedef struct CORBA_Context_type *CORBA_Context; #ifndef TC_CORBA_Context # define TC_CORBA_Context TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_CORBA_NVList) && !defined(_CORBA_NVList_defined) #define ORBIT_DECL_CORBA_NVList 1 #define _CORBA_NVList_defined 1 typedef struct CORBA_NVList_type *CORBA_NVList; #ifndef TC_CORBA_NVList # define TC_CORBA_NVList TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_CORBA_Object) && !defined(_CORBA_Object_defined) #define ORBIT_DECL_CORBA_Object 1 #define _CORBA_Object_defined 1 typedef struct CORBA_Object_type *CORBA_Object; #ifndef TC_CORBA_Object # define TC_CORBA_Object TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_CORBA_ORB) && !defined(_CORBA_ORB_defined) #define ORBIT_DECL_CORBA_ORB 1 #define _CORBA_ORB_defined 1 typedef struct CORBA_ORB_type *CORBA_ORB; #ifndef TC_CORBA_ORB # define TC_CORBA_ORB TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_CORBA_Request) && !defined(_CORBA_Request_defined) #define ORBIT_DECL_CORBA_Request 1 #define _CORBA_Request_defined 1 typedef struct CORBA_Request_type *CORBA_Request; #ifndef TC_CORBA_Request # define TC_CORBA_Request TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_CORBA_ServerRequest) && !defined(_CORBA_ServerRequest_defined) #define ORBIT_DECL_CORBA_ServerRequest 1 #define _CORBA_ServerRequest_defined 1 typedef struct CORBA_ServerRequest_type *CORBA_ServerRequest; #ifndef TC_CORBA_ServerRequest # define TC_CORBA_ServerRequest TC_CORBA_Object #endif #endif #if !defined(_CORBA_Flags_defined) #define _CORBA_Flags_defined 1 typedef CORBA_unsigned_long CORBA_Flags; #define CORBA_Flags_marshal(x,y,z) CORBA_unsigned_long_marshal((x),(y),(z)) #define CORBA_Flags_demarshal(x,y,z,i) CORBA_unsigned_long_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_Flags_0) #define TC_IMPL_TC_CORBA_Flags_0 'c' #define TC_IMPL_TC_CORBA_Flags_1 'o' #define TC_IMPL_TC_CORBA_Flags_2 'r' #define TC_IMPL_TC_CORBA_Flags_3 'b' #define TC_IMPL_TC_CORBA_Flags_4 'a' #define TC_IMPL_TC_CORBA_Flags_5 '_' #define TC_IMPL_TC_CORBA_Flags_6 'd' #define TC_IMPL_TC_CORBA_Flags_7 'e' #define TC_IMPL_TC_CORBA_Flags_8 'f' #define TC_IMPL_TC_CORBA_Flags_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_Flags_struct; #define TC_CORBA_Flags ((CORBA_TypeCode)&TC_CORBA_Flags_struct) #endif #define CORBA_Flags__alloc() ((CORBA_Flags *)ORBit_small_alloc (TC_CORBA_unsigned_long)) #define CORBA_Flags__freekids(m,d) ORBit_small_freekids (TC_CORBA_unsigned_long,(m),(d)) #endif #if !defined(_CORBA_NamedValue_defined) #define _CORBA_NamedValue_defined 1 typedef struct CORBA_NamedValue_type CORBA_NamedValue; struct CORBA_NamedValue_type { CORBA_Identifier name; CORBA_any argument; CORBA_long len; CORBA_Flags arg_modes; }; #if !defined(TC_IMPL_TC_CORBA_NamedValue_0) #define TC_IMPL_TC_CORBA_NamedValue_0 'c' #define TC_IMPL_TC_CORBA_NamedValue_1 'o' #define TC_IMPL_TC_CORBA_NamedValue_2 'r' #define TC_IMPL_TC_CORBA_NamedValue_3 'b' #define TC_IMPL_TC_CORBA_NamedValue_4 'a' #define TC_IMPL_TC_CORBA_NamedValue_5 '_' #define TC_IMPL_TC_CORBA_NamedValue_6 'd' #define TC_IMPL_TC_CORBA_NamedValue_7 'e' #define TC_IMPL_TC_CORBA_NamedValue_8 'f' #define TC_IMPL_TC_CORBA_NamedValue_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_NamedValue_struct; #define TC_CORBA_NamedValue ((CORBA_TypeCode)&TC_CORBA_NamedValue_struct) #endif #define CORBA_NamedValue__alloc() ((CORBA_NamedValue *)ORBit_small_alloc (TC_CORBA_NamedValue)) #define CORBA_NamedValue__freekids(m,d) ORBit_small_freekids (TC_CORBA_NamedValue,(m),(d)) #endif #if !defined(_CORBA_SetOverrideType_defined) #define _CORBA_SetOverrideType_defined 1 typedef enum { CORBA_SET_OVERRIDE, CORBA_ADD_OVERRIDE } CORBA_SetOverrideType; #if !defined(TC_IMPL_TC_CORBA_SetOverrideType_0) #define TC_IMPL_TC_CORBA_SetOverrideType_0 'c' #define TC_IMPL_TC_CORBA_SetOverrideType_1 'o' #define TC_IMPL_TC_CORBA_SetOverrideType_2 'r' #define TC_IMPL_TC_CORBA_SetOverrideType_3 'b' #define TC_IMPL_TC_CORBA_SetOverrideType_4 'a' #define TC_IMPL_TC_CORBA_SetOverrideType_5 '_' #define TC_IMPL_TC_CORBA_SetOverrideType_6 'd' #define TC_IMPL_TC_CORBA_SetOverrideType_7 'e' #define TC_IMPL_TC_CORBA_SetOverrideType_8 'f' #define TC_IMPL_TC_CORBA_SetOverrideType_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_SetOverrideType_struct; #define TC_CORBA_SetOverrideType ((CORBA_TypeCode)&TC_CORBA_SetOverrideType_struct) #endif #endif #if !defined(ORBIT_DECL_CORBA_Object) && !defined(_CORBA_Object_defined) #define ORBIT_DECL_CORBA_Object 1 #define _CORBA_Object_defined 1 typedef struct CORBA_Object_type *CORBA_Object; #ifndef TC_CORBA_Object # define TC_CORBA_Object TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Object) #define ORBIT_DECL_CORBA_sequence_CORBA_Object 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Object_9 's' #if !defined(_CORBA_sequence_CORBA_Object_defined) #define _CORBA_sequence_CORBA_Object_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_Object* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_Object; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Object_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Object_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Object_struct; #define TC_CORBA_sequence_CORBA_Object ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Object_struct) #endif #define CORBA_sequence_CORBA_Object__alloc() ((CORBA_sequence_CORBA_Object *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Object)) #define CORBA_sequence_CORBA_Object__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Object,(m),(d)) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #define CORBA_sequence_CORBA_Object_allocbuf(l) ((CORBA_Object*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Object, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_Request) #define ORBIT_DECL_CORBA_sequence_CORBA_Request 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_Request_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_Request_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_Request_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_Request_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_Request_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_Request_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_Request_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_Request_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_Request_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_Request_9 's' #if !defined(_CORBA_sequence_CORBA_Request_defined) #define _CORBA_sequence_CORBA_Request_defined 1 typedef CORBA_sequence_CORBA_Object CORBA_sequence_CORBA_Request; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_Request_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_Request_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_Request_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_Request_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_Request_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_Request_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_Request_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_Request_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_Request_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_Request_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_Request_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_Request_struct; #define TC_CORBA_sequence_CORBA_Request ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_Request_struct) #endif #define CORBA_sequence_CORBA_Request__alloc CORBA_sequence_CORBA_Object__alloc #define CORBA_sequence_CORBA_Request__freekids CORBA_sequence_CORBA_Object__freekids #define CORBA_sequence_CORBA_Request_allocbuf CORBA_sequence_CORBA_Object_allocbuf #define CORBA_sequence_CORBA_Request_marshal(x,y,z) CORBA_sequence_CORBA_Object_marshal((x),(y),(z)) #define CORBA_sequence_CORBA_Request_demarshal(x,y,z,i) CORBA_sequence_CORBA_Object_demarshal((x),(y),(z),(i)) #endif #if !defined(_CORBA_RequestSeq_defined) #define _CORBA_RequestSeq_defined 1 typedef CORBA_sequence_CORBA_Request CORBA_RequestSeq; #define CORBA_RequestSeq_marshal(x,y,z) CORBA_sequence_CORBA_Request_marshal((x),(y),(z)) #define CORBA_RequestSeq_demarshal(x,y,z,i) CORBA_sequence_CORBA_Request_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_RequestSeq_0) #define TC_IMPL_TC_CORBA_RequestSeq_0 'c' #define TC_IMPL_TC_CORBA_RequestSeq_1 'o' #define TC_IMPL_TC_CORBA_RequestSeq_2 'r' #define TC_IMPL_TC_CORBA_RequestSeq_3 'b' #define TC_IMPL_TC_CORBA_RequestSeq_4 'a' #define TC_IMPL_TC_CORBA_RequestSeq_5 '_' #define TC_IMPL_TC_CORBA_RequestSeq_6 'd' #define TC_IMPL_TC_CORBA_RequestSeq_7 'e' #define TC_IMPL_TC_CORBA_RequestSeq_8 'f' #define TC_IMPL_TC_CORBA_RequestSeq_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_RequestSeq_struct; #define TC_CORBA_RequestSeq ((CORBA_TypeCode)&TC_CORBA_RequestSeq_struct) #endif #define CORBA_RequestSeq__alloc() ((CORBA_RequestSeq *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_Request)) #define CORBA_RequestSeq__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_Request,(m),(d)) #define CORBA_RequestSeq_allocbuf(l) ((CORBA_Request*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_Request, (l))) #endif #if !defined(_CORBA_AbstractBase_defined) #define _CORBA_AbstractBase_defined 1 typedef struct CORBA_AbstractBase_type *CORBA_AbstractBase; #endif #if !defined(_CORBA_ServiceType_defined) #define _CORBA_ServiceType_defined 1 typedef CORBA_unsigned_short CORBA_ServiceType; #define CORBA_ServiceType_marshal(x,y,z) CORBA_unsigned_short_marshal((x),(y),(z)) #define CORBA_ServiceType_demarshal(x,y,z,i) CORBA_unsigned_short_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ServiceType_0) #define TC_IMPL_TC_CORBA_ServiceType_0 'c' #define TC_IMPL_TC_CORBA_ServiceType_1 'o' #define TC_IMPL_TC_CORBA_ServiceType_2 'r' #define TC_IMPL_TC_CORBA_ServiceType_3 'b' #define TC_IMPL_TC_CORBA_ServiceType_4 'a' #define TC_IMPL_TC_CORBA_ServiceType_5 '_' #define TC_IMPL_TC_CORBA_ServiceType_6 'd' #define TC_IMPL_TC_CORBA_ServiceType_7 'e' #define TC_IMPL_TC_CORBA_ServiceType_8 'f' #define TC_IMPL_TC_CORBA_ServiceType_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ServiceType_struct; #define TC_CORBA_ServiceType ((CORBA_TypeCode)&TC_CORBA_ServiceType_struct) #endif #define CORBA_ServiceType__alloc() ((CORBA_ServiceType *)ORBit_small_alloc (TC_CORBA_unsigned_short)) #define CORBA_ServiceType__freekids(m,d) ORBit_small_freekids (TC_CORBA_unsigned_short,(m),(d)) #endif #if !defined(_CORBA_ServiceOption_defined) #define _CORBA_ServiceOption_defined 1 typedef CORBA_unsigned_long CORBA_ServiceOption; #define CORBA_ServiceOption_marshal(x,y,z) CORBA_unsigned_long_marshal((x),(y),(z)) #define CORBA_ServiceOption_demarshal(x,y,z,i) CORBA_unsigned_long_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ServiceOption_0) #define TC_IMPL_TC_CORBA_ServiceOption_0 'c' #define TC_IMPL_TC_CORBA_ServiceOption_1 'o' #define TC_IMPL_TC_CORBA_ServiceOption_2 'r' #define TC_IMPL_TC_CORBA_ServiceOption_3 'b' #define TC_IMPL_TC_CORBA_ServiceOption_4 'a' #define TC_IMPL_TC_CORBA_ServiceOption_5 '_' #define TC_IMPL_TC_CORBA_ServiceOption_6 'd' #define TC_IMPL_TC_CORBA_ServiceOption_7 'e' #define TC_IMPL_TC_CORBA_ServiceOption_8 'f' #define TC_IMPL_TC_CORBA_ServiceOption_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ServiceOption_struct; #define TC_CORBA_ServiceOption ((CORBA_TypeCode)&TC_CORBA_ServiceOption_struct) #endif #define CORBA_ServiceOption__alloc() ((CORBA_ServiceOption *)ORBit_small_alloc (TC_CORBA_unsigned_long)) #define CORBA_ServiceOption__freekids(m,d) ORBit_small_freekids (TC_CORBA_unsigned_long,(m),(d)) #endif #if !defined(_CORBA_ServiceDetailType_defined) #define _CORBA_ServiceDetailType_defined 1 typedef CORBA_unsigned_long CORBA_ServiceDetailType; #define CORBA_ServiceDetailType_marshal(x,y,z) CORBA_unsigned_long_marshal((x),(y),(z)) #define CORBA_ServiceDetailType_demarshal(x,y,z,i) CORBA_unsigned_long_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ServiceDetailType_0) #define TC_IMPL_TC_CORBA_ServiceDetailType_0 'c' #define TC_IMPL_TC_CORBA_ServiceDetailType_1 'o' #define TC_IMPL_TC_CORBA_ServiceDetailType_2 'r' #define TC_IMPL_TC_CORBA_ServiceDetailType_3 'b' #define TC_IMPL_TC_CORBA_ServiceDetailType_4 'a' #define TC_IMPL_TC_CORBA_ServiceDetailType_5 '_' #define TC_IMPL_TC_CORBA_ServiceDetailType_6 'd' #define TC_IMPL_TC_CORBA_ServiceDetailType_7 'e' #define TC_IMPL_TC_CORBA_ServiceDetailType_8 'f' #define TC_IMPL_TC_CORBA_ServiceDetailType_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ServiceDetailType_struct; #define TC_CORBA_ServiceDetailType ((CORBA_TypeCode)&TC_CORBA_ServiceDetailType_struct) #endif #define CORBA_ServiceDetailType__alloc() ((CORBA_ServiceDetailType *)ORBit_small_alloc (TC_CORBA_unsigned_long)) #define CORBA_ServiceDetailType__freekids(m,d) ORBit_small_freekids (TC_CORBA_unsigned_long,(m),(d)) #endif #ifndef CORBA_Security #define CORBA_Security 1U #endif /* !CORBA_Security */ #if !defined(_CORBA_ServiceDetail_defined) #define _CORBA_ServiceDetail_defined 1 typedef struct CORBA_ServiceDetail_type CORBA_ServiceDetail; #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_9 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif struct CORBA_ServiceDetail_type { CORBA_ServiceDetailType service_detail_type; CORBA_sequence_CORBA_octet service_detail; }; #if !defined(TC_IMPL_TC_CORBA_ServiceDetail_0) #define TC_IMPL_TC_CORBA_ServiceDetail_0 'c' #define TC_IMPL_TC_CORBA_ServiceDetail_1 'o' #define TC_IMPL_TC_CORBA_ServiceDetail_2 'r' #define TC_IMPL_TC_CORBA_ServiceDetail_3 'b' #define TC_IMPL_TC_CORBA_ServiceDetail_4 'a' #define TC_IMPL_TC_CORBA_ServiceDetail_5 '_' #define TC_IMPL_TC_CORBA_ServiceDetail_6 'd' #define TC_IMPL_TC_CORBA_ServiceDetail_7 'e' #define TC_IMPL_TC_CORBA_ServiceDetail_8 'f' #define TC_IMPL_TC_CORBA_ServiceDetail_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ServiceDetail_struct; #define TC_CORBA_ServiceDetail ((CORBA_TypeCode)&TC_CORBA_ServiceDetail_struct) #endif #define CORBA_ServiceDetail__alloc() ((CORBA_ServiceDetail *)ORBit_small_alloc (TC_CORBA_ServiceDetail)) #define CORBA_ServiceDetail__freekids(m,d) ORBit_small_freekids (TC_CORBA_ServiceDetail,(m),(d)) #endif #if !defined(_CORBA_ServiceInformation_defined) #define _CORBA_ServiceInformation_defined 1 typedef struct CORBA_ServiceInformation_type CORBA_ServiceInformation; #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_unsigned_long) #define ORBIT_DECL_CORBA_sequence_CORBA_unsigned_long 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_9 's' #if !defined(_CORBA_sequence_CORBA_unsigned_long_defined) #define _CORBA_sequence_CORBA_unsigned_long_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_unsigned_long* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_unsigned_long; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_unsigned_long_struct; #define TC_CORBA_sequence_CORBA_unsigned_long ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_unsigned_long_struct) #endif #define CORBA_sequence_CORBA_unsigned_long__alloc() ((CORBA_sequence_CORBA_unsigned_long *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_unsigned_long)) #define CORBA_sequence_CORBA_unsigned_long__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_unsigned_long,(m),(d)) #define CORBA_sequence_CORBA_unsigned_long_allocbuf(l) ((CORBA_unsigned_long*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_unsigned_long, (l))) #define CORBA_sequence_CORBA_unsigned_long_allocbuf(l) ((CORBA_unsigned_long*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_unsigned_long, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_ServiceOption) #define ORBIT_DECL_CORBA_sequence_CORBA_ServiceOption 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_ServiceOption_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_ServiceOption_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_ServiceOption_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_ServiceOption_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_ServiceOption_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_ServiceOption_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_ServiceOption_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_ServiceOption_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_ServiceOption_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_ServiceOption_9 's' #if !defined(_CORBA_sequence_CORBA_ServiceOption_defined) #define _CORBA_sequence_CORBA_ServiceOption_defined 1 typedef CORBA_sequence_CORBA_unsigned_long CORBA_sequence_CORBA_ServiceOption; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_ServiceOption_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_ServiceOption_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_ServiceOption_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_ServiceOption_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_ServiceOption_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_ServiceOption_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_ServiceOption_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_ServiceOption_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_ServiceOption_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_ServiceOption_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_ServiceOption_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_ServiceOption_struct; #define TC_CORBA_sequence_CORBA_ServiceOption ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_ServiceOption_struct) #endif #define CORBA_sequence_CORBA_ServiceOption__alloc CORBA_sequence_CORBA_unsigned_long__alloc #define CORBA_sequence_CORBA_ServiceOption__freekids CORBA_sequence_CORBA_unsigned_long__freekids #define CORBA_sequence_CORBA_ServiceOption_allocbuf CORBA_sequence_CORBA_unsigned_long_allocbuf #define CORBA_sequence_CORBA_ServiceOption_marshal(x,y,z) CORBA_sequence_CORBA_unsigned_long_marshal((x),(y),(z)) #define CORBA_sequence_CORBA_ServiceOption_demarshal(x,y,z,i) CORBA_sequence_CORBA_unsigned_long_demarshal((x),(y),(z),(i)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_ServiceDetail) #define ORBIT_DECL_CORBA_sequence_CORBA_ServiceDetail 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_ServiceDetail_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_ServiceDetail_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_ServiceDetail_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_ServiceDetail_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_ServiceDetail_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_ServiceDetail_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_ServiceDetail_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_ServiceDetail_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_ServiceDetail_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_ServiceDetail_9 's' #if !defined(_CORBA_sequence_CORBA_ServiceDetail_defined) #define _CORBA_sequence_CORBA_ServiceDetail_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_ServiceDetail* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_ServiceDetail; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_ServiceDetail_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_ServiceDetail_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_ServiceDetail_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_ServiceDetail_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_ServiceDetail_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_ServiceDetail_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_ServiceDetail_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_ServiceDetail_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_ServiceDetail_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_ServiceDetail_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_ServiceDetail_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_ServiceDetail_struct; #define TC_CORBA_sequence_CORBA_ServiceDetail ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_ServiceDetail_struct) #endif #define CORBA_sequence_CORBA_ServiceDetail__alloc() ((CORBA_sequence_CORBA_ServiceDetail *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_ServiceDetail)) #define CORBA_sequence_CORBA_ServiceDetail__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_ServiceDetail,(m),(d)) #define CORBA_sequence_CORBA_ServiceDetail_allocbuf(l) ((CORBA_ServiceDetail*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ServiceDetail, (l))) #define CORBA_sequence_CORBA_ServiceDetail_allocbuf(l) ((CORBA_ServiceDetail*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ServiceDetail, (l))) #endif struct CORBA_ServiceInformation_type { CORBA_sequence_CORBA_ServiceOption service_options; CORBA_sequence_CORBA_ServiceDetail service_details; }; #if !defined(TC_IMPL_TC_CORBA_ServiceInformation_0) #define TC_IMPL_TC_CORBA_ServiceInformation_0 'c' #define TC_IMPL_TC_CORBA_ServiceInformation_1 'o' #define TC_IMPL_TC_CORBA_ServiceInformation_2 'r' #define TC_IMPL_TC_CORBA_ServiceInformation_3 'b' #define TC_IMPL_TC_CORBA_ServiceInformation_4 'a' #define TC_IMPL_TC_CORBA_ServiceInformation_5 '_' #define TC_IMPL_TC_CORBA_ServiceInformation_6 'd' #define TC_IMPL_TC_CORBA_ServiceInformation_7 'e' #define TC_IMPL_TC_CORBA_ServiceInformation_8 'f' #define TC_IMPL_TC_CORBA_ServiceInformation_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ServiceInformation_struct; #define TC_CORBA_ServiceInformation ((CORBA_TypeCode)&TC_CORBA_ServiceInformation_struct) #endif #define CORBA_ServiceInformation__alloc() ((CORBA_ServiceInformation *)ORBit_small_alloc (TC_CORBA_ServiceInformation)) #define CORBA_ServiceInformation__freekids(m,d) ORBit_small_freekids (TC_CORBA_ServiceInformation,(m),(d)) #endif #if !defined(_CORBA_ValueFactory_defined) #define _CORBA_ValueFactory_defined 1 typedef struct CORBA_ValueFactory_type *CORBA_ValueFactory; #endif #if !defined(_CORBA_ORBid_defined) #define _CORBA_ORBid_defined 1 typedef CORBA_string CORBA_ORBid; #define CORBA_ORBid_marshal(x,y,z) CORBA_string_marshal((x),(y),(z)) #define CORBA_ORBid_demarshal(x,y,z,i) CORBA_string_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ORBid_0) #define TC_IMPL_TC_CORBA_ORBid_0 'c' #define TC_IMPL_TC_CORBA_ORBid_1 'o' #define TC_IMPL_TC_CORBA_ORBid_2 'r' #define TC_IMPL_TC_CORBA_ORBid_3 'b' #define TC_IMPL_TC_CORBA_ORBid_4 'a' #define TC_IMPL_TC_CORBA_ORBid_5 '_' #define TC_IMPL_TC_CORBA_ORBid_6 'd' #define TC_IMPL_TC_CORBA_ORBid_7 'e' #define TC_IMPL_TC_CORBA_ORBid_8 'f' #define TC_IMPL_TC_CORBA_ORBid_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ORBid_struct; #define TC_CORBA_ORBid ((CORBA_TypeCode)&TC_CORBA_ORBid_struct) #endif #define CORBA_ORBid__alloc() ((CORBA_ORBid *)ORBit_small_alloc (TC_CORBA_string)) #define CORBA_ORBid__freekids(m,d) ORBit_small_freekids (TC_CORBA_string,(m),(d)) #endif #undef ex_CORBA_WrongTransaction #define ex_CORBA_WrongTransaction "IDL:omg.org/CORBA/WrongTransaction:1.0" #if !defined(_CORBA_WrongTransaction_defined) #define _CORBA_WrongTransaction_defined 1 typedef struct CORBA_WrongTransaction_type CORBA_WrongTransaction; struct CORBA_WrongTransaction_type { int dummy; }; #if !defined(TC_IMPL_TC_CORBA_WrongTransaction_0) #define TC_IMPL_TC_CORBA_WrongTransaction_0 'c' #define TC_IMPL_TC_CORBA_WrongTransaction_1 'o' #define TC_IMPL_TC_CORBA_WrongTransaction_2 'r' #define TC_IMPL_TC_CORBA_WrongTransaction_3 'b' #define TC_IMPL_TC_CORBA_WrongTransaction_4 'a' #define TC_IMPL_TC_CORBA_WrongTransaction_5 '_' #define TC_IMPL_TC_CORBA_WrongTransaction_6 'd' #define TC_IMPL_TC_CORBA_WrongTransaction_7 'e' #define TC_IMPL_TC_CORBA_WrongTransaction_8 'f' #define TC_IMPL_TC_CORBA_WrongTransaction_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_WrongTransaction_struct; #define TC_CORBA_WrongTransaction ((CORBA_TypeCode)&TC_CORBA_WrongTransaction_struct) #endif #define CORBA_WrongTransaction__alloc() ((CORBA_WrongTransaction *)ORBit_small_alloc (TC_CORBA_WrongTransaction)) #define CORBA_WrongTransaction__freekids(m,d) ORBit_small_freekids (TC_CORBA_WrongTransaction,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_ORB) && !defined(_CORBA_ORB_defined) #define ORBIT_DECL_CORBA_ORB 1 #define _CORBA_ORB_defined 1 typedef struct CORBA_ORB_type *CORBA_ORB; #ifndef TC_CORBA_ORB # define TC_CORBA_ORB TC_CORBA_Object #endif #endif #if !defined(_CORBA_ORB_ObjectId_defined) #define _CORBA_ORB_ObjectId_defined 1 typedef CORBA_string CORBA_ORB_ObjectId; #define CORBA_ORB_ObjectId_marshal(x,y,z) CORBA_string_marshal((x),(y),(z)) #define CORBA_ORB_ObjectId_demarshal(x,y,z,i) CORBA_string_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ORB_ObjectId_0) #define TC_IMPL_TC_CORBA_ORB_ObjectId_0 'c' #define TC_IMPL_TC_CORBA_ORB_ObjectId_1 'o' #define TC_IMPL_TC_CORBA_ORB_ObjectId_2 'r' #define TC_IMPL_TC_CORBA_ORB_ObjectId_3 'b' #define TC_IMPL_TC_CORBA_ORB_ObjectId_4 'a' #define TC_IMPL_TC_CORBA_ORB_ObjectId_5 '_' #define TC_IMPL_TC_CORBA_ORB_ObjectId_6 'd' #define TC_IMPL_TC_CORBA_ORB_ObjectId_7 'e' #define TC_IMPL_TC_CORBA_ORB_ObjectId_8 'f' #define TC_IMPL_TC_CORBA_ORB_ObjectId_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ORB_ObjectId_struct; #define TC_CORBA_ORB_ObjectId ((CORBA_TypeCode)&TC_CORBA_ORB_ObjectId_struct) #endif #define CORBA_ORB_ObjectId__alloc() ((CORBA_ORB_ObjectId *)ORBit_small_alloc (TC_CORBA_string)) #define CORBA_ORB_ObjectId__freekids(m,d) ORBit_small_freekids (TC_CORBA_string,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_string) #define ORBIT_DECL_CORBA_sequence_CORBA_string 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_string_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_9 's' #if !defined(_CORBA_sequence_CORBA_string_defined) #define _CORBA_sequence_CORBA_string_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_string* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_string; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_string_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_string_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_string_struct; #define TC_CORBA_sequence_CORBA_string ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_string_struct) #endif #define CORBA_sequence_CORBA_string__alloc() ((CORBA_sequence_CORBA_string *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_string)) #define CORBA_sequence_CORBA_string__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_string,(m),(d)) #define CORBA_sequence_CORBA_string_allocbuf(l) ((CORBA_string*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_string, (l))) #define CORBA_sequence_CORBA_string_allocbuf(l) ((CORBA_string*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_string, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_ORB_ObjectId) #define ORBIT_DECL_CORBA_sequence_CORBA_ORB_ObjectId 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_ORB_ObjectId_0 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_ORB_ObjectId_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_ORB_ObjectId_2 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_ORB_ObjectId_3 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_ORB_ObjectId_4 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_ORB_ObjectId_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_ORB_ObjectId_6 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_ORB_ObjectId_7 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_ORB_ObjectId_8 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_ORB_ObjectId_9 's' #if !defined(_CORBA_sequence_CORBA_ORB_ObjectId_defined) #define _CORBA_sequence_CORBA_ORB_ObjectId_defined 1 typedef CORBA_sequence_CORBA_string CORBA_sequence_CORBA_ORB_ObjectId; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_ORB_ObjectId_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_ORB_ObjectId_0 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_ORB_ObjectId_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_ORB_ObjectId_2 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_ORB_ObjectId_3 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_ORB_ObjectId_4 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_ORB_ObjectId_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_ORB_ObjectId_6 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_ORB_ObjectId_7 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_ORB_ObjectId_8 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_ORB_ObjectId_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_ORB_ObjectId_struct; #define TC_CORBA_sequence_CORBA_ORB_ObjectId ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_ORB_ObjectId_struct) #endif #define CORBA_sequence_CORBA_ORB_ObjectId__alloc CORBA_sequence_CORBA_string__alloc #define CORBA_sequence_CORBA_ORB_ObjectId__freekids CORBA_sequence_CORBA_string__freekids #define CORBA_sequence_CORBA_ORB_ObjectId_allocbuf CORBA_sequence_CORBA_string_allocbuf #define CORBA_sequence_CORBA_ORB_ObjectId_marshal(x,y,z) CORBA_sequence_CORBA_string_marshal((x),(y),(z)) #define CORBA_sequence_CORBA_ORB_ObjectId_demarshal(x,y,z,i) CORBA_sequence_CORBA_string_demarshal((x),(y),(z),(i)) #endif #if !defined(_CORBA_ORB_ObjectIdList_defined) #define _CORBA_ORB_ObjectIdList_defined 1 typedef CORBA_sequence_CORBA_ORB_ObjectId CORBA_ORB_ObjectIdList; #define CORBA_ORB_ObjectIdList_marshal(x,y,z) CORBA_sequence_CORBA_ORB_ObjectId_marshal((x),(y),(z)) #define CORBA_ORB_ObjectIdList_demarshal(x,y,z,i) CORBA_sequence_CORBA_ORB_ObjectId_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CORBA_ORB_ObjectIdList_0) #define TC_IMPL_TC_CORBA_ORB_ObjectIdList_0 'c' #define TC_IMPL_TC_CORBA_ORB_ObjectIdList_1 'o' #define TC_IMPL_TC_CORBA_ORB_ObjectIdList_2 'r' #define TC_IMPL_TC_CORBA_ORB_ObjectIdList_3 'b' #define TC_IMPL_TC_CORBA_ORB_ObjectIdList_4 'a' #define TC_IMPL_TC_CORBA_ORB_ObjectIdList_5 '_' #define TC_IMPL_TC_CORBA_ORB_ObjectIdList_6 'd' #define TC_IMPL_TC_CORBA_ORB_ObjectIdList_7 'e' #define TC_IMPL_TC_CORBA_ORB_ObjectIdList_8 'f' #define TC_IMPL_TC_CORBA_ORB_ObjectIdList_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ORB_ObjectIdList_struct; #define TC_CORBA_ORB_ObjectIdList ((CORBA_TypeCode)&TC_CORBA_ORB_ObjectIdList_struct) #endif #define CORBA_ORB_ObjectIdList__alloc() ((CORBA_ORB_ObjectIdList *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_ORB_ObjectId)) #define CORBA_ORB_ObjectIdList__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_ORB_ObjectId,(m),(d)) #define CORBA_ORB_ObjectIdList_allocbuf(l) ((CORBA_ORB_ObjectId*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_ORB_ObjectId, (l))) #endif #undef ex_CORBA_ORB_InvalidName #define ex_CORBA_ORB_InvalidName "IDL:omg.org/CORBA/ORB/InvalidName:1.0" #if !defined(_CORBA_ORB_InvalidName_defined) #define _CORBA_ORB_InvalidName_defined 1 typedef struct CORBA_ORB_InvalidName_type CORBA_ORB_InvalidName; struct CORBA_ORB_InvalidName_type { int dummy; }; #if !defined(TC_IMPL_TC_CORBA_ORB_InvalidName_0) #define TC_IMPL_TC_CORBA_ORB_InvalidName_0 'c' #define TC_IMPL_TC_CORBA_ORB_InvalidName_1 'o' #define TC_IMPL_TC_CORBA_ORB_InvalidName_2 'r' #define TC_IMPL_TC_CORBA_ORB_InvalidName_3 'b' #define TC_IMPL_TC_CORBA_ORB_InvalidName_4 'a' #define TC_IMPL_TC_CORBA_ORB_InvalidName_5 '_' #define TC_IMPL_TC_CORBA_ORB_InvalidName_6 'd' #define TC_IMPL_TC_CORBA_ORB_InvalidName_7 'e' #define TC_IMPL_TC_CORBA_ORB_InvalidName_8 'f' #define TC_IMPL_TC_CORBA_ORB_InvalidName_9 's' #ifdef ORBIT_IDL_C_IMODULE_corba_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_ORB_InvalidName_struct; #define TC_CORBA_ORB_InvalidName ((CORBA_TypeCode)&TC_CORBA_ORB_InvalidName_struct) #endif #define CORBA_ORB_InvalidName__alloc() ((CORBA_ORB_InvalidName *)ORBit_small_alloc (TC_CORBA_ORB_InvalidName)) #define CORBA_ORB_InvalidName__freekids(m,d) ORBit_small_freekids (TC_CORBA_ORB_InvalidName,(m),(d)) #endif #if !defined(_CORBA_OpaqueValue_defined) #define _CORBA_OpaqueValue_defined 1 typedef struct CORBA_OpaqueValue_type *CORBA_OpaqueValue; #endif #if !defined(ORBIT_DECL_CORBA_Request) && !defined(_CORBA_Request_defined) #define ORBIT_DECL_CORBA_Request 1 #define _CORBA_Request_defined 1 typedef struct CORBA_Request_type *CORBA_Request; #ifndef TC_CORBA_Request # define TC_CORBA_Request TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_CORBA_Context) && !defined(_CORBA_Context_defined) #define ORBIT_DECL_CORBA_Context 1 #define _CORBA_Context_defined 1 typedef struct CORBA_Context_type *CORBA_Context; #ifndef TC_CORBA_Context # define TC_CORBA_Context TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_CORBA_NVList) && !defined(_CORBA_NVList_defined) #define ORBIT_DECL_CORBA_NVList 1 #define _CORBA_NVList_defined 1 typedef struct CORBA_NVList_type *CORBA_NVList; #ifndef TC_CORBA_NVList # define TC_CORBA_NVList TC_CORBA_Object #endif #endif #if !defined(ORBIT_DECL_CORBA_ServerRequest) && !defined(_CORBA_ServerRequest_defined) #define ORBIT_DECL_CORBA_ServerRequest 1 #define _CORBA_ServerRequest_defined 1 typedef struct CORBA_ServerRequest_type *CORBA_ServerRequest; #ifndef TC_CORBA_ServerRequest # define TC_CORBA_ServerRequest TC_CORBA_Object #endif #endif /** stub prototypes **/ CORBA_PolicyType CORBA_Policy__get_policy_type(CORBA_Policy _obj, CORBA_Environment *ev); CORBA_Policy CORBA_Policy_copy(CORBA_Policy _obj, CORBA_Environment *ev); void CORBA_Policy_destroy(CORBA_Policy _obj, CORBA_Environment *ev); CORBA_Policy CORBA_DomainManager_get_domain_policy(CORBA_DomainManager _obj, const CORBA_PolicyType policy_type, CORBA_Environment *ev); #define CORBA_ConstructionPolicy__get_policy_type CORBA_Policy__get_policy_type #define CORBA_ConstructionPolicy_copy CORBA_Policy_copy #define CORBA_ConstructionPolicy_destroy CORBA_Policy_destroy void CORBA_ConstructionPolicy_make_domain_manager(CORBA_ConstructionPolicy _obj, const CORBA_InterfaceDef object_type, const CORBA_boolean constr_policy, CORBA_Environment *ev); CORBA_DefinitionKind CORBA_IRObject__get_def_kind(CORBA_IRObject _obj, CORBA_Environment *ev); void CORBA_IRObject_destroy(CORBA_IRObject _obj, CORBA_Environment *ev); #define CORBA_Contained__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_Contained_destroy CORBA_IRObject_destroy CORBA_RepositoryId CORBA_Contained__get_id(CORBA_Contained _obj, CORBA_Environment *ev); void CORBA_Contained__set_id(CORBA_Contained _obj, const CORBA_char * value, CORBA_Environment *ev); CORBA_Identifier CORBA_Contained__get_name(CORBA_Contained _obj, CORBA_Environment *ev); void CORBA_Contained__set_name(CORBA_Contained _obj, const CORBA_char * value, CORBA_Environment *ev); CORBA_VersionSpec CORBA_Contained__get_version(CORBA_Contained _obj, CORBA_Environment *ev); void CORBA_Contained__set_version(CORBA_Contained _obj, const CORBA_char * value, CORBA_Environment *ev); CORBA_Container CORBA_Contained__get_defined_in(CORBA_Contained _obj, CORBA_Environment *ev); CORBA_ScopedName CORBA_Contained__get_absolute_name(CORBA_Contained _obj, CORBA_Environment *ev); CORBA_Repository CORBA_Contained__get_containing_repository(CORBA_Contained _obj, CORBA_Environment *ev); CORBA_Contained_Description* CORBA_Contained_describe(CORBA_Contained _obj, CORBA_Environment *ev); void CORBA_Contained_move(CORBA_Contained _obj, const CORBA_Container new_container, const CORBA_char * new_name, const CORBA_char * new_version, CORBA_Environment *ev); #define CORBA_Container__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_Container_destroy CORBA_IRObject_destroy CORBA_Contained CORBA_Container_lookup(CORBA_Container _obj, const CORBA_char * search_name, CORBA_Environment *ev); CORBA_ContainedSeq* CORBA_Container_contents(CORBA_Container _obj, const CORBA_DefinitionKind limit_type, const CORBA_boolean exclude_inherited, CORBA_Environment *ev); CORBA_ContainedSeq* CORBA_Container_lookup_name(CORBA_Container _obj, const CORBA_char * search_name, const CORBA_long levels_to_search, const CORBA_DefinitionKind limit_type, const CORBA_boolean exclude_inherited, CORBA_Environment *ev); CORBA_Container_DescriptionSeq* CORBA_Container_describe_contents(CORBA_Container _obj, const CORBA_DefinitionKind limit_type, const CORBA_boolean exclude_inherited, const CORBA_long max_returned_objs, CORBA_Environment *ev); CORBA_ModuleDef CORBA_Container_create_module(CORBA_Container _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_char * version, CORBA_Environment *ev); CORBA_ConstantDef CORBA_Container_create_constant(CORBA_Container _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_char * version, const CORBA_IDLType type, const CORBA_any* value, CORBA_Environment *ev); CORBA_StructDef CORBA_Container_create_struct(CORBA_Container _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_char * version, const CORBA_StructMemberSeq* members, CORBA_Environment *ev); CORBA_UnionDef CORBA_Container_create_union(CORBA_Container _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_char * version, const CORBA_IDLType discriminator_type, const CORBA_UnionMemberSeq* members, CORBA_Environment *ev); CORBA_EnumDef CORBA_Container_create_enum(CORBA_Container _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_char * version, const CORBA_EnumMemberSeq* members, CORBA_Environment *ev); CORBA_AliasDef CORBA_Container_create_alias(CORBA_Container _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_char * version, const CORBA_IDLType original_type, CORBA_Environment *ev); CORBA_InterfaceDef CORBA_Container_create_interface(CORBA_Container _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_char * version, const CORBA_InterfaceDefSeq* base_interfaces, const CORBA_boolean is_abstract, CORBA_Environment *ev); CORBA_ValueDef CORBA_Container_create_value(CORBA_Container _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_char * version, const CORBA_boolean is_custom, const CORBA_boolean is_abstract, const CORBA_ValueDef base_value, const CORBA_boolean is_truncatable, const CORBA_ValueDefSeq* abstract_base_values, const CORBA_InterfaceDefSeq* supported_interfaces, const CORBA_InitializerSeq* initializers, CORBA_Environment *ev); CORBA_ValueBoxDef CORBA_Container_create_value_box(CORBA_Container _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_char * version, const CORBA_IDLType original_type_def, CORBA_Environment *ev); CORBA_ExceptionDef CORBA_Container_create_exception(CORBA_Container _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_char * version, const CORBA_StructMemberSeq* members, CORBA_Environment *ev); CORBA_NativeDef CORBA_Container_create_native(CORBA_Container _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_char * version, CORBA_Environment *ev); CORBA_AbstractInterfaceDef CORBA_Container_create_abstract_interface(CORBA_Container _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_char * version, const CORBA_AbstractInterfaceDefSeq* base_interfaces, CORBA_Environment *ev); CORBA_LocalInterfaceDef CORBA_Container_create_local_interface(CORBA_Container _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_char * version, const CORBA_InterfaceDefSeq* base_interfaces, CORBA_Environment *ev); CORBA_ExtValueDef CORBA_Container_create_ext_value(CORBA_Container _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_char * version, const CORBA_boolean is_custom, const CORBA_boolean is_abstract, const CORBA_ValueDef base_value, const CORBA_boolean is_truncatable, const CORBA_ValueDefSeq* abstract_base_values, const CORBA_InterfaceDefSeq* supported_interfaces, const CORBA_ExtInitializerSeq* initializers, CORBA_Environment *ev); #define CORBA_IDLType__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_IDLType_destroy CORBA_IRObject_destroy CORBA_TypeCode CORBA_IDLType__get_type(CORBA_IDLType _obj, CORBA_Environment *ev); #define CORBA_Repository__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_Repository_destroy CORBA_IRObject_destroy #define CORBA_Repository_lookup CORBA_Container_lookup #define CORBA_Repository_contents CORBA_Container_contents #define CORBA_Repository_lookup_name CORBA_Container_lookup_name #define CORBA_Repository_describe_contents CORBA_Container_describe_contents #define CORBA_Repository_create_module CORBA_Container_create_module #define CORBA_Repository_create_constant CORBA_Container_create_constant #define CORBA_Repository_create_struct CORBA_Container_create_struct #define CORBA_Repository_create_union CORBA_Container_create_union #define CORBA_Repository_create_enum CORBA_Container_create_enum #define CORBA_Repository_create_alias CORBA_Container_create_alias #define CORBA_Repository_create_interface CORBA_Container_create_interface #define CORBA_Repository_create_value CORBA_Container_create_value #define CORBA_Repository_create_value_box CORBA_Container_create_value_box #define CORBA_Repository_create_exception CORBA_Container_create_exception #define CORBA_Repository_create_native CORBA_Container_create_native #define CORBA_Repository_create_abstract_interface CORBA_Container_create_abstract_interface #define CORBA_Repository_create_local_interface CORBA_Container_create_local_interface #define CORBA_Repository_create_ext_value CORBA_Container_create_ext_value CORBA_Contained CORBA_Repository_lookup_id(CORBA_Repository _obj, const CORBA_char * search_id, CORBA_Environment *ev); CORBA_TypeCode CORBA_Repository_get_canonical_typecode(CORBA_Repository _obj, const CORBA_TypeCode tc, CORBA_Environment *ev); CORBA_PrimitiveDef CORBA_Repository_get_primitive(CORBA_Repository _obj, const CORBA_PrimitiveKind kind, CORBA_Environment *ev); CORBA_StringDef CORBA_Repository_create_string(CORBA_Repository _obj, const CORBA_unsigned_long bound, CORBA_Environment *ev); CORBA_WstringDef CORBA_Repository_create_wstring(CORBA_Repository _obj, const CORBA_unsigned_long bound, CORBA_Environment *ev); CORBA_SequenceDef CORBA_Repository_create_sequence(CORBA_Repository _obj, const CORBA_unsigned_long bound, const CORBA_IDLType element_type, CORBA_Environment *ev); CORBA_ArrayDef CORBA_Repository_create_array(CORBA_Repository _obj, const CORBA_unsigned_long length, const CORBA_IDLType element_type, CORBA_Environment *ev); CORBA_FixedDef CORBA_Repository_create_fixed(CORBA_Repository _obj, const CORBA_unsigned_short digits, const CORBA_short scale, CORBA_Environment *ev); #define CORBA_ModuleDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_ModuleDef_destroy CORBA_IRObject_destroy #define CORBA_ModuleDef_lookup CORBA_Container_lookup #define CORBA_ModuleDef_contents CORBA_Container_contents #define CORBA_ModuleDef_lookup_name CORBA_Container_lookup_name #define CORBA_ModuleDef_describe_contents CORBA_Container_describe_contents #define CORBA_ModuleDef_create_module CORBA_Container_create_module #define CORBA_ModuleDef_create_constant CORBA_Container_create_constant #define CORBA_ModuleDef_create_struct CORBA_Container_create_struct #define CORBA_ModuleDef_create_union CORBA_Container_create_union #define CORBA_ModuleDef_create_enum CORBA_Container_create_enum #define CORBA_ModuleDef_create_alias CORBA_Container_create_alias #define CORBA_ModuleDef_create_interface CORBA_Container_create_interface #define CORBA_ModuleDef_create_value CORBA_Container_create_value #define CORBA_ModuleDef_create_value_box CORBA_Container_create_value_box #define CORBA_ModuleDef_create_exception CORBA_Container_create_exception #define CORBA_ModuleDef_create_native CORBA_Container_create_native #define CORBA_ModuleDef_create_abstract_interface CORBA_Container_create_abstract_interface #define CORBA_ModuleDef_create_local_interface CORBA_Container_create_local_interface #define CORBA_ModuleDef_create_ext_value CORBA_Container_create_ext_value #define CORBA_ModuleDef__get_id CORBA_Contained__get_id #define CORBA_ModuleDef__set_id CORBA_Contained__set_id #define CORBA_ModuleDef__get_name CORBA_Contained__get_name #define CORBA_ModuleDef__set_name CORBA_Contained__set_name #define CORBA_ModuleDef__get_version CORBA_Contained__get_version #define CORBA_ModuleDef__set_version CORBA_Contained__set_version #define CORBA_ModuleDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_ModuleDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_ModuleDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_ModuleDef_describe CORBA_Contained_describe #define CORBA_ModuleDef_move CORBA_Contained_move #define CORBA_ConstantDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_ConstantDef_destroy CORBA_IRObject_destroy #define CORBA_ConstantDef__get_id CORBA_Contained__get_id #define CORBA_ConstantDef__set_id CORBA_Contained__set_id #define CORBA_ConstantDef__get_name CORBA_Contained__get_name #define CORBA_ConstantDef__set_name CORBA_Contained__set_name #define CORBA_ConstantDef__get_version CORBA_Contained__get_version #define CORBA_ConstantDef__set_version CORBA_Contained__set_version #define CORBA_ConstantDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_ConstantDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_ConstantDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_ConstantDef_describe CORBA_Contained_describe #define CORBA_ConstantDef_move CORBA_Contained_move CORBA_TypeCode CORBA_ConstantDef__get_type(CORBA_ConstantDef _obj, CORBA_Environment *ev); CORBA_IDLType CORBA_ConstantDef__get_type_def(CORBA_ConstantDef _obj, CORBA_Environment *ev); void CORBA_ConstantDef__set_type_def(CORBA_ConstantDef _obj, const CORBA_IDLType value, CORBA_Environment *ev); CORBA_any* CORBA_ConstantDef__get_value(CORBA_ConstantDef _obj, CORBA_Environment *ev); void CORBA_ConstantDef__set_value(CORBA_ConstantDef _obj, const CORBA_any* value, CORBA_Environment *ev); #define CORBA_TypedefDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_TypedefDef_destroy CORBA_IRObject_destroy #define CORBA_TypedefDef__get_id CORBA_Contained__get_id #define CORBA_TypedefDef__set_id CORBA_Contained__set_id #define CORBA_TypedefDef__get_name CORBA_Contained__get_name #define CORBA_TypedefDef__set_name CORBA_Contained__set_name #define CORBA_TypedefDef__get_version CORBA_Contained__get_version #define CORBA_TypedefDef__set_version CORBA_Contained__set_version #define CORBA_TypedefDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_TypedefDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_TypedefDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_TypedefDef_describe CORBA_Contained_describe #define CORBA_TypedefDef_move CORBA_Contained_move #define CORBA_TypedefDef__get_type CORBA_IDLType__get_type #define CORBA_StructDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_StructDef_destroy CORBA_IRObject_destroy #define CORBA_StructDef__get_id CORBA_Contained__get_id #define CORBA_StructDef__set_id CORBA_Contained__set_id #define CORBA_StructDef__get_name CORBA_Contained__get_name #define CORBA_StructDef__set_name CORBA_Contained__set_name #define CORBA_StructDef__get_version CORBA_Contained__get_version #define CORBA_StructDef__set_version CORBA_Contained__set_version #define CORBA_StructDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_StructDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_StructDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_StructDef_describe CORBA_Contained_describe #define CORBA_StructDef_move CORBA_Contained_move #define CORBA_StructDef__get_type CORBA_IDLType__get_type #define CORBA_StructDef_lookup CORBA_Container_lookup #define CORBA_StructDef_contents CORBA_Container_contents #define CORBA_StructDef_lookup_name CORBA_Container_lookup_name #define CORBA_StructDef_describe_contents CORBA_Container_describe_contents #define CORBA_StructDef_create_module CORBA_Container_create_module #define CORBA_StructDef_create_constant CORBA_Container_create_constant #define CORBA_StructDef_create_struct CORBA_Container_create_struct #define CORBA_StructDef_create_union CORBA_Container_create_union #define CORBA_StructDef_create_enum CORBA_Container_create_enum #define CORBA_StructDef_create_alias CORBA_Container_create_alias #define CORBA_StructDef_create_interface CORBA_Container_create_interface #define CORBA_StructDef_create_value CORBA_Container_create_value #define CORBA_StructDef_create_value_box CORBA_Container_create_value_box #define CORBA_StructDef_create_exception CORBA_Container_create_exception #define CORBA_StructDef_create_native CORBA_Container_create_native #define CORBA_StructDef_create_abstract_interface CORBA_Container_create_abstract_interface #define CORBA_StructDef_create_local_interface CORBA_Container_create_local_interface #define CORBA_StructDef_create_ext_value CORBA_Container_create_ext_value CORBA_StructMemberSeq* CORBA_StructDef__get_members(CORBA_StructDef _obj, CORBA_Environment *ev); void CORBA_StructDef__set_members(CORBA_StructDef _obj, const CORBA_StructMemberSeq* value, CORBA_Environment *ev); #define CORBA_UnionDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_UnionDef_destroy CORBA_IRObject_destroy #define CORBA_UnionDef__get_id CORBA_Contained__get_id #define CORBA_UnionDef__set_id CORBA_Contained__set_id #define CORBA_UnionDef__get_name CORBA_Contained__get_name #define CORBA_UnionDef__set_name CORBA_Contained__set_name #define CORBA_UnionDef__get_version CORBA_Contained__get_version #define CORBA_UnionDef__set_version CORBA_Contained__set_version #define CORBA_UnionDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_UnionDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_UnionDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_UnionDef_describe CORBA_Contained_describe #define CORBA_UnionDef_move CORBA_Contained_move #define CORBA_UnionDef__get_type CORBA_IDLType__get_type #define CORBA_UnionDef_lookup CORBA_Container_lookup #define CORBA_UnionDef_contents CORBA_Container_contents #define CORBA_UnionDef_lookup_name CORBA_Container_lookup_name #define CORBA_UnionDef_describe_contents CORBA_Container_describe_contents #define CORBA_UnionDef_create_module CORBA_Container_create_module #define CORBA_UnionDef_create_constant CORBA_Container_create_constant #define CORBA_UnionDef_create_struct CORBA_Container_create_struct #define CORBA_UnionDef_create_union CORBA_Container_create_union #define CORBA_UnionDef_create_enum CORBA_Container_create_enum #define CORBA_UnionDef_create_alias CORBA_Container_create_alias #define CORBA_UnionDef_create_interface CORBA_Container_create_interface #define CORBA_UnionDef_create_value CORBA_Container_create_value #define CORBA_UnionDef_create_value_box CORBA_Container_create_value_box #define CORBA_UnionDef_create_exception CORBA_Container_create_exception #define CORBA_UnionDef_create_native CORBA_Container_create_native #define CORBA_UnionDef_create_abstract_interface CORBA_Container_create_abstract_interface #define CORBA_UnionDef_create_local_interface CORBA_Container_create_local_interface #define CORBA_UnionDef_create_ext_value CORBA_Container_create_ext_value CORBA_TypeCode CORBA_UnionDef__get_discriminator_type(CORBA_UnionDef _obj, CORBA_Environment *ev); CORBA_IDLType CORBA_UnionDef__get_discriminator_type_def(CORBA_UnionDef _obj, CORBA_Environment *ev); void CORBA_UnionDef__set_discriminator_type_def(CORBA_UnionDef _obj, const CORBA_IDLType value, CORBA_Environment *ev); CORBA_UnionMemberSeq* CORBA_UnionDef__get_members(CORBA_UnionDef _obj, CORBA_Environment *ev); void CORBA_UnionDef__set_members(CORBA_UnionDef _obj, const CORBA_UnionMemberSeq* value, CORBA_Environment *ev); #define CORBA_EnumDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_EnumDef_destroy CORBA_IRObject_destroy #define CORBA_EnumDef__get_id CORBA_Contained__get_id #define CORBA_EnumDef__set_id CORBA_Contained__set_id #define CORBA_EnumDef__get_name CORBA_Contained__get_name #define CORBA_EnumDef__set_name CORBA_Contained__set_name #define CORBA_EnumDef__get_version CORBA_Contained__get_version #define CORBA_EnumDef__set_version CORBA_Contained__set_version #define CORBA_EnumDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_EnumDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_EnumDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_EnumDef_describe CORBA_Contained_describe #define CORBA_EnumDef_move CORBA_Contained_move #define CORBA_EnumDef__get_type CORBA_IDLType__get_type CORBA_EnumMemberSeq* CORBA_EnumDef__get_members(CORBA_EnumDef _obj, CORBA_Environment *ev); void CORBA_EnumDef__set_members(CORBA_EnumDef _obj, const CORBA_EnumMemberSeq* value, CORBA_Environment *ev); #define CORBA_AliasDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_AliasDef_destroy CORBA_IRObject_destroy #define CORBA_AliasDef__get_id CORBA_Contained__get_id #define CORBA_AliasDef__set_id CORBA_Contained__set_id #define CORBA_AliasDef__get_name CORBA_Contained__get_name #define CORBA_AliasDef__set_name CORBA_Contained__set_name #define CORBA_AliasDef__get_version CORBA_Contained__get_version #define CORBA_AliasDef__set_version CORBA_Contained__set_version #define CORBA_AliasDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_AliasDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_AliasDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_AliasDef_describe CORBA_Contained_describe #define CORBA_AliasDef_move CORBA_Contained_move #define CORBA_AliasDef__get_type CORBA_IDLType__get_type CORBA_IDLType CORBA_AliasDef__get_original_type_def(CORBA_AliasDef _obj, CORBA_Environment *ev); void CORBA_AliasDef__set_original_type_def(CORBA_AliasDef _obj, const CORBA_IDLType value, CORBA_Environment *ev); #define CORBA_NativeDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_NativeDef_destroy CORBA_IRObject_destroy #define CORBA_NativeDef__get_id CORBA_Contained__get_id #define CORBA_NativeDef__set_id CORBA_Contained__set_id #define CORBA_NativeDef__get_name CORBA_Contained__get_name #define CORBA_NativeDef__set_name CORBA_Contained__set_name #define CORBA_NativeDef__get_version CORBA_Contained__get_version #define CORBA_NativeDef__set_version CORBA_Contained__set_version #define CORBA_NativeDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_NativeDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_NativeDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_NativeDef_describe CORBA_Contained_describe #define CORBA_NativeDef_move CORBA_Contained_move #define CORBA_NativeDef__get_type CORBA_IDLType__get_type #define CORBA_PrimitiveDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_PrimitiveDef_destroy CORBA_IRObject_destroy #define CORBA_PrimitiveDef__get_type CORBA_IDLType__get_type CORBA_PrimitiveKind CORBA_PrimitiveDef__get_kind(CORBA_PrimitiveDef _obj, CORBA_Environment *ev); #define CORBA_StringDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_StringDef_destroy CORBA_IRObject_destroy #define CORBA_StringDef__get_type CORBA_IDLType__get_type CORBA_unsigned_long CORBA_StringDef__get_bound(CORBA_StringDef _obj, CORBA_Environment *ev); void CORBA_StringDef__set_bound(CORBA_StringDef _obj, const CORBA_unsigned_long value, CORBA_Environment *ev); #define CORBA_WstringDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_WstringDef_destroy CORBA_IRObject_destroy #define CORBA_WstringDef__get_type CORBA_IDLType__get_type CORBA_unsigned_long CORBA_WstringDef__get_bound(CORBA_WstringDef _obj, CORBA_Environment *ev); void CORBA_WstringDef__set_bound(CORBA_WstringDef _obj, const CORBA_unsigned_long value, CORBA_Environment *ev); #define CORBA_FixedDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_FixedDef_destroy CORBA_IRObject_destroy #define CORBA_FixedDef__get_type CORBA_IDLType__get_type CORBA_unsigned_short CORBA_FixedDef__get_digits(CORBA_FixedDef _obj, CORBA_Environment *ev); void CORBA_FixedDef__set_digits(CORBA_FixedDef _obj, const CORBA_unsigned_short value, CORBA_Environment *ev); CORBA_short CORBA_FixedDef__get_scale(CORBA_FixedDef _obj, CORBA_Environment *ev); void CORBA_FixedDef__set_scale(CORBA_FixedDef _obj, const CORBA_short value, CORBA_Environment *ev); #define CORBA_SequenceDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_SequenceDef_destroy CORBA_IRObject_destroy #define CORBA_SequenceDef__get_type CORBA_IDLType__get_type CORBA_unsigned_long CORBA_SequenceDef__get_bound(CORBA_SequenceDef _obj, CORBA_Environment *ev); void CORBA_SequenceDef__set_bound(CORBA_SequenceDef _obj, const CORBA_unsigned_long value, CORBA_Environment *ev); CORBA_TypeCode CORBA_SequenceDef__get_element_type(CORBA_SequenceDef _obj, CORBA_Environment *ev); CORBA_IDLType CORBA_SequenceDef__get_element_type_def(CORBA_SequenceDef _obj, CORBA_Environment *ev); void CORBA_SequenceDef__set_element_type_def(CORBA_SequenceDef _obj, const CORBA_IDLType value, CORBA_Environment *ev); #define CORBA_ArrayDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_ArrayDef_destroy CORBA_IRObject_destroy #define CORBA_ArrayDef__get_type CORBA_IDLType__get_type CORBA_unsigned_long CORBA_ArrayDef__get_length(CORBA_ArrayDef _obj, CORBA_Environment *ev); void CORBA_ArrayDef__set_length(CORBA_ArrayDef _obj, const CORBA_unsigned_long value, CORBA_Environment *ev); CORBA_TypeCode CORBA_ArrayDef__get_element_type(CORBA_ArrayDef _obj, CORBA_Environment *ev); CORBA_IDLType CORBA_ArrayDef__get_element_type_def(CORBA_ArrayDef _obj, CORBA_Environment *ev); void CORBA_ArrayDef__set_element_type_def(CORBA_ArrayDef _obj, const CORBA_IDLType value, CORBA_Environment *ev); #define CORBA_ExceptionDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_ExceptionDef_destroy CORBA_IRObject_destroy #define CORBA_ExceptionDef__get_id CORBA_Contained__get_id #define CORBA_ExceptionDef__set_id CORBA_Contained__set_id #define CORBA_ExceptionDef__get_name CORBA_Contained__get_name #define CORBA_ExceptionDef__set_name CORBA_Contained__set_name #define CORBA_ExceptionDef__get_version CORBA_Contained__get_version #define CORBA_ExceptionDef__set_version CORBA_Contained__set_version #define CORBA_ExceptionDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_ExceptionDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_ExceptionDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_ExceptionDef_describe CORBA_Contained_describe #define CORBA_ExceptionDef_move CORBA_Contained_move #define CORBA_ExceptionDef_lookup CORBA_Container_lookup #define CORBA_ExceptionDef_contents CORBA_Container_contents #define CORBA_ExceptionDef_lookup_name CORBA_Container_lookup_name #define CORBA_ExceptionDef_describe_contents CORBA_Container_describe_contents #define CORBA_ExceptionDef_create_module CORBA_Container_create_module #define CORBA_ExceptionDef_create_constant CORBA_Container_create_constant #define CORBA_ExceptionDef_create_struct CORBA_Container_create_struct #define CORBA_ExceptionDef_create_union CORBA_Container_create_union #define CORBA_ExceptionDef_create_enum CORBA_Container_create_enum #define CORBA_ExceptionDef_create_alias CORBA_Container_create_alias #define CORBA_ExceptionDef_create_interface CORBA_Container_create_interface #define CORBA_ExceptionDef_create_value CORBA_Container_create_value #define CORBA_ExceptionDef_create_value_box CORBA_Container_create_value_box #define CORBA_ExceptionDef_create_exception CORBA_Container_create_exception #define CORBA_ExceptionDef_create_native CORBA_Container_create_native #define CORBA_ExceptionDef_create_abstract_interface CORBA_Container_create_abstract_interface #define CORBA_ExceptionDef_create_local_interface CORBA_Container_create_local_interface #define CORBA_ExceptionDef_create_ext_value CORBA_Container_create_ext_value CORBA_TypeCode CORBA_ExceptionDef__get_type(CORBA_ExceptionDef _obj, CORBA_Environment *ev); CORBA_StructMemberSeq* CORBA_ExceptionDef__get_members(CORBA_ExceptionDef _obj, CORBA_Environment *ev); void CORBA_ExceptionDef__set_members(CORBA_ExceptionDef _obj, const CORBA_StructMemberSeq* value, CORBA_Environment *ev); #define CORBA_AttributeDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_AttributeDef_destroy CORBA_IRObject_destroy #define CORBA_AttributeDef__get_id CORBA_Contained__get_id #define CORBA_AttributeDef__set_id CORBA_Contained__set_id #define CORBA_AttributeDef__get_name CORBA_Contained__get_name #define CORBA_AttributeDef__set_name CORBA_Contained__set_name #define CORBA_AttributeDef__get_version CORBA_Contained__get_version #define CORBA_AttributeDef__set_version CORBA_Contained__set_version #define CORBA_AttributeDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_AttributeDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_AttributeDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_AttributeDef_describe CORBA_Contained_describe #define CORBA_AttributeDef_move CORBA_Contained_move CORBA_TypeCode CORBA_AttributeDef__get_type(CORBA_AttributeDef _obj, CORBA_Environment *ev); CORBA_IDLType CORBA_AttributeDef__get_type_def(CORBA_AttributeDef _obj, CORBA_Environment *ev); void CORBA_AttributeDef__set_type_def(CORBA_AttributeDef _obj, const CORBA_IDLType value, CORBA_Environment *ev); CORBA_AttributeMode CORBA_AttributeDef__get_mode(CORBA_AttributeDef _obj, CORBA_Environment *ev); void CORBA_AttributeDef__set_mode(CORBA_AttributeDef _obj, const CORBA_AttributeMode value, CORBA_Environment *ev); #define CORBA_ExtAttributeDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_ExtAttributeDef_destroy CORBA_IRObject_destroy #define CORBA_ExtAttributeDef__get_id CORBA_Contained__get_id #define CORBA_ExtAttributeDef__set_id CORBA_Contained__set_id #define CORBA_ExtAttributeDef__get_name CORBA_Contained__get_name #define CORBA_ExtAttributeDef__set_name CORBA_Contained__set_name #define CORBA_ExtAttributeDef__get_version CORBA_Contained__get_version #define CORBA_ExtAttributeDef__set_version CORBA_Contained__set_version #define CORBA_ExtAttributeDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_ExtAttributeDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_ExtAttributeDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_ExtAttributeDef_describe CORBA_Contained_describe #define CORBA_ExtAttributeDef_move CORBA_Contained_move #define CORBA_ExtAttributeDef__get_type CORBA_AttributeDef__get_type #define CORBA_ExtAttributeDef__get_type_def CORBA_AttributeDef__get_type_def #define CORBA_ExtAttributeDef__set_type_def CORBA_AttributeDef__set_type_def #define CORBA_ExtAttributeDef__get_mode CORBA_AttributeDef__get_mode #define CORBA_ExtAttributeDef__set_mode CORBA_AttributeDef__set_mode CORBA_ExcDescriptionSeq* CORBA_ExtAttributeDef__get_get_exceptions(CORBA_ExtAttributeDef _obj, CORBA_Environment *ev); void CORBA_ExtAttributeDef__set_get_exceptions(CORBA_ExtAttributeDef _obj, const CORBA_ExcDescriptionSeq* value, CORBA_Environment *ev); CORBA_ExcDescriptionSeq* CORBA_ExtAttributeDef__get_set_exceptions(CORBA_ExtAttributeDef _obj, CORBA_Environment *ev); void CORBA_ExtAttributeDef__set_set_exceptions(CORBA_ExtAttributeDef _obj, const CORBA_ExcDescriptionSeq* value, CORBA_Environment *ev); CORBA_ExtAttributeDescription* CORBA_ExtAttributeDef_describe_attribute(CORBA_ExtAttributeDef _obj, CORBA_Environment *ev); #define CORBA_OperationDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_OperationDef_destroy CORBA_IRObject_destroy #define CORBA_OperationDef__get_id CORBA_Contained__get_id #define CORBA_OperationDef__set_id CORBA_Contained__set_id #define CORBA_OperationDef__get_name CORBA_Contained__get_name #define CORBA_OperationDef__set_name CORBA_Contained__set_name #define CORBA_OperationDef__get_version CORBA_Contained__get_version #define CORBA_OperationDef__set_version CORBA_Contained__set_version #define CORBA_OperationDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_OperationDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_OperationDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_OperationDef_describe CORBA_Contained_describe #define CORBA_OperationDef_move CORBA_Contained_move CORBA_TypeCode CORBA_OperationDef__get_result(CORBA_OperationDef _obj, CORBA_Environment *ev); CORBA_IDLType CORBA_OperationDef__get_result_def(CORBA_OperationDef _obj, CORBA_Environment *ev); void CORBA_OperationDef__set_result_def(CORBA_OperationDef _obj, const CORBA_IDLType value, CORBA_Environment *ev); CORBA_ParDescriptionSeq* CORBA_OperationDef__get_params(CORBA_OperationDef _obj, CORBA_Environment *ev); void CORBA_OperationDef__set_params(CORBA_OperationDef _obj, const CORBA_ParDescriptionSeq* value, CORBA_Environment *ev); CORBA_OperationMode CORBA_OperationDef__get_mode(CORBA_OperationDef _obj, CORBA_Environment *ev); void CORBA_OperationDef__set_mode(CORBA_OperationDef _obj, const CORBA_OperationMode value, CORBA_Environment *ev); CORBA_ContextIdSeq* CORBA_OperationDef__get_contexts(CORBA_OperationDef _obj, CORBA_Environment *ev); void CORBA_OperationDef__set_contexts(CORBA_OperationDef _obj, const CORBA_ContextIdSeq* value, CORBA_Environment *ev); CORBA_ExceptionDefSeq* CORBA_OperationDef__get_exceptions(CORBA_OperationDef _obj, CORBA_Environment *ev); void CORBA_OperationDef__set_exceptions(CORBA_OperationDef _obj, const CORBA_ExceptionDefSeq* value, CORBA_Environment *ev); #define CORBA_InterfaceDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_InterfaceDef_destroy CORBA_IRObject_destroy #define CORBA_InterfaceDef_lookup CORBA_Container_lookup #define CORBA_InterfaceDef_contents CORBA_Container_contents #define CORBA_InterfaceDef_lookup_name CORBA_Container_lookup_name #define CORBA_InterfaceDef_describe_contents CORBA_Container_describe_contents #define CORBA_InterfaceDef_create_module CORBA_Container_create_module #define CORBA_InterfaceDef_create_constant CORBA_Container_create_constant #define CORBA_InterfaceDef_create_struct CORBA_Container_create_struct #define CORBA_InterfaceDef_create_union CORBA_Container_create_union #define CORBA_InterfaceDef_create_enum CORBA_Container_create_enum #define CORBA_InterfaceDef_create_alias CORBA_Container_create_alias #define CORBA_InterfaceDef_create_interface CORBA_Container_create_interface #define CORBA_InterfaceDef_create_value CORBA_Container_create_value #define CORBA_InterfaceDef_create_value_box CORBA_Container_create_value_box #define CORBA_InterfaceDef_create_exception CORBA_Container_create_exception #define CORBA_InterfaceDef_create_native CORBA_Container_create_native #define CORBA_InterfaceDef_create_abstract_interface CORBA_Container_create_abstract_interface #define CORBA_InterfaceDef_create_local_interface CORBA_Container_create_local_interface #define CORBA_InterfaceDef_create_ext_value CORBA_Container_create_ext_value #define CORBA_InterfaceDef__get_id CORBA_Contained__get_id #define CORBA_InterfaceDef__set_id CORBA_Contained__set_id #define CORBA_InterfaceDef__get_name CORBA_Contained__get_name #define CORBA_InterfaceDef__set_name CORBA_Contained__set_name #define CORBA_InterfaceDef__get_version CORBA_Contained__get_version #define CORBA_InterfaceDef__set_version CORBA_Contained__set_version #define CORBA_InterfaceDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_InterfaceDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_InterfaceDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_InterfaceDef_describe CORBA_Contained_describe #define CORBA_InterfaceDef_move CORBA_Contained_move #define CORBA_InterfaceDef__get_type CORBA_IDLType__get_type CORBA_InterfaceDefSeq* CORBA_InterfaceDef__get_base_interfaces(CORBA_InterfaceDef _obj, CORBA_Environment *ev); void CORBA_InterfaceDef__set_base_interfaces(CORBA_InterfaceDef _obj, const CORBA_InterfaceDefSeq* value, CORBA_Environment *ev); CORBA_boolean CORBA_InterfaceDef__get_is_abstract(CORBA_InterfaceDef _obj, CORBA_Environment *ev); void CORBA_InterfaceDef__set_is_abstract(CORBA_InterfaceDef _obj, const CORBA_boolean value, CORBA_Environment *ev); CORBA_boolean CORBA_InterfaceDef_is_a(CORBA_InterfaceDef _obj, const CORBA_char * interface_id, CORBA_Environment *ev); CORBA_InterfaceDef_FullInterfaceDescription* CORBA_InterfaceDef_describe_interface(CORBA_InterfaceDef _obj, CORBA_Environment *ev); CORBA_AttributeDef CORBA_InterfaceDef_create_attribute(CORBA_InterfaceDef _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_char * version, const CORBA_IDLType type, const CORBA_AttributeMode mode, CORBA_Environment *ev); CORBA_OperationDef CORBA_InterfaceDef_create_operation(CORBA_InterfaceDef _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_char * version, const CORBA_IDLType result, const CORBA_OperationMode mode, const CORBA_ParDescriptionSeq* params, const CORBA_ExceptionDefSeq* exceptions, const CORBA_ContextIdSeq* contexts, CORBA_Environment *ev); CORBA_InterfaceAttrExtension_ExtFullInterfaceDescription* CORBA_InterfaceAttrExtension_describe_ext_interface(CORBA_InterfaceAttrExtension _obj, CORBA_Environment *ev); CORBA_ExtAttributeDef CORBA_InterfaceAttrExtension_create_ext_attribute(CORBA_InterfaceAttrExtension _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_char * version, const CORBA_IDLType type, const CORBA_AttributeMode mode, const CORBA_ExceptionDefSeq* get_exceptions, const CORBA_ExceptionDefSeq* set_exceptions, CORBA_Environment *ev); #define CORBA_ExtInterfaceDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_ExtInterfaceDef_destroy CORBA_IRObject_destroy #define CORBA_ExtInterfaceDef_lookup CORBA_Container_lookup #define CORBA_ExtInterfaceDef_contents CORBA_Container_contents #define CORBA_ExtInterfaceDef_lookup_name CORBA_Container_lookup_name #define CORBA_ExtInterfaceDef_describe_contents CORBA_Container_describe_contents #define CORBA_ExtInterfaceDef_create_module CORBA_Container_create_module #define CORBA_ExtInterfaceDef_create_constant CORBA_Container_create_constant #define CORBA_ExtInterfaceDef_create_struct CORBA_Container_create_struct #define CORBA_ExtInterfaceDef_create_union CORBA_Container_create_union #define CORBA_ExtInterfaceDef_create_enum CORBA_Container_create_enum #define CORBA_ExtInterfaceDef_create_alias CORBA_Container_create_alias #define CORBA_ExtInterfaceDef_create_interface CORBA_Container_create_interface #define CORBA_ExtInterfaceDef_create_value CORBA_Container_create_value #define CORBA_ExtInterfaceDef_create_value_box CORBA_Container_create_value_box #define CORBA_ExtInterfaceDef_create_exception CORBA_Container_create_exception #define CORBA_ExtInterfaceDef_create_native CORBA_Container_create_native #define CORBA_ExtInterfaceDef_create_abstract_interface CORBA_Container_create_abstract_interface #define CORBA_ExtInterfaceDef_create_local_interface CORBA_Container_create_local_interface #define CORBA_ExtInterfaceDef_create_ext_value CORBA_Container_create_ext_value #define CORBA_ExtInterfaceDef__get_id CORBA_Contained__get_id #define CORBA_ExtInterfaceDef__set_id CORBA_Contained__set_id #define CORBA_ExtInterfaceDef__get_name CORBA_Contained__get_name #define CORBA_ExtInterfaceDef__set_name CORBA_Contained__set_name #define CORBA_ExtInterfaceDef__get_version CORBA_Contained__get_version #define CORBA_ExtInterfaceDef__set_version CORBA_Contained__set_version #define CORBA_ExtInterfaceDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_ExtInterfaceDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_ExtInterfaceDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_ExtInterfaceDef_describe CORBA_Contained_describe #define CORBA_ExtInterfaceDef_move CORBA_Contained_move #define CORBA_ExtInterfaceDef__get_type CORBA_IDLType__get_type #define CORBA_ExtInterfaceDef__get_base_interfaces CORBA_InterfaceDef__get_base_interfaces #define CORBA_ExtInterfaceDef__set_base_interfaces CORBA_InterfaceDef__set_base_interfaces #define CORBA_ExtInterfaceDef__get_is_abstract CORBA_InterfaceDef__get_is_abstract #define CORBA_ExtInterfaceDef__set_is_abstract CORBA_InterfaceDef__set_is_abstract #define CORBA_ExtInterfaceDef_is_a CORBA_InterfaceDef_is_a #define CORBA_ExtInterfaceDef_describe_interface CORBA_InterfaceDef_describe_interface #define CORBA_ExtInterfaceDef_create_attribute CORBA_InterfaceDef_create_attribute #define CORBA_ExtInterfaceDef_create_operation CORBA_InterfaceDef_create_operation #define CORBA_ExtInterfaceDef_describe_ext_interface CORBA_InterfaceAttrExtension_describe_ext_interface #define CORBA_ExtInterfaceDef_create_ext_attribute CORBA_InterfaceAttrExtension_create_ext_attribute #define CORBA_ValueMemberDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_ValueMemberDef_destroy CORBA_IRObject_destroy #define CORBA_ValueMemberDef__get_id CORBA_Contained__get_id #define CORBA_ValueMemberDef__set_id CORBA_Contained__set_id #define CORBA_ValueMemberDef__get_name CORBA_Contained__get_name #define CORBA_ValueMemberDef__set_name CORBA_Contained__set_name #define CORBA_ValueMemberDef__get_version CORBA_Contained__get_version #define CORBA_ValueMemberDef__set_version CORBA_Contained__set_version #define CORBA_ValueMemberDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_ValueMemberDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_ValueMemberDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_ValueMemberDef_describe CORBA_Contained_describe #define CORBA_ValueMemberDef_move CORBA_Contained_move CORBA_TypeCode CORBA_ValueMemberDef__get_type(CORBA_ValueMemberDef _obj, CORBA_Environment *ev); CORBA_IDLType CORBA_ValueMemberDef__get_type_def(CORBA_ValueMemberDef _obj, CORBA_Environment *ev); void CORBA_ValueMemberDef__set_type_def(CORBA_ValueMemberDef _obj, const CORBA_IDLType value, CORBA_Environment *ev); CORBA_Visibility CORBA_ValueMemberDef__get_access(CORBA_ValueMemberDef _obj, CORBA_Environment *ev); void CORBA_ValueMemberDef__set_access(CORBA_ValueMemberDef _obj, const CORBA_Visibility value, CORBA_Environment *ev); #define CORBA_ValueDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_ValueDef_destroy CORBA_IRObject_destroy #define CORBA_ValueDef_lookup CORBA_Container_lookup #define CORBA_ValueDef_contents CORBA_Container_contents #define CORBA_ValueDef_lookup_name CORBA_Container_lookup_name #define CORBA_ValueDef_describe_contents CORBA_Container_describe_contents #define CORBA_ValueDef_create_module CORBA_Container_create_module #define CORBA_ValueDef_create_constant CORBA_Container_create_constant #define CORBA_ValueDef_create_struct CORBA_Container_create_struct #define CORBA_ValueDef_create_union CORBA_Container_create_union #define CORBA_ValueDef_create_enum CORBA_Container_create_enum #define CORBA_ValueDef_create_alias CORBA_Container_create_alias #define CORBA_ValueDef_create_interface CORBA_Container_create_interface #define CORBA_ValueDef_create_value CORBA_Container_create_value #define CORBA_ValueDef_create_value_box CORBA_Container_create_value_box #define CORBA_ValueDef_create_exception CORBA_Container_create_exception #define CORBA_ValueDef_create_native CORBA_Container_create_native #define CORBA_ValueDef_create_abstract_interface CORBA_Container_create_abstract_interface #define CORBA_ValueDef_create_local_interface CORBA_Container_create_local_interface #define CORBA_ValueDef_create_ext_value CORBA_Container_create_ext_value #define CORBA_ValueDef__get_id CORBA_Contained__get_id #define CORBA_ValueDef__set_id CORBA_Contained__set_id #define CORBA_ValueDef__get_name CORBA_Contained__get_name #define CORBA_ValueDef__set_name CORBA_Contained__set_name #define CORBA_ValueDef__get_version CORBA_Contained__get_version #define CORBA_ValueDef__set_version CORBA_Contained__set_version #define CORBA_ValueDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_ValueDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_ValueDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_ValueDef_describe CORBA_Contained_describe #define CORBA_ValueDef_move CORBA_Contained_move #define CORBA_ValueDef__get_type CORBA_IDLType__get_type CORBA_InterfaceDefSeq* CORBA_ValueDef__get_supported_interfaces(CORBA_ValueDef _obj, CORBA_Environment *ev); void CORBA_ValueDef__set_supported_interfaces(CORBA_ValueDef _obj, const CORBA_InterfaceDefSeq* value, CORBA_Environment *ev); CORBA_InitializerSeq* CORBA_ValueDef__get_initializers(CORBA_ValueDef _obj, CORBA_Environment *ev); void CORBA_ValueDef__set_initializers(CORBA_ValueDef _obj, const CORBA_InitializerSeq* value, CORBA_Environment *ev); CORBA_ValueDef CORBA_ValueDef__get_base_value(CORBA_ValueDef _obj, CORBA_Environment *ev); void CORBA_ValueDef__set_base_value(CORBA_ValueDef _obj, const CORBA_ValueDef value, CORBA_Environment *ev); CORBA_ValueDefSeq* CORBA_ValueDef__get_abstract_base_values(CORBA_ValueDef _obj, CORBA_Environment *ev); void CORBA_ValueDef__set_abstract_base_values(CORBA_ValueDef _obj, const CORBA_ValueDefSeq* value, CORBA_Environment *ev); CORBA_boolean CORBA_ValueDef__get_is_abstract(CORBA_ValueDef _obj, CORBA_Environment *ev); void CORBA_ValueDef__set_is_abstract(CORBA_ValueDef _obj, const CORBA_boolean value, CORBA_Environment *ev); CORBA_boolean CORBA_ValueDef__get_is_custom(CORBA_ValueDef _obj, CORBA_Environment *ev); void CORBA_ValueDef__set_is_custom(CORBA_ValueDef _obj, const CORBA_boolean value, CORBA_Environment *ev); CORBA_boolean CORBA_ValueDef__get_is_truncatable(CORBA_ValueDef _obj, CORBA_Environment *ev); void CORBA_ValueDef__set_is_truncatable(CORBA_ValueDef _obj, const CORBA_boolean value, CORBA_Environment *ev); CORBA_boolean CORBA_ValueDef_is_a(CORBA_ValueDef _obj, const CORBA_char * id, CORBA_Environment *ev); CORBA_ValueDef_FullValueDescription* CORBA_ValueDef_describe_value(CORBA_ValueDef _obj, CORBA_Environment *ev); CORBA_ValueMemberDef CORBA_ValueDef_create_value_member(CORBA_ValueDef _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_char * version, const CORBA_IDLType type, const CORBA_Visibility access, CORBA_Environment *ev); CORBA_AttributeDef CORBA_ValueDef_create_attribute(CORBA_ValueDef _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_char * version, const CORBA_IDLType type, const CORBA_AttributeMode mode, CORBA_Environment *ev); CORBA_OperationDef CORBA_ValueDef_create_operation(CORBA_ValueDef _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_char * version, const CORBA_IDLType result, const CORBA_OperationMode mode, const CORBA_ParDescriptionSeq* params, const CORBA_ExceptionDefSeq* exceptions, const CORBA_ContextIdSeq* contexts, CORBA_Environment *ev); #define CORBA_ExtValueDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_ExtValueDef_destroy CORBA_IRObject_destroy #define CORBA_ExtValueDef_lookup CORBA_Container_lookup #define CORBA_ExtValueDef_contents CORBA_Container_contents #define CORBA_ExtValueDef_lookup_name CORBA_Container_lookup_name #define CORBA_ExtValueDef_describe_contents CORBA_Container_describe_contents #define CORBA_ExtValueDef_create_module CORBA_Container_create_module #define CORBA_ExtValueDef_create_constant CORBA_Container_create_constant #define CORBA_ExtValueDef_create_struct CORBA_Container_create_struct #define CORBA_ExtValueDef_create_union CORBA_Container_create_union #define CORBA_ExtValueDef_create_enum CORBA_Container_create_enum #define CORBA_ExtValueDef_create_alias CORBA_Container_create_alias #define CORBA_ExtValueDef_create_interface CORBA_Container_create_interface #define CORBA_ExtValueDef_create_value CORBA_Container_create_value #define CORBA_ExtValueDef_create_value_box CORBA_Container_create_value_box #define CORBA_ExtValueDef_create_exception CORBA_Container_create_exception #define CORBA_ExtValueDef_create_native CORBA_Container_create_native #define CORBA_ExtValueDef_create_abstract_interface CORBA_Container_create_abstract_interface #define CORBA_ExtValueDef_create_local_interface CORBA_Container_create_local_interface #define CORBA_ExtValueDef_create_ext_value CORBA_Container_create_ext_value #define CORBA_ExtValueDef__get_id CORBA_Contained__get_id #define CORBA_ExtValueDef__set_id CORBA_Contained__set_id #define CORBA_ExtValueDef__get_name CORBA_Contained__get_name #define CORBA_ExtValueDef__set_name CORBA_Contained__set_name #define CORBA_ExtValueDef__get_version CORBA_Contained__get_version #define CORBA_ExtValueDef__set_version CORBA_Contained__set_version #define CORBA_ExtValueDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_ExtValueDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_ExtValueDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_ExtValueDef_describe CORBA_Contained_describe #define CORBA_ExtValueDef_move CORBA_Contained_move #define CORBA_ExtValueDef__get_type CORBA_IDLType__get_type #define CORBA_ExtValueDef__get_supported_interfaces CORBA_ValueDef__get_supported_interfaces #define CORBA_ExtValueDef__set_supported_interfaces CORBA_ValueDef__set_supported_interfaces #define CORBA_ExtValueDef__get_initializers CORBA_ValueDef__get_initializers #define CORBA_ExtValueDef__set_initializers CORBA_ValueDef__set_initializers #define CORBA_ExtValueDef__get_base_value CORBA_ValueDef__get_base_value #define CORBA_ExtValueDef__set_base_value CORBA_ValueDef__set_base_value #define CORBA_ExtValueDef__get_abstract_base_values CORBA_ValueDef__get_abstract_base_values #define CORBA_ExtValueDef__set_abstract_base_values CORBA_ValueDef__set_abstract_base_values #define CORBA_ExtValueDef__get_is_abstract CORBA_ValueDef__get_is_abstract #define CORBA_ExtValueDef__set_is_abstract CORBA_ValueDef__set_is_abstract #define CORBA_ExtValueDef__get_is_custom CORBA_ValueDef__get_is_custom #define CORBA_ExtValueDef__set_is_custom CORBA_ValueDef__set_is_custom #define CORBA_ExtValueDef__get_is_truncatable CORBA_ValueDef__get_is_truncatable #define CORBA_ExtValueDef__set_is_truncatable CORBA_ValueDef__set_is_truncatable #define CORBA_ExtValueDef_is_a CORBA_ValueDef_is_a #define CORBA_ExtValueDef_describe_value CORBA_ValueDef_describe_value #define CORBA_ExtValueDef_create_value_member CORBA_ValueDef_create_value_member #define CORBA_ExtValueDef_create_attribute CORBA_ValueDef_create_attribute #define CORBA_ExtValueDef_create_operation CORBA_ValueDef_create_operation CORBA_ExtInitializerSeq* CORBA_ExtValueDef__get_ext_initializers(CORBA_ExtValueDef _obj, CORBA_Environment *ev); void CORBA_ExtValueDef__set_ext_initializers(CORBA_ExtValueDef _obj, const CORBA_ExtInitializerSeq* value, CORBA_Environment *ev); CORBA_ExtValueDef_ExtFullValueDescription* CORBA_ExtValueDef_describe_ext_value(CORBA_ExtValueDef _obj, CORBA_Environment *ev); CORBA_ExtAttributeDef CORBA_ExtValueDef_create_ext_attribute(CORBA_ExtValueDef _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_char * version, const CORBA_IDLType type, const CORBA_AttributeMode mode, const CORBA_ExceptionDefSeq* get_exceptions, const CORBA_ExceptionDefSeq* set_exceptions, CORBA_Environment *ev); #define CORBA_ValueBoxDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_ValueBoxDef_destroy CORBA_IRObject_destroy #define CORBA_ValueBoxDef__get_id CORBA_Contained__get_id #define CORBA_ValueBoxDef__set_id CORBA_Contained__set_id #define CORBA_ValueBoxDef__get_name CORBA_Contained__get_name #define CORBA_ValueBoxDef__set_name CORBA_Contained__set_name #define CORBA_ValueBoxDef__get_version CORBA_Contained__get_version #define CORBA_ValueBoxDef__set_version CORBA_Contained__set_version #define CORBA_ValueBoxDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_ValueBoxDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_ValueBoxDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_ValueBoxDef_describe CORBA_Contained_describe #define CORBA_ValueBoxDef_move CORBA_Contained_move #define CORBA_ValueBoxDef__get_type CORBA_IDLType__get_type CORBA_IDLType CORBA_ValueBoxDef__get_original_type_def(CORBA_ValueBoxDef _obj, CORBA_Environment *ev); void CORBA_ValueBoxDef__set_original_type_def(CORBA_ValueBoxDef _obj, const CORBA_IDLType value, CORBA_Environment *ev); #define CORBA_AbstractInterfaceDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_AbstractInterfaceDef_destroy CORBA_IRObject_destroy #define CORBA_AbstractInterfaceDef_lookup CORBA_Container_lookup #define CORBA_AbstractInterfaceDef_contents CORBA_Container_contents #define CORBA_AbstractInterfaceDef_lookup_name CORBA_Container_lookup_name #define CORBA_AbstractInterfaceDef_describe_contents CORBA_Container_describe_contents #define CORBA_AbstractInterfaceDef_create_module CORBA_Container_create_module #define CORBA_AbstractInterfaceDef_create_constant CORBA_Container_create_constant #define CORBA_AbstractInterfaceDef_create_struct CORBA_Container_create_struct #define CORBA_AbstractInterfaceDef_create_union CORBA_Container_create_union #define CORBA_AbstractInterfaceDef_create_enum CORBA_Container_create_enum #define CORBA_AbstractInterfaceDef_create_alias CORBA_Container_create_alias #define CORBA_AbstractInterfaceDef_create_interface CORBA_Container_create_interface #define CORBA_AbstractInterfaceDef_create_value CORBA_Container_create_value #define CORBA_AbstractInterfaceDef_create_value_box CORBA_Container_create_value_box #define CORBA_AbstractInterfaceDef_create_exception CORBA_Container_create_exception #define CORBA_AbstractInterfaceDef_create_native CORBA_Container_create_native #define CORBA_AbstractInterfaceDef_create_abstract_interface CORBA_Container_create_abstract_interface #define CORBA_AbstractInterfaceDef_create_local_interface CORBA_Container_create_local_interface #define CORBA_AbstractInterfaceDef_create_ext_value CORBA_Container_create_ext_value #define CORBA_AbstractInterfaceDef__get_id CORBA_Contained__get_id #define CORBA_AbstractInterfaceDef__set_id CORBA_Contained__set_id #define CORBA_AbstractInterfaceDef__get_name CORBA_Contained__get_name #define CORBA_AbstractInterfaceDef__set_name CORBA_Contained__set_name #define CORBA_AbstractInterfaceDef__get_version CORBA_Contained__get_version #define CORBA_AbstractInterfaceDef__set_version CORBA_Contained__set_version #define CORBA_AbstractInterfaceDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_AbstractInterfaceDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_AbstractInterfaceDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_AbstractInterfaceDef_describe CORBA_Contained_describe #define CORBA_AbstractInterfaceDef_move CORBA_Contained_move #define CORBA_AbstractInterfaceDef__get_type CORBA_IDLType__get_type #define CORBA_AbstractInterfaceDef__get_base_interfaces CORBA_InterfaceDef__get_base_interfaces #define CORBA_AbstractInterfaceDef__set_base_interfaces CORBA_InterfaceDef__set_base_interfaces #define CORBA_AbstractInterfaceDef__get_is_abstract CORBA_InterfaceDef__get_is_abstract #define CORBA_AbstractInterfaceDef__set_is_abstract CORBA_InterfaceDef__set_is_abstract #define CORBA_AbstractInterfaceDef_is_a CORBA_InterfaceDef_is_a #define CORBA_AbstractInterfaceDef_describe_interface CORBA_InterfaceDef_describe_interface #define CORBA_AbstractInterfaceDef_create_attribute CORBA_InterfaceDef_create_attribute #define CORBA_AbstractInterfaceDef_create_operation CORBA_InterfaceDef_create_operation #define CORBA_ExtAbstractInterfaceDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_ExtAbstractInterfaceDef_destroy CORBA_IRObject_destroy #define CORBA_ExtAbstractInterfaceDef_lookup CORBA_Container_lookup #define CORBA_ExtAbstractInterfaceDef_contents CORBA_Container_contents #define CORBA_ExtAbstractInterfaceDef_lookup_name CORBA_Container_lookup_name #define CORBA_ExtAbstractInterfaceDef_describe_contents CORBA_Container_describe_contents #define CORBA_ExtAbstractInterfaceDef_create_module CORBA_Container_create_module #define CORBA_ExtAbstractInterfaceDef_create_constant CORBA_Container_create_constant #define CORBA_ExtAbstractInterfaceDef_create_struct CORBA_Container_create_struct #define CORBA_ExtAbstractInterfaceDef_create_union CORBA_Container_create_union #define CORBA_ExtAbstractInterfaceDef_create_enum CORBA_Container_create_enum #define CORBA_ExtAbstractInterfaceDef_create_alias CORBA_Container_create_alias #define CORBA_ExtAbstractInterfaceDef_create_interface CORBA_Container_create_interface #define CORBA_ExtAbstractInterfaceDef_create_value CORBA_Container_create_value #define CORBA_ExtAbstractInterfaceDef_create_value_box CORBA_Container_create_value_box #define CORBA_ExtAbstractInterfaceDef_create_exception CORBA_Container_create_exception #define CORBA_ExtAbstractInterfaceDef_create_native CORBA_Container_create_native #define CORBA_ExtAbstractInterfaceDef_create_abstract_interface CORBA_Container_create_abstract_interface #define CORBA_ExtAbstractInterfaceDef_create_local_interface CORBA_Container_create_local_interface #define CORBA_ExtAbstractInterfaceDef_create_ext_value CORBA_Container_create_ext_value #define CORBA_ExtAbstractInterfaceDef__get_id CORBA_Contained__get_id #define CORBA_ExtAbstractInterfaceDef__set_id CORBA_Contained__set_id #define CORBA_ExtAbstractInterfaceDef__get_name CORBA_Contained__get_name #define CORBA_ExtAbstractInterfaceDef__set_name CORBA_Contained__set_name #define CORBA_ExtAbstractInterfaceDef__get_version CORBA_Contained__get_version #define CORBA_ExtAbstractInterfaceDef__set_version CORBA_Contained__set_version #define CORBA_ExtAbstractInterfaceDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_ExtAbstractInterfaceDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_ExtAbstractInterfaceDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_ExtAbstractInterfaceDef_describe CORBA_Contained_describe #define CORBA_ExtAbstractInterfaceDef_move CORBA_Contained_move #define CORBA_ExtAbstractInterfaceDef__get_type CORBA_IDLType__get_type #define CORBA_ExtAbstractInterfaceDef__get_base_interfaces CORBA_InterfaceDef__get_base_interfaces #define CORBA_ExtAbstractInterfaceDef__set_base_interfaces CORBA_InterfaceDef__set_base_interfaces #define CORBA_ExtAbstractInterfaceDef__get_is_abstract CORBA_InterfaceDef__get_is_abstract #define CORBA_ExtAbstractInterfaceDef__set_is_abstract CORBA_InterfaceDef__set_is_abstract #define CORBA_ExtAbstractInterfaceDef_is_a CORBA_InterfaceDef_is_a #define CORBA_ExtAbstractInterfaceDef_describe_interface CORBA_InterfaceDef_describe_interface #define CORBA_ExtAbstractInterfaceDef_create_attribute CORBA_InterfaceDef_create_attribute #define CORBA_ExtAbstractInterfaceDef_create_operation CORBA_InterfaceDef_create_operation #define CORBA_ExtAbstractInterfaceDef_describe_ext_interface CORBA_InterfaceAttrExtension_describe_ext_interface #define CORBA_ExtAbstractInterfaceDef_create_ext_attribute CORBA_InterfaceAttrExtension_create_ext_attribute #define CORBA_LocalInterfaceDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_LocalInterfaceDef_destroy CORBA_IRObject_destroy #define CORBA_LocalInterfaceDef_lookup CORBA_Container_lookup #define CORBA_LocalInterfaceDef_contents CORBA_Container_contents #define CORBA_LocalInterfaceDef_lookup_name CORBA_Container_lookup_name #define CORBA_LocalInterfaceDef_describe_contents CORBA_Container_describe_contents #define CORBA_LocalInterfaceDef_create_module CORBA_Container_create_module #define CORBA_LocalInterfaceDef_create_constant CORBA_Container_create_constant #define CORBA_LocalInterfaceDef_create_struct CORBA_Container_create_struct #define CORBA_LocalInterfaceDef_create_union CORBA_Container_create_union #define CORBA_LocalInterfaceDef_create_enum CORBA_Container_create_enum #define CORBA_LocalInterfaceDef_create_alias CORBA_Container_create_alias #define CORBA_LocalInterfaceDef_create_interface CORBA_Container_create_interface #define CORBA_LocalInterfaceDef_create_value CORBA_Container_create_value #define CORBA_LocalInterfaceDef_create_value_box CORBA_Container_create_value_box #define CORBA_LocalInterfaceDef_create_exception CORBA_Container_create_exception #define CORBA_LocalInterfaceDef_create_native CORBA_Container_create_native #define CORBA_LocalInterfaceDef_create_abstract_interface CORBA_Container_create_abstract_interface #define CORBA_LocalInterfaceDef_create_local_interface CORBA_Container_create_local_interface #define CORBA_LocalInterfaceDef_create_ext_value CORBA_Container_create_ext_value #define CORBA_LocalInterfaceDef__get_id CORBA_Contained__get_id #define CORBA_LocalInterfaceDef__set_id CORBA_Contained__set_id #define CORBA_LocalInterfaceDef__get_name CORBA_Contained__get_name #define CORBA_LocalInterfaceDef__set_name CORBA_Contained__set_name #define CORBA_LocalInterfaceDef__get_version CORBA_Contained__get_version #define CORBA_LocalInterfaceDef__set_version CORBA_Contained__set_version #define CORBA_LocalInterfaceDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_LocalInterfaceDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_LocalInterfaceDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_LocalInterfaceDef_describe CORBA_Contained_describe #define CORBA_LocalInterfaceDef_move CORBA_Contained_move #define CORBA_LocalInterfaceDef__get_type CORBA_IDLType__get_type #define CORBA_LocalInterfaceDef__get_base_interfaces CORBA_InterfaceDef__get_base_interfaces #define CORBA_LocalInterfaceDef__set_base_interfaces CORBA_InterfaceDef__set_base_interfaces #define CORBA_LocalInterfaceDef__get_is_abstract CORBA_InterfaceDef__get_is_abstract #define CORBA_LocalInterfaceDef__set_is_abstract CORBA_InterfaceDef__set_is_abstract #define CORBA_LocalInterfaceDef_is_a CORBA_InterfaceDef_is_a #define CORBA_LocalInterfaceDef_describe_interface CORBA_InterfaceDef_describe_interface #define CORBA_LocalInterfaceDef_create_attribute CORBA_InterfaceDef_create_attribute #define CORBA_LocalInterfaceDef_create_operation CORBA_InterfaceDef_create_operation #define CORBA_ExtLocalInterfaceDef__get_def_kind CORBA_IRObject__get_def_kind #define CORBA_ExtLocalInterfaceDef_destroy CORBA_IRObject_destroy #define CORBA_ExtLocalInterfaceDef_lookup CORBA_Container_lookup #define CORBA_ExtLocalInterfaceDef_contents CORBA_Container_contents #define CORBA_ExtLocalInterfaceDef_lookup_name CORBA_Container_lookup_name #define CORBA_ExtLocalInterfaceDef_describe_contents CORBA_Container_describe_contents #define CORBA_ExtLocalInterfaceDef_create_module CORBA_Container_create_module #define CORBA_ExtLocalInterfaceDef_create_constant CORBA_Container_create_constant #define CORBA_ExtLocalInterfaceDef_create_struct CORBA_Container_create_struct #define CORBA_ExtLocalInterfaceDef_create_union CORBA_Container_create_union #define CORBA_ExtLocalInterfaceDef_create_enum CORBA_Container_create_enum #define CORBA_ExtLocalInterfaceDef_create_alias CORBA_Container_create_alias #define CORBA_ExtLocalInterfaceDef_create_interface CORBA_Container_create_interface #define CORBA_ExtLocalInterfaceDef_create_value CORBA_Container_create_value #define CORBA_ExtLocalInterfaceDef_create_value_box CORBA_Container_create_value_box #define CORBA_ExtLocalInterfaceDef_create_exception CORBA_Container_create_exception #define CORBA_ExtLocalInterfaceDef_create_native CORBA_Container_create_native #define CORBA_ExtLocalInterfaceDef_create_abstract_interface CORBA_Container_create_abstract_interface #define CORBA_ExtLocalInterfaceDef_create_local_interface CORBA_Container_create_local_interface #define CORBA_ExtLocalInterfaceDef_create_ext_value CORBA_Container_create_ext_value #define CORBA_ExtLocalInterfaceDef__get_id CORBA_Contained__get_id #define CORBA_ExtLocalInterfaceDef__set_id CORBA_Contained__set_id #define CORBA_ExtLocalInterfaceDef__get_name CORBA_Contained__get_name #define CORBA_ExtLocalInterfaceDef__set_name CORBA_Contained__set_name #define CORBA_ExtLocalInterfaceDef__get_version CORBA_Contained__get_version #define CORBA_ExtLocalInterfaceDef__set_version CORBA_Contained__set_version #define CORBA_ExtLocalInterfaceDef__get_defined_in CORBA_Contained__get_defined_in #define CORBA_ExtLocalInterfaceDef__get_absolute_name CORBA_Contained__get_absolute_name #define CORBA_ExtLocalInterfaceDef__get_containing_repository CORBA_Contained__get_containing_repository #define CORBA_ExtLocalInterfaceDef_describe CORBA_Contained_describe #define CORBA_ExtLocalInterfaceDef_move CORBA_Contained_move #define CORBA_ExtLocalInterfaceDef__get_type CORBA_IDLType__get_type #define CORBA_ExtLocalInterfaceDef__get_base_interfaces CORBA_InterfaceDef__get_base_interfaces #define CORBA_ExtLocalInterfaceDef__set_base_interfaces CORBA_InterfaceDef__set_base_interfaces #define CORBA_ExtLocalInterfaceDef__get_is_abstract CORBA_InterfaceDef__get_is_abstract #define CORBA_ExtLocalInterfaceDef__set_is_abstract CORBA_InterfaceDef__set_is_abstract #define CORBA_ExtLocalInterfaceDef_is_a CORBA_InterfaceDef_is_a #define CORBA_ExtLocalInterfaceDef_describe_interface CORBA_InterfaceDef_describe_interface #define CORBA_ExtLocalInterfaceDef_create_attribute CORBA_InterfaceDef_create_attribute #define CORBA_ExtLocalInterfaceDef_create_operation CORBA_InterfaceDef_create_operation #define CORBA_ExtLocalInterfaceDef_describe_ext_interface CORBA_InterfaceAttrExtension_describe_ext_interface #define CORBA_ExtLocalInterfaceDef_create_ext_attribute CORBA_InterfaceAttrExtension_create_ext_attribute CORBA_boolean CORBA_TypeCode_equal(CORBA_TypeCode _obj, const CORBA_TypeCode tc, CORBA_Environment *ev); CORBA_boolean CORBA_TypeCode_equivalent(CORBA_TypeCode _obj, const CORBA_TypeCode tc, CORBA_Environment *ev); CORBA_TypeCode CORBA_TypeCode_get_compact_typecode(CORBA_TypeCode _obj, CORBA_Environment *ev); CORBA_TCKind CORBA_TypeCode_kind(CORBA_TypeCode _obj, CORBA_Environment *ev); CORBA_RepositoryId CORBA_TypeCode_id(CORBA_TypeCode _obj, CORBA_Environment *ev); CORBA_Identifier CORBA_TypeCode_name(CORBA_TypeCode _obj, CORBA_Environment *ev); CORBA_unsigned_long CORBA_TypeCode_member_count(CORBA_TypeCode _obj, CORBA_Environment *ev); CORBA_Identifier CORBA_TypeCode_member_name(CORBA_TypeCode _obj, const CORBA_unsigned_long index, CORBA_Environment *ev); CORBA_TypeCode CORBA_TypeCode_member_type(CORBA_TypeCode _obj, const CORBA_unsigned_long index, CORBA_Environment *ev); CORBA_any* CORBA_TypeCode_member_label(CORBA_TypeCode _obj, const CORBA_unsigned_long index, CORBA_Environment *ev); CORBA_TypeCode CORBA_TypeCode_discriminator_type(CORBA_TypeCode _obj, CORBA_Environment *ev); CORBA_long CORBA_TypeCode_default_index(CORBA_TypeCode _obj, CORBA_Environment *ev); CORBA_unsigned_long CORBA_TypeCode_length(CORBA_TypeCode _obj, CORBA_Environment *ev); CORBA_TypeCode CORBA_TypeCode_content_type(CORBA_TypeCode _obj, CORBA_Environment *ev); CORBA_unsigned_short CORBA_TypeCode_fixed_digits(CORBA_TypeCode _obj, CORBA_Environment *ev); CORBA_short CORBA_TypeCode_fixed_scale(CORBA_TypeCode _obj, CORBA_Environment *ev); CORBA_Visibility CORBA_TypeCode_member_visibility(CORBA_TypeCode _obj, const CORBA_unsigned_long index, CORBA_Environment *ev); CORBA_ValueModifier CORBA_TypeCode_type_modifier(CORBA_TypeCode _obj, CORBA_Environment *ev); CORBA_TypeCode CORBA_TypeCode_concrete_base_type(CORBA_TypeCode _obj, CORBA_Environment *ev); CORBA_InterfaceDef CORBA_Object_get_interface(CORBA_Object _obj, CORBA_Environment *ev); CORBA_boolean CORBA_Object_is_nil(CORBA_Object _obj, CORBA_Environment *ev); CORBA_Object CORBA_Object_duplicate(CORBA_Object _obj, CORBA_Environment *ev); void CORBA_Object_release(CORBA_Object _obj, CORBA_Environment *ev); CORBA_boolean CORBA_Object_is_a(CORBA_Object _obj, const CORBA_char * logical_type_id, CORBA_Environment *ev); CORBA_boolean CORBA_Object_non_existent(CORBA_Object _obj, CORBA_Environment *ev); CORBA_boolean CORBA_Object_is_equivalent(CORBA_Object _obj, const CORBA_Object other_object, CORBA_Environment *ev); CORBA_unsigned_long CORBA_Object_hash(CORBA_Object _obj, const CORBA_unsigned_long maximum, CORBA_Environment *ev); void CORBA_Object_create_request(CORBA_Object _obj, const CORBA_Context ctx, const CORBA_char * operation, const CORBA_NVList arg_list, CORBA_NamedValue* result, CORBA_Request* request, const CORBA_Flags req_flag, CORBA_Environment *ev); CORBA_Policy CORBA_Object_get_policy(CORBA_Object _obj, const CORBA_PolicyType policy_type, CORBA_Environment *ev); CORBA_DomainManagersList* CORBA_Object_get_domain_managers(CORBA_Object _obj, CORBA_Environment *ev); CORBA_Object CORBA_Object_set_policy_overrides(CORBA_Object _obj, const CORBA_PolicyList* policies, const CORBA_SetOverrideType set_add, CORBA_Environment *ev); CORBA_Policy CORBA_Object_get_client_policy(CORBA_Object _obj, const CORBA_PolicyType type, CORBA_Environment *ev); CORBA_PolicyList* CORBA_Object_get_policy_overrides(CORBA_Object _obj, const CORBA_PolicyTypeSeq* types, CORBA_Environment *ev); CORBA_boolean CORBA_Object_validate_connection(CORBA_Object _obj, CORBA_PolicyList** inconsistent_policies, CORBA_Environment *ev); CORBA_Object CORBA_Object_get_component(CORBA_Object _obj, CORBA_Environment *ev); CORBA_ORBid CORBA_ORB_id(CORBA_ORB _obj, CORBA_Environment *ev); CORBA_string CORBA_ORB_object_to_string(CORBA_ORB _obj, const CORBA_Object obj, CORBA_Environment *ev); CORBA_Object CORBA_ORB_string_to_object(CORBA_ORB _obj, const CORBA_char * str, CORBA_Environment *ev); void CORBA_ORB_create_list(CORBA_ORB _obj, const CORBA_long count, CORBA_NVList* new_list, CORBA_Environment *ev); void CORBA_ORB_create_operation_list(CORBA_ORB _obj, const CORBA_OperationDef oper, CORBA_NVList* new_list, CORBA_Environment *ev); void CORBA_ORB_get_default_context(CORBA_ORB _obj, CORBA_Context* ctx, CORBA_Environment *ev); void CORBA_ORB_send_multiple_requests_oneway(CORBA_ORB _obj, const CORBA_RequestSeq* req, CORBA_Environment *ev); void CORBA_ORB_send_multiple_requests_deferred(CORBA_ORB _obj, const CORBA_RequestSeq* req, CORBA_Environment *ev); CORBA_boolean CORBA_ORB_poll_next_response(CORBA_ORB _obj, CORBA_Environment *ev); void CORBA_ORB_get_next_response(CORBA_ORB _obj, CORBA_Request* req, CORBA_Environment *ev); CORBA_boolean CORBA_ORB_get_service_information(CORBA_ORB _obj, const CORBA_ServiceType service_type, CORBA_ServiceInformation** service_information, CORBA_Environment *ev); CORBA_ORB_ObjectIdList* CORBA_ORB_list_initial_services(CORBA_ORB _obj, CORBA_Environment *ev); CORBA_Object CORBA_ORB_resolve_initial_references(CORBA_ORB _obj, const CORBA_char * identifier, CORBA_Environment *ev); CORBA_TypeCode CORBA_ORB_create_struct_tc(CORBA_ORB _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_StructMemberSeq* members, CORBA_Environment *ev); CORBA_TypeCode CORBA_ORB_create_union_tc(CORBA_ORB _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_TypeCode discriminator_type, const CORBA_UnionMemberSeq* members, CORBA_Environment *ev); CORBA_TypeCode CORBA_ORB_create_enum_tc(CORBA_ORB _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_EnumMemberSeq* members, CORBA_Environment *ev); CORBA_TypeCode CORBA_ORB_create_alias_tc(CORBA_ORB _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_TypeCode original_type, CORBA_Environment *ev); CORBA_TypeCode CORBA_ORB_create_exception_tc(CORBA_ORB _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_StructMemberSeq* members, CORBA_Environment *ev); CORBA_TypeCode CORBA_ORB_create_interface_tc(CORBA_ORB _obj, const CORBA_char * id, const CORBA_char * name, CORBA_Environment *ev); CORBA_TypeCode CORBA_ORB_create_string_tc(CORBA_ORB _obj, const CORBA_unsigned_long bound, CORBA_Environment *ev); CORBA_TypeCode CORBA_ORB_create_wstring_tc(CORBA_ORB _obj, const CORBA_unsigned_long bound, CORBA_Environment *ev); CORBA_TypeCode CORBA_ORB_create_fixed_tc(CORBA_ORB _obj, const CORBA_unsigned_short digits, const CORBA_short scale, CORBA_Environment *ev); CORBA_TypeCode CORBA_ORB_create_sequence_tc(CORBA_ORB _obj, const CORBA_unsigned_long bound, const CORBA_TypeCode element_type, CORBA_Environment *ev); CORBA_TypeCode CORBA_ORB_create_recursive_sequence_tc(CORBA_ORB _obj, const CORBA_unsigned_long bound, const CORBA_unsigned_long offset, CORBA_Environment *ev); CORBA_TypeCode CORBA_ORB_create_array_tc(CORBA_ORB _obj, const CORBA_unsigned_long length, const CORBA_TypeCode element_type, CORBA_Environment *ev); CORBA_TypeCode CORBA_ORB_create_value_tc(CORBA_ORB _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_ValueModifier type_modifier, const CORBA_TypeCode concrete_base, const CORBA_ValueMemberSeq* members, CORBA_Environment *ev); CORBA_TypeCode CORBA_ORB_create_value_box_tc(CORBA_ORB _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_TypeCode boxed_type, CORBA_Environment *ev); CORBA_TypeCode CORBA_ORB_create_native_tc(CORBA_ORB _obj, const CORBA_char * id, const CORBA_char * name, CORBA_Environment *ev); CORBA_TypeCode CORBA_ORB_create_recursive_tc(CORBA_ORB _obj, const CORBA_char * id, CORBA_Environment *ev); CORBA_TypeCode CORBA_ORB_create_abstract_interface_tc(CORBA_ORB _obj, const CORBA_char * id, const CORBA_char * name, CORBA_Environment *ev); CORBA_TypeCode CORBA_ORB_create_local_interface_tc(CORBA_ORB _obj, const CORBA_char * id, const CORBA_char * name, CORBA_Environment *ev); CORBA_TypeCode CORBA_ORB_create_component_tc(CORBA_ORB _obj, const CORBA_char * id, const CORBA_char * name, CORBA_Environment *ev); CORBA_TypeCode CORBA_ORB_create_home_tc(CORBA_ORB _obj, const CORBA_char * id, const CORBA_char * name, CORBA_Environment *ev); CORBA_TypeCode CORBA_ORB_create_event_tc(CORBA_ORB _obj, const CORBA_char * id, const CORBA_char * name, const CORBA_ValueModifier type_modifier, const CORBA_TypeCode concrete_base, const CORBA_ValueMemberSeq* members, CORBA_Environment *ev); CORBA_boolean CORBA_ORB_work_pending(CORBA_ORB _obj, CORBA_Environment *ev); void CORBA_ORB_perform_work(CORBA_ORB _obj, CORBA_Environment *ev); void CORBA_ORB_run(CORBA_ORB _obj, CORBA_Environment *ev); void CORBA_ORB_shutdown(CORBA_ORB _obj, const CORBA_boolean wait_for_completion, CORBA_Environment *ev); void CORBA_ORB_destroy(CORBA_ORB _obj, CORBA_Environment *ev); CORBA_Policy CORBA_ORB_create_policy(CORBA_ORB _obj, const CORBA_PolicyType type, const CORBA_any* val, CORBA_Environment *ev); CORBA_ValueFactory CORBA_ORB_register_value_factory(CORBA_ORB _obj, const CORBA_char * id, const CORBA_ValueFactory factory, CORBA_Environment *ev); void CORBA_ORB_unregister_value_factory(CORBA_ORB _obj, const CORBA_char * id, CORBA_Environment *ev); CORBA_ValueFactory CORBA_ORB_lookup_value_factory(CORBA_ORB _obj, const CORBA_char * id, CORBA_Environment *ev); void CORBA_ORB_register_initial_reference(CORBA_ORB _obj, const CORBA_char * id, const CORBA_Object obj, CORBA_Environment *ev); void CORBA_Request_add_arg(CORBA_Request _obj, const CORBA_char * name, const CORBA_TypeCode arg_type, const CORBA_OpaqueValue value, const CORBA_long len, const CORBA_Flags arg_flags, CORBA_Environment *ev); void CORBA_Request_invoke(CORBA_Request _obj, const CORBA_Flags invoke_flags, CORBA_Environment *ev); void CORBA_Request_delete(CORBA_Request _obj, CORBA_Environment *ev); void CORBA_Request_send(CORBA_Request _obj, const CORBA_Flags invoke_flags, CORBA_Environment *ev); void CORBA_Request_get_response(CORBA_Request _obj, CORBA_Environment *ev); CORBA_boolean CORBA_Request_poll_response(CORBA_Request _obj, CORBA_Environment *ev); CORBA_Object CORBA_Request_sendp(CORBA_Request _obj, CORBA_Environment *ev); void CORBA_Request_prepare(CORBA_Request _obj, const CORBA_Object p, CORBA_Environment *ev); void CORBA_Request_sendc(CORBA_Request _obj, const CORBA_Object handler, CORBA_Environment *ev); void CORBA_Context_set_one_value(CORBA_Context _obj, const CORBA_char * prop_name, const CORBA_char * value, CORBA_Environment *ev); void CORBA_Context_set_values(CORBA_Context _obj, const CORBA_NVList values, CORBA_Environment *ev); void CORBA_Context_get_values(CORBA_Context _obj, const CORBA_char * start_scope, const CORBA_Flags op_flags, const CORBA_char * prop_name, CORBA_NVList* values, CORBA_Environment *ev); void CORBA_Context_delete_values(CORBA_Context _obj, const CORBA_char * prop_name, CORBA_Environment *ev); void CORBA_Context_create_child(CORBA_Context _obj, const CORBA_char * ctx_name, CORBA_Context* child_ctx, CORBA_Environment *ev); void CORBA_Context_delete(CORBA_Context _obj, const CORBA_Flags del_flags, CORBA_Environment *ev); void CORBA_NVList_add_item(CORBA_NVList _obj, const CORBA_char * item_name, const CORBA_TypeCode item_type, const CORBA_OpaqueValue value, const CORBA_long value_len, const CORBA_Flags item_flags, CORBA_Environment *ev); void CORBA_NVList_free(CORBA_NVList _obj, CORBA_Environment *ev); void CORBA_NVList_free_memory(CORBA_NVList _obj, CORBA_Environment *ev); void CORBA_NVList_get_count(CORBA_NVList _obj, CORBA_long* count, CORBA_Environment *ev); CORBA_Identifier CORBA_ServerRequest__get_operation(CORBA_ServerRequest _obj, CORBA_Environment *ev); void CORBA_ServerRequest_arguments(CORBA_ServerRequest _obj, CORBA_NVList* nv, CORBA_Environment *ev); CORBA_Context CORBA_ServerRequest_ctx(CORBA_ServerRequest _obj, CORBA_Environment *ev); void CORBA_ServerRequest_set_result(CORBA_ServerRequest _obj, const CORBA_any* val, CORBA_Environment *ev); void CORBA_ServerRequest_set_exception(CORBA_ServerRequest _obj, const CORBA_any* val, CORBA_Environment *ev); #ifndef __ORBIT_IMETHODS_INDEX #define __ORBIT_IMETHODS_INDEX #define ORBIT_IMETHODS_INDEX(m) (m ## __imethods_index) #endif /* __ORBIT_IMETHODS_INDEX */ #ifdef __cplusplus } #endif /* __cplusplus */ #ifndef EXCLUDE_ORBIT_H #include #endif /* EXCLUDE_ORBIT_H */ #endif #undef ORBIT_IDL_SERIAL ORBit2-2.14.19/include/orbit/orb-core/corba-any-type.h0000644000175000001440000000035211334247617017133 00000000000000#ifndef CORBA_ANY_TYPE_H #define CORBA_ANY_TYPE_H 1 #include G_BEGIN_DECLS struct CORBA_any_struct { CORBA_TypeCode _type; gpointer _value; CORBA_boolean _release; }; G_END_DECLS #endif ORBit2-2.14.19/include/orbit/orb-core/corba-environment-type.h0000644000175000001440000000070311334247617020710 00000000000000#ifndef CORBA_ENVIRONMENT_TYPE_H #define CORBA_ENVIRONMENT_TYPE_H 1 #include #include G_BEGIN_DECLS #if !defined(_CORBA_Environment_defined) #define _CORBA_Environment_defined 1 typedef struct CORBA_Environment_type CORBA_Environment; #endif struct CORBA_Environment_type { CORBA_char *_id; CORBA_unsigned_long _major; CORBA_any _any; }; G_END_DECLS #endif ORBit2-2.14.19/include/orbit/orb-core/orbit-interface.h0000644000175000001440000010150611450333751017353 00000000000000/* * This file was generated by orbit-idl-2 - DO NOT EDIT! */ #ifndef orbit_interface_H #define orbit_interface_H 1 #include #define ORBIT_IDL_SERIAL 20 #include #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /** typedefs **/ #if !defined(_ORBit_IArgFlag_defined) #define _ORBit_IArgFlag_defined 1 typedef CORBA_long ORBit_IArgFlag; #define ORBit_IArgFlag_marshal(x,y,z) CORBA_long_marshal((x),(y),(z)) #define ORBit_IArgFlag_demarshal(x,y,z,i) CORBA_long_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_ORBit_IArgFlag_0) #define TC_IMPL_TC_ORBit_IArgFlag_0 'o' #define TC_IMPL_TC_ORBit_IArgFlag_1 'r' #define TC_IMPL_TC_ORBit_IArgFlag_2 'b' #define TC_IMPL_TC_ORBit_IArgFlag_3 'i' #define TC_IMPL_TC_ORBit_IArgFlag_4 't' #define TC_IMPL_TC_ORBit_IArgFlag_5 '_' #define TC_IMPL_TC_ORBit_IArgFlag_6 'i' #define TC_IMPL_TC_ORBit_IArgFlag_7 'n' #define TC_IMPL_TC_ORBit_IArgFlag_8 't' #define TC_IMPL_TC_ORBit_IArgFlag_9 'e' #define TC_IMPL_TC_ORBit_IArgFlag_10 'r' #define TC_IMPL_TC_ORBit_IArgFlag_11 'f' #define TC_IMPL_TC_ORBit_IArgFlag_12 'a' #define TC_IMPL_TC_ORBit_IArgFlag_13 'c' #define TC_IMPL_TC_ORBit_IArgFlag_14 'e' #ifdef ORBIT_IDL_C_IMODULE_orbit_interface static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_ORBit_IArgFlag_struct; #define TC_ORBit_IArgFlag ((CORBA_TypeCode)&TC_ORBit_IArgFlag_struct) #endif #define ORBit_IArgFlag__alloc() ((ORBit_IArgFlag *)ORBit_small_alloc (TC_CORBA_long)) #define ORBit_IArgFlag__freekids(m,d) ORBit_small_freekids (TC_CORBA_long,(m),(d)) #endif #ifndef ORBit_I_COMMON_FIXED_SIZE #define ORBit_I_COMMON_FIXED_SIZE 1 #endif /* !ORBit_I_COMMON_FIXED_SIZE */ #ifndef ORBit_I_ARG_IN #define ORBit_I_ARG_IN 32 #endif /* !ORBit_I_ARG_IN */ #ifndef ORBit_I_ARG_OUT #define ORBit_I_ARG_OUT 64 #endif /* !ORBit_I_ARG_OUT */ #ifndef ORBit_I_ARG_INOUT #define ORBit_I_ARG_INOUT 128 #endif /* !ORBit_I_ARG_INOUT */ #if !defined(_ORBit_IArg_defined) #define _ORBit_IArg_defined 1 typedef struct ORBit_IArg_type ORBit_IArg; struct ORBit_IArg_type { CORBA_TypeCode tc; ORBit_IArgFlag flags; CORBA_string name; }; #if !defined(TC_IMPL_TC_ORBit_IArg_0) #define TC_IMPL_TC_ORBit_IArg_0 'o' #define TC_IMPL_TC_ORBit_IArg_1 'r' #define TC_IMPL_TC_ORBit_IArg_2 'b' #define TC_IMPL_TC_ORBit_IArg_3 'i' #define TC_IMPL_TC_ORBit_IArg_4 't' #define TC_IMPL_TC_ORBit_IArg_5 '_' #define TC_IMPL_TC_ORBit_IArg_6 'i' #define TC_IMPL_TC_ORBit_IArg_7 'n' #define TC_IMPL_TC_ORBit_IArg_8 't' #define TC_IMPL_TC_ORBit_IArg_9 'e' #define TC_IMPL_TC_ORBit_IArg_10 'r' #define TC_IMPL_TC_ORBit_IArg_11 'f' #define TC_IMPL_TC_ORBit_IArg_12 'a' #define TC_IMPL_TC_ORBit_IArg_13 'c' #define TC_IMPL_TC_ORBit_IArg_14 'e' #ifdef ORBIT_IDL_C_IMODULE_orbit_interface static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_ORBit_IArg_struct; #define TC_ORBit_IArg ((CORBA_TypeCode)&TC_ORBit_IArg_struct) #endif #define ORBit_IArg__alloc() ((ORBit_IArg *)ORBit_small_alloc (TC_ORBit_IArg)) #define ORBit_IArg__freekids(m,d) ORBit_small_freekids (TC_ORBit_IArg,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_ORBit_IArg) #define ORBIT_DECL_CORBA_sequence_ORBit_IArg 1 #define ORBIT_IMPL_CORBA_sequence_ORBit_IArg_0 'o' #define ORBIT_IMPL_CORBA_sequence_ORBit_IArg_1 'r' #define ORBIT_IMPL_CORBA_sequence_ORBit_IArg_2 'b' #define ORBIT_IMPL_CORBA_sequence_ORBit_IArg_3 'i' #define ORBIT_IMPL_CORBA_sequence_ORBit_IArg_4 't' #define ORBIT_IMPL_CORBA_sequence_ORBit_IArg_5 '_' #define ORBIT_IMPL_CORBA_sequence_ORBit_IArg_6 'i' #define ORBIT_IMPL_CORBA_sequence_ORBit_IArg_7 'n' #define ORBIT_IMPL_CORBA_sequence_ORBit_IArg_8 't' #define ORBIT_IMPL_CORBA_sequence_ORBit_IArg_9 'e' #define ORBIT_IMPL_CORBA_sequence_ORBit_IArg_10 'r' #define ORBIT_IMPL_CORBA_sequence_ORBit_IArg_11 'f' #define ORBIT_IMPL_CORBA_sequence_ORBit_IArg_12 'a' #define ORBIT_IMPL_CORBA_sequence_ORBit_IArg_13 'c' #define ORBIT_IMPL_CORBA_sequence_ORBit_IArg_14 'e' #if !defined(_CORBA_sequence_ORBit_IArg_defined) #define _CORBA_sequence_ORBit_IArg_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; ORBit_IArg* _buffer; CORBA_boolean _release; } CORBA_sequence_ORBit_IArg; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_ORBit_IArg_0) #define TC_IMPL_TC_CORBA_sequence_ORBit_IArg_0 'o' #define TC_IMPL_TC_CORBA_sequence_ORBit_IArg_1 'r' #define TC_IMPL_TC_CORBA_sequence_ORBit_IArg_2 'b' #define TC_IMPL_TC_CORBA_sequence_ORBit_IArg_3 'i' #define TC_IMPL_TC_CORBA_sequence_ORBit_IArg_4 't' #define TC_IMPL_TC_CORBA_sequence_ORBit_IArg_5 '_' #define TC_IMPL_TC_CORBA_sequence_ORBit_IArg_6 'i' #define TC_IMPL_TC_CORBA_sequence_ORBit_IArg_7 'n' #define TC_IMPL_TC_CORBA_sequence_ORBit_IArg_8 't' #define TC_IMPL_TC_CORBA_sequence_ORBit_IArg_9 'e' #define TC_IMPL_TC_CORBA_sequence_ORBit_IArg_10 'r' #define TC_IMPL_TC_CORBA_sequence_ORBit_IArg_11 'f' #define TC_IMPL_TC_CORBA_sequence_ORBit_IArg_12 'a' #define TC_IMPL_TC_CORBA_sequence_ORBit_IArg_13 'c' #define TC_IMPL_TC_CORBA_sequence_ORBit_IArg_14 'e' #ifdef ORBIT_IDL_C_IMODULE_orbit_interface static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_ORBit_IArg_struct; #define TC_CORBA_sequence_ORBit_IArg ((CORBA_TypeCode)&TC_CORBA_sequence_ORBit_IArg_struct) #endif #define CORBA_sequence_ORBit_IArg__alloc() ((CORBA_sequence_ORBit_IArg *)ORBit_small_alloc (TC_CORBA_sequence_ORBit_IArg)) #define CORBA_sequence_ORBit_IArg__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_ORBit_IArg,(m),(d)) #define CORBA_sequence_ORBit_IArg_allocbuf(l) ((ORBit_IArg*)ORBit_small_allocbuf (TC_CORBA_sequence_ORBit_IArg, (l))) #define CORBA_sequence_ORBit_IArg_allocbuf(l) ((ORBit_IArg*)ORBit_small_allocbuf (TC_CORBA_sequence_ORBit_IArg, (l))) #endif #if !defined(_ORBit_IArgs_defined) #define _ORBit_IArgs_defined 1 typedef CORBA_sequence_ORBit_IArg ORBit_IArgs; #define ORBit_IArgs_marshal(x,y,z) CORBA_sequence_ORBit_IArg_marshal((x),(y),(z)) #define ORBit_IArgs_demarshal(x,y,z,i) CORBA_sequence_ORBit_IArg_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_ORBit_IArgs_0) #define TC_IMPL_TC_ORBit_IArgs_0 'o' #define TC_IMPL_TC_ORBit_IArgs_1 'r' #define TC_IMPL_TC_ORBit_IArgs_2 'b' #define TC_IMPL_TC_ORBit_IArgs_3 'i' #define TC_IMPL_TC_ORBit_IArgs_4 't' #define TC_IMPL_TC_ORBit_IArgs_5 '_' #define TC_IMPL_TC_ORBit_IArgs_6 'i' #define TC_IMPL_TC_ORBit_IArgs_7 'n' #define TC_IMPL_TC_ORBit_IArgs_8 't' #define TC_IMPL_TC_ORBit_IArgs_9 'e' #define TC_IMPL_TC_ORBit_IArgs_10 'r' #define TC_IMPL_TC_ORBit_IArgs_11 'f' #define TC_IMPL_TC_ORBit_IArgs_12 'a' #define TC_IMPL_TC_ORBit_IArgs_13 'c' #define TC_IMPL_TC_ORBit_IArgs_14 'e' #ifdef ORBIT_IDL_C_IMODULE_orbit_interface static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_ORBit_IArgs_struct; #define TC_ORBit_IArgs ((CORBA_TypeCode)&TC_ORBit_IArgs_struct) #endif #define ORBit_IArgs__alloc() ((ORBit_IArgs *)ORBit_small_alloc (TC_CORBA_sequence_ORBit_IArg)) #define ORBit_IArgs__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_ORBit_IArg,(m),(d)) #define ORBit_IArgs_allocbuf(l) ((ORBit_IArg*)ORBit_small_allocbuf (TC_CORBA_sequence_ORBit_IArg, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_TypeCode) #define ORBIT_DECL_CORBA_sequence_CORBA_TypeCode 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_TypeCode_0 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_TypeCode_1 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_TypeCode_2 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_TypeCode_3 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_TypeCode_4 't' #define ORBIT_IMPL_CORBA_sequence_CORBA_TypeCode_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_TypeCode_6 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_TypeCode_7 'n' #define ORBIT_IMPL_CORBA_sequence_CORBA_TypeCode_8 't' #define ORBIT_IMPL_CORBA_sequence_CORBA_TypeCode_9 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_TypeCode_10 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_TypeCode_11 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_TypeCode_12 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_TypeCode_13 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_TypeCode_14 'e' #if !defined(_CORBA_sequence_CORBA_TypeCode_defined) #define _CORBA_sequence_CORBA_TypeCode_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_TypeCode* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_TypeCode; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_TypeCode_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_TypeCode_0 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_TypeCode_1 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_TypeCode_2 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_TypeCode_3 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_TypeCode_4 't' #define TC_IMPL_TC_CORBA_sequence_CORBA_TypeCode_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_TypeCode_6 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_TypeCode_7 'n' #define TC_IMPL_TC_CORBA_sequence_CORBA_TypeCode_8 't' #define TC_IMPL_TC_CORBA_sequence_CORBA_TypeCode_9 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_TypeCode_10 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_TypeCode_11 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_TypeCode_12 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_TypeCode_13 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_TypeCode_14 'e' #ifdef ORBIT_IDL_C_IMODULE_orbit_interface static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_TypeCode_struct; #define TC_CORBA_sequence_CORBA_TypeCode ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_TypeCode_struct) #endif #define CORBA_sequence_CORBA_TypeCode__alloc() ((CORBA_sequence_CORBA_TypeCode *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_TypeCode)) #define CORBA_sequence_CORBA_TypeCode__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_TypeCode,(m),(d)) #define CORBA_sequence_CORBA_TypeCode_allocbuf(l) ((CORBA_TypeCode*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_TypeCode, (l))) #define CORBA_sequence_CORBA_TypeCode_allocbuf(l) ((CORBA_TypeCode*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_TypeCode, (l))) #endif #if !defined(_ORBit_ITypes_defined) #define _ORBit_ITypes_defined 1 typedef CORBA_sequence_CORBA_TypeCode ORBit_ITypes; #define ORBit_ITypes_marshal(x,y,z) CORBA_sequence_CORBA_TypeCode_marshal((x),(y),(z)) #define ORBit_ITypes_demarshal(x,y,z,i) CORBA_sequence_CORBA_TypeCode_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_ORBit_ITypes_0) #define TC_IMPL_TC_ORBit_ITypes_0 'o' #define TC_IMPL_TC_ORBit_ITypes_1 'r' #define TC_IMPL_TC_ORBit_ITypes_2 'b' #define TC_IMPL_TC_ORBit_ITypes_3 'i' #define TC_IMPL_TC_ORBit_ITypes_4 't' #define TC_IMPL_TC_ORBit_ITypes_5 '_' #define TC_IMPL_TC_ORBit_ITypes_6 'i' #define TC_IMPL_TC_ORBit_ITypes_7 'n' #define TC_IMPL_TC_ORBit_ITypes_8 't' #define TC_IMPL_TC_ORBit_ITypes_9 'e' #define TC_IMPL_TC_ORBit_ITypes_10 'r' #define TC_IMPL_TC_ORBit_ITypes_11 'f' #define TC_IMPL_TC_ORBit_ITypes_12 'a' #define TC_IMPL_TC_ORBit_ITypes_13 'c' #define TC_IMPL_TC_ORBit_ITypes_14 'e' #ifdef ORBIT_IDL_C_IMODULE_orbit_interface static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_ORBit_ITypes_struct; #define TC_ORBit_ITypes ((CORBA_TypeCode)&TC_ORBit_ITypes_struct) #endif #define ORBit_ITypes__alloc() ((ORBit_ITypes *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_TypeCode)) #define ORBit_ITypes__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_TypeCode,(m),(d)) #define ORBit_ITypes_allocbuf(l) ((CORBA_TypeCode*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_TypeCode, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_string) #define ORBIT_DECL_CORBA_sequence_CORBA_string 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_string_0 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_1 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_2 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_3 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_4 't' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_6 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_7 'n' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_8 't' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_9 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_10 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_11 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_12 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_13 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_14 'e' #if !defined(_CORBA_sequence_CORBA_string_defined) #define _CORBA_sequence_CORBA_string_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_string* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_string; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_string_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_string_0 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_1 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_2 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_3 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_4 't' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_6 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_7 'n' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_8 't' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_9 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_10 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_11 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_12 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_13 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_14 'e' #ifdef ORBIT_IDL_C_IMODULE_orbit_interface static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_string_struct; #define TC_CORBA_sequence_CORBA_string ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_string_struct) #endif #define CORBA_sequence_CORBA_string__alloc() ((CORBA_sequence_CORBA_string *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_string)) #define CORBA_sequence_CORBA_string__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_string,(m),(d)) #define CORBA_sequence_CORBA_string_allocbuf(l) ((CORBA_string*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_string, (l))) #define CORBA_sequence_CORBA_string_allocbuf(l) ((CORBA_string*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_string, (l))) #endif #if !defined(_ORBit_IContexts_defined) #define _ORBit_IContexts_defined 1 typedef CORBA_sequence_CORBA_string ORBit_IContexts; #define ORBit_IContexts_marshal(x,y,z) CORBA_sequence_CORBA_string_marshal((x),(y),(z)) #define ORBit_IContexts_demarshal(x,y,z,i) CORBA_sequence_CORBA_string_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_ORBit_IContexts_0) #define TC_IMPL_TC_ORBit_IContexts_0 'o' #define TC_IMPL_TC_ORBit_IContexts_1 'r' #define TC_IMPL_TC_ORBit_IContexts_2 'b' #define TC_IMPL_TC_ORBit_IContexts_3 'i' #define TC_IMPL_TC_ORBit_IContexts_4 't' #define TC_IMPL_TC_ORBit_IContexts_5 '_' #define TC_IMPL_TC_ORBit_IContexts_6 'i' #define TC_IMPL_TC_ORBit_IContexts_7 'n' #define TC_IMPL_TC_ORBit_IContexts_8 't' #define TC_IMPL_TC_ORBit_IContexts_9 'e' #define TC_IMPL_TC_ORBit_IContexts_10 'r' #define TC_IMPL_TC_ORBit_IContexts_11 'f' #define TC_IMPL_TC_ORBit_IContexts_12 'a' #define TC_IMPL_TC_ORBit_IContexts_13 'c' #define TC_IMPL_TC_ORBit_IContexts_14 'e' #ifdef ORBIT_IDL_C_IMODULE_orbit_interface static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_ORBit_IContexts_struct; #define TC_ORBit_IContexts ((CORBA_TypeCode)&TC_ORBit_IContexts_struct) #endif #define ORBit_IContexts__alloc() ((ORBit_IContexts *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_string)) #define ORBit_IContexts__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_string,(m),(d)) #define ORBit_IContexts_allocbuf(l) ((CORBA_string*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_string, (l))) #endif #if !defined(_ORBit_IMethodFlag_defined) #define _ORBit_IMethodFlag_defined 1 typedef CORBA_long ORBit_IMethodFlag; #define ORBit_IMethodFlag_marshal(x,y,z) CORBA_long_marshal((x),(y),(z)) #define ORBit_IMethodFlag_demarshal(x,y,z,i) CORBA_long_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_ORBit_IMethodFlag_0) #define TC_IMPL_TC_ORBit_IMethodFlag_0 'o' #define TC_IMPL_TC_ORBit_IMethodFlag_1 'r' #define TC_IMPL_TC_ORBit_IMethodFlag_2 'b' #define TC_IMPL_TC_ORBit_IMethodFlag_3 'i' #define TC_IMPL_TC_ORBit_IMethodFlag_4 't' #define TC_IMPL_TC_ORBit_IMethodFlag_5 '_' #define TC_IMPL_TC_ORBit_IMethodFlag_6 'i' #define TC_IMPL_TC_ORBit_IMethodFlag_7 'n' #define TC_IMPL_TC_ORBit_IMethodFlag_8 't' #define TC_IMPL_TC_ORBit_IMethodFlag_9 'e' #define TC_IMPL_TC_ORBit_IMethodFlag_10 'r' #define TC_IMPL_TC_ORBit_IMethodFlag_11 'f' #define TC_IMPL_TC_ORBit_IMethodFlag_12 'a' #define TC_IMPL_TC_ORBit_IMethodFlag_13 'c' #define TC_IMPL_TC_ORBit_IMethodFlag_14 'e' #ifdef ORBIT_IDL_C_IMODULE_orbit_interface static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_ORBit_IMethodFlag_struct; #define TC_ORBit_IMethodFlag ((CORBA_TypeCode)&TC_ORBit_IMethodFlag_struct) #endif #define ORBit_IMethodFlag__alloc() ((ORBit_IMethodFlag *)ORBit_small_alloc (TC_CORBA_long)) #define ORBit_IMethodFlag__freekids(m,d) ORBit_small_freekids (TC_CORBA_long,(m),(d)) #endif #ifndef ORBit_I_METHOD_1_WAY #define ORBit_I_METHOD_1_WAY 32 #endif /* !ORBit_I_METHOD_1_WAY */ #ifndef ORBit_I_METHOD_ALL_BASE #define ORBit_I_METHOD_ALL_BASE 64 #endif /* !ORBit_I_METHOD_ALL_BASE */ #ifndef ORBit_I_METHOD_NO_OUT #define ORBit_I_METHOD_NO_OUT 128 #endif /* !ORBit_I_METHOD_NO_OUT */ #ifndef ORBit_I_METHOD_HAS_CONTEXT #define ORBit_I_METHOD_HAS_CONTEXT 256 #endif /* !ORBit_I_METHOD_HAS_CONTEXT */ #if !defined(_ORBit_IMethod_defined) #define _ORBit_IMethod_defined 1 typedef struct ORBit_IMethod_type ORBit_IMethod; struct ORBit_IMethod_type { ORBit_IArgs arguments; ORBit_IContexts contexts; ORBit_ITypes exceptions; CORBA_TypeCode ret; CORBA_string name; CORBA_long name_len; ORBit_IMethodFlag flags; }; #if !defined(TC_IMPL_TC_ORBit_IMethod_0) #define TC_IMPL_TC_ORBit_IMethod_0 'o' #define TC_IMPL_TC_ORBit_IMethod_1 'r' #define TC_IMPL_TC_ORBit_IMethod_2 'b' #define TC_IMPL_TC_ORBit_IMethod_3 'i' #define TC_IMPL_TC_ORBit_IMethod_4 't' #define TC_IMPL_TC_ORBit_IMethod_5 '_' #define TC_IMPL_TC_ORBit_IMethod_6 'i' #define TC_IMPL_TC_ORBit_IMethod_7 'n' #define TC_IMPL_TC_ORBit_IMethod_8 't' #define TC_IMPL_TC_ORBit_IMethod_9 'e' #define TC_IMPL_TC_ORBit_IMethod_10 'r' #define TC_IMPL_TC_ORBit_IMethod_11 'f' #define TC_IMPL_TC_ORBit_IMethod_12 'a' #define TC_IMPL_TC_ORBit_IMethod_13 'c' #define TC_IMPL_TC_ORBit_IMethod_14 'e' #ifdef ORBIT_IDL_C_IMODULE_orbit_interface static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_ORBit_IMethod_struct; #define TC_ORBit_IMethod ((CORBA_TypeCode)&TC_ORBit_IMethod_struct) #endif #define ORBit_IMethod__alloc() ((ORBit_IMethod *)ORBit_small_alloc (TC_ORBit_IMethod)) #define ORBit_IMethod__freekids(m,d) ORBit_small_freekids (TC_ORBit_IMethod,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_ORBit_IMethod) #define ORBIT_DECL_CORBA_sequence_ORBit_IMethod 1 #define ORBIT_IMPL_CORBA_sequence_ORBit_IMethod_0 'o' #define ORBIT_IMPL_CORBA_sequence_ORBit_IMethod_1 'r' #define ORBIT_IMPL_CORBA_sequence_ORBit_IMethod_2 'b' #define ORBIT_IMPL_CORBA_sequence_ORBit_IMethod_3 'i' #define ORBIT_IMPL_CORBA_sequence_ORBit_IMethod_4 't' #define ORBIT_IMPL_CORBA_sequence_ORBit_IMethod_5 '_' #define ORBIT_IMPL_CORBA_sequence_ORBit_IMethod_6 'i' #define ORBIT_IMPL_CORBA_sequence_ORBit_IMethod_7 'n' #define ORBIT_IMPL_CORBA_sequence_ORBit_IMethod_8 't' #define ORBIT_IMPL_CORBA_sequence_ORBit_IMethod_9 'e' #define ORBIT_IMPL_CORBA_sequence_ORBit_IMethod_10 'r' #define ORBIT_IMPL_CORBA_sequence_ORBit_IMethod_11 'f' #define ORBIT_IMPL_CORBA_sequence_ORBit_IMethod_12 'a' #define ORBIT_IMPL_CORBA_sequence_ORBit_IMethod_13 'c' #define ORBIT_IMPL_CORBA_sequence_ORBit_IMethod_14 'e' #if !defined(_CORBA_sequence_ORBit_IMethod_defined) #define _CORBA_sequence_ORBit_IMethod_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; ORBit_IMethod* _buffer; CORBA_boolean _release; } CORBA_sequence_ORBit_IMethod; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_ORBit_IMethod_0) #define TC_IMPL_TC_CORBA_sequence_ORBit_IMethod_0 'o' #define TC_IMPL_TC_CORBA_sequence_ORBit_IMethod_1 'r' #define TC_IMPL_TC_CORBA_sequence_ORBit_IMethod_2 'b' #define TC_IMPL_TC_CORBA_sequence_ORBit_IMethod_3 'i' #define TC_IMPL_TC_CORBA_sequence_ORBit_IMethod_4 't' #define TC_IMPL_TC_CORBA_sequence_ORBit_IMethod_5 '_' #define TC_IMPL_TC_CORBA_sequence_ORBit_IMethod_6 'i' #define TC_IMPL_TC_CORBA_sequence_ORBit_IMethod_7 'n' #define TC_IMPL_TC_CORBA_sequence_ORBit_IMethod_8 't' #define TC_IMPL_TC_CORBA_sequence_ORBit_IMethod_9 'e' #define TC_IMPL_TC_CORBA_sequence_ORBit_IMethod_10 'r' #define TC_IMPL_TC_CORBA_sequence_ORBit_IMethod_11 'f' #define TC_IMPL_TC_CORBA_sequence_ORBit_IMethod_12 'a' #define TC_IMPL_TC_CORBA_sequence_ORBit_IMethod_13 'c' #define TC_IMPL_TC_CORBA_sequence_ORBit_IMethod_14 'e' #ifdef ORBIT_IDL_C_IMODULE_orbit_interface static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_ORBit_IMethod_struct; #define TC_CORBA_sequence_ORBit_IMethod ((CORBA_TypeCode)&TC_CORBA_sequence_ORBit_IMethod_struct) #endif #define CORBA_sequence_ORBit_IMethod__alloc() ((CORBA_sequence_ORBit_IMethod *)ORBit_small_alloc (TC_CORBA_sequence_ORBit_IMethod)) #define CORBA_sequence_ORBit_IMethod__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_ORBit_IMethod,(m),(d)) #define CORBA_sequence_ORBit_IMethod_allocbuf(l) ((ORBit_IMethod*)ORBit_small_allocbuf (TC_CORBA_sequence_ORBit_IMethod, (l))) #define CORBA_sequence_ORBit_IMethod_allocbuf(l) ((ORBit_IMethod*)ORBit_small_allocbuf (TC_CORBA_sequence_ORBit_IMethod, (l))) #endif #if !defined(_ORBit_IMethods_defined) #define _ORBit_IMethods_defined 1 typedef CORBA_sequence_ORBit_IMethod ORBit_IMethods; #define ORBit_IMethods_marshal(x,y,z) CORBA_sequence_ORBit_IMethod_marshal((x),(y),(z)) #define ORBit_IMethods_demarshal(x,y,z,i) CORBA_sequence_ORBit_IMethod_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_ORBit_IMethods_0) #define TC_IMPL_TC_ORBit_IMethods_0 'o' #define TC_IMPL_TC_ORBit_IMethods_1 'r' #define TC_IMPL_TC_ORBit_IMethods_2 'b' #define TC_IMPL_TC_ORBit_IMethods_3 'i' #define TC_IMPL_TC_ORBit_IMethods_4 't' #define TC_IMPL_TC_ORBit_IMethods_5 '_' #define TC_IMPL_TC_ORBit_IMethods_6 'i' #define TC_IMPL_TC_ORBit_IMethods_7 'n' #define TC_IMPL_TC_ORBit_IMethods_8 't' #define TC_IMPL_TC_ORBit_IMethods_9 'e' #define TC_IMPL_TC_ORBit_IMethods_10 'r' #define TC_IMPL_TC_ORBit_IMethods_11 'f' #define TC_IMPL_TC_ORBit_IMethods_12 'a' #define TC_IMPL_TC_ORBit_IMethods_13 'c' #define TC_IMPL_TC_ORBit_IMethods_14 'e' #ifdef ORBIT_IDL_C_IMODULE_orbit_interface static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_ORBit_IMethods_struct; #define TC_ORBit_IMethods ((CORBA_TypeCode)&TC_ORBit_IMethods_struct) #endif #define ORBit_IMethods__alloc() ((ORBit_IMethods *)ORBit_small_alloc (TC_CORBA_sequence_ORBit_IMethod)) #define ORBit_IMethods__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_ORBit_IMethod,(m),(d)) #define ORBit_IMethods_allocbuf(l) ((ORBit_IMethod*)ORBit_small_allocbuf (TC_CORBA_sequence_ORBit_IMethod, (l))) #endif #if !defined(_ORBit_IInterface_defined) #define _ORBit_IInterface_defined 1 typedef struct ORBit_IInterface_type ORBit_IInterface; #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_string) #define ORBIT_DECL_CORBA_sequence_CORBA_string 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_string_0 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_1 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_2 'b' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_3 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_4 't' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_5 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_6 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_7 'n' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_8 't' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_9 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_10 'r' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_11 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_12 'a' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_13 'c' #define ORBIT_IMPL_CORBA_sequence_CORBA_string_14 'e' #if !defined(_CORBA_sequence_CORBA_string_defined) #define _CORBA_sequence_CORBA_string_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_string* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_string; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_string_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_string_0 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_1 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_2 'b' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_3 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_4 't' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_5 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_6 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_7 'n' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_8 't' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_9 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_10 'r' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_11 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_12 'a' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_13 'c' #define TC_IMPL_TC_CORBA_sequence_CORBA_string_14 'e' #ifdef ORBIT_IDL_C_IMODULE_orbit_interface static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_string_struct; #define TC_CORBA_sequence_CORBA_string ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_string_struct) #endif #define CORBA_sequence_CORBA_string__alloc() ((CORBA_sequence_CORBA_string *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_string)) #define CORBA_sequence_CORBA_string__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_string,(m),(d)) #define CORBA_sequence_CORBA_string_allocbuf(l) ((CORBA_string*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_string, (l))) #define CORBA_sequence_CORBA_string_allocbuf(l) ((CORBA_string*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_string, (l))) #endif struct ORBit_IInterface_type { CORBA_TypeCode tc; ORBit_IMethods methods; CORBA_sequence_CORBA_string base_interfaces; }; #if !defined(TC_IMPL_TC_ORBit_IInterface_0) #define TC_IMPL_TC_ORBit_IInterface_0 'o' #define TC_IMPL_TC_ORBit_IInterface_1 'r' #define TC_IMPL_TC_ORBit_IInterface_2 'b' #define TC_IMPL_TC_ORBit_IInterface_3 'i' #define TC_IMPL_TC_ORBit_IInterface_4 't' #define TC_IMPL_TC_ORBit_IInterface_5 '_' #define TC_IMPL_TC_ORBit_IInterface_6 'i' #define TC_IMPL_TC_ORBit_IInterface_7 'n' #define TC_IMPL_TC_ORBit_IInterface_8 't' #define TC_IMPL_TC_ORBit_IInterface_9 'e' #define TC_IMPL_TC_ORBit_IInterface_10 'r' #define TC_IMPL_TC_ORBit_IInterface_11 'f' #define TC_IMPL_TC_ORBit_IInterface_12 'a' #define TC_IMPL_TC_ORBit_IInterface_13 'c' #define TC_IMPL_TC_ORBit_IInterface_14 'e' #ifdef ORBIT_IDL_C_IMODULE_orbit_interface static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_ORBit_IInterface_struct; #define TC_ORBit_IInterface ((CORBA_TypeCode)&TC_ORBit_IInterface_struct) #endif #define ORBit_IInterface__alloc() ((ORBit_IInterface *)ORBit_small_alloc (TC_ORBit_IInterface)) #define ORBit_IInterface__freekids(m,d) ORBit_small_freekids (TC_ORBit_IInterface,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_ORBit_IInterface) #define ORBIT_DECL_CORBA_sequence_ORBit_IInterface 1 #define ORBIT_IMPL_CORBA_sequence_ORBit_IInterface_0 'o' #define ORBIT_IMPL_CORBA_sequence_ORBit_IInterface_1 'r' #define ORBIT_IMPL_CORBA_sequence_ORBit_IInterface_2 'b' #define ORBIT_IMPL_CORBA_sequence_ORBit_IInterface_3 'i' #define ORBIT_IMPL_CORBA_sequence_ORBit_IInterface_4 't' #define ORBIT_IMPL_CORBA_sequence_ORBit_IInterface_5 '_' #define ORBIT_IMPL_CORBA_sequence_ORBit_IInterface_6 'i' #define ORBIT_IMPL_CORBA_sequence_ORBit_IInterface_7 'n' #define ORBIT_IMPL_CORBA_sequence_ORBit_IInterface_8 't' #define ORBIT_IMPL_CORBA_sequence_ORBit_IInterface_9 'e' #define ORBIT_IMPL_CORBA_sequence_ORBit_IInterface_10 'r' #define ORBIT_IMPL_CORBA_sequence_ORBit_IInterface_11 'f' #define ORBIT_IMPL_CORBA_sequence_ORBit_IInterface_12 'a' #define ORBIT_IMPL_CORBA_sequence_ORBit_IInterface_13 'c' #define ORBIT_IMPL_CORBA_sequence_ORBit_IInterface_14 'e' #if !defined(_CORBA_sequence_ORBit_IInterface_defined) #define _CORBA_sequence_ORBit_IInterface_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; ORBit_IInterface* _buffer; CORBA_boolean _release; } CORBA_sequence_ORBit_IInterface; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_ORBit_IInterface_0) #define TC_IMPL_TC_CORBA_sequence_ORBit_IInterface_0 'o' #define TC_IMPL_TC_CORBA_sequence_ORBit_IInterface_1 'r' #define TC_IMPL_TC_CORBA_sequence_ORBit_IInterface_2 'b' #define TC_IMPL_TC_CORBA_sequence_ORBit_IInterface_3 'i' #define TC_IMPL_TC_CORBA_sequence_ORBit_IInterface_4 't' #define TC_IMPL_TC_CORBA_sequence_ORBit_IInterface_5 '_' #define TC_IMPL_TC_CORBA_sequence_ORBit_IInterface_6 'i' #define TC_IMPL_TC_CORBA_sequence_ORBit_IInterface_7 'n' #define TC_IMPL_TC_CORBA_sequence_ORBit_IInterface_8 't' #define TC_IMPL_TC_CORBA_sequence_ORBit_IInterface_9 'e' #define TC_IMPL_TC_CORBA_sequence_ORBit_IInterface_10 'r' #define TC_IMPL_TC_CORBA_sequence_ORBit_IInterface_11 'f' #define TC_IMPL_TC_CORBA_sequence_ORBit_IInterface_12 'a' #define TC_IMPL_TC_CORBA_sequence_ORBit_IInterface_13 'c' #define TC_IMPL_TC_CORBA_sequence_ORBit_IInterface_14 'e' #ifdef ORBIT_IDL_C_IMODULE_orbit_interface static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_ORBit_IInterface_struct; #define TC_CORBA_sequence_ORBit_IInterface ((CORBA_TypeCode)&TC_CORBA_sequence_ORBit_IInterface_struct) #endif #define CORBA_sequence_ORBit_IInterface__alloc() ((CORBA_sequence_ORBit_IInterface *)ORBit_small_alloc (TC_CORBA_sequence_ORBit_IInterface)) #define CORBA_sequence_ORBit_IInterface__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_ORBit_IInterface,(m),(d)) #define CORBA_sequence_ORBit_IInterface_allocbuf(l) ((ORBit_IInterface*)ORBit_small_allocbuf (TC_CORBA_sequence_ORBit_IInterface, (l))) #define CORBA_sequence_ORBit_IInterface_allocbuf(l) ((ORBit_IInterface*)ORBit_small_allocbuf (TC_CORBA_sequence_ORBit_IInterface, (l))) #endif #if !defined(_ORBit_IInterfaces_defined) #define _ORBit_IInterfaces_defined 1 typedef CORBA_sequence_ORBit_IInterface ORBit_IInterfaces; #define ORBit_IInterfaces_marshal(x,y,z) CORBA_sequence_ORBit_IInterface_marshal((x),(y),(z)) #define ORBit_IInterfaces_demarshal(x,y,z,i) CORBA_sequence_ORBit_IInterface_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_ORBit_IInterfaces_0) #define TC_IMPL_TC_ORBit_IInterfaces_0 'o' #define TC_IMPL_TC_ORBit_IInterfaces_1 'r' #define TC_IMPL_TC_ORBit_IInterfaces_2 'b' #define TC_IMPL_TC_ORBit_IInterfaces_3 'i' #define TC_IMPL_TC_ORBit_IInterfaces_4 't' #define TC_IMPL_TC_ORBit_IInterfaces_5 '_' #define TC_IMPL_TC_ORBit_IInterfaces_6 'i' #define TC_IMPL_TC_ORBit_IInterfaces_7 'n' #define TC_IMPL_TC_ORBit_IInterfaces_8 't' #define TC_IMPL_TC_ORBit_IInterfaces_9 'e' #define TC_IMPL_TC_ORBit_IInterfaces_10 'r' #define TC_IMPL_TC_ORBit_IInterfaces_11 'f' #define TC_IMPL_TC_ORBit_IInterfaces_12 'a' #define TC_IMPL_TC_ORBit_IInterfaces_13 'c' #define TC_IMPL_TC_ORBit_IInterfaces_14 'e' #ifdef ORBIT_IDL_C_IMODULE_orbit_interface static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_ORBit_IInterfaces_struct; #define TC_ORBit_IInterfaces ((CORBA_TypeCode)&TC_ORBit_IInterfaces_struct) #endif #define ORBit_IInterfaces__alloc() ((ORBit_IInterfaces *)ORBit_small_alloc (TC_CORBA_sequence_ORBit_IInterface)) #define ORBit_IInterfaces__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_ORBit_IInterface,(m),(d)) #define ORBit_IInterfaces_allocbuf(l) ((ORBit_IInterface*)ORBit_small_allocbuf (TC_CORBA_sequence_ORBit_IInterface, (l))) #endif #undef ex_ORBit_NoIInterface #define ex_ORBit_NoIInterface "IDL:ORBit/NoIInterface:1.0" #if !defined(_ORBit_NoIInterface_defined) #define _ORBit_NoIInterface_defined 1 typedef struct ORBit_NoIInterface_type ORBit_NoIInterface; struct ORBit_NoIInterface_type { int dummy; }; #if !defined(TC_IMPL_TC_ORBit_NoIInterface_0) #define TC_IMPL_TC_ORBit_NoIInterface_0 'o' #define TC_IMPL_TC_ORBit_NoIInterface_1 'r' #define TC_IMPL_TC_ORBit_NoIInterface_2 'b' #define TC_IMPL_TC_ORBit_NoIInterface_3 'i' #define TC_IMPL_TC_ORBit_NoIInterface_4 't' #define TC_IMPL_TC_ORBit_NoIInterface_5 '_' #define TC_IMPL_TC_ORBit_NoIInterface_6 'i' #define TC_IMPL_TC_ORBit_NoIInterface_7 'n' #define TC_IMPL_TC_ORBit_NoIInterface_8 't' #define TC_IMPL_TC_ORBit_NoIInterface_9 'e' #define TC_IMPL_TC_ORBit_NoIInterface_10 'r' #define TC_IMPL_TC_ORBit_NoIInterface_11 'f' #define TC_IMPL_TC_ORBit_NoIInterface_12 'a' #define TC_IMPL_TC_ORBit_NoIInterface_13 'c' #define TC_IMPL_TC_ORBit_NoIInterface_14 'e' #ifdef ORBIT_IDL_C_IMODULE_orbit_interface static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_ORBit_NoIInterface_struct; #define TC_ORBit_NoIInterface ((CORBA_TypeCode)&TC_ORBit_NoIInterface_struct) #endif #define ORBit_NoIInterface__alloc() ((ORBit_NoIInterface *)ORBit_small_alloc (TC_ORBit_NoIInterface)) #define ORBit_NoIInterface__freekids(m,d) ORBit_small_freekids (TC_ORBit_NoIInterface,(m),(d)) #endif /** stub prototypes **/ #ifndef __ORBIT_IMETHODS_INDEX #define __ORBIT_IMETHODS_INDEX #define ORBIT_IMETHODS_INDEX(m) (m ## __imethods_index) #endif /* __ORBIT_IMETHODS_INDEX */ #ifdef __cplusplus } #endif /* __cplusplus */ #ifndef EXCLUDE_ORBIT_H #include #endif /* EXCLUDE_ORBIT_H */ #endif #undef ORBIT_IDL_SERIAL ORBit2-2.14.19/include/orbit/orb-core/corba-environment.h0000644000175000001440000000376111334247617017740 00000000000000#ifndef CORBA_ENVIRONMENT_H #define CORBA_ENVIRONMENT_H 1 #include G_BEGIN_DECLS CORBA_Environment *CORBA_exception__alloc (void); CORBA_Environment *CORBA_exception__copy (const CORBA_Environment *ev); void CORBA_exception_set (CORBA_Environment *ev, CORBA_exception_type major, const CORBA_char *except_repos_id, void *param); CORBA_char *CORBA_exception_id (CORBA_Environment *ev); void *CORBA_exception_value (CORBA_Environment *ev); void CORBA_exception_init (CORBA_Environment *ev); void CORBA_exception_free (CORBA_Environment *ev); CORBA_any *CORBA_exception_as_any (CORBA_Environment *ev); void CORBA_exception_set_system (CORBA_Environment *ev, const CORBA_char *except_repos_id, CORBA_completion_status completed); #ifdef ORBIT2_INTERNAL_API typedef struct { const CORBA_TypeCode tc; void (*marshal) (GIOPSendBuffer *, CORBA_Environment *); } ORBit_exception_marshal_info; typedef struct { const CORBA_TypeCode tc; void (*demarshal) (GIOPRecvBuffer *, CORBA_Environment *); } ORBit_exception_demarshal_info; void ORBit_handle_system_exception (CORBA_Environment *ev, const CORBA_char *nom, CORBA_completion_status status, GIOPRecvBuffer *buf, GIOPSendBuffer *sendbuf); void ORBit_handle_exception (GIOPRecvBuffer *buf, CORBA_Environment *ev, const ORBit_exception_demarshal_info *ex_info, CORBA_ORB orb); GIOPConnection * ORBit_handle_location_forward (GIOPRecvBuffer *buf, CORBA_Object obj); void ORBit_send_system_exception (GIOPSendBuffer *buf, CORBA_Environment *ev); void ORBit_send_user_exception (GIOPSendBuffer *send_buffer, CORBA_Environment *ev, const ORBit_exception_marshal_info *user_exceptions); #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/orb-core/iop-defs.h0000644000175000001440000063560611450333751016021 00000000000000/* * This file was generated by orbit-idl-2 - DO NOT EDIT! */ #ifndef iop_defs_H #define iop_defs_H 1 #include #define ORBIT_IDL_SERIAL 20 #include #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /** typedefs **/ #if !defined(_IOP_ProfileId_defined) #define _IOP_ProfileId_defined 1 typedef CORBA_unsigned_long IOP_ProfileId; #define IOP_ProfileId_marshal(x,y,z) CORBA_unsigned_long_marshal((x),(y),(z)) #define IOP_ProfileId_demarshal(x,y,z,i) CORBA_unsigned_long_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_IOP_ProfileId_0) #define TC_IMPL_TC_IOP_ProfileId_0 'i' #define TC_IMPL_TC_IOP_ProfileId_1 'o' #define TC_IMPL_TC_IOP_ProfileId_2 'p' #define TC_IMPL_TC_IOP_ProfileId_3 '_' #define TC_IMPL_TC_IOP_ProfileId_4 'd' #define TC_IMPL_TC_IOP_ProfileId_5 'e' #define TC_IMPL_TC_IOP_ProfileId_6 'f' #define TC_IMPL_TC_IOP_ProfileId_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IOP_ProfileId_struct; #define TC_IOP_ProfileId ((CORBA_TypeCode)&TC_IOP_ProfileId_struct) #endif #define IOP_ProfileId__alloc() ((IOP_ProfileId *)ORBit_small_alloc (TC_CORBA_unsigned_long)) #define IOP_ProfileId__freekids(m,d) ORBit_small_freekids (TC_CORBA_unsigned_long,(m),(d)) #endif #ifndef IOP_TAG_INTERNET_IOP #define IOP_TAG_INTERNET_IOP 0U #endif /* !IOP_TAG_INTERNET_IOP */ #ifndef IOP_TAG_MULTIPLE_COMPONENTS #define IOP_TAG_MULTIPLE_COMPONENTS 1U #endif /* !IOP_TAG_MULTIPLE_COMPONENTS */ #ifndef IOP_TAG_SCCP_IOP #define IOP_TAG_SCCP_IOP 2U #endif /* !IOP_TAG_SCCP_IOP */ #if !defined(_IOP_TaggedProfile_defined) #define _IOP_TaggedProfile_defined 1 typedef struct IOP_TaggedProfile_type IOP_TaggedProfile; #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif struct IOP_TaggedProfile_type { IOP_ProfileId tag; CORBA_sequence_CORBA_octet profile_data; }; #if !defined(TC_IMPL_TC_IOP_TaggedProfile_0) #define TC_IMPL_TC_IOP_TaggedProfile_0 'i' #define TC_IMPL_TC_IOP_TaggedProfile_1 'o' #define TC_IMPL_TC_IOP_TaggedProfile_2 'p' #define TC_IMPL_TC_IOP_TaggedProfile_3 '_' #define TC_IMPL_TC_IOP_TaggedProfile_4 'd' #define TC_IMPL_TC_IOP_TaggedProfile_5 'e' #define TC_IMPL_TC_IOP_TaggedProfile_6 'f' #define TC_IMPL_TC_IOP_TaggedProfile_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IOP_TaggedProfile_struct; #define TC_IOP_TaggedProfile ((CORBA_TypeCode)&TC_IOP_TaggedProfile_struct) #endif #define IOP_TaggedProfile__alloc() ((IOP_TaggedProfile *)ORBit_small_alloc (TC_IOP_TaggedProfile)) #define IOP_TaggedProfile__freekids(m,d) ORBit_small_freekids (TC_IOP_TaggedProfile,(m),(d)) #endif #if !defined(_IOP_IOR_defined) #define _IOP_IOR_defined 1 typedef struct IOP_IOR_type IOP_IOR; #if !defined(ORBIT_DECL_CORBA_sequence_IOP_TaggedProfile) #define ORBIT_DECL_CORBA_sequence_IOP_TaggedProfile 1 #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedProfile_0 'i' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedProfile_1 'o' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedProfile_2 'p' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedProfile_3 '_' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedProfile_4 'd' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedProfile_5 'e' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedProfile_6 'f' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedProfile_7 's' #if !defined(_CORBA_sequence_IOP_TaggedProfile_defined) #define _CORBA_sequence_IOP_TaggedProfile_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; IOP_TaggedProfile* _buffer; CORBA_boolean _release; } CORBA_sequence_IOP_TaggedProfile; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_IOP_TaggedProfile_0) #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedProfile_0 'i' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedProfile_1 'o' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedProfile_2 'p' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedProfile_3 '_' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedProfile_4 'd' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedProfile_5 'e' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedProfile_6 'f' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedProfile_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_IOP_TaggedProfile_struct; #define TC_CORBA_sequence_IOP_TaggedProfile ((CORBA_TypeCode)&TC_CORBA_sequence_IOP_TaggedProfile_struct) #endif #define CORBA_sequence_IOP_TaggedProfile__alloc() ((CORBA_sequence_IOP_TaggedProfile *)ORBit_small_alloc (TC_CORBA_sequence_IOP_TaggedProfile)) #define CORBA_sequence_IOP_TaggedProfile__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_IOP_TaggedProfile,(m),(d)) #define CORBA_sequence_IOP_TaggedProfile_allocbuf(l) ((IOP_TaggedProfile*)ORBit_small_allocbuf (TC_CORBA_sequence_IOP_TaggedProfile, (l))) #define CORBA_sequence_IOP_TaggedProfile_allocbuf(l) ((IOP_TaggedProfile*)ORBit_small_allocbuf (TC_CORBA_sequence_IOP_TaggedProfile, (l))) #endif struct IOP_IOR_type { CORBA_string type_id; CORBA_sequence_IOP_TaggedProfile profiles; }; #if !defined(TC_IMPL_TC_IOP_IOR_0) #define TC_IMPL_TC_IOP_IOR_0 'i' #define TC_IMPL_TC_IOP_IOR_1 'o' #define TC_IMPL_TC_IOP_IOR_2 'p' #define TC_IMPL_TC_IOP_IOR_3 '_' #define TC_IMPL_TC_IOP_IOR_4 'd' #define TC_IMPL_TC_IOP_IOR_5 'e' #define TC_IMPL_TC_IOP_IOR_6 'f' #define TC_IMPL_TC_IOP_IOR_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IOP_IOR_struct; #define TC_IOP_IOR ((CORBA_TypeCode)&TC_IOP_IOR_struct) #endif #define IOP_IOR__alloc() ((IOP_IOR *)ORBit_small_alloc (TC_IOP_IOR)) #define IOP_IOR__freekids(m,d) ORBit_small_freekids (TC_IOP_IOR,(m),(d)) #endif #if !defined(_IOP_ComponentId_defined) #define _IOP_ComponentId_defined 1 typedef CORBA_unsigned_long IOP_ComponentId; #define IOP_ComponentId_marshal(x,y,z) CORBA_unsigned_long_marshal((x),(y),(z)) #define IOP_ComponentId_demarshal(x,y,z,i) CORBA_unsigned_long_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_IOP_ComponentId_0) #define TC_IMPL_TC_IOP_ComponentId_0 'i' #define TC_IMPL_TC_IOP_ComponentId_1 'o' #define TC_IMPL_TC_IOP_ComponentId_2 'p' #define TC_IMPL_TC_IOP_ComponentId_3 '_' #define TC_IMPL_TC_IOP_ComponentId_4 'd' #define TC_IMPL_TC_IOP_ComponentId_5 'e' #define TC_IMPL_TC_IOP_ComponentId_6 'f' #define TC_IMPL_TC_IOP_ComponentId_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IOP_ComponentId_struct; #define TC_IOP_ComponentId ((CORBA_TypeCode)&TC_IOP_ComponentId_struct) #endif #define IOP_ComponentId__alloc() ((IOP_ComponentId *)ORBit_small_alloc (TC_CORBA_unsigned_long)) #define IOP_ComponentId__freekids(m,d) ORBit_small_freekids (TC_CORBA_unsigned_long,(m),(d)) #endif #if !defined(_IOP_TaggedComponent_defined) #define _IOP_TaggedComponent_defined 1 typedef struct IOP_TaggedComponent_type IOP_TaggedComponent; #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif struct IOP_TaggedComponent_type { IOP_ComponentId tag; CORBA_sequence_CORBA_octet component_data; }; #if !defined(TC_IMPL_TC_IOP_TaggedComponent_0) #define TC_IMPL_TC_IOP_TaggedComponent_0 'i' #define TC_IMPL_TC_IOP_TaggedComponent_1 'o' #define TC_IMPL_TC_IOP_TaggedComponent_2 'p' #define TC_IMPL_TC_IOP_TaggedComponent_3 '_' #define TC_IMPL_TC_IOP_TaggedComponent_4 'd' #define TC_IMPL_TC_IOP_TaggedComponent_5 'e' #define TC_IMPL_TC_IOP_TaggedComponent_6 'f' #define TC_IMPL_TC_IOP_TaggedComponent_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IOP_TaggedComponent_struct; #define TC_IOP_TaggedComponent ((CORBA_TypeCode)&TC_IOP_TaggedComponent_struct) #endif #define IOP_TaggedComponent__alloc() ((IOP_TaggedComponent *)ORBit_small_alloc (TC_IOP_TaggedComponent)) #define IOP_TaggedComponent__freekids(m,d) ORBit_small_freekids (TC_IOP_TaggedComponent,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_IOP_TaggedComponent) #define ORBIT_DECL_CORBA_sequence_IOP_TaggedComponent 1 #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_0 'i' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_1 'o' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_2 'p' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_3 '_' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_4 'd' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_5 'e' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_6 'f' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_7 's' #if !defined(_CORBA_sequence_IOP_TaggedComponent_defined) #define _CORBA_sequence_IOP_TaggedComponent_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; IOP_TaggedComponent* _buffer; CORBA_boolean _release; } CORBA_sequence_IOP_TaggedComponent; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_0) #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_0 'i' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_1 'o' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_2 'p' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_3 '_' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_4 'd' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_5 'e' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_6 'f' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_IOP_TaggedComponent_struct; #define TC_CORBA_sequence_IOP_TaggedComponent ((CORBA_TypeCode)&TC_CORBA_sequence_IOP_TaggedComponent_struct) #endif #define CORBA_sequence_IOP_TaggedComponent__alloc() ((CORBA_sequence_IOP_TaggedComponent *)ORBit_small_alloc (TC_CORBA_sequence_IOP_TaggedComponent)) #define CORBA_sequence_IOP_TaggedComponent__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_IOP_TaggedComponent,(m),(d)) #define CORBA_sequence_IOP_TaggedComponent_allocbuf(l) ((IOP_TaggedComponent*)ORBit_small_allocbuf (TC_CORBA_sequence_IOP_TaggedComponent, (l))) #define CORBA_sequence_IOP_TaggedComponent_allocbuf(l) ((IOP_TaggedComponent*)ORBit_small_allocbuf (TC_CORBA_sequence_IOP_TaggedComponent, (l))) #endif #if !defined(_IOP_MultipleComponentProfile_defined) #define _IOP_MultipleComponentProfile_defined 1 typedef CORBA_sequence_IOP_TaggedComponent IOP_MultipleComponentProfile; #define IOP_MultipleComponentProfile_marshal(x,y,z) CORBA_sequence_IOP_TaggedComponent_marshal((x),(y),(z)) #define IOP_MultipleComponentProfile_demarshal(x,y,z,i) CORBA_sequence_IOP_TaggedComponent_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_IOP_MultipleComponentProfile_0) #define TC_IMPL_TC_IOP_MultipleComponentProfile_0 'i' #define TC_IMPL_TC_IOP_MultipleComponentProfile_1 'o' #define TC_IMPL_TC_IOP_MultipleComponentProfile_2 'p' #define TC_IMPL_TC_IOP_MultipleComponentProfile_3 '_' #define TC_IMPL_TC_IOP_MultipleComponentProfile_4 'd' #define TC_IMPL_TC_IOP_MultipleComponentProfile_5 'e' #define TC_IMPL_TC_IOP_MultipleComponentProfile_6 'f' #define TC_IMPL_TC_IOP_MultipleComponentProfile_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IOP_MultipleComponentProfile_struct; #define TC_IOP_MultipleComponentProfile ((CORBA_TypeCode)&TC_IOP_MultipleComponentProfile_struct) #endif #define IOP_MultipleComponentProfile__alloc() ((IOP_MultipleComponentProfile *)ORBit_small_alloc (TC_CORBA_sequence_IOP_TaggedComponent)) #define IOP_MultipleComponentProfile__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_IOP_TaggedComponent,(m),(d)) #define IOP_MultipleComponentProfile_allocbuf(l) ((IOP_TaggedComponent*)ORBit_small_allocbuf (TC_CORBA_sequence_IOP_TaggedComponent, (l))) #endif #ifndef IOP_TAG_ORB_TYPE #define IOP_TAG_ORB_TYPE 0U #endif /* !IOP_TAG_ORB_TYPE */ #ifndef IOP_TAG_CODE_SETS #define IOP_TAG_CODE_SETS 1U #endif /* !IOP_TAG_CODE_SETS */ #ifndef IOP_TAG_POLICIES #define IOP_TAG_POLICIES 2U #endif /* !IOP_TAG_POLICIES */ #ifndef IOP_TAG_ALTERNATE_IIOP_ADDRESS #define IOP_TAG_ALTERNATE_IIOP_ADDRESS 3U #endif /* !IOP_TAG_ALTERNATE_IIOP_ADDRESS */ #ifndef IOP_TAG_ASSOCIATION_OPTIONS #define IOP_TAG_ASSOCIATION_OPTIONS 13U #endif /* !IOP_TAG_ASSOCIATION_OPTIONS */ #ifndef IOP_TAG_SEC_NAME #define IOP_TAG_SEC_NAME 14U #endif /* !IOP_TAG_SEC_NAME */ #ifndef IOP_TAG_SPKM_1_SEC_MECH #define IOP_TAG_SPKM_1_SEC_MECH 15U #endif /* !IOP_TAG_SPKM_1_SEC_MECH */ #ifndef IOP_TAG_SPKM_2_SEC_MECH #define IOP_TAG_SPKM_2_SEC_MECH 16U #endif /* !IOP_TAG_SPKM_2_SEC_MECH */ #ifndef IOP_TAG_KerberosV5_SEC_MECH #define IOP_TAG_KerberosV5_SEC_MECH 17U #endif /* !IOP_TAG_KerberosV5_SEC_MECH */ #ifndef IOP_TAG_CSI_ECMA_Secret_SEC_MECH #define IOP_TAG_CSI_ECMA_Secret_SEC_MECH 18U #endif /* !IOP_TAG_CSI_ECMA_Secret_SEC_MECH */ #ifndef IOP_TAG_CSI_ECMA_Hybrid_SEC_MECH #define IOP_TAG_CSI_ECMA_Hybrid_SEC_MECH 19U #endif /* !IOP_TAG_CSI_ECMA_Hybrid_SEC_MECH */ #ifndef IOP_TAG_SSL_SEC_TRANS #define IOP_TAG_SSL_SEC_TRANS 20U #endif /* !IOP_TAG_SSL_SEC_TRANS */ #ifndef IOP_TAG_CSI_ECMA_Public_SEC_MECH #define IOP_TAG_CSI_ECMA_Public_SEC_MECH 21U #endif /* !IOP_TAG_CSI_ECMA_Public_SEC_MECH */ #ifndef IOP_TAG_GENERIC_SEC_MECH #define IOP_TAG_GENERIC_SEC_MECH 22U #endif /* !IOP_TAG_GENERIC_SEC_MECH */ #ifndef IOP_TAG_FIREWALL_TRANS #define IOP_TAG_FIREWALL_TRANS 23U #endif /* !IOP_TAG_FIREWALL_TRANS */ #ifndef IOP_TAG_SCCP_CONTACT_INFO #define IOP_TAG_SCCP_CONTACT_INFO 24U #endif /* !IOP_TAG_SCCP_CONTACT_INFO */ #ifndef IOP_TAG_JAVA_CODEBASE #define IOP_TAG_JAVA_CODEBASE 25U #endif /* !IOP_TAG_JAVA_CODEBASE */ #ifndef IOP_TAG_TRANSACTION_POLICY #define IOP_TAG_TRANSACTION_POLICY 26U #endif /* !IOP_TAG_TRANSACTION_POLICY */ #ifndef IOP_TAG_MESSAGE_ROUTER #define IOP_TAG_MESSAGE_ROUTER 30U #endif /* !IOP_TAG_MESSAGE_ROUTER */ #ifndef IOP_TAG_OTS_POLICY #define IOP_TAG_OTS_POLICY 31U #endif /* !IOP_TAG_OTS_POLICY */ #ifndef IOP_TAG_INV_POLICY #define IOP_TAG_INV_POLICY 32U #endif /* !IOP_TAG_INV_POLICY */ #ifndef IOP_TAG_CSI_SEC_MECH_LIST #define IOP_TAG_CSI_SEC_MECH_LIST 33U #endif /* !IOP_TAG_CSI_SEC_MECH_LIST */ #ifndef IOP_TAG_NULL_TAG #define IOP_TAG_NULL_TAG 34U #endif /* !IOP_TAG_NULL_TAG */ #ifndef IOP_TAG_SECIOP_SEC_TRANS #define IOP_TAG_SECIOP_SEC_TRANS 35U #endif /* !IOP_TAG_SECIOP_SEC_TRANS */ #ifndef IOP_TAG_TLS_SEC_TRANS #define IOP_TAG_TLS_SEC_TRANS 36U #endif /* !IOP_TAG_TLS_SEC_TRANS */ #ifndef IOP_TAG_ACTIVITY_POLICY #define IOP_TAG_ACTIVITY_POLICY 37U #endif /* !IOP_TAG_ACTIVITY_POLICY */ #ifndef IOP_TAG_COMPLETE_OBJECT_KEY #define IOP_TAG_COMPLETE_OBJECT_KEY 5U #endif /* !IOP_TAG_COMPLETE_OBJECT_KEY */ #ifndef IOP_TAG_ENDPOINT_ID_POSITION #define IOP_TAG_ENDPOINT_ID_POSITION 6U #endif /* !IOP_TAG_ENDPOINT_ID_POSITION */ #ifndef IOP_TAG_LOCATION_POLICY #define IOP_TAG_LOCATION_POLICY 12U #endif /* !IOP_TAG_LOCATION_POLICY */ #ifndef IOP_TAG_DCE_STRING_BINDING #define IOP_TAG_DCE_STRING_BINDING 100U #endif /* !IOP_TAG_DCE_STRING_BINDING */ #ifndef IOP_TAG_DCE_BINDING_NAME #define IOP_TAG_DCE_BINDING_NAME 101U #endif /* !IOP_TAG_DCE_BINDING_NAME */ #ifndef IOP_TAG_DCE_NO_PIPES #define IOP_TAG_DCE_NO_PIPES 102U #endif /* !IOP_TAG_DCE_NO_PIPES */ #ifndef IOP_TAG_DCE_SEC_MECH #define IOP_TAG_DCE_SEC_MECH 103U #endif /* !IOP_TAG_DCE_SEC_MECH */ #ifndef IOP_TAG_INET_SEC_TRANS #define IOP_TAG_INET_SEC_TRANS 123U #endif /* !IOP_TAG_INET_SEC_TRANS */ #if !defined(_IOP_ServiceId_defined) #define _IOP_ServiceId_defined 1 typedef CORBA_unsigned_long IOP_ServiceId; #define IOP_ServiceId_marshal(x,y,z) CORBA_unsigned_long_marshal((x),(y),(z)) #define IOP_ServiceId_demarshal(x,y,z,i) CORBA_unsigned_long_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_IOP_ServiceId_0) #define TC_IMPL_TC_IOP_ServiceId_0 'i' #define TC_IMPL_TC_IOP_ServiceId_1 'o' #define TC_IMPL_TC_IOP_ServiceId_2 'p' #define TC_IMPL_TC_IOP_ServiceId_3 '_' #define TC_IMPL_TC_IOP_ServiceId_4 'd' #define TC_IMPL_TC_IOP_ServiceId_5 'e' #define TC_IMPL_TC_IOP_ServiceId_6 'f' #define TC_IMPL_TC_IOP_ServiceId_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IOP_ServiceId_struct; #define TC_IOP_ServiceId ((CORBA_TypeCode)&TC_IOP_ServiceId_struct) #endif #define IOP_ServiceId__alloc() ((IOP_ServiceId *)ORBit_small_alloc (TC_CORBA_unsigned_long)) #define IOP_ServiceId__freekids(m,d) ORBit_small_freekids (TC_CORBA_unsigned_long,(m),(d)) #endif #if !defined(_IOP_ServiceContext_defined) #define _IOP_ServiceContext_defined 1 typedef struct IOP_ServiceContext_type IOP_ServiceContext; #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif struct IOP_ServiceContext_type { IOP_ServiceId context_id; CORBA_sequence_CORBA_octet context_data; }; #if !defined(TC_IMPL_TC_IOP_ServiceContext_0) #define TC_IMPL_TC_IOP_ServiceContext_0 'i' #define TC_IMPL_TC_IOP_ServiceContext_1 'o' #define TC_IMPL_TC_IOP_ServiceContext_2 'p' #define TC_IMPL_TC_IOP_ServiceContext_3 '_' #define TC_IMPL_TC_IOP_ServiceContext_4 'd' #define TC_IMPL_TC_IOP_ServiceContext_5 'e' #define TC_IMPL_TC_IOP_ServiceContext_6 'f' #define TC_IMPL_TC_IOP_ServiceContext_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IOP_ServiceContext_struct; #define TC_IOP_ServiceContext ((CORBA_TypeCode)&TC_IOP_ServiceContext_struct) #endif #define IOP_ServiceContext__alloc() ((IOP_ServiceContext *)ORBit_small_alloc (TC_IOP_ServiceContext)) #define IOP_ServiceContext__freekids(m,d) ORBit_small_freekids (TC_IOP_ServiceContext,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_IOP_ServiceContext) #define ORBIT_DECL_CORBA_sequence_IOP_ServiceContext 1 #define ORBIT_IMPL_CORBA_sequence_IOP_ServiceContext_0 'i' #define ORBIT_IMPL_CORBA_sequence_IOP_ServiceContext_1 'o' #define ORBIT_IMPL_CORBA_sequence_IOP_ServiceContext_2 'p' #define ORBIT_IMPL_CORBA_sequence_IOP_ServiceContext_3 '_' #define ORBIT_IMPL_CORBA_sequence_IOP_ServiceContext_4 'd' #define ORBIT_IMPL_CORBA_sequence_IOP_ServiceContext_5 'e' #define ORBIT_IMPL_CORBA_sequence_IOP_ServiceContext_6 'f' #define ORBIT_IMPL_CORBA_sequence_IOP_ServiceContext_7 's' #if !defined(_CORBA_sequence_IOP_ServiceContext_defined) #define _CORBA_sequence_IOP_ServiceContext_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; IOP_ServiceContext* _buffer; CORBA_boolean _release; } CORBA_sequence_IOP_ServiceContext; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_IOP_ServiceContext_0) #define TC_IMPL_TC_CORBA_sequence_IOP_ServiceContext_0 'i' #define TC_IMPL_TC_CORBA_sequence_IOP_ServiceContext_1 'o' #define TC_IMPL_TC_CORBA_sequence_IOP_ServiceContext_2 'p' #define TC_IMPL_TC_CORBA_sequence_IOP_ServiceContext_3 '_' #define TC_IMPL_TC_CORBA_sequence_IOP_ServiceContext_4 'd' #define TC_IMPL_TC_CORBA_sequence_IOP_ServiceContext_5 'e' #define TC_IMPL_TC_CORBA_sequence_IOP_ServiceContext_6 'f' #define TC_IMPL_TC_CORBA_sequence_IOP_ServiceContext_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_IOP_ServiceContext_struct; #define TC_CORBA_sequence_IOP_ServiceContext ((CORBA_TypeCode)&TC_CORBA_sequence_IOP_ServiceContext_struct) #endif #define CORBA_sequence_IOP_ServiceContext__alloc() ((CORBA_sequence_IOP_ServiceContext *)ORBit_small_alloc (TC_CORBA_sequence_IOP_ServiceContext)) #define CORBA_sequence_IOP_ServiceContext__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_IOP_ServiceContext,(m),(d)) #define CORBA_sequence_IOP_ServiceContext_allocbuf(l) ((IOP_ServiceContext*)ORBit_small_allocbuf (TC_CORBA_sequence_IOP_ServiceContext, (l))) #define CORBA_sequence_IOP_ServiceContext_allocbuf(l) ((IOP_ServiceContext*)ORBit_small_allocbuf (TC_CORBA_sequence_IOP_ServiceContext, (l))) #endif #if !defined(_IOP_ServiceContextList_defined) #define _IOP_ServiceContextList_defined 1 typedef CORBA_sequence_IOP_ServiceContext IOP_ServiceContextList; #define IOP_ServiceContextList_marshal(x,y,z) CORBA_sequence_IOP_ServiceContext_marshal((x),(y),(z)) #define IOP_ServiceContextList_demarshal(x,y,z,i) CORBA_sequence_IOP_ServiceContext_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_IOP_ServiceContextList_0) #define TC_IMPL_TC_IOP_ServiceContextList_0 'i' #define TC_IMPL_TC_IOP_ServiceContextList_1 'o' #define TC_IMPL_TC_IOP_ServiceContextList_2 'p' #define TC_IMPL_TC_IOP_ServiceContextList_3 '_' #define TC_IMPL_TC_IOP_ServiceContextList_4 'd' #define TC_IMPL_TC_IOP_ServiceContextList_5 'e' #define TC_IMPL_TC_IOP_ServiceContextList_6 'f' #define TC_IMPL_TC_IOP_ServiceContextList_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IOP_ServiceContextList_struct; #define TC_IOP_ServiceContextList ((CORBA_TypeCode)&TC_IOP_ServiceContextList_struct) #endif #define IOP_ServiceContextList__alloc() ((IOP_ServiceContextList *)ORBit_small_alloc (TC_CORBA_sequence_IOP_ServiceContext)) #define IOP_ServiceContextList__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_IOP_ServiceContext,(m),(d)) #define IOP_ServiceContextList_allocbuf(l) ((IOP_ServiceContext*)ORBit_small_allocbuf (TC_CORBA_sequence_IOP_ServiceContext, (l))) #endif #ifndef IOP_TransactionService #define IOP_TransactionService 0U #endif /* !IOP_TransactionService */ #ifndef IOP_CodeSets #define IOP_CodeSets 1U #endif /* !IOP_CodeSets */ #ifndef IOP_ChainBypassCheck #define IOP_ChainBypassCheck 2U #endif /* !IOP_ChainBypassCheck */ #ifndef IOP_ChainBypassInfo #define IOP_ChainBypassInfo 3U #endif /* !IOP_ChainBypassInfo */ #ifndef IOP_LogicalThreadId #define IOP_LogicalThreadId 4U #endif /* !IOP_LogicalThreadId */ #ifndef IOP_BI_DIR_IIOP #define IOP_BI_DIR_IIOP 5U #endif /* !IOP_BI_DIR_IIOP */ #ifndef IOP_SendingContextRunTime #define IOP_SendingContextRunTime 6U #endif /* !IOP_SendingContextRunTime */ #ifndef IOP_INVOCATION_POLICIES #define IOP_INVOCATION_POLICIES 7U #endif /* !IOP_INVOCATION_POLICIES */ #ifndef IOP_FORWARDED_IDENTITY #define IOP_FORWARDED_IDENTITY 8U #endif /* !IOP_FORWARDED_IDENTITY */ #ifndef IOP_UnknownExceptionInfo #define IOP_UnknownExceptionInfo 9U #endif /* !IOP_UnknownExceptionInfo */ #ifndef IOP_RTCorbaPriority #define IOP_RTCorbaPriority 10U #endif /* !IOP_RTCorbaPriority */ #ifndef IOP_RTCorbaPriorityRange #define IOP_RTCorbaPriorityRange 11U #endif /* !IOP_RTCorbaPriorityRange */ #ifndef IOP_FT_GROUP_VERSION #define IOP_FT_GROUP_VERSION 12U #endif /* !IOP_FT_GROUP_VERSION */ #ifndef IOP_FT_REQUEST #define IOP_FT_REQUEST 13U #endif /* !IOP_FT_REQUEST */ #ifndef IOP_ExceptionDetailMessage #define IOP_ExceptionDetailMessage 14U #endif /* !IOP_ExceptionDetailMessage */ #ifndef IOP_SecurityAttributeService #define IOP_SecurityAttributeService 15U #endif /* !IOP_SecurityAttributeService */ #ifndef IOP_ActivityService #define IOP_ActivityService 16U #endif /* !IOP_ActivityService */ #if !defined(ORBIT_DECL_IOP_Codec) && !defined(_IOP_Codec_defined) #define ORBIT_DECL_IOP_Codec 1 #define _IOP_Codec_defined 1 #define IOP_Codec__freekids CORBA_Object__freekids typedef CORBA_Object IOP_Codec; extern CORBA_unsigned_long IOP_Codec__classid; #if !defined(TC_IMPL_TC_IOP_Codec_0) #define TC_IMPL_TC_IOP_Codec_0 'i' #define TC_IMPL_TC_IOP_Codec_1 'o' #define TC_IMPL_TC_IOP_Codec_2 'p' #define TC_IMPL_TC_IOP_Codec_3 '_' #define TC_IMPL_TC_IOP_Codec_4 'd' #define TC_IMPL_TC_IOP_Codec_5 'e' #define TC_IMPL_TC_IOP_Codec_6 'f' #define TC_IMPL_TC_IOP_Codec_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IOP_Codec_struct; #define TC_IOP_Codec ((CORBA_TypeCode)&TC_IOP_Codec_struct) #endif #endif #undef ex_IOP_Codec_InvalidTypeForEncoding #define ex_IOP_Codec_InvalidTypeForEncoding "IDL:omg.org/IOP/Codec/InvalidTypeForEncoding:1.0" #if !defined(_IOP_Codec_InvalidTypeForEncoding_defined) #define _IOP_Codec_InvalidTypeForEncoding_defined 1 typedef struct IOP_Codec_InvalidTypeForEncoding_type IOP_Codec_InvalidTypeForEncoding; struct IOP_Codec_InvalidTypeForEncoding_type { int dummy; }; #if !defined(TC_IMPL_TC_IOP_Codec_InvalidTypeForEncoding_0) #define TC_IMPL_TC_IOP_Codec_InvalidTypeForEncoding_0 'i' #define TC_IMPL_TC_IOP_Codec_InvalidTypeForEncoding_1 'o' #define TC_IMPL_TC_IOP_Codec_InvalidTypeForEncoding_2 'p' #define TC_IMPL_TC_IOP_Codec_InvalidTypeForEncoding_3 '_' #define TC_IMPL_TC_IOP_Codec_InvalidTypeForEncoding_4 'd' #define TC_IMPL_TC_IOP_Codec_InvalidTypeForEncoding_5 'e' #define TC_IMPL_TC_IOP_Codec_InvalidTypeForEncoding_6 'f' #define TC_IMPL_TC_IOP_Codec_InvalidTypeForEncoding_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IOP_Codec_InvalidTypeForEncoding_struct; #define TC_IOP_Codec_InvalidTypeForEncoding ((CORBA_TypeCode)&TC_IOP_Codec_InvalidTypeForEncoding_struct) #endif #define IOP_Codec_InvalidTypeForEncoding__alloc() ((IOP_Codec_InvalidTypeForEncoding *)ORBit_small_alloc (TC_IOP_Codec_InvalidTypeForEncoding)) #define IOP_Codec_InvalidTypeForEncoding__freekids(m,d) ORBit_small_freekids (TC_IOP_Codec_InvalidTypeForEncoding,(m),(d)) #endif #undef ex_IOP_Codec_FormatMismatch #define ex_IOP_Codec_FormatMismatch "IDL:omg.org/IOP/Codec/FormatMismatch:1.0" #if !defined(_IOP_Codec_FormatMismatch_defined) #define _IOP_Codec_FormatMismatch_defined 1 typedef struct IOP_Codec_FormatMismatch_type IOP_Codec_FormatMismatch; struct IOP_Codec_FormatMismatch_type { int dummy; }; #if !defined(TC_IMPL_TC_IOP_Codec_FormatMismatch_0) #define TC_IMPL_TC_IOP_Codec_FormatMismatch_0 'i' #define TC_IMPL_TC_IOP_Codec_FormatMismatch_1 'o' #define TC_IMPL_TC_IOP_Codec_FormatMismatch_2 'p' #define TC_IMPL_TC_IOP_Codec_FormatMismatch_3 '_' #define TC_IMPL_TC_IOP_Codec_FormatMismatch_4 'd' #define TC_IMPL_TC_IOP_Codec_FormatMismatch_5 'e' #define TC_IMPL_TC_IOP_Codec_FormatMismatch_6 'f' #define TC_IMPL_TC_IOP_Codec_FormatMismatch_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IOP_Codec_FormatMismatch_struct; #define TC_IOP_Codec_FormatMismatch ((CORBA_TypeCode)&TC_IOP_Codec_FormatMismatch_struct) #endif #define IOP_Codec_FormatMismatch__alloc() ((IOP_Codec_FormatMismatch *)ORBit_small_alloc (TC_IOP_Codec_FormatMismatch)) #define IOP_Codec_FormatMismatch__freekids(m,d) ORBit_small_freekids (TC_IOP_Codec_FormatMismatch,(m),(d)) #endif #undef ex_IOP_Codec_TypeMismatch #define ex_IOP_Codec_TypeMismatch "IDL:omg.org/IOP/Codec/TypeMismatch:1.0" #if !defined(_IOP_Codec_TypeMismatch_defined) #define _IOP_Codec_TypeMismatch_defined 1 typedef struct IOP_Codec_TypeMismatch_type IOP_Codec_TypeMismatch; struct IOP_Codec_TypeMismatch_type { int dummy; }; #if !defined(TC_IMPL_TC_IOP_Codec_TypeMismatch_0) #define TC_IMPL_TC_IOP_Codec_TypeMismatch_0 'i' #define TC_IMPL_TC_IOP_Codec_TypeMismatch_1 'o' #define TC_IMPL_TC_IOP_Codec_TypeMismatch_2 'p' #define TC_IMPL_TC_IOP_Codec_TypeMismatch_3 '_' #define TC_IMPL_TC_IOP_Codec_TypeMismatch_4 'd' #define TC_IMPL_TC_IOP_Codec_TypeMismatch_5 'e' #define TC_IMPL_TC_IOP_Codec_TypeMismatch_6 'f' #define TC_IMPL_TC_IOP_Codec_TypeMismatch_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IOP_Codec_TypeMismatch_struct; #define TC_IOP_Codec_TypeMismatch ((CORBA_TypeCode)&TC_IOP_Codec_TypeMismatch_struct) #endif #define IOP_Codec_TypeMismatch__alloc() ((IOP_Codec_TypeMismatch *)ORBit_small_alloc (TC_IOP_Codec_TypeMismatch)) #define IOP_Codec_TypeMismatch__freekids(m,d) ORBit_small_freekids (TC_IOP_Codec_TypeMismatch,(m),(d)) #endif #if !defined(_IOP_EncodingFormat_defined) #define _IOP_EncodingFormat_defined 1 typedef CORBA_short IOP_EncodingFormat; #define IOP_EncodingFormat_marshal(x,y,z) CORBA_short_marshal((x),(y),(z)) #define IOP_EncodingFormat_demarshal(x,y,z,i) CORBA_short_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_IOP_EncodingFormat_0) #define TC_IMPL_TC_IOP_EncodingFormat_0 'i' #define TC_IMPL_TC_IOP_EncodingFormat_1 'o' #define TC_IMPL_TC_IOP_EncodingFormat_2 'p' #define TC_IMPL_TC_IOP_EncodingFormat_3 '_' #define TC_IMPL_TC_IOP_EncodingFormat_4 'd' #define TC_IMPL_TC_IOP_EncodingFormat_5 'e' #define TC_IMPL_TC_IOP_EncodingFormat_6 'f' #define TC_IMPL_TC_IOP_EncodingFormat_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IOP_EncodingFormat_struct; #define TC_IOP_EncodingFormat ((CORBA_TypeCode)&TC_IOP_EncodingFormat_struct) #endif #define IOP_EncodingFormat__alloc() ((IOP_EncodingFormat *)ORBit_small_alloc (TC_CORBA_short)) #define IOP_EncodingFormat__freekids(m,d) ORBit_small_freekids (TC_CORBA_short,(m),(d)) #endif #ifndef IOP_ENCODING_CDR_ENCAPS #define IOP_ENCODING_CDR_ENCAPS 0 #endif /* !IOP_ENCODING_CDR_ENCAPS */ #if !defined(_IOP_Encoding_defined) #define _IOP_Encoding_defined 1 typedef struct IOP_Encoding_type IOP_Encoding; struct IOP_Encoding_type { IOP_EncodingFormat format; CORBA_octet major_version; CORBA_octet minor_version; }; #if !defined(TC_IMPL_TC_IOP_Encoding_0) #define TC_IMPL_TC_IOP_Encoding_0 'i' #define TC_IMPL_TC_IOP_Encoding_1 'o' #define TC_IMPL_TC_IOP_Encoding_2 'p' #define TC_IMPL_TC_IOP_Encoding_3 '_' #define TC_IMPL_TC_IOP_Encoding_4 'd' #define TC_IMPL_TC_IOP_Encoding_5 'e' #define TC_IMPL_TC_IOP_Encoding_6 'f' #define TC_IMPL_TC_IOP_Encoding_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IOP_Encoding_struct; #define TC_IOP_Encoding ((CORBA_TypeCode)&TC_IOP_Encoding_struct) #endif #define IOP_Encoding__alloc() ((IOP_Encoding *)ORBit_small_alloc (TC_IOP_Encoding)) #define IOP_Encoding__freekids(m,d) ORBit_small_freekids (TC_IOP_Encoding,(m),(d)) #endif #if !defined(ORBIT_DECL_IOP_CodecFactory) && !defined(_IOP_CodecFactory_defined) #define ORBIT_DECL_IOP_CodecFactory 1 #define _IOP_CodecFactory_defined 1 #define IOP_CodecFactory__freekids CORBA_Object__freekids typedef CORBA_Object IOP_CodecFactory; extern CORBA_unsigned_long IOP_CodecFactory__classid; #if !defined(TC_IMPL_TC_IOP_CodecFactory_0) #define TC_IMPL_TC_IOP_CodecFactory_0 'i' #define TC_IMPL_TC_IOP_CodecFactory_1 'o' #define TC_IMPL_TC_IOP_CodecFactory_2 'p' #define TC_IMPL_TC_IOP_CodecFactory_3 '_' #define TC_IMPL_TC_IOP_CodecFactory_4 'd' #define TC_IMPL_TC_IOP_CodecFactory_5 'e' #define TC_IMPL_TC_IOP_CodecFactory_6 'f' #define TC_IMPL_TC_IOP_CodecFactory_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IOP_CodecFactory_struct; #define TC_IOP_CodecFactory ((CORBA_TypeCode)&TC_IOP_CodecFactory_struct) #endif #endif #undef ex_IOP_CodecFactory_UnknownEncoding #define ex_IOP_CodecFactory_UnknownEncoding "IDL:omg.org/IOP/CodecFactory/UnknownEncoding:1.0" #if !defined(_IOP_CodecFactory_UnknownEncoding_defined) #define _IOP_CodecFactory_UnknownEncoding_defined 1 typedef struct IOP_CodecFactory_UnknownEncoding_type IOP_CodecFactory_UnknownEncoding; struct IOP_CodecFactory_UnknownEncoding_type { int dummy; }; #if !defined(TC_IMPL_TC_IOP_CodecFactory_UnknownEncoding_0) #define TC_IMPL_TC_IOP_CodecFactory_UnknownEncoding_0 'i' #define TC_IMPL_TC_IOP_CodecFactory_UnknownEncoding_1 'o' #define TC_IMPL_TC_IOP_CodecFactory_UnknownEncoding_2 'p' #define TC_IMPL_TC_IOP_CodecFactory_UnknownEncoding_3 '_' #define TC_IMPL_TC_IOP_CodecFactory_UnknownEncoding_4 'd' #define TC_IMPL_TC_IOP_CodecFactory_UnknownEncoding_5 'e' #define TC_IMPL_TC_IOP_CodecFactory_UnknownEncoding_6 'f' #define TC_IMPL_TC_IOP_CodecFactory_UnknownEncoding_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IOP_CodecFactory_UnknownEncoding_struct; #define TC_IOP_CodecFactory_UnknownEncoding ((CORBA_TypeCode)&TC_IOP_CodecFactory_UnknownEncoding_struct) #endif #define IOP_CodecFactory_UnknownEncoding__alloc() ((IOP_CodecFactory_UnknownEncoding *)ORBit_small_alloc (TC_IOP_CodecFactory_UnknownEncoding)) #define IOP_CodecFactory_UnknownEncoding__freekids(m,d) ORBit_small_freekids (TC_IOP_CodecFactory_UnknownEncoding,(m),(d)) #endif #if !defined(_IIOP_Version_defined) #define _IIOP_Version_defined 1 typedef struct IIOP_Version_type IIOP_Version; struct IIOP_Version_type { CORBA_octet major; CORBA_octet minor; }; #if !defined(TC_IMPL_TC_IIOP_Version_0) #define TC_IMPL_TC_IIOP_Version_0 'i' #define TC_IMPL_TC_IIOP_Version_1 'o' #define TC_IMPL_TC_IIOP_Version_2 'p' #define TC_IMPL_TC_IIOP_Version_3 '_' #define TC_IMPL_TC_IIOP_Version_4 'd' #define TC_IMPL_TC_IIOP_Version_5 'e' #define TC_IMPL_TC_IIOP_Version_6 'f' #define TC_IMPL_TC_IIOP_Version_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IIOP_Version_struct; #define TC_IIOP_Version ((CORBA_TypeCode)&TC_IIOP_Version_struct) #endif #define IIOP_Version__alloc() ((IIOP_Version *)ORBit_small_alloc (TC_IIOP_Version)) #define IIOP_Version__freekids(m,d) ORBit_small_freekids (TC_IIOP_Version,(m),(d)) #endif #if !defined(_IIOP_ProfileBody_1_0_defined) #define _IIOP_ProfileBody_1_0_defined 1 typedef struct IIOP_ProfileBody_1_0_type IIOP_ProfileBody_1_0; #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif struct IIOP_ProfileBody_1_0_type { IIOP_Version iiop_version; CORBA_string host; CORBA_unsigned_short port; CORBA_sequence_CORBA_octet object_key; }; #if !defined(TC_IMPL_TC_IIOP_ProfileBody_1_0_0) #define TC_IMPL_TC_IIOP_ProfileBody_1_0_0 'i' #define TC_IMPL_TC_IIOP_ProfileBody_1_0_1 'o' #define TC_IMPL_TC_IIOP_ProfileBody_1_0_2 'p' #define TC_IMPL_TC_IIOP_ProfileBody_1_0_3 '_' #define TC_IMPL_TC_IIOP_ProfileBody_1_0_4 'd' #define TC_IMPL_TC_IIOP_ProfileBody_1_0_5 'e' #define TC_IMPL_TC_IIOP_ProfileBody_1_0_6 'f' #define TC_IMPL_TC_IIOP_ProfileBody_1_0_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IIOP_ProfileBody_1_0_struct; #define TC_IIOP_ProfileBody_1_0 ((CORBA_TypeCode)&TC_IIOP_ProfileBody_1_0_struct) #endif #define IIOP_ProfileBody_1_0__alloc() ((IIOP_ProfileBody_1_0 *)ORBit_small_alloc (TC_IIOP_ProfileBody_1_0)) #define IIOP_ProfileBody_1_0__freekids(m,d) ORBit_small_freekids (TC_IIOP_ProfileBody_1_0,(m),(d)) #endif #if !defined(_IIOP_ProfileBody_1_1_defined) #define _IIOP_ProfileBody_1_1_defined 1 typedef struct IIOP_ProfileBody_1_1_type IIOP_ProfileBody_1_1; #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_IOP_TaggedComponent) #define ORBIT_DECL_CORBA_sequence_IOP_TaggedComponent 1 #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_0 'i' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_1 'o' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_2 'p' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_3 '_' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_4 'd' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_5 'e' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_6 'f' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_7 's' #if !defined(_CORBA_sequence_IOP_TaggedComponent_defined) #define _CORBA_sequence_IOP_TaggedComponent_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; IOP_TaggedComponent* _buffer; CORBA_boolean _release; } CORBA_sequence_IOP_TaggedComponent; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_0) #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_0 'i' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_1 'o' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_2 'p' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_3 '_' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_4 'd' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_5 'e' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_6 'f' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_IOP_TaggedComponent_struct; #define TC_CORBA_sequence_IOP_TaggedComponent ((CORBA_TypeCode)&TC_CORBA_sequence_IOP_TaggedComponent_struct) #endif #define CORBA_sequence_IOP_TaggedComponent__alloc() ((CORBA_sequence_IOP_TaggedComponent *)ORBit_small_alloc (TC_CORBA_sequence_IOP_TaggedComponent)) #define CORBA_sequence_IOP_TaggedComponent__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_IOP_TaggedComponent,(m),(d)) #define CORBA_sequence_IOP_TaggedComponent_allocbuf(l) ((IOP_TaggedComponent*)ORBit_small_allocbuf (TC_CORBA_sequence_IOP_TaggedComponent, (l))) #define CORBA_sequence_IOP_TaggedComponent_allocbuf(l) ((IOP_TaggedComponent*)ORBit_small_allocbuf (TC_CORBA_sequence_IOP_TaggedComponent, (l))) #endif struct IIOP_ProfileBody_1_1_type { IIOP_Version iiop_version; CORBA_string host; CORBA_unsigned_short port; CORBA_sequence_CORBA_octet object_key; CORBA_sequence_IOP_TaggedComponent components; }; #if !defined(TC_IMPL_TC_IIOP_ProfileBody_1_1_0) #define TC_IMPL_TC_IIOP_ProfileBody_1_1_0 'i' #define TC_IMPL_TC_IIOP_ProfileBody_1_1_1 'o' #define TC_IMPL_TC_IIOP_ProfileBody_1_1_2 'p' #define TC_IMPL_TC_IIOP_ProfileBody_1_1_3 '_' #define TC_IMPL_TC_IIOP_ProfileBody_1_1_4 'd' #define TC_IMPL_TC_IIOP_ProfileBody_1_1_5 'e' #define TC_IMPL_TC_IIOP_ProfileBody_1_1_6 'f' #define TC_IMPL_TC_IIOP_ProfileBody_1_1_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IIOP_ProfileBody_1_1_struct; #define TC_IIOP_ProfileBody_1_1 ((CORBA_TypeCode)&TC_IIOP_ProfileBody_1_1_struct) #endif #define IIOP_ProfileBody_1_1__alloc() ((IIOP_ProfileBody_1_1 *)ORBit_small_alloc (TC_IIOP_ProfileBody_1_1)) #define IIOP_ProfileBody_1_1__freekids(m,d) ORBit_small_freekids (TC_IIOP_ProfileBody_1_1,(m),(d)) #endif #if !defined(_IIOP_ListenPoint_defined) #define _IIOP_ListenPoint_defined 1 typedef struct IIOP_ListenPoint_type IIOP_ListenPoint; struct IIOP_ListenPoint_type { CORBA_string host; CORBA_unsigned_short port; }; #if !defined(TC_IMPL_TC_IIOP_ListenPoint_0) #define TC_IMPL_TC_IIOP_ListenPoint_0 'i' #define TC_IMPL_TC_IIOP_ListenPoint_1 'o' #define TC_IMPL_TC_IIOP_ListenPoint_2 'p' #define TC_IMPL_TC_IIOP_ListenPoint_3 '_' #define TC_IMPL_TC_IIOP_ListenPoint_4 'd' #define TC_IMPL_TC_IIOP_ListenPoint_5 'e' #define TC_IMPL_TC_IIOP_ListenPoint_6 'f' #define TC_IMPL_TC_IIOP_ListenPoint_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IIOP_ListenPoint_struct; #define TC_IIOP_ListenPoint ((CORBA_TypeCode)&TC_IIOP_ListenPoint_struct) #endif #define IIOP_ListenPoint__alloc() ((IIOP_ListenPoint *)ORBit_small_alloc (TC_IIOP_ListenPoint)) #define IIOP_ListenPoint__freekids(m,d) ORBit_small_freekids (TC_IIOP_ListenPoint,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_IIOP_ListenPoint) #define ORBIT_DECL_CORBA_sequence_IIOP_ListenPoint 1 #define ORBIT_IMPL_CORBA_sequence_IIOP_ListenPoint_0 'i' #define ORBIT_IMPL_CORBA_sequence_IIOP_ListenPoint_1 'o' #define ORBIT_IMPL_CORBA_sequence_IIOP_ListenPoint_2 'p' #define ORBIT_IMPL_CORBA_sequence_IIOP_ListenPoint_3 '_' #define ORBIT_IMPL_CORBA_sequence_IIOP_ListenPoint_4 'd' #define ORBIT_IMPL_CORBA_sequence_IIOP_ListenPoint_5 'e' #define ORBIT_IMPL_CORBA_sequence_IIOP_ListenPoint_6 'f' #define ORBIT_IMPL_CORBA_sequence_IIOP_ListenPoint_7 's' #if !defined(_CORBA_sequence_IIOP_ListenPoint_defined) #define _CORBA_sequence_IIOP_ListenPoint_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; IIOP_ListenPoint* _buffer; CORBA_boolean _release; } CORBA_sequence_IIOP_ListenPoint; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_IIOP_ListenPoint_0) #define TC_IMPL_TC_CORBA_sequence_IIOP_ListenPoint_0 'i' #define TC_IMPL_TC_CORBA_sequence_IIOP_ListenPoint_1 'o' #define TC_IMPL_TC_CORBA_sequence_IIOP_ListenPoint_2 'p' #define TC_IMPL_TC_CORBA_sequence_IIOP_ListenPoint_3 '_' #define TC_IMPL_TC_CORBA_sequence_IIOP_ListenPoint_4 'd' #define TC_IMPL_TC_CORBA_sequence_IIOP_ListenPoint_5 'e' #define TC_IMPL_TC_CORBA_sequence_IIOP_ListenPoint_6 'f' #define TC_IMPL_TC_CORBA_sequence_IIOP_ListenPoint_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_IIOP_ListenPoint_struct; #define TC_CORBA_sequence_IIOP_ListenPoint ((CORBA_TypeCode)&TC_CORBA_sequence_IIOP_ListenPoint_struct) #endif #define CORBA_sequence_IIOP_ListenPoint__alloc() ((CORBA_sequence_IIOP_ListenPoint *)ORBit_small_alloc (TC_CORBA_sequence_IIOP_ListenPoint)) #define CORBA_sequence_IIOP_ListenPoint__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_IIOP_ListenPoint,(m),(d)) #define CORBA_sequence_IIOP_ListenPoint_allocbuf(l) ((IIOP_ListenPoint*)ORBit_small_allocbuf (TC_CORBA_sequence_IIOP_ListenPoint, (l))) #define CORBA_sequence_IIOP_ListenPoint_allocbuf(l) ((IIOP_ListenPoint*)ORBit_small_allocbuf (TC_CORBA_sequence_IIOP_ListenPoint, (l))) #endif #if !defined(_IIOP_ListenPointList_defined) #define _IIOP_ListenPointList_defined 1 typedef CORBA_sequence_IIOP_ListenPoint IIOP_ListenPointList; #define IIOP_ListenPointList_marshal(x,y,z) CORBA_sequence_IIOP_ListenPoint_marshal((x),(y),(z)) #define IIOP_ListenPointList_demarshal(x,y,z,i) CORBA_sequence_IIOP_ListenPoint_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_IIOP_ListenPointList_0) #define TC_IMPL_TC_IIOP_ListenPointList_0 'i' #define TC_IMPL_TC_IIOP_ListenPointList_1 'o' #define TC_IMPL_TC_IIOP_ListenPointList_2 'p' #define TC_IMPL_TC_IIOP_ListenPointList_3 '_' #define TC_IMPL_TC_IIOP_ListenPointList_4 'd' #define TC_IMPL_TC_IIOP_ListenPointList_5 'e' #define TC_IMPL_TC_IIOP_ListenPointList_6 'f' #define TC_IMPL_TC_IIOP_ListenPointList_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IIOP_ListenPointList_struct; #define TC_IIOP_ListenPointList ((CORBA_TypeCode)&TC_IIOP_ListenPointList_struct) #endif #define IIOP_ListenPointList__alloc() ((IIOP_ListenPointList *)ORBit_small_alloc (TC_CORBA_sequence_IIOP_ListenPoint)) #define IIOP_ListenPointList__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_IIOP_ListenPoint,(m),(d)) #define IIOP_ListenPointList_allocbuf(l) ((IIOP_ListenPoint*)ORBit_small_allocbuf (TC_CORBA_sequence_IIOP_ListenPoint, (l))) #endif #if !defined(_IIOP_BiDirIIOPServiceContext_defined) #define _IIOP_BiDirIIOPServiceContext_defined 1 typedef struct IIOP_BiDirIIOPServiceContext_type IIOP_BiDirIIOPServiceContext; struct IIOP_BiDirIIOPServiceContext_type { IIOP_ListenPointList listen_points; }; #if !defined(TC_IMPL_TC_IIOP_BiDirIIOPServiceContext_0) #define TC_IMPL_TC_IIOP_BiDirIIOPServiceContext_0 'i' #define TC_IMPL_TC_IIOP_BiDirIIOPServiceContext_1 'o' #define TC_IMPL_TC_IIOP_BiDirIIOPServiceContext_2 'p' #define TC_IMPL_TC_IIOP_BiDirIIOPServiceContext_3 '_' #define TC_IMPL_TC_IIOP_BiDirIIOPServiceContext_4 'd' #define TC_IMPL_TC_IIOP_BiDirIIOPServiceContext_5 'e' #define TC_IMPL_TC_IIOP_BiDirIIOPServiceContext_6 'f' #define TC_IMPL_TC_IIOP_BiDirIIOPServiceContext_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IIOP_BiDirIIOPServiceContext_struct; #define TC_IIOP_BiDirIIOPServiceContext ((CORBA_TypeCode)&TC_IIOP_BiDirIIOPServiceContext_struct) #endif #define IIOP_BiDirIIOPServiceContext__alloc() ((IIOP_BiDirIIOPServiceContext *)ORBit_small_alloc (TC_IIOP_BiDirIIOPServiceContext)) #define IIOP_BiDirIIOPServiceContext__freekids(m,d) ORBit_small_freekids (TC_IIOP_BiDirIIOPServiceContext,(m),(d)) #endif #if !defined(_GIOP_Version_defined) #define _GIOP_Version_defined 1 typedef struct GIOP_Version_type GIOP_Version; struct GIOP_Version_type { CORBA_octet major; CORBA_octet minor; }; #if !defined(TC_IMPL_TC_GIOP_Version_0) #define TC_IMPL_TC_GIOP_Version_0 'i' #define TC_IMPL_TC_GIOP_Version_1 'o' #define TC_IMPL_TC_GIOP_Version_2 'p' #define TC_IMPL_TC_GIOP_Version_3 '_' #define TC_IMPL_TC_GIOP_Version_4 'd' #define TC_IMPL_TC_GIOP_Version_5 'e' #define TC_IMPL_TC_GIOP_Version_6 'f' #define TC_IMPL_TC_GIOP_Version_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_Version_struct; #define TC_GIOP_Version ((CORBA_TypeCode)&TC_GIOP_Version_struct) #endif #define GIOP_Version__alloc() ((GIOP_Version *)ORBit_small_alloc (TC_GIOP_Version)) #define GIOP_Version__freekids(m,d) ORBit_small_freekids (TC_GIOP_Version,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(_GIOP_Principal_defined) #define _GIOP_Principal_defined 1 typedef CORBA_sequence_CORBA_octet GIOP_Principal; #define GIOP_Principal_marshal(x,y,z) CORBA_sequence_CORBA_octet_marshal((x),(y),(z)) #define GIOP_Principal_demarshal(x,y,z,i) CORBA_sequence_CORBA_octet_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_GIOP_Principal_0) #define TC_IMPL_TC_GIOP_Principal_0 'i' #define TC_IMPL_TC_GIOP_Principal_1 'o' #define TC_IMPL_TC_GIOP_Principal_2 'p' #define TC_IMPL_TC_GIOP_Principal_3 '_' #define TC_IMPL_TC_GIOP_Principal_4 'd' #define TC_IMPL_TC_GIOP_Principal_5 'e' #define TC_IMPL_TC_GIOP_Principal_6 'f' #define TC_IMPL_TC_GIOP_Principal_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_Principal_struct; #define TC_GIOP_Principal ((CORBA_TypeCode)&TC_GIOP_Principal_struct) #endif #define GIOP_Principal__alloc() ((GIOP_Principal *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define GIOP_Principal__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define GIOP_Principal_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(_GIOP_MsgType_1_1_defined) #define _GIOP_MsgType_1_1_defined 1 typedef enum { GIOP_Request, GIOP_Reply, GIOP_CancelRequest, GIOP_LocateRequest, GIOP_LocateReply, GIOP_CloseConnection, GIOP_MessageError, GIOP_Fragment } GIOP_MsgType_1_1; #if !defined(TC_IMPL_TC_GIOP_MsgType_1_1_0) #define TC_IMPL_TC_GIOP_MsgType_1_1_0 'i' #define TC_IMPL_TC_GIOP_MsgType_1_1_1 'o' #define TC_IMPL_TC_GIOP_MsgType_1_1_2 'p' #define TC_IMPL_TC_GIOP_MsgType_1_1_3 '_' #define TC_IMPL_TC_GIOP_MsgType_1_1_4 'd' #define TC_IMPL_TC_GIOP_MsgType_1_1_5 'e' #define TC_IMPL_TC_GIOP_MsgType_1_1_6 'f' #define TC_IMPL_TC_GIOP_MsgType_1_1_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_MsgType_1_1_struct; #define TC_GIOP_MsgType_1_1 ((CORBA_TypeCode)&TC_GIOP_MsgType_1_1_struct) #endif #endif #if !defined(_GIOP_MsgType_1_2_defined) #define _GIOP_MsgType_1_2_defined 1 typedef GIOP_MsgType_1_1 GIOP_MsgType_1_2; #define GIOP_MsgType_1_2_marshal(x,y,z) GIOP_MsgType_1_1_marshal((x),(y),(z)) #define GIOP_MsgType_1_2_demarshal(x,y,z,i) GIOP_MsgType_1_1_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_GIOP_MsgType_1_2_0) #define TC_IMPL_TC_GIOP_MsgType_1_2_0 'i' #define TC_IMPL_TC_GIOP_MsgType_1_2_1 'o' #define TC_IMPL_TC_GIOP_MsgType_1_2_2 'p' #define TC_IMPL_TC_GIOP_MsgType_1_2_3 '_' #define TC_IMPL_TC_GIOP_MsgType_1_2_4 'd' #define TC_IMPL_TC_GIOP_MsgType_1_2_5 'e' #define TC_IMPL_TC_GIOP_MsgType_1_2_6 'f' #define TC_IMPL_TC_GIOP_MsgType_1_2_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_MsgType_1_2_struct; #define TC_GIOP_MsgType_1_2 ((CORBA_TypeCode)&TC_GIOP_MsgType_1_2_struct) #endif #define GIOP_MsgType_1_2__alloc() ((GIOP_MsgType_1_2 *)ORBit_small_alloc (TC_GIOP_MsgType_1_1)) #define GIOP_MsgType_1_2__freekids(m,d) ORBit_small_freekids (TC_GIOP_MsgType_1_1,(m),(d)) #endif #if !defined(_GIOP_MsgType_1_3_defined) #define _GIOP_MsgType_1_3_defined 1 typedef GIOP_MsgType_1_1 GIOP_MsgType_1_3; #define GIOP_MsgType_1_3_marshal(x,y,z) GIOP_MsgType_1_1_marshal((x),(y),(z)) #define GIOP_MsgType_1_3_demarshal(x,y,z,i) GIOP_MsgType_1_1_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_GIOP_MsgType_1_3_0) #define TC_IMPL_TC_GIOP_MsgType_1_3_0 'i' #define TC_IMPL_TC_GIOP_MsgType_1_3_1 'o' #define TC_IMPL_TC_GIOP_MsgType_1_3_2 'p' #define TC_IMPL_TC_GIOP_MsgType_1_3_3 '_' #define TC_IMPL_TC_GIOP_MsgType_1_3_4 'd' #define TC_IMPL_TC_GIOP_MsgType_1_3_5 'e' #define TC_IMPL_TC_GIOP_MsgType_1_3_6 'f' #define TC_IMPL_TC_GIOP_MsgType_1_3_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_MsgType_1_3_struct; #define TC_GIOP_MsgType_1_3 ((CORBA_TypeCode)&TC_GIOP_MsgType_1_3_struct) #endif #define GIOP_MsgType_1_3__alloc() ((GIOP_MsgType_1_3 *)ORBit_small_alloc (TC_GIOP_MsgType_1_1)) #define GIOP_MsgType_1_3__freekids(m,d) ORBit_small_freekids (TC_GIOP_MsgType_1_1,(m),(d)) #endif #if !defined(_GIOP_MessageHeader_1_0_defined) #define _GIOP_MessageHeader_1_0_defined 1 typedef struct GIOP_MessageHeader_1_0_type GIOP_MessageHeader_1_0; struct GIOP_MessageHeader_1_0_type { CORBA_char magic[4]; GIOP_Version GIOP_version; CORBA_boolean byte_order; CORBA_octet message_type; CORBA_unsigned_long message_size; }; #if !defined(TC_IMPL_TC_GIOP_MessageHeader_1_0_0) #define TC_IMPL_TC_GIOP_MessageHeader_1_0_0 'i' #define TC_IMPL_TC_GIOP_MessageHeader_1_0_1 'o' #define TC_IMPL_TC_GIOP_MessageHeader_1_0_2 'p' #define TC_IMPL_TC_GIOP_MessageHeader_1_0_3 '_' #define TC_IMPL_TC_GIOP_MessageHeader_1_0_4 'd' #define TC_IMPL_TC_GIOP_MessageHeader_1_0_5 'e' #define TC_IMPL_TC_GIOP_MessageHeader_1_0_6 'f' #define TC_IMPL_TC_GIOP_MessageHeader_1_0_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_MessageHeader_1_0_struct; #define TC_GIOP_MessageHeader_1_0 ((CORBA_TypeCode)&TC_GIOP_MessageHeader_1_0_struct) #endif #define GIOP_MessageHeader_1_0__alloc() ((GIOP_MessageHeader_1_0 *)ORBit_small_alloc (TC_GIOP_MessageHeader_1_0)) #define GIOP_MessageHeader_1_0__freekids(m,d) ORBit_small_freekids (TC_GIOP_MessageHeader_1_0,(m),(d)) #endif #if !defined(_GIOP_MessageHeader_1_1_defined) #define _GIOP_MessageHeader_1_1_defined 1 typedef struct GIOP_MessageHeader_1_1_type GIOP_MessageHeader_1_1; struct GIOP_MessageHeader_1_1_type { CORBA_char magic[4]; GIOP_Version GIOP_version; CORBA_octet flags; CORBA_octet message_type; CORBA_unsigned_long message_size; }; #if !defined(TC_IMPL_TC_GIOP_MessageHeader_1_1_0) #define TC_IMPL_TC_GIOP_MessageHeader_1_1_0 'i' #define TC_IMPL_TC_GIOP_MessageHeader_1_1_1 'o' #define TC_IMPL_TC_GIOP_MessageHeader_1_1_2 'p' #define TC_IMPL_TC_GIOP_MessageHeader_1_1_3 '_' #define TC_IMPL_TC_GIOP_MessageHeader_1_1_4 'd' #define TC_IMPL_TC_GIOP_MessageHeader_1_1_5 'e' #define TC_IMPL_TC_GIOP_MessageHeader_1_1_6 'f' #define TC_IMPL_TC_GIOP_MessageHeader_1_1_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_MessageHeader_1_1_struct; #define TC_GIOP_MessageHeader_1_1 ((CORBA_TypeCode)&TC_GIOP_MessageHeader_1_1_struct) #endif #define GIOP_MessageHeader_1_1__alloc() ((GIOP_MessageHeader_1_1 *)ORBit_small_alloc (TC_GIOP_MessageHeader_1_1)) #define GIOP_MessageHeader_1_1__freekids(m,d) ORBit_small_freekids (TC_GIOP_MessageHeader_1_1,(m),(d)) #endif #if !defined(_GIOP_MessageHeader_1_2_defined) #define _GIOP_MessageHeader_1_2_defined 1 typedef GIOP_MessageHeader_1_1 GIOP_MessageHeader_1_2; #define GIOP_MessageHeader_1_2_marshal(x,y,z) GIOP_MessageHeader_1_1_marshal((x),(y),(z)) #define GIOP_MessageHeader_1_2_demarshal(x,y,z,i) GIOP_MessageHeader_1_1_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_GIOP_MessageHeader_1_2_0) #define TC_IMPL_TC_GIOP_MessageHeader_1_2_0 'i' #define TC_IMPL_TC_GIOP_MessageHeader_1_2_1 'o' #define TC_IMPL_TC_GIOP_MessageHeader_1_2_2 'p' #define TC_IMPL_TC_GIOP_MessageHeader_1_2_3 '_' #define TC_IMPL_TC_GIOP_MessageHeader_1_2_4 'd' #define TC_IMPL_TC_GIOP_MessageHeader_1_2_5 'e' #define TC_IMPL_TC_GIOP_MessageHeader_1_2_6 'f' #define TC_IMPL_TC_GIOP_MessageHeader_1_2_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_MessageHeader_1_2_struct; #define TC_GIOP_MessageHeader_1_2 ((CORBA_TypeCode)&TC_GIOP_MessageHeader_1_2_struct) #endif #define GIOP_MessageHeader_1_2__alloc() ((GIOP_MessageHeader_1_2 *)ORBit_small_alloc (TC_GIOP_MessageHeader_1_1)) #define GIOP_MessageHeader_1_2__freekids(m,d) ORBit_small_freekids (TC_GIOP_MessageHeader_1_1,(m),(d)) #endif #if !defined(_GIOP_MessageHeader_1_3_defined) #define _GIOP_MessageHeader_1_3_defined 1 typedef GIOP_MessageHeader_1_1 GIOP_MessageHeader_1_3; #define GIOP_MessageHeader_1_3_marshal(x,y,z) GIOP_MessageHeader_1_1_marshal((x),(y),(z)) #define GIOP_MessageHeader_1_3_demarshal(x,y,z,i) GIOP_MessageHeader_1_1_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_GIOP_MessageHeader_1_3_0) #define TC_IMPL_TC_GIOP_MessageHeader_1_3_0 'i' #define TC_IMPL_TC_GIOP_MessageHeader_1_3_1 'o' #define TC_IMPL_TC_GIOP_MessageHeader_1_3_2 'p' #define TC_IMPL_TC_GIOP_MessageHeader_1_3_3 '_' #define TC_IMPL_TC_GIOP_MessageHeader_1_3_4 'd' #define TC_IMPL_TC_GIOP_MessageHeader_1_3_5 'e' #define TC_IMPL_TC_GIOP_MessageHeader_1_3_6 'f' #define TC_IMPL_TC_GIOP_MessageHeader_1_3_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_MessageHeader_1_3_struct; #define TC_GIOP_MessageHeader_1_3 ((CORBA_TypeCode)&TC_GIOP_MessageHeader_1_3_struct) #endif #define GIOP_MessageHeader_1_3__alloc() ((GIOP_MessageHeader_1_3 *)ORBit_small_alloc (TC_GIOP_MessageHeader_1_1)) #define GIOP_MessageHeader_1_3__freekids(m,d) ORBit_small_freekids (TC_GIOP_MessageHeader_1_1,(m),(d)) #endif #if !defined(_GIOP_RequestHeader_1_0_defined) #define _GIOP_RequestHeader_1_0_defined 1 typedef struct GIOP_RequestHeader_1_0_type GIOP_RequestHeader_1_0; #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif struct GIOP_RequestHeader_1_0_type { IOP_ServiceContextList service_context; CORBA_unsigned_long request_id; CORBA_boolean response_expected; CORBA_sequence_CORBA_octet object_key; CORBA_string operation; GIOP_Principal requesting_principal; }; #if !defined(TC_IMPL_TC_GIOP_RequestHeader_1_0_0) #define TC_IMPL_TC_GIOP_RequestHeader_1_0_0 'i' #define TC_IMPL_TC_GIOP_RequestHeader_1_0_1 'o' #define TC_IMPL_TC_GIOP_RequestHeader_1_0_2 'p' #define TC_IMPL_TC_GIOP_RequestHeader_1_0_3 '_' #define TC_IMPL_TC_GIOP_RequestHeader_1_0_4 'd' #define TC_IMPL_TC_GIOP_RequestHeader_1_0_5 'e' #define TC_IMPL_TC_GIOP_RequestHeader_1_0_6 'f' #define TC_IMPL_TC_GIOP_RequestHeader_1_0_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_RequestHeader_1_0_struct; #define TC_GIOP_RequestHeader_1_0 ((CORBA_TypeCode)&TC_GIOP_RequestHeader_1_0_struct) #endif #define GIOP_RequestHeader_1_0__alloc() ((GIOP_RequestHeader_1_0 *)ORBit_small_alloc (TC_GIOP_RequestHeader_1_0)) #define GIOP_RequestHeader_1_0__freekids(m,d) ORBit_small_freekids (TC_GIOP_RequestHeader_1_0,(m),(d)) #endif #if !defined(_GIOP_RequestHeader_1_1_defined) #define _GIOP_RequestHeader_1_1_defined 1 typedef struct GIOP_RequestHeader_1_1_type GIOP_RequestHeader_1_1; #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif struct GIOP_RequestHeader_1_1_type { IOP_ServiceContextList service_context; CORBA_unsigned_long request_id; CORBA_boolean response_expected; CORBA_octet reserved[3]; CORBA_sequence_CORBA_octet object_key; CORBA_string operation; GIOP_Principal requesting_principal; }; #if !defined(TC_IMPL_TC_GIOP_RequestHeader_1_1_0) #define TC_IMPL_TC_GIOP_RequestHeader_1_1_0 'i' #define TC_IMPL_TC_GIOP_RequestHeader_1_1_1 'o' #define TC_IMPL_TC_GIOP_RequestHeader_1_1_2 'p' #define TC_IMPL_TC_GIOP_RequestHeader_1_1_3 '_' #define TC_IMPL_TC_GIOP_RequestHeader_1_1_4 'd' #define TC_IMPL_TC_GIOP_RequestHeader_1_1_5 'e' #define TC_IMPL_TC_GIOP_RequestHeader_1_1_6 'f' #define TC_IMPL_TC_GIOP_RequestHeader_1_1_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_RequestHeader_1_1_struct; #define TC_GIOP_RequestHeader_1_1 ((CORBA_TypeCode)&TC_GIOP_RequestHeader_1_1_struct) #endif #define GIOP_RequestHeader_1_1__alloc() ((GIOP_RequestHeader_1_1 *)ORBit_small_alloc (TC_GIOP_RequestHeader_1_1)) #define GIOP_RequestHeader_1_1__freekids(m,d) ORBit_small_freekids (TC_GIOP_RequestHeader_1_1,(m),(d)) #endif #if !defined(_GIOP_AddressingDisposition_defined) #define _GIOP_AddressingDisposition_defined 1 typedef CORBA_short GIOP_AddressingDisposition; #define GIOP_AddressingDisposition_marshal(x,y,z) CORBA_short_marshal((x),(y),(z)) #define GIOP_AddressingDisposition_demarshal(x,y,z,i) CORBA_short_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_GIOP_AddressingDisposition_0) #define TC_IMPL_TC_GIOP_AddressingDisposition_0 'i' #define TC_IMPL_TC_GIOP_AddressingDisposition_1 'o' #define TC_IMPL_TC_GIOP_AddressingDisposition_2 'p' #define TC_IMPL_TC_GIOP_AddressingDisposition_3 '_' #define TC_IMPL_TC_GIOP_AddressingDisposition_4 'd' #define TC_IMPL_TC_GIOP_AddressingDisposition_5 'e' #define TC_IMPL_TC_GIOP_AddressingDisposition_6 'f' #define TC_IMPL_TC_GIOP_AddressingDisposition_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_AddressingDisposition_struct; #define TC_GIOP_AddressingDisposition ((CORBA_TypeCode)&TC_GIOP_AddressingDisposition_struct) #endif #define GIOP_AddressingDisposition__alloc() ((GIOP_AddressingDisposition *)ORBit_small_alloc (TC_CORBA_short)) #define GIOP_AddressingDisposition__freekids(m,d) ORBit_small_freekids (TC_CORBA_short,(m),(d)) #endif #ifndef GIOP_KeyAddr #define GIOP_KeyAddr 0 #endif /* !GIOP_KeyAddr */ #ifndef GIOP_ProfileAddr #define GIOP_ProfileAddr 1 #endif /* !GIOP_ProfileAddr */ #ifndef GIOP_ReferenceAddr #define GIOP_ReferenceAddr 2 #endif /* !GIOP_ReferenceAddr */ #if !defined(_GIOP_IORAddressingInfo_defined) #define _GIOP_IORAddressingInfo_defined 1 typedef struct GIOP_IORAddressingInfo_type GIOP_IORAddressingInfo; struct GIOP_IORAddressingInfo_type { CORBA_unsigned_long selected_profile_index; IOP_IOR ior; }; #if !defined(TC_IMPL_TC_GIOP_IORAddressingInfo_0) #define TC_IMPL_TC_GIOP_IORAddressingInfo_0 'i' #define TC_IMPL_TC_GIOP_IORAddressingInfo_1 'o' #define TC_IMPL_TC_GIOP_IORAddressingInfo_2 'p' #define TC_IMPL_TC_GIOP_IORAddressingInfo_3 '_' #define TC_IMPL_TC_GIOP_IORAddressingInfo_4 'd' #define TC_IMPL_TC_GIOP_IORAddressingInfo_5 'e' #define TC_IMPL_TC_GIOP_IORAddressingInfo_6 'f' #define TC_IMPL_TC_GIOP_IORAddressingInfo_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_IORAddressingInfo_struct; #define TC_GIOP_IORAddressingInfo ((CORBA_TypeCode)&TC_GIOP_IORAddressingInfo_struct) #endif #define GIOP_IORAddressingInfo__alloc() ((GIOP_IORAddressingInfo *)ORBit_small_alloc (TC_GIOP_IORAddressingInfo)) #define GIOP_IORAddressingInfo__freekids(m,d) ORBit_small_freekids (TC_GIOP_IORAddressingInfo,(m),(d)) #endif #if !defined(_GIOP_TargetAddress_defined) #define _GIOP_TargetAddress_defined 1 typedef struct GIOP_TargetAddress_type GIOP_TargetAddress; #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif struct GIOP_TargetAddress_type { GIOP_AddressingDisposition _d; union { CORBA_sequence_CORBA_octet object_key; IOP_TaggedProfile profile; GIOP_IORAddressingInfo ior; } _u; }; #if !defined(TC_IMPL_TC_GIOP_TargetAddress_0) #define TC_IMPL_TC_GIOP_TargetAddress_0 'i' #define TC_IMPL_TC_GIOP_TargetAddress_1 'o' #define TC_IMPL_TC_GIOP_TargetAddress_2 'p' #define TC_IMPL_TC_GIOP_TargetAddress_3 '_' #define TC_IMPL_TC_GIOP_TargetAddress_4 'd' #define TC_IMPL_TC_GIOP_TargetAddress_5 'e' #define TC_IMPL_TC_GIOP_TargetAddress_6 'f' #define TC_IMPL_TC_GIOP_TargetAddress_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_TargetAddress_struct; #define TC_GIOP_TargetAddress ((CORBA_TypeCode)&TC_GIOP_TargetAddress_struct) #endif #define GIOP_TargetAddress__alloc() ((GIOP_TargetAddress *)ORBit_small_alloc (TC_GIOP_TargetAddress)) #define GIOP_TargetAddress__freekids(m,d) ORBit_small_freekids (TC_GIOP_TargetAddress,(m),(d)) #endif #if !defined(_GIOP_RequestHeader_1_2_defined) #define _GIOP_RequestHeader_1_2_defined 1 typedef struct GIOP_RequestHeader_1_2_type GIOP_RequestHeader_1_2; struct GIOP_RequestHeader_1_2_type { CORBA_unsigned_long request_id; CORBA_octet response_flags; CORBA_octet reserved[3]; GIOP_TargetAddress target; CORBA_string operation; IOP_ServiceContextList service_context; }; #if !defined(TC_IMPL_TC_GIOP_RequestHeader_1_2_0) #define TC_IMPL_TC_GIOP_RequestHeader_1_2_0 'i' #define TC_IMPL_TC_GIOP_RequestHeader_1_2_1 'o' #define TC_IMPL_TC_GIOP_RequestHeader_1_2_2 'p' #define TC_IMPL_TC_GIOP_RequestHeader_1_2_3 '_' #define TC_IMPL_TC_GIOP_RequestHeader_1_2_4 'd' #define TC_IMPL_TC_GIOP_RequestHeader_1_2_5 'e' #define TC_IMPL_TC_GIOP_RequestHeader_1_2_6 'f' #define TC_IMPL_TC_GIOP_RequestHeader_1_2_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_RequestHeader_1_2_struct; #define TC_GIOP_RequestHeader_1_2 ((CORBA_TypeCode)&TC_GIOP_RequestHeader_1_2_struct) #endif #define GIOP_RequestHeader_1_2__alloc() ((GIOP_RequestHeader_1_2 *)ORBit_small_alloc (TC_GIOP_RequestHeader_1_2)) #define GIOP_RequestHeader_1_2__freekids(m,d) ORBit_small_freekids (TC_GIOP_RequestHeader_1_2,(m),(d)) #endif #if !defined(_GIOP_RequestHeader_1_3_defined) #define _GIOP_RequestHeader_1_3_defined 1 typedef GIOP_RequestHeader_1_2 GIOP_RequestHeader_1_3; #define GIOP_RequestHeader_1_3_marshal(x,y,z) GIOP_RequestHeader_1_2_marshal((x),(y),(z)) #define GIOP_RequestHeader_1_3_demarshal(x,y,z,i) GIOP_RequestHeader_1_2_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_GIOP_RequestHeader_1_3_0) #define TC_IMPL_TC_GIOP_RequestHeader_1_3_0 'i' #define TC_IMPL_TC_GIOP_RequestHeader_1_3_1 'o' #define TC_IMPL_TC_GIOP_RequestHeader_1_3_2 'p' #define TC_IMPL_TC_GIOP_RequestHeader_1_3_3 '_' #define TC_IMPL_TC_GIOP_RequestHeader_1_3_4 'd' #define TC_IMPL_TC_GIOP_RequestHeader_1_3_5 'e' #define TC_IMPL_TC_GIOP_RequestHeader_1_3_6 'f' #define TC_IMPL_TC_GIOP_RequestHeader_1_3_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_RequestHeader_1_3_struct; #define TC_GIOP_RequestHeader_1_3 ((CORBA_TypeCode)&TC_GIOP_RequestHeader_1_3_struct) #endif #define GIOP_RequestHeader_1_3__alloc() ((GIOP_RequestHeader_1_3 *)ORBit_small_alloc (TC_GIOP_RequestHeader_1_2)) #define GIOP_RequestHeader_1_3__freekids(m,d) ORBit_small_freekids (TC_GIOP_RequestHeader_1_2,(m),(d)) #endif #if !defined(_GIOP_ReplyStatusType_1_0_defined) #define _GIOP_ReplyStatusType_1_0_defined 1 typedef enum { GIOP_NO_EXCEPTION, GIOP_USER_EXCEPTION, GIOP_SYSTEM_EXCEPTION, GIOP_LOCATION_FORWARD } GIOP_ReplyStatusType_1_0; #if !defined(TC_IMPL_TC_GIOP_ReplyStatusType_1_0_0) #define TC_IMPL_TC_GIOP_ReplyStatusType_1_0_0 'i' #define TC_IMPL_TC_GIOP_ReplyStatusType_1_0_1 'o' #define TC_IMPL_TC_GIOP_ReplyStatusType_1_0_2 'p' #define TC_IMPL_TC_GIOP_ReplyStatusType_1_0_3 '_' #define TC_IMPL_TC_GIOP_ReplyStatusType_1_0_4 'd' #define TC_IMPL_TC_GIOP_ReplyStatusType_1_0_5 'e' #define TC_IMPL_TC_GIOP_ReplyStatusType_1_0_6 'f' #define TC_IMPL_TC_GIOP_ReplyStatusType_1_0_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_ReplyStatusType_1_0_struct; #define TC_GIOP_ReplyStatusType_1_0 ((CORBA_TypeCode)&TC_GIOP_ReplyStatusType_1_0_struct) #endif #endif #if !defined(_GIOP_ReplyHeader_1_0_defined) #define _GIOP_ReplyHeader_1_0_defined 1 typedef struct GIOP_ReplyHeader_1_0_type GIOP_ReplyHeader_1_0; struct GIOP_ReplyHeader_1_0_type { IOP_ServiceContextList service_context; CORBA_unsigned_long request_id; GIOP_ReplyStatusType_1_0 reply_status; }; #if !defined(TC_IMPL_TC_GIOP_ReplyHeader_1_0_0) #define TC_IMPL_TC_GIOP_ReplyHeader_1_0_0 'i' #define TC_IMPL_TC_GIOP_ReplyHeader_1_0_1 'o' #define TC_IMPL_TC_GIOP_ReplyHeader_1_0_2 'p' #define TC_IMPL_TC_GIOP_ReplyHeader_1_0_3 '_' #define TC_IMPL_TC_GIOP_ReplyHeader_1_0_4 'd' #define TC_IMPL_TC_GIOP_ReplyHeader_1_0_5 'e' #define TC_IMPL_TC_GIOP_ReplyHeader_1_0_6 'f' #define TC_IMPL_TC_GIOP_ReplyHeader_1_0_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_ReplyHeader_1_0_struct; #define TC_GIOP_ReplyHeader_1_0 ((CORBA_TypeCode)&TC_GIOP_ReplyHeader_1_0_struct) #endif #define GIOP_ReplyHeader_1_0__alloc() ((GIOP_ReplyHeader_1_0 *)ORBit_small_alloc (TC_GIOP_ReplyHeader_1_0)) #define GIOP_ReplyHeader_1_0__freekids(m,d) ORBit_small_freekids (TC_GIOP_ReplyHeader_1_0,(m),(d)) #endif #if !defined(_GIOP_ReplyHeader_1_1_defined) #define _GIOP_ReplyHeader_1_1_defined 1 typedef GIOP_ReplyHeader_1_0 GIOP_ReplyHeader_1_1; #define GIOP_ReplyHeader_1_1_marshal(x,y,z) GIOP_ReplyHeader_1_0_marshal((x),(y),(z)) #define GIOP_ReplyHeader_1_1_demarshal(x,y,z,i) GIOP_ReplyHeader_1_0_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_GIOP_ReplyHeader_1_1_0) #define TC_IMPL_TC_GIOP_ReplyHeader_1_1_0 'i' #define TC_IMPL_TC_GIOP_ReplyHeader_1_1_1 'o' #define TC_IMPL_TC_GIOP_ReplyHeader_1_1_2 'p' #define TC_IMPL_TC_GIOP_ReplyHeader_1_1_3 '_' #define TC_IMPL_TC_GIOP_ReplyHeader_1_1_4 'd' #define TC_IMPL_TC_GIOP_ReplyHeader_1_1_5 'e' #define TC_IMPL_TC_GIOP_ReplyHeader_1_1_6 'f' #define TC_IMPL_TC_GIOP_ReplyHeader_1_1_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_ReplyHeader_1_1_struct; #define TC_GIOP_ReplyHeader_1_1 ((CORBA_TypeCode)&TC_GIOP_ReplyHeader_1_1_struct) #endif #define GIOP_ReplyHeader_1_1__alloc() ((GIOP_ReplyHeader_1_1 *)ORBit_small_alloc (TC_GIOP_ReplyHeader_1_0)) #define GIOP_ReplyHeader_1_1__freekids(m,d) ORBit_small_freekids (TC_GIOP_ReplyHeader_1_0,(m),(d)) #endif #if !defined(_GIOP_SystemExceptionReplyBody_defined) #define _GIOP_SystemExceptionReplyBody_defined 1 typedef struct GIOP_SystemExceptionReplyBody_type GIOP_SystemExceptionReplyBody; struct GIOP_SystemExceptionReplyBody_type { CORBA_string exception_id; CORBA_unsigned_long minor_code_value; CORBA_unsigned_long completion_status; }; #if !defined(TC_IMPL_TC_GIOP_SystemExceptionReplyBody_0) #define TC_IMPL_TC_GIOP_SystemExceptionReplyBody_0 'i' #define TC_IMPL_TC_GIOP_SystemExceptionReplyBody_1 'o' #define TC_IMPL_TC_GIOP_SystemExceptionReplyBody_2 'p' #define TC_IMPL_TC_GIOP_SystemExceptionReplyBody_3 '_' #define TC_IMPL_TC_GIOP_SystemExceptionReplyBody_4 'd' #define TC_IMPL_TC_GIOP_SystemExceptionReplyBody_5 'e' #define TC_IMPL_TC_GIOP_SystemExceptionReplyBody_6 'f' #define TC_IMPL_TC_GIOP_SystemExceptionReplyBody_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_SystemExceptionReplyBody_struct; #define TC_GIOP_SystemExceptionReplyBody ((CORBA_TypeCode)&TC_GIOP_SystemExceptionReplyBody_struct) #endif #define GIOP_SystemExceptionReplyBody__alloc() ((GIOP_SystemExceptionReplyBody *)ORBit_small_alloc (TC_GIOP_SystemExceptionReplyBody)) #define GIOP_SystemExceptionReplyBody__freekids(m,d) ORBit_small_freekids (TC_GIOP_SystemExceptionReplyBody,(m),(d)) #endif #if !defined(_GIOP_CancelRequestHeader_defined) #define _GIOP_CancelRequestHeader_defined 1 typedef struct GIOP_CancelRequestHeader_type GIOP_CancelRequestHeader; struct GIOP_CancelRequestHeader_type { CORBA_unsigned_long request_id; }; #if !defined(TC_IMPL_TC_GIOP_CancelRequestHeader_0) #define TC_IMPL_TC_GIOP_CancelRequestHeader_0 'i' #define TC_IMPL_TC_GIOP_CancelRequestHeader_1 'o' #define TC_IMPL_TC_GIOP_CancelRequestHeader_2 'p' #define TC_IMPL_TC_GIOP_CancelRequestHeader_3 '_' #define TC_IMPL_TC_GIOP_CancelRequestHeader_4 'd' #define TC_IMPL_TC_GIOP_CancelRequestHeader_5 'e' #define TC_IMPL_TC_GIOP_CancelRequestHeader_6 'f' #define TC_IMPL_TC_GIOP_CancelRequestHeader_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_CancelRequestHeader_struct; #define TC_GIOP_CancelRequestHeader ((CORBA_TypeCode)&TC_GIOP_CancelRequestHeader_struct) #endif #define GIOP_CancelRequestHeader__alloc() ((GIOP_CancelRequestHeader *)ORBit_small_alloc (TC_GIOP_CancelRequestHeader)) #define GIOP_CancelRequestHeader__freekids(m,d) ORBit_small_freekids (TC_GIOP_CancelRequestHeader,(m),(d)) #endif #if !defined(_GIOP_LocateRequestHeader_1_0_defined) #define _GIOP_LocateRequestHeader_1_0_defined 1 typedef struct GIOP_LocateRequestHeader_1_0_type GIOP_LocateRequestHeader_1_0; #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif struct GIOP_LocateRequestHeader_1_0_type { CORBA_unsigned_long request_id; CORBA_sequence_CORBA_octet object_key; }; #if !defined(TC_IMPL_TC_GIOP_LocateRequestHeader_1_0_0) #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_0_0 'i' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_0_1 'o' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_0_2 'p' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_0_3 '_' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_0_4 'd' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_0_5 'e' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_0_6 'f' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_0_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_LocateRequestHeader_1_0_struct; #define TC_GIOP_LocateRequestHeader_1_0 ((CORBA_TypeCode)&TC_GIOP_LocateRequestHeader_1_0_struct) #endif #define GIOP_LocateRequestHeader_1_0__alloc() ((GIOP_LocateRequestHeader_1_0 *)ORBit_small_alloc (TC_GIOP_LocateRequestHeader_1_0)) #define GIOP_LocateRequestHeader_1_0__freekids(m,d) ORBit_small_freekids (TC_GIOP_LocateRequestHeader_1_0,(m),(d)) #endif #if !defined(_GIOP_LocateRequestHeader_1_1_defined) #define _GIOP_LocateRequestHeader_1_1_defined 1 typedef GIOP_LocateRequestHeader_1_0 GIOP_LocateRequestHeader_1_1; #define GIOP_LocateRequestHeader_1_1_marshal(x,y,z) GIOP_LocateRequestHeader_1_0_marshal((x),(y),(z)) #define GIOP_LocateRequestHeader_1_1_demarshal(x,y,z,i) GIOP_LocateRequestHeader_1_0_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_GIOP_LocateRequestHeader_1_1_0) #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_1_0 'i' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_1_1 'o' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_1_2 'p' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_1_3 '_' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_1_4 'd' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_1_5 'e' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_1_6 'f' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_1_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_LocateRequestHeader_1_1_struct; #define TC_GIOP_LocateRequestHeader_1_1 ((CORBA_TypeCode)&TC_GIOP_LocateRequestHeader_1_1_struct) #endif #define GIOP_LocateRequestHeader_1_1__alloc() ((GIOP_LocateRequestHeader_1_1 *)ORBit_small_alloc (TC_GIOP_LocateRequestHeader_1_0)) #define GIOP_LocateRequestHeader_1_1__freekids(m,d) ORBit_small_freekids (TC_GIOP_LocateRequestHeader_1_0,(m),(d)) #endif #if !defined(_GIOP_LocateRequestHeader_1_2_defined) #define _GIOP_LocateRequestHeader_1_2_defined 1 typedef struct GIOP_LocateRequestHeader_1_2_type GIOP_LocateRequestHeader_1_2; struct GIOP_LocateRequestHeader_1_2_type { CORBA_unsigned_long request_id; GIOP_TargetAddress target; }; #if !defined(TC_IMPL_TC_GIOP_LocateRequestHeader_1_2_0) #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_2_0 'i' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_2_1 'o' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_2_2 'p' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_2_3 '_' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_2_4 'd' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_2_5 'e' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_2_6 'f' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_2_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_LocateRequestHeader_1_2_struct; #define TC_GIOP_LocateRequestHeader_1_2 ((CORBA_TypeCode)&TC_GIOP_LocateRequestHeader_1_2_struct) #endif #define GIOP_LocateRequestHeader_1_2__alloc() ((GIOP_LocateRequestHeader_1_2 *)ORBit_small_alloc (TC_GIOP_LocateRequestHeader_1_2)) #define GIOP_LocateRequestHeader_1_2__freekids(m,d) ORBit_small_freekids (TC_GIOP_LocateRequestHeader_1_2,(m),(d)) #endif #if !defined(_GIOP_LocateRequestHeader_1_3_defined) #define _GIOP_LocateRequestHeader_1_3_defined 1 typedef GIOP_LocateRequestHeader_1_2 GIOP_LocateRequestHeader_1_3; #define GIOP_LocateRequestHeader_1_3_marshal(x,y,z) GIOP_LocateRequestHeader_1_2_marshal((x),(y),(z)) #define GIOP_LocateRequestHeader_1_3_demarshal(x,y,z,i) GIOP_LocateRequestHeader_1_2_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_GIOP_LocateRequestHeader_1_3_0) #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_3_0 'i' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_3_1 'o' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_3_2 'p' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_3_3 '_' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_3_4 'd' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_3_5 'e' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_3_6 'f' #define TC_IMPL_TC_GIOP_LocateRequestHeader_1_3_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_LocateRequestHeader_1_3_struct; #define TC_GIOP_LocateRequestHeader_1_3 ((CORBA_TypeCode)&TC_GIOP_LocateRequestHeader_1_3_struct) #endif #define GIOP_LocateRequestHeader_1_3__alloc() ((GIOP_LocateRequestHeader_1_3 *)ORBit_small_alloc (TC_GIOP_LocateRequestHeader_1_2)) #define GIOP_LocateRequestHeader_1_3__freekids(m,d) ORBit_small_freekids (TC_GIOP_LocateRequestHeader_1_2,(m),(d)) #endif #if !defined(_GIOP_LocateStatusType_1_0_defined) #define _GIOP_LocateStatusType_1_0_defined 1 typedef enum { GIOP_UNKNOWN_OBJECT, GIOP_OBJECT_HERE, GIOP_OBJECT_FORWARD } GIOP_LocateStatusType_1_0; #if !defined(TC_IMPL_TC_GIOP_LocateStatusType_1_0_0) #define TC_IMPL_TC_GIOP_LocateStatusType_1_0_0 'i' #define TC_IMPL_TC_GIOP_LocateStatusType_1_0_1 'o' #define TC_IMPL_TC_GIOP_LocateStatusType_1_0_2 'p' #define TC_IMPL_TC_GIOP_LocateStatusType_1_0_3 '_' #define TC_IMPL_TC_GIOP_LocateStatusType_1_0_4 'd' #define TC_IMPL_TC_GIOP_LocateStatusType_1_0_5 'e' #define TC_IMPL_TC_GIOP_LocateStatusType_1_0_6 'f' #define TC_IMPL_TC_GIOP_LocateStatusType_1_0_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_LocateStatusType_1_0_struct; #define TC_GIOP_LocateStatusType_1_0 ((CORBA_TypeCode)&TC_GIOP_LocateStatusType_1_0_struct) #endif #endif #if !defined(_GIOP_LocateReplyHeader_1_0_defined) #define _GIOP_LocateReplyHeader_1_0_defined 1 typedef struct GIOP_LocateReplyHeader_1_0_type GIOP_LocateReplyHeader_1_0; struct GIOP_LocateReplyHeader_1_0_type { CORBA_unsigned_long request_id; GIOP_LocateStatusType_1_0 locate_status; }; #if !defined(TC_IMPL_TC_GIOP_LocateReplyHeader_1_0_0) #define TC_IMPL_TC_GIOP_LocateReplyHeader_1_0_0 'i' #define TC_IMPL_TC_GIOP_LocateReplyHeader_1_0_1 'o' #define TC_IMPL_TC_GIOP_LocateReplyHeader_1_0_2 'p' #define TC_IMPL_TC_GIOP_LocateReplyHeader_1_0_3 '_' #define TC_IMPL_TC_GIOP_LocateReplyHeader_1_0_4 'd' #define TC_IMPL_TC_GIOP_LocateReplyHeader_1_0_5 'e' #define TC_IMPL_TC_GIOP_LocateReplyHeader_1_0_6 'f' #define TC_IMPL_TC_GIOP_LocateReplyHeader_1_0_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_LocateReplyHeader_1_0_struct; #define TC_GIOP_LocateReplyHeader_1_0 ((CORBA_TypeCode)&TC_GIOP_LocateReplyHeader_1_0_struct) #endif #define GIOP_LocateReplyHeader_1_0__alloc() ((GIOP_LocateReplyHeader_1_0 *)ORBit_small_alloc (TC_GIOP_LocateReplyHeader_1_0)) #define GIOP_LocateReplyHeader_1_0__freekids(m,d) ORBit_small_freekids (TC_GIOP_LocateReplyHeader_1_0,(m),(d)) #endif #if !defined(_GIOP_LocateReplyHeader_1_1_defined) #define _GIOP_LocateReplyHeader_1_1_defined 1 typedef GIOP_LocateReplyHeader_1_0 GIOP_LocateReplyHeader_1_1; #define GIOP_LocateReplyHeader_1_1_marshal(x,y,z) GIOP_LocateReplyHeader_1_0_marshal((x),(y),(z)) #define GIOP_LocateReplyHeader_1_1_demarshal(x,y,z,i) GIOP_LocateReplyHeader_1_0_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_GIOP_LocateReplyHeader_1_1_0) #define TC_IMPL_TC_GIOP_LocateReplyHeader_1_1_0 'i' #define TC_IMPL_TC_GIOP_LocateReplyHeader_1_1_1 'o' #define TC_IMPL_TC_GIOP_LocateReplyHeader_1_1_2 'p' #define TC_IMPL_TC_GIOP_LocateReplyHeader_1_1_3 '_' #define TC_IMPL_TC_GIOP_LocateReplyHeader_1_1_4 'd' #define TC_IMPL_TC_GIOP_LocateReplyHeader_1_1_5 'e' #define TC_IMPL_TC_GIOP_LocateReplyHeader_1_1_6 'f' #define TC_IMPL_TC_GIOP_LocateReplyHeader_1_1_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_LocateReplyHeader_1_1_struct; #define TC_GIOP_LocateReplyHeader_1_1 ((CORBA_TypeCode)&TC_GIOP_LocateReplyHeader_1_1_struct) #endif #define GIOP_LocateReplyHeader_1_1__alloc() ((GIOP_LocateReplyHeader_1_1 *)ORBit_small_alloc (TC_GIOP_LocateReplyHeader_1_0)) #define GIOP_LocateReplyHeader_1_1__freekids(m,d) ORBit_small_freekids (TC_GIOP_LocateReplyHeader_1_0,(m),(d)) #endif #if !defined(_GIOP_FragmentHeader_1_2_defined) #define _GIOP_FragmentHeader_1_2_defined 1 typedef struct GIOP_FragmentHeader_1_2_type GIOP_FragmentHeader_1_2; struct GIOP_FragmentHeader_1_2_type { CORBA_unsigned_long request_id; }; #if !defined(TC_IMPL_TC_GIOP_FragmentHeader_1_2_0) #define TC_IMPL_TC_GIOP_FragmentHeader_1_2_0 'i' #define TC_IMPL_TC_GIOP_FragmentHeader_1_2_1 'o' #define TC_IMPL_TC_GIOP_FragmentHeader_1_2_2 'p' #define TC_IMPL_TC_GIOP_FragmentHeader_1_2_3 '_' #define TC_IMPL_TC_GIOP_FragmentHeader_1_2_4 'd' #define TC_IMPL_TC_GIOP_FragmentHeader_1_2_5 'e' #define TC_IMPL_TC_GIOP_FragmentHeader_1_2_6 'f' #define TC_IMPL_TC_GIOP_FragmentHeader_1_2_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_FragmentHeader_1_2_struct; #define TC_GIOP_FragmentHeader_1_2 ((CORBA_TypeCode)&TC_GIOP_FragmentHeader_1_2_struct) #endif #define GIOP_FragmentHeader_1_2__alloc() ((GIOP_FragmentHeader_1_2 *)ORBit_small_alloc (TC_GIOP_FragmentHeader_1_2)) #define GIOP_FragmentHeader_1_2__freekids(m,d) ORBit_small_freekids (TC_GIOP_FragmentHeader_1_2,(m),(d)) #endif #if !defined(_GIOP_FragmentHeader_1_3_defined) #define _GIOP_FragmentHeader_1_3_defined 1 typedef GIOP_FragmentHeader_1_2 GIOP_FragmentHeader_1_3; #define GIOP_FragmentHeader_1_3_marshal(x,y,z) GIOP_FragmentHeader_1_2_marshal((x),(y),(z)) #define GIOP_FragmentHeader_1_3_demarshal(x,y,z,i) GIOP_FragmentHeader_1_2_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_GIOP_FragmentHeader_1_3_0) #define TC_IMPL_TC_GIOP_FragmentHeader_1_3_0 'i' #define TC_IMPL_TC_GIOP_FragmentHeader_1_3_1 'o' #define TC_IMPL_TC_GIOP_FragmentHeader_1_3_2 'p' #define TC_IMPL_TC_GIOP_FragmentHeader_1_3_3 '_' #define TC_IMPL_TC_GIOP_FragmentHeader_1_3_4 'd' #define TC_IMPL_TC_GIOP_FragmentHeader_1_3_5 'e' #define TC_IMPL_TC_GIOP_FragmentHeader_1_3_6 'f' #define TC_IMPL_TC_GIOP_FragmentHeader_1_3_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_GIOP_FragmentHeader_1_3_struct; #define TC_GIOP_FragmentHeader_1_3 ((CORBA_TypeCode)&TC_GIOP_FragmentHeader_1_3_struct) #endif #define GIOP_FragmentHeader_1_3__alloc() ((GIOP_FragmentHeader_1_3 *)ORBit_small_alloc (TC_GIOP_FragmentHeader_1_2)) #define GIOP_FragmentHeader_1_3__freekids(m,d) ORBit_small_freekids (TC_GIOP_FragmentHeader_1_2,(m),(d)) #endif #ifndef CSI_OMGVMCID #define CSI_OMGVMCID 324816U #endif /* !CSI_OMGVMCID */ #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(_CSI_X509CertificateChain_defined) #define _CSI_X509CertificateChain_defined 1 typedef CORBA_sequence_CORBA_octet CSI_X509CertificateChain; #define CSI_X509CertificateChain_marshal(x,y,z) CORBA_sequence_CORBA_octet_marshal((x),(y),(z)) #define CSI_X509CertificateChain_demarshal(x,y,z,i) CORBA_sequence_CORBA_octet_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSI_X509CertificateChain_0) #define TC_IMPL_TC_CSI_X509CertificateChain_0 'i' #define TC_IMPL_TC_CSI_X509CertificateChain_1 'o' #define TC_IMPL_TC_CSI_X509CertificateChain_2 'p' #define TC_IMPL_TC_CSI_X509CertificateChain_3 '_' #define TC_IMPL_TC_CSI_X509CertificateChain_4 'd' #define TC_IMPL_TC_CSI_X509CertificateChain_5 'e' #define TC_IMPL_TC_CSI_X509CertificateChain_6 'f' #define TC_IMPL_TC_CSI_X509CertificateChain_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_X509CertificateChain_struct; #define TC_CSI_X509CertificateChain ((CORBA_TypeCode)&TC_CSI_X509CertificateChain_struct) #endif #define CSI_X509CertificateChain__alloc() ((CSI_X509CertificateChain *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CSI_X509CertificateChain__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CSI_X509CertificateChain_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(_CSI_X501DistinguishedName_defined) #define _CSI_X501DistinguishedName_defined 1 typedef CORBA_sequence_CORBA_octet CSI_X501DistinguishedName; #define CSI_X501DistinguishedName_marshal(x,y,z) CORBA_sequence_CORBA_octet_marshal((x),(y),(z)) #define CSI_X501DistinguishedName_demarshal(x,y,z,i) CORBA_sequence_CORBA_octet_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSI_X501DistinguishedName_0) #define TC_IMPL_TC_CSI_X501DistinguishedName_0 'i' #define TC_IMPL_TC_CSI_X501DistinguishedName_1 'o' #define TC_IMPL_TC_CSI_X501DistinguishedName_2 'p' #define TC_IMPL_TC_CSI_X501DistinguishedName_3 '_' #define TC_IMPL_TC_CSI_X501DistinguishedName_4 'd' #define TC_IMPL_TC_CSI_X501DistinguishedName_5 'e' #define TC_IMPL_TC_CSI_X501DistinguishedName_6 'f' #define TC_IMPL_TC_CSI_X501DistinguishedName_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_X501DistinguishedName_struct; #define TC_CSI_X501DistinguishedName ((CORBA_TypeCode)&TC_CSI_X501DistinguishedName_struct) #endif #define CSI_X501DistinguishedName__alloc() ((CSI_X501DistinguishedName *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CSI_X501DistinguishedName__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CSI_X501DistinguishedName_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(_CSI_UTF8String_defined) #define _CSI_UTF8String_defined 1 typedef CORBA_sequence_CORBA_octet CSI_UTF8String; #define CSI_UTF8String_marshal(x,y,z) CORBA_sequence_CORBA_octet_marshal((x),(y),(z)) #define CSI_UTF8String_demarshal(x,y,z,i) CORBA_sequence_CORBA_octet_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSI_UTF8String_0) #define TC_IMPL_TC_CSI_UTF8String_0 'i' #define TC_IMPL_TC_CSI_UTF8String_1 'o' #define TC_IMPL_TC_CSI_UTF8String_2 'p' #define TC_IMPL_TC_CSI_UTF8String_3 '_' #define TC_IMPL_TC_CSI_UTF8String_4 'd' #define TC_IMPL_TC_CSI_UTF8String_5 'e' #define TC_IMPL_TC_CSI_UTF8String_6 'f' #define TC_IMPL_TC_CSI_UTF8String_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_UTF8String_struct; #define TC_CSI_UTF8String ((CORBA_TypeCode)&TC_CSI_UTF8String_struct) #endif #define CSI_UTF8String__alloc() ((CSI_UTF8String *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CSI_UTF8String__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CSI_UTF8String_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(_CSI_OID_defined) #define _CSI_OID_defined 1 typedef CORBA_sequence_CORBA_octet CSI_OID; #define CSI_OID_marshal(x,y,z) CORBA_sequence_CORBA_octet_marshal((x),(y),(z)) #define CSI_OID_demarshal(x,y,z,i) CORBA_sequence_CORBA_octet_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSI_OID_0) #define TC_IMPL_TC_CSI_OID_0 'i' #define TC_IMPL_TC_CSI_OID_1 'o' #define TC_IMPL_TC_CSI_OID_2 'p' #define TC_IMPL_TC_CSI_OID_3 '_' #define TC_IMPL_TC_CSI_OID_4 'd' #define TC_IMPL_TC_CSI_OID_5 'e' #define TC_IMPL_TC_CSI_OID_6 'f' #define TC_IMPL_TC_CSI_OID_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_OID_struct; #define TC_CSI_OID ((CORBA_TypeCode)&TC_CSI_OID_struct) #endif #define CSI_OID__alloc() ((CSI_OID *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CSI_OID__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CSI_OID_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_sequence_CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_sequence_CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_sequence_CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CSI_OID) #define ORBIT_DECL_CORBA_sequence_CSI_OID 1 #define ORBIT_IMPL_CORBA_sequence_CSI_OID_0 'i' #define ORBIT_IMPL_CORBA_sequence_CSI_OID_1 'o' #define ORBIT_IMPL_CORBA_sequence_CSI_OID_2 'p' #define ORBIT_IMPL_CORBA_sequence_CSI_OID_3 '_' #define ORBIT_IMPL_CORBA_sequence_CSI_OID_4 'd' #define ORBIT_IMPL_CORBA_sequence_CSI_OID_5 'e' #define ORBIT_IMPL_CORBA_sequence_CSI_OID_6 'f' #define ORBIT_IMPL_CORBA_sequence_CSI_OID_7 's' #if !defined(_CORBA_sequence_CSI_OID_defined) #define _CORBA_sequence_CSI_OID_defined 1 typedef CORBA_sequence_CORBA_sequence_CORBA_octet CORBA_sequence_CSI_OID; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CSI_OID_0) #define TC_IMPL_TC_CORBA_sequence_CSI_OID_0 'i' #define TC_IMPL_TC_CORBA_sequence_CSI_OID_1 'o' #define TC_IMPL_TC_CORBA_sequence_CSI_OID_2 'p' #define TC_IMPL_TC_CORBA_sequence_CSI_OID_3 '_' #define TC_IMPL_TC_CORBA_sequence_CSI_OID_4 'd' #define TC_IMPL_TC_CORBA_sequence_CSI_OID_5 'e' #define TC_IMPL_TC_CORBA_sequence_CSI_OID_6 'f' #define TC_IMPL_TC_CORBA_sequence_CSI_OID_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CSI_OID_struct; #define TC_CORBA_sequence_CSI_OID ((CORBA_TypeCode)&TC_CORBA_sequence_CSI_OID_struct) #endif #define CORBA_sequence_CSI_OID__alloc CORBA_sequence_CORBA_sequence_CORBA_octet__alloc #define CORBA_sequence_CSI_OID__freekids CORBA_sequence_CORBA_sequence_CORBA_octet__freekids #define CORBA_sequence_CSI_OID_allocbuf CORBA_sequence_CORBA_sequence_CORBA_octet_allocbuf #define CORBA_sequence_CSI_OID_marshal(x,y,z) CORBA_sequence_CORBA_sequence_CORBA_octet_marshal((x),(y),(z)) #define CORBA_sequence_CSI_OID_demarshal(x,y,z,i) CORBA_sequence_CORBA_sequence_CORBA_octet_demarshal((x),(y),(z),(i)) #endif #if !defined(_CSI_OIDList_defined) #define _CSI_OIDList_defined 1 typedef CORBA_sequence_CSI_OID CSI_OIDList; #define CSI_OIDList_marshal(x,y,z) CORBA_sequence_CSI_OID_marshal((x),(y),(z)) #define CSI_OIDList_demarshal(x,y,z,i) CORBA_sequence_CSI_OID_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSI_OIDList_0) #define TC_IMPL_TC_CSI_OIDList_0 'i' #define TC_IMPL_TC_CSI_OIDList_1 'o' #define TC_IMPL_TC_CSI_OIDList_2 'p' #define TC_IMPL_TC_CSI_OIDList_3 '_' #define TC_IMPL_TC_CSI_OIDList_4 'd' #define TC_IMPL_TC_CSI_OIDList_5 'e' #define TC_IMPL_TC_CSI_OIDList_6 'f' #define TC_IMPL_TC_CSI_OIDList_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_OIDList_struct; #define TC_CSI_OIDList ((CORBA_TypeCode)&TC_CSI_OIDList_struct) #endif #define CSI_OIDList__alloc() ((CSI_OIDList *)ORBit_small_alloc (TC_CORBA_sequence_CSI_OID)) #define CSI_OIDList__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CSI_OID,(m),(d)) #define CSI_OIDList_allocbuf(l) ((CSI_OID*)ORBit_small_allocbuf (TC_CORBA_sequence_CSI_OID, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(_CSI_GSSToken_defined) #define _CSI_GSSToken_defined 1 typedef CORBA_sequence_CORBA_octet CSI_GSSToken; #define CSI_GSSToken_marshal(x,y,z) CORBA_sequence_CORBA_octet_marshal((x),(y),(z)) #define CSI_GSSToken_demarshal(x,y,z,i) CORBA_sequence_CORBA_octet_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSI_GSSToken_0) #define TC_IMPL_TC_CSI_GSSToken_0 'i' #define TC_IMPL_TC_CSI_GSSToken_1 'o' #define TC_IMPL_TC_CSI_GSSToken_2 'p' #define TC_IMPL_TC_CSI_GSSToken_3 '_' #define TC_IMPL_TC_CSI_GSSToken_4 'd' #define TC_IMPL_TC_CSI_GSSToken_5 'e' #define TC_IMPL_TC_CSI_GSSToken_6 'f' #define TC_IMPL_TC_CSI_GSSToken_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_GSSToken_struct; #define TC_CSI_GSSToken ((CORBA_TypeCode)&TC_CSI_GSSToken_struct) #endif #define CSI_GSSToken__alloc() ((CSI_GSSToken *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CSI_GSSToken__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CSI_GSSToken_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(_CSI_GSS_NT_ExportedName_defined) #define _CSI_GSS_NT_ExportedName_defined 1 typedef CORBA_sequence_CORBA_octet CSI_GSS_NT_ExportedName; #define CSI_GSS_NT_ExportedName_marshal(x,y,z) CORBA_sequence_CORBA_octet_marshal((x),(y),(z)) #define CSI_GSS_NT_ExportedName_demarshal(x,y,z,i) CORBA_sequence_CORBA_octet_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSI_GSS_NT_ExportedName_0) #define TC_IMPL_TC_CSI_GSS_NT_ExportedName_0 'i' #define TC_IMPL_TC_CSI_GSS_NT_ExportedName_1 'o' #define TC_IMPL_TC_CSI_GSS_NT_ExportedName_2 'p' #define TC_IMPL_TC_CSI_GSS_NT_ExportedName_3 '_' #define TC_IMPL_TC_CSI_GSS_NT_ExportedName_4 'd' #define TC_IMPL_TC_CSI_GSS_NT_ExportedName_5 'e' #define TC_IMPL_TC_CSI_GSS_NT_ExportedName_6 'f' #define TC_IMPL_TC_CSI_GSS_NT_ExportedName_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_GSS_NT_ExportedName_struct; #define TC_CSI_GSS_NT_ExportedName ((CORBA_TypeCode)&TC_CSI_GSS_NT_ExportedName_struct) #endif #define CSI_GSS_NT_ExportedName__alloc() ((CSI_GSS_NT_ExportedName *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CSI_GSS_NT_ExportedName__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CSI_GSS_NT_ExportedName_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_sequence_CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_sequence_CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_sequence_CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CSI_GSS_NT_ExportedName) #define ORBIT_DECL_CORBA_sequence_CSI_GSS_NT_ExportedName 1 #define ORBIT_IMPL_CORBA_sequence_CSI_GSS_NT_ExportedName_0 'i' #define ORBIT_IMPL_CORBA_sequence_CSI_GSS_NT_ExportedName_1 'o' #define ORBIT_IMPL_CORBA_sequence_CSI_GSS_NT_ExportedName_2 'p' #define ORBIT_IMPL_CORBA_sequence_CSI_GSS_NT_ExportedName_3 '_' #define ORBIT_IMPL_CORBA_sequence_CSI_GSS_NT_ExportedName_4 'd' #define ORBIT_IMPL_CORBA_sequence_CSI_GSS_NT_ExportedName_5 'e' #define ORBIT_IMPL_CORBA_sequence_CSI_GSS_NT_ExportedName_6 'f' #define ORBIT_IMPL_CORBA_sequence_CSI_GSS_NT_ExportedName_7 's' #if !defined(_CORBA_sequence_CSI_GSS_NT_ExportedName_defined) #define _CORBA_sequence_CSI_GSS_NT_ExportedName_defined 1 typedef CORBA_sequence_CORBA_sequence_CORBA_octet CORBA_sequence_CSI_GSS_NT_ExportedName; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CSI_GSS_NT_ExportedName_0) #define TC_IMPL_TC_CORBA_sequence_CSI_GSS_NT_ExportedName_0 'i' #define TC_IMPL_TC_CORBA_sequence_CSI_GSS_NT_ExportedName_1 'o' #define TC_IMPL_TC_CORBA_sequence_CSI_GSS_NT_ExportedName_2 'p' #define TC_IMPL_TC_CORBA_sequence_CSI_GSS_NT_ExportedName_3 '_' #define TC_IMPL_TC_CORBA_sequence_CSI_GSS_NT_ExportedName_4 'd' #define TC_IMPL_TC_CORBA_sequence_CSI_GSS_NT_ExportedName_5 'e' #define TC_IMPL_TC_CORBA_sequence_CSI_GSS_NT_ExportedName_6 'f' #define TC_IMPL_TC_CORBA_sequence_CSI_GSS_NT_ExportedName_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CSI_GSS_NT_ExportedName_struct; #define TC_CORBA_sequence_CSI_GSS_NT_ExportedName ((CORBA_TypeCode)&TC_CORBA_sequence_CSI_GSS_NT_ExportedName_struct) #endif #define CORBA_sequence_CSI_GSS_NT_ExportedName__alloc CORBA_sequence_CORBA_sequence_CORBA_octet__alloc #define CORBA_sequence_CSI_GSS_NT_ExportedName__freekids CORBA_sequence_CORBA_sequence_CORBA_octet__freekids #define CORBA_sequence_CSI_GSS_NT_ExportedName_allocbuf CORBA_sequence_CORBA_sequence_CORBA_octet_allocbuf #define CORBA_sequence_CSI_GSS_NT_ExportedName_marshal(x,y,z) CORBA_sequence_CORBA_sequence_CORBA_octet_marshal((x),(y),(z)) #define CORBA_sequence_CSI_GSS_NT_ExportedName_demarshal(x,y,z,i) CORBA_sequence_CORBA_sequence_CORBA_octet_demarshal((x),(y),(z),(i)) #endif #if !defined(_CSI_GSS_NT_ExportedNameList_defined) #define _CSI_GSS_NT_ExportedNameList_defined 1 typedef CORBA_sequence_CSI_GSS_NT_ExportedName CSI_GSS_NT_ExportedNameList; #define CSI_GSS_NT_ExportedNameList_marshal(x,y,z) CORBA_sequence_CSI_GSS_NT_ExportedName_marshal((x),(y),(z)) #define CSI_GSS_NT_ExportedNameList_demarshal(x,y,z,i) CORBA_sequence_CSI_GSS_NT_ExportedName_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSI_GSS_NT_ExportedNameList_0) #define TC_IMPL_TC_CSI_GSS_NT_ExportedNameList_0 'i' #define TC_IMPL_TC_CSI_GSS_NT_ExportedNameList_1 'o' #define TC_IMPL_TC_CSI_GSS_NT_ExportedNameList_2 'p' #define TC_IMPL_TC_CSI_GSS_NT_ExportedNameList_3 '_' #define TC_IMPL_TC_CSI_GSS_NT_ExportedNameList_4 'd' #define TC_IMPL_TC_CSI_GSS_NT_ExportedNameList_5 'e' #define TC_IMPL_TC_CSI_GSS_NT_ExportedNameList_6 'f' #define TC_IMPL_TC_CSI_GSS_NT_ExportedNameList_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_GSS_NT_ExportedNameList_struct; #define TC_CSI_GSS_NT_ExportedNameList ((CORBA_TypeCode)&TC_CSI_GSS_NT_ExportedNameList_struct) #endif #define CSI_GSS_NT_ExportedNameList__alloc() ((CSI_GSS_NT_ExportedNameList *)ORBit_small_alloc (TC_CORBA_sequence_CSI_GSS_NT_ExportedName)) #define CSI_GSS_NT_ExportedNameList__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CSI_GSS_NT_ExportedName,(m),(d)) #define CSI_GSS_NT_ExportedNameList_allocbuf(l) ((CSI_GSS_NT_ExportedName*)ORBit_small_allocbuf (TC_CORBA_sequence_CSI_GSS_NT_ExportedName, (l))) #endif #if !defined(_CSI_MsgType_defined) #define _CSI_MsgType_defined 1 typedef CORBA_short CSI_MsgType; #define CSI_MsgType_marshal(x,y,z) CORBA_short_marshal((x),(y),(z)) #define CSI_MsgType_demarshal(x,y,z,i) CORBA_short_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSI_MsgType_0) #define TC_IMPL_TC_CSI_MsgType_0 'i' #define TC_IMPL_TC_CSI_MsgType_1 'o' #define TC_IMPL_TC_CSI_MsgType_2 'p' #define TC_IMPL_TC_CSI_MsgType_3 '_' #define TC_IMPL_TC_CSI_MsgType_4 'd' #define TC_IMPL_TC_CSI_MsgType_5 'e' #define TC_IMPL_TC_CSI_MsgType_6 'f' #define TC_IMPL_TC_CSI_MsgType_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_MsgType_struct; #define TC_CSI_MsgType ((CORBA_TypeCode)&TC_CSI_MsgType_struct) #endif #define CSI_MsgType__alloc() ((CSI_MsgType *)ORBit_small_alloc (TC_CORBA_short)) #define CSI_MsgType__freekids(m,d) ORBit_small_freekids (TC_CORBA_short,(m),(d)) #endif #ifndef CSI_MTEstablishContext #define CSI_MTEstablishContext 0 #endif /* !CSI_MTEstablishContext */ #ifndef CSI_MTCompleteEstablishContext #define CSI_MTCompleteEstablishContext 1 #endif /* !CSI_MTCompleteEstablishContext */ #ifndef CSI_MTContextError #define CSI_MTContextError 4 #endif /* !CSI_MTContextError */ #ifndef CSI_MTMessageInContext #define CSI_MTMessageInContext 5 #endif /* !CSI_MTMessageInContext */ #if !defined(_CSI_ContextId_defined) #define _CSI_ContextId_defined 1 typedef CORBA_unsigned_long_long CSI_ContextId; #define CSI_ContextId_marshal(x,y,z) CORBA_unsigned_long_long_marshal((x),(y),(z)) #define CSI_ContextId_demarshal(x,y,z,i) CORBA_unsigned_long_long_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSI_ContextId_0) #define TC_IMPL_TC_CSI_ContextId_0 'i' #define TC_IMPL_TC_CSI_ContextId_1 'o' #define TC_IMPL_TC_CSI_ContextId_2 'p' #define TC_IMPL_TC_CSI_ContextId_3 '_' #define TC_IMPL_TC_CSI_ContextId_4 'd' #define TC_IMPL_TC_CSI_ContextId_5 'e' #define TC_IMPL_TC_CSI_ContextId_6 'f' #define TC_IMPL_TC_CSI_ContextId_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_ContextId_struct; #define TC_CSI_ContextId ((CORBA_TypeCode)&TC_CSI_ContextId_struct) #endif #define CSI_ContextId__alloc() ((CSI_ContextId *)ORBit_small_alloc (TC_CORBA_unsigned_long_long)) #define CSI_ContextId__freekids(m,d) ORBit_small_freekids (TC_CORBA_unsigned_long_long,(m),(d)) #endif #if !defined(_CSI_AuthorizationElementType_defined) #define _CSI_AuthorizationElementType_defined 1 typedef CORBA_unsigned_long CSI_AuthorizationElementType; #define CSI_AuthorizationElementType_marshal(x,y,z) CORBA_unsigned_long_marshal((x),(y),(z)) #define CSI_AuthorizationElementType_demarshal(x,y,z,i) CORBA_unsigned_long_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSI_AuthorizationElementType_0) #define TC_IMPL_TC_CSI_AuthorizationElementType_0 'i' #define TC_IMPL_TC_CSI_AuthorizationElementType_1 'o' #define TC_IMPL_TC_CSI_AuthorizationElementType_2 'p' #define TC_IMPL_TC_CSI_AuthorizationElementType_3 '_' #define TC_IMPL_TC_CSI_AuthorizationElementType_4 'd' #define TC_IMPL_TC_CSI_AuthorizationElementType_5 'e' #define TC_IMPL_TC_CSI_AuthorizationElementType_6 'f' #define TC_IMPL_TC_CSI_AuthorizationElementType_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_AuthorizationElementType_struct; #define TC_CSI_AuthorizationElementType ((CORBA_TypeCode)&TC_CSI_AuthorizationElementType_struct) #endif #define CSI_AuthorizationElementType__alloc() ((CSI_AuthorizationElementType *)ORBit_small_alloc (TC_CORBA_unsigned_long)) #define CSI_AuthorizationElementType__freekids(m,d) ORBit_small_freekids (TC_CORBA_unsigned_long,(m),(d)) #endif #ifndef CSI_X509AttributeCertChain #define CSI_X509AttributeCertChain 324817U #endif /* !CSI_X509AttributeCertChain */ #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(_CSI_AuthorizationElementContents_defined) #define _CSI_AuthorizationElementContents_defined 1 typedef CORBA_sequence_CORBA_octet CSI_AuthorizationElementContents; #define CSI_AuthorizationElementContents_marshal(x,y,z) CORBA_sequence_CORBA_octet_marshal((x),(y),(z)) #define CSI_AuthorizationElementContents_demarshal(x,y,z,i) CORBA_sequence_CORBA_octet_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSI_AuthorizationElementContents_0) #define TC_IMPL_TC_CSI_AuthorizationElementContents_0 'i' #define TC_IMPL_TC_CSI_AuthorizationElementContents_1 'o' #define TC_IMPL_TC_CSI_AuthorizationElementContents_2 'p' #define TC_IMPL_TC_CSI_AuthorizationElementContents_3 '_' #define TC_IMPL_TC_CSI_AuthorizationElementContents_4 'd' #define TC_IMPL_TC_CSI_AuthorizationElementContents_5 'e' #define TC_IMPL_TC_CSI_AuthorizationElementContents_6 'f' #define TC_IMPL_TC_CSI_AuthorizationElementContents_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_AuthorizationElementContents_struct; #define TC_CSI_AuthorizationElementContents ((CORBA_TypeCode)&TC_CSI_AuthorizationElementContents_struct) #endif #define CSI_AuthorizationElementContents__alloc() ((CSI_AuthorizationElementContents *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CSI_AuthorizationElementContents__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CSI_AuthorizationElementContents_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(_CSI_AuthorizationElement_defined) #define _CSI_AuthorizationElement_defined 1 typedef struct CSI_AuthorizationElement_type CSI_AuthorizationElement; struct CSI_AuthorizationElement_type { CSI_AuthorizationElementType the_type; CSI_AuthorizationElementContents the_element; }; #if !defined(TC_IMPL_TC_CSI_AuthorizationElement_0) #define TC_IMPL_TC_CSI_AuthorizationElement_0 'i' #define TC_IMPL_TC_CSI_AuthorizationElement_1 'o' #define TC_IMPL_TC_CSI_AuthorizationElement_2 'p' #define TC_IMPL_TC_CSI_AuthorizationElement_3 '_' #define TC_IMPL_TC_CSI_AuthorizationElement_4 'd' #define TC_IMPL_TC_CSI_AuthorizationElement_5 'e' #define TC_IMPL_TC_CSI_AuthorizationElement_6 'f' #define TC_IMPL_TC_CSI_AuthorizationElement_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_AuthorizationElement_struct; #define TC_CSI_AuthorizationElement ((CORBA_TypeCode)&TC_CSI_AuthorizationElement_struct) #endif #define CSI_AuthorizationElement__alloc() ((CSI_AuthorizationElement *)ORBit_small_alloc (TC_CSI_AuthorizationElement)) #define CSI_AuthorizationElement__freekids(m,d) ORBit_small_freekids (TC_CSI_AuthorizationElement,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CSI_AuthorizationElement) #define ORBIT_DECL_CORBA_sequence_CSI_AuthorizationElement 1 #define ORBIT_IMPL_CORBA_sequence_CSI_AuthorizationElement_0 'i' #define ORBIT_IMPL_CORBA_sequence_CSI_AuthorizationElement_1 'o' #define ORBIT_IMPL_CORBA_sequence_CSI_AuthorizationElement_2 'p' #define ORBIT_IMPL_CORBA_sequence_CSI_AuthorizationElement_3 '_' #define ORBIT_IMPL_CORBA_sequence_CSI_AuthorizationElement_4 'd' #define ORBIT_IMPL_CORBA_sequence_CSI_AuthorizationElement_5 'e' #define ORBIT_IMPL_CORBA_sequence_CSI_AuthorizationElement_6 'f' #define ORBIT_IMPL_CORBA_sequence_CSI_AuthorizationElement_7 's' #if !defined(_CORBA_sequence_CSI_AuthorizationElement_defined) #define _CORBA_sequence_CSI_AuthorizationElement_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CSI_AuthorizationElement* _buffer; CORBA_boolean _release; } CORBA_sequence_CSI_AuthorizationElement; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CSI_AuthorizationElement_0) #define TC_IMPL_TC_CORBA_sequence_CSI_AuthorizationElement_0 'i' #define TC_IMPL_TC_CORBA_sequence_CSI_AuthorizationElement_1 'o' #define TC_IMPL_TC_CORBA_sequence_CSI_AuthorizationElement_2 'p' #define TC_IMPL_TC_CORBA_sequence_CSI_AuthorizationElement_3 '_' #define TC_IMPL_TC_CORBA_sequence_CSI_AuthorizationElement_4 'd' #define TC_IMPL_TC_CORBA_sequence_CSI_AuthorizationElement_5 'e' #define TC_IMPL_TC_CORBA_sequence_CSI_AuthorizationElement_6 'f' #define TC_IMPL_TC_CORBA_sequence_CSI_AuthorizationElement_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CSI_AuthorizationElement_struct; #define TC_CORBA_sequence_CSI_AuthorizationElement ((CORBA_TypeCode)&TC_CORBA_sequence_CSI_AuthorizationElement_struct) #endif #define CORBA_sequence_CSI_AuthorizationElement__alloc() ((CORBA_sequence_CSI_AuthorizationElement *)ORBit_small_alloc (TC_CORBA_sequence_CSI_AuthorizationElement)) #define CORBA_sequence_CSI_AuthorizationElement__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CSI_AuthorizationElement,(m),(d)) #define CORBA_sequence_CSI_AuthorizationElement_allocbuf(l) ((CSI_AuthorizationElement*)ORBit_small_allocbuf (TC_CORBA_sequence_CSI_AuthorizationElement, (l))) #define CORBA_sequence_CSI_AuthorizationElement_allocbuf(l) ((CSI_AuthorizationElement*)ORBit_small_allocbuf (TC_CORBA_sequence_CSI_AuthorizationElement, (l))) #endif #if !defined(_CSI_AuthorizationToken_defined) #define _CSI_AuthorizationToken_defined 1 typedef CORBA_sequence_CSI_AuthorizationElement CSI_AuthorizationToken; #define CSI_AuthorizationToken_marshal(x,y,z) CORBA_sequence_CSI_AuthorizationElement_marshal((x),(y),(z)) #define CSI_AuthorizationToken_demarshal(x,y,z,i) CORBA_sequence_CSI_AuthorizationElement_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSI_AuthorizationToken_0) #define TC_IMPL_TC_CSI_AuthorizationToken_0 'i' #define TC_IMPL_TC_CSI_AuthorizationToken_1 'o' #define TC_IMPL_TC_CSI_AuthorizationToken_2 'p' #define TC_IMPL_TC_CSI_AuthorizationToken_3 '_' #define TC_IMPL_TC_CSI_AuthorizationToken_4 'd' #define TC_IMPL_TC_CSI_AuthorizationToken_5 'e' #define TC_IMPL_TC_CSI_AuthorizationToken_6 'f' #define TC_IMPL_TC_CSI_AuthorizationToken_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_AuthorizationToken_struct; #define TC_CSI_AuthorizationToken ((CORBA_TypeCode)&TC_CSI_AuthorizationToken_struct) #endif #define CSI_AuthorizationToken__alloc() ((CSI_AuthorizationToken *)ORBit_small_alloc (TC_CORBA_sequence_CSI_AuthorizationElement)) #define CSI_AuthorizationToken__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CSI_AuthorizationElement,(m),(d)) #define CSI_AuthorizationToken_allocbuf(l) ((CSI_AuthorizationElement*)ORBit_small_allocbuf (TC_CORBA_sequence_CSI_AuthorizationElement, (l))) #endif #if !defined(_CSI_IdentityTokenType_defined) #define _CSI_IdentityTokenType_defined 1 typedef CORBA_unsigned_long CSI_IdentityTokenType; #define CSI_IdentityTokenType_marshal(x,y,z) CORBA_unsigned_long_marshal((x),(y),(z)) #define CSI_IdentityTokenType_demarshal(x,y,z,i) CORBA_unsigned_long_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSI_IdentityTokenType_0) #define TC_IMPL_TC_CSI_IdentityTokenType_0 'i' #define TC_IMPL_TC_CSI_IdentityTokenType_1 'o' #define TC_IMPL_TC_CSI_IdentityTokenType_2 'p' #define TC_IMPL_TC_CSI_IdentityTokenType_3 '_' #define TC_IMPL_TC_CSI_IdentityTokenType_4 'd' #define TC_IMPL_TC_CSI_IdentityTokenType_5 'e' #define TC_IMPL_TC_CSI_IdentityTokenType_6 'f' #define TC_IMPL_TC_CSI_IdentityTokenType_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_IdentityTokenType_struct; #define TC_CSI_IdentityTokenType ((CORBA_TypeCode)&TC_CSI_IdentityTokenType_struct) #endif #define CSI_IdentityTokenType__alloc() ((CSI_IdentityTokenType *)ORBit_small_alloc (TC_CORBA_unsigned_long)) #define CSI_IdentityTokenType__freekids(m,d) ORBit_small_freekids (TC_CORBA_unsigned_long,(m),(d)) #endif #ifndef CSI_ITTAbsent #define CSI_ITTAbsent 0U #endif /* !CSI_ITTAbsent */ #ifndef CSI_ITTAnonymous #define CSI_ITTAnonymous 1U #endif /* !CSI_ITTAnonymous */ #ifndef CSI_ITTPrincipalName #define CSI_ITTPrincipalName 2U #endif /* !CSI_ITTPrincipalName */ #ifndef CSI_ITTX509CertChain #define CSI_ITTX509CertChain 4U #endif /* !CSI_ITTX509CertChain */ #ifndef CSI_ITTDistinguishedName #define CSI_ITTDistinguishedName 8U #endif /* !CSI_ITTDistinguishedName */ #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(_CSI_IdentityExtension_defined) #define _CSI_IdentityExtension_defined 1 typedef CORBA_sequence_CORBA_octet CSI_IdentityExtension; #define CSI_IdentityExtension_marshal(x,y,z) CORBA_sequence_CORBA_octet_marshal((x),(y),(z)) #define CSI_IdentityExtension_demarshal(x,y,z,i) CORBA_sequence_CORBA_octet_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSI_IdentityExtension_0) #define TC_IMPL_TC_CSI_IdentityExtension_0 'i' #define TC_IMPL_TC_CSI_IdentityExtension_1 'o' #define TC_IMPL_TC_CSI_IdentityExtension_2 'p' #define TC_IMPL_TC_CSI_IdentityExtension_3 '_' #define TC_IMPL_TC_CSI_IdentityExtension_4 'd' #define TC_IMPL_TC_CSI_IdentityExtension_5 'e' #define TC_IMPL_TC_CSI_IdentityExtension_6 'f' #define TC_IMPL_TC_CSI_IdentityExtension_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_IdentityExtension_struct; #define TC_CSI_IdentityExtension ((CORBA_TypeCode)&TC_CSI_IdentityExtension_struct) #endif #define CSI_IdentityExtension__alloc() ((CSI_IdentityExtension *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CSI_IdentityExtension__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CSI_IdentityExtension_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(_CSI_IdentityToken_defined) #define _CSI_IdentityToken_defined 1 typedef struct CSI_IdentityToken_type CSI_IdentityToken; struct CSI_IdentityToken_type { CSI_IdentityTokenType _d; union { CORBA_boolean absent; CORBA_boolean anonymous; CSI_GSS_NT_ExportedName principal_name; CSI_X509CertificateChain certificate_chain; CSI_X501DistinguishedName dn; CSI_IdentityExtension id; } _u; }; #if !defined(TC_IMPL_TC_CSI_IdentityToken_0) #define TC_IMPL_TC_CSI_IdentityToken_0 'i' #define TC_IMPL_TC_CSI_IdentityToken_1 'o' #define TC_IMPL_TC_CSI_IdentityToken_2 'p' #define TC_IMPL_TC_CSI_IdentityToken_3 '_' #define TC_IMPL_TC_CSI_IdentityToken_4 'd' #define TC_IMPL_TC_CSI_IdentityToken_5 'e' #define TC_IMPL_TC_CSI_IdentityToken_6 'f' #define TC_IMPL_TC_CSI_IdentityToken_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_IdentityToken_struct; #define TC_CSI_IdentityToken ((CORBA_TypeCode)&TC_CSI_IdentityToken_struct) #endif #define CSI_IdentityToken__alloc() ((CSI_IdentityToken *)ORBit_small_alloc (TC_CSI_IdentityToken)) #define CSI_IdentityToken__freekids(m,d) ORBit_small_freekids (TC_CSI_IdentityToken,(m),(d)) #endif #if !defined(_CSI_EstablishContext_defined) #define _CSI_EstablishContext_defined 1 typedef struct CSI_EstablishContext_type CSI_EstablishContext; struct CSI_EstablishContext_type { CSI_ContextId client_context_id; CSI_AuthorizationToken authorization_token; CSI_IdentityToken identity_token; CSI_GSSToken client_authentication_token; }; #if !defined(TC_IMPL_TC_CSI_EstablishContext_0) #define TC_IMPL_TC_CSI_EstablishContext_0 'i' #define TC_IMPL_TC_CSI_EstablishContext_1 'o' #define TC_IMPL_TC_CSI_EstablishContext_2 'p' #define TC_IMPL_TC_CSI_EstablishContext_3 '_' #define TC_IMPL_TC_CSI_EstablishContext_4 'd' #define TC_IMPL_TC_CSI_EstablishContext_5 'e' #define TC_IMPL_TC_CSI_EstablishContext_6 'f' #define TC_IMPL_TC_CSI_EstablishContext_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_EstablishContext_struct; #define TC_CSI_EstablishContext ((CORBA_TypeCode)&TC_CSI_EstablishContext_struct) #endif #define CSI_EstablishContext__alloc() ((CSI_EstablishContext *)ORBit_small_alloc (TC_CSI_EstablishContext)) #define CSI_EstablishContext__freekids(m,d) ORBit_small_freekids (TC_CSI_EstablishContext,(m),(d)) #endif #if !defined(_CSI_CompleteEstablishContext_defined) #define _CSI_CompleteEstablishContext_defined 1 typedef struct CSI_CompleteEstablishContext_type CSI_CompleteEstablishContext; struct CSI_CompleteEstablishContext_type { CSI_ContextId client_context_id; CORBA_boolean context_stateful; CSI_GSSToken final_context_token; }; #if !defined(TC_IMPL_TC_CSI_CompleteEstablishContext_0) #define TC_IMPL_TC_CSI_CompleteEstablishContext_0 'i' #define TC_IMPL_TC_CSI_CompleteEstablishContext_1 'o' #define TC_IMPL_TC_CSI_CompleteEstablishContext_2 'p' #define TC_IMPL_TC_CSI_CompleteEstablishContext_3 '_' #define TC_IMPL_TC_CSI_CompleteEstablishContext_4 'd' #define TC_IMPL_TC_CSI_CompleteEstablishContext_5 'e' #define TC_IMPL_TC_CSI_CompleteEstablishContext_6 'f' #define TC_IMPL_TC_CSI_CompleteEstablishContext_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_CompleteEstablishContext_struct; #define TC_CSI_CompleteEstablishContext ((CORBA_TypeCode)&TC_CSI_CompleteEstablishContext_struct) #endif #define CSI_CompleteEstablishContext__alloc() ((CSI_CompleteEstablishContext *)ORBit_small_alloc (TC_CSI_CompleteEstablishContext)) #define CSI_CompleteEstablishContext__freekids(m,d) ORBit_small_freekids (TC_CSI_CompleteEstablishContext,(m),(d)) #endif #if !defined(_CSI_ContextError_defined) #define _CSI_ContextError_defined 1 typedef struct CSI_ContextError_type CSI_ContextError; struct CSI_ContextError_type { CSI_ContextId client_context_id; CORBA_long major_status; CORBA_long minor_status; CSI_GSSToken error_token; }; #if !defined(TC_IMPL_TC_CSI_ContextError_0) #define TC_IMPL_TC_CSI_ContextError_0 'i' #define TC_IMPL_TC_CSI_ContextError_1 'o' #define TC_IMPL_TC_CSI_ContextError_2 'p' #define TC_IMPL_TC_CSI_ContextError_3 '_' #define TC_IMPL_TC_CSI_ContextError_4 'd' #define TC_IMPL_TC_CSI_ContextError_5 'e' #define TC_IMPL_TC_CSI_ContextError_6 'f' #define TC_IMPL_TC_CSI_ContextError_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_ContextError_struct; #define TC_CSI_ContextError ((CORBA_TypeCode)&TC_CSI_ContextError_struct) #endif #define CSI_ContextError__alloc() ((CSI_ContextError *)ORBit_small_alloc (TC_CSI_ContextError)) #define CSI_ContextError__freekids(m,d) ORBit_small_freekids (TC_CSI_ContextError,(m),(d)) #endif #if !defined(_CSI_MessageInContext_defined) #define _CSI_MessageInContext_defined 1 typedef struct CSI_MessageInContext_type CSI_MessageInContext; struct CSI_MessageInContext_type { CSI_ContextId client_context_id; CORBA_boolean discard_context; }; #if !defined(TC_IMPL_TC_CSI_MessageInContext_0) #define TC_IMPL_TC_CSI_MessageInContext_0 'i' #define TC_IMPL_TC_CSI_MessageInContext_1 'o' #define TC_IMPL_TC_CSI_MessageInContext_2 'p' #define TC_IMPL_TC_CSI_MessageInContext_3 '_' #define TC_IMPL_TC_CSI_MessageInContext_4 'd' #define TC_IMPL_TC_CSI_MessageInContext_5 'e' #define TC_IMPL_TC_CSI_MessageInContext_6 'f' #define TC_IMPL_TC_CSI_MessageInContext_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_MessageInContext_struct; #define TC_CSI_MessageInContext ((CORBA_TypeCode)&TC_CSI_MessageInContext_struct) #endif #define CSI_MessageInContext__alloc() ((CSI_MessageInContext *)ORBit_small_alloc (TC_CSI_MessageInContext)) #define CSI_MessageInContext__freekids(m,d) ORBit_small_freekids (TC_CSI_MessageInContext,(m),(d)) #endif #if !defined(_CSI_SASContextBody_defined) #define _CSI_SASContextBody_defined 1 typedef struct CSI_SASContextBody_type CSI_SASContextBody; struct CSI_SASContextBody_type { CSI_MsgType _d; union { CSI_EstablishContext establish_msg; CSI_CompleteEstablishContext complete_msg; CSI_ContextError error_msg; CSI_MessageInContext in_context_msg; } _u; }; #if !defined(TC_IMPL_TC_CSI_SASContextBody_0) #define TC_IMPL_TC_CSI_SASContextBody_0 'i' #define TC_IMPL_TC_CSI_SASContextBody_1 'o' #define TC_IMPL_TC_CSI_SASContextBody_2 'p' #define TC_IMPL_TC_CSI_SASContextBody_3 '_' #define TC_IMPL_TC_CSI_SASContextBody_4 'd' #define TC_IMPL_TC_CSI_SASContextBody_5 'e' #define TC_IMPL_TC_CSI_SASContextBody_6 'f' #define TC_IMPL_TC_CSI_SASContextBody_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_SASContextBody_struct; #define TC_CSI_SASContextBody ((CORBA_TypeCode)&TC_CSI_SASContextBody_struct) #endif #define CSI_SASContextBody__alloc() ((CSI_SASContextBody *)ORBit_small_alloc (TC_CSI_SASContextBody)) #define CSI_SASContextBody__freekids(m,d) ORBit_small_freekids (TC_CSI_SASContextBody,(m),(d)) #endif #if !defined(_CSI_StringOID_defined) #define _CSI_StringOID_defined 1 typedef CORBA_string CSI_StringOID; #define CSI_StringOID_marshal(x,y,z) CORBA_string_marshal((x),(y),(z)) #define CSI_StringOID_demarshal(x,y,z,i) CORBA_string_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSI_StringOID_0) #define TC_IMPL_TC_CSI_StringOID_0 'i' #define TC_IMPL_TC_CSI_StringOID_1 'o' #define TC_IMPL_TC_CSI_StringOID_2 'p' #define TC_IMPL_TC_CSI_StringOID_3 '_' #define TC_IMPL_TC_CSI_StringOID_4 'd' #define TC_IMPL_TC_CSI_StringOID_5 'e' #define TC_IMPL_TC_CSI_StringOID_6 'f' #define TC_IMPL_TC_CSI_StringOID_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSI_StringOID_struct; #define TC_CSI_StringOID ((CORBA_TypeCode)&TC_CSI_StringOID_struct) #endif #define CSI_StringOID__alloc() ((CSI_StringOID *)ORBit_small_alloc (TC_CORBA_string)) #define CSI_StringOID__freekids(m,d) ORBit_small_freekids (TC_CORBA_string,(m),(d)) #endif #ifndef CSI_KRB5MechOID #define CSI_KRB5MechOID "oid:1.2.840.113554.1.2.2" #endif /* !CSI_KRB5MechOID */ #ifndef CSI_GSS_NT_Export_Name_OID #define CSI_GSS_NT_Export_Name_OID "oid:1.3.6.1.5.6.4" #endif /* !CSI_GSS_NT_Export_Name_OID */ #ifndef CSI_GSS_NT_Scoped_Username_OID #define CSI_GSS_NT_Scoped_Username_OID "oid:2.23.130.1.2.1" #endif /* !CSI_GSS_NT_Scoped_Username_OID */ #if !defined(_CSIIOP_AssociationOptions_defined) #define _CSIIOP_AssociationOptions_defined 1 typedef CORBA_unsigned_short CSIIOP_AssociationOptions; #define CSIIOP_AssociationOptions_marshal(x,y,z) CORBA_unsigned_short_marshal((x),(y),(z)) #define CSIIOP_AssociationOptions_demarshal(x,y,z,i) CORBA_unsigned_short_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSIIOP_AssociationOptions_0) #define TC_IMPL_TC_CSIIOP_AssociationOptions_0 'i' #define TC_IMPL_TC_CSIIOP_AssociationOptions_1 'o' #define TC_IMPL_TC_CSIIOP_AssociationOptions_2 'p' #define TC_IMPL_TC_CSIIOP_AssociationOptions_3 '_' #define TC_IMPL_TC_CSIIOP_AssociationOptions_4 'd' #define TC_IMPL_TC_CSIIOP_AssociationOptions_5 'e' #define TC_IMPL_TC_CSIIOP_AssociationOptions_6 'f' #define TC_IMPL_TC_CSIIOP_AssociationOptions_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSIIOP_AssociationOptions_struct; #define TC_CSIIOP_AssociationOptions ((CORBA_TypeCode)&TC_CSIIOP_AssociationOptions_struct) #endif #define CSIIOP_AssociationOptions__alloc() ((CSIIOP_AssociationOptions *)ORBit_small_alloc (TC_CORBA_unsigned_short)) #define CSIIOP_AssociationOptions__freekids(m,d) ORBit_small_freekids (TC_CORBA_unsigned_short,(m),(d)) #endif #ifndef CSIIOP_NoProtection #define CSIIOP_NoProtection 1U #endif /* !CSIIOP_NoProtection */ #ifndef CSIIOP_Integrity #define CSIIOP_Integrity 2U #endif /* !CSIIOP_Integrity */ #ifndef CSIIOP_Confidentiality #define CSIIOP_Confidentiality 4U #endif /* !CSIIOP_Confidentiality */ #ifndef CSIIOP_DetectReplay #define CSIIOP_DetectReplay 8U #endif /* !CSIIOP_DetectReplay */ #ifndef CSIIOP_DetectMisordering #define CSIIOP_DetectMisordering 16U #endif /* !CSIIOP_DetectMisordering */ #ifndef CSIIOP_EstablishTrustInTarget #define CSIIOP_EstablishTrustInTarget 32U #endif /* !CSIIOP_EstablishTrustInTarget */ #ifndef CSIIOP_EstablishTrustInClient #define CSIIOP_EstablishTrustInClient 64U #endif /* !CSIIOP_EstablishTrustInClient */ #ifndef CSIIOP_NoDelegation #define CSIIOP_NoDelegation 128U #endif /* !CSIIOP_NoDelegation */ #ifndef CSIIOP_SimpleDelegation #define CSIIOP_SimpleDelegation 256U #endif /* !CSIIOP_SimpleDelegation */ #ifndef CSIIOP_CompositeDelegation #define CSIIOP_CompositeDelegation 512U #endif /* !CSIIOP_CompositeDelegation */ #ifndef CSIIOP_IdentityAssertion #define CSIIOP_IdentityAssertion 1024U #endif /* !CSIIOP_IdentityAssertion */ #ifndef CSIIOP_DelegationByClient #define CSIIOP_DelegationByClient 2048U #endif /* !CSIIOP_DelegationByClient */ #if !defined(_CSIIOP_ServiceConfigurationSyntax_defined) #define _CSIIOP_ServiceConfigurationSyntax_defined 1 typedef CORBA_unsigned_long CSIIOP_ServiceConfigurationSyntax; #define CSIIOP_ServiceConfigurationSyntax_marshal(x,y,z) CORBA_unsigned_long_marshal((x),(y),(z)) #define CSIIOP_ServiceConfigurationSyntax_demarshal(x,y,z,i) CORBA_unsigned_long_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSIIOP_ServiceConfigurationSyntax_0) #define TC_IMPL_TC_CSIIOP_ServiceConfigurationSyntax_0 'i' #define TC_IMPL_TC_CSIIOP_ServiceConfigurationSyntax_1 'o' #define TC_IMPL_TC_CSIIOP_ServiceConfigurationSyntax_2 'p' #define TC_IMPL_TC_CSIIOP_ServiceConfigurationSyntax_3 '_' #define TC_IMPL_TC_CSIIOP_ServiceConfigurationSyntax_4 'd' #define TC_IMPL_TC_CSIIOP_ServiceConfigurationSyntax_5 'e' #define TC_IMPL_TC_CSIIOP_ServiceConfigurationSyntax_6 'f' #define TC_IMPL_TC_CSIIOP_ServiceConfigurationSyntax_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSIIOP_ServiceConfigurationSyntax_struct; #define TC_CSIIOP_ServiceConfigurationSyntax ((CORBA_TypeCode)&TC_CSIIOP_ServiceConfigurationSyntax_struct) #endif #define CSIIOP_ServiceConfigurationSyntax__alloc() ((CSIIOP_ServiceConfigurationSyntax *)ORBit_small_alloc (TC_CORBA_unsigned_long)) #define CSIIOP_ServiceConfigurationSyntax__freekids(m,d) ORBit_small_freekids (TC_CORBA_unsigned_long,(m),(d)) #endif #ifndef CSIIOP_SCS_GeneralNames #define CSIIOP_SCS_GeneralNames 324816U #endif /* !CSIIOP_SCS_GeneralNames */ #ifndef CSIIOP_SCS_GSSExportedName #define CSIIOP_SCS_GSSExportedName 324817U #endif /* !CSIIOP_SCS_GSSExportedName */ #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(_CSIIOP_ServiceSpecificName_defined) #define _CSIIOP_ServiceSpecificName_defined 1 typedef CORBA_sequence_CORBA_octet CSIIOP_ServiceSpecificName; #define CSIIOP_ServiceSpecificName_marshal(x,y,z) CORBA_sequence_CORBA_octet_marshal((x),(y),(z)) #define CSIIOP_ServiceSpecificName_demarshal(x,y,z,i) CORBA_sequence_CORBA_octet_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSIIOP_ServiceSpecificName_0) #define TC_IMPL_TC_CSIIOP_ServiceSpecificName_0 'i' #define TC_IMPL_TC_CSIIOP_ServiceSpecificName_1 'o' #define TC_IMPL_TC_CSIIOP_ServiceSpecificName_2 'p' #define TC_IMPL_TC_CSIIOP_ServiceSpecificName_3 '_' #define TC_IMPL_TC_CSIIOP_ServiceSpecificName_4 'd' #define TC_IMPL_TC_CSIIOP_ServiceSpecificName_5 'e' #define TC_IMPL_TC_CSIIOP_ServiceSpecificName_6 'f' #define TC_IMPL_TC_CSIIOP_ServiceSpecificName_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSIIOP_ServiceSpecificName_struct; #define TC_CSIIOP_ServiceSpecificName ((CORBA_TypeCode)&TC_CSIIOP_ServiceSpecificName_struct) #endif #define CSIIOP_ServiceSpecificName__alloc() ((CSIIOP_ServiceSpecificName *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CSIIOP_ServiceSpecificName__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CSIIOP_ServiceSpecificName_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif #if !defined(_CSIIOP_ServiceConfiguration_defined) #define _CSIIOP_ServiceConfiguration_defined 1 typedef struct CSIIOP_ServiceConfiguration_type CSIIOP_ServiceConfiguration; struct CSIIOP_ServiceConfiguration_type { CSIIOP_ServiceConfigurationSyntax syntax; CSIIOP_ServiceSpecificName name; }; #if !defined(TC_IMPL_TC_CSIIOP_ServiceConfiguration_0) #define TC_IMPL_TC_CSIIOP_ServiceConfiguration_0 'i' #define TC_IMPL_TC_CSIIOP_ServiceConfiguration_1 'o' #define TC_IMPL_TC_CSIIOP_ServiceConfiguration_2 'p' #define TC_IMPL_TC_CSIIOP_ServiceConfiguration_3 '_' #define TC_IMPL_TC_CSIIOP_ServiceConfiguration_4 'd' #define TC_IMPL_TC_CSIIOP_ServiceConfiguration_5 'e' #define TC_IMPL_TC_CSIIOP_ServiceConfiguration_6 'f' #define TC_IMPL_TC_CSIIOP_ServiceConfiguration_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSIIOP_ServiceConfiguration_struct; #define TC_CSIIOP_ServiceConfiguration ((CORBA_TypeCode)&TC_CSIIOP_ServiceConfiguration_struct) #endif #define CSIIOP_ServiceConfiguration__alloc() ((CSIIOP_ServiceConfiguration *)ORBit_small_alloc (TC_CSIIOP_ServiceConfiguration)) #define CSIIOP_ServiceConfiguration__freekids(m,d) ORBit_small_freekids (TC_CSIIOP_ServiceConfiguration,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CSIIOP_ServiceConfiguration) #define ORBIT_DECL_CORBA_sequence_CSIIOP_ServiceConfiguration 1 #define ORBIT_IMPL_CORBA_sequence_CSIIOP_ServiceConfiguration_0 'i' #define ORBIT_IMPL_CORBA_sequence_CSIIOP_ServiceConfiguration_1 'o' #define ORBIT_IMPL_CORBA_sequence_CSIIOP_ServiceConfiguration_2 'p' #define ORBIT_IMPL_CORBA_sequence_CSIIOP_ServiceConfiguration_3 '_' #define ORBIT_IMPL_CORBA_sequence_CSIIOP_ServiceConfiguration_4 'd' #define ORBIT_IMPL_CORBA_sequence_CSIIOP_ServiceConfiguration_5 'e' #define ORBIT_IMPL_CORBA_sequence_CSIIOP_ServiceConfiguration_6 'f' #define ORBIT_IMPL_CORBA_sequence_CSIIOP_ServiceConfiguration_7 's' #if !defined(_CORBA_sequence_CSIIOP_ServiceConfiguration_defined) #define _CORBA_sequence_CSIIOP_ServiceConfiguration_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CSIIOP_ServiceConfiguration* _buffer; CORBA_boolean _release; } CORBA_sequence_CSIIOP_ServiceConfiguration; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CSIIOP_ServiceConfiguration_0) #define TC_IMPL_TC_CORBA_sequence_CSIIOP_ServiceConfiguration_0 'i' #define TC_IMPL_TC_CORBA_sequence_CSIIOP_ServiceConfiguration_1 'o' #define TC_IMPL_TC_CORBA_sequence_CSIIOP_ServiceConfiguration_2 'p' #define TC_IMPL_TC_CORBA_sequence_CSIIOP_ServiceConfiguration_3 '_' #define TC_IMPL_TC_CORBA_sequence_CSIIOP_ServiceConfiguration_4 'd' #define TC_IMPL_TC_CORBA_sequence_CSIIOP_ServiceConfiguration_5 'e' #define TC_IMPL_TC_CORBA_sequence_CSIIOP_ServiceConfiguration_6 'f' #define TC_IMPL_TC_CORBA_sequence_CSIIOP_ServiceConfiguration_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CSIIOP_ServiceConfiguration_struct; #define TC_CORBA_sequence_CSIIOP_ServiceConfiguration ((CORBA_TypeCode)&TC_CORBA_sequence_CSIIOP_ServiceConfiguration_struct) #endif #define CORBA_sequence_CSIIOP_ServiceConfiguration__alloc() ((CORBA_sequence_CSIIOP_ServiceConfiguration *)ORBit_small_alloc (TC_CORBA_sequence_CSIIOP_ServiceConfiguration)) #define CORBA_sequence_CSIIOP_ServiceConfiguration__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CSIIOP_ServiceConfiguration,(m),(d)) #define CORBA_sequence_CSIIOP_ServiceConfiguration_allocbuf(l) ((CSIIOP_ServiceConfiguration*)ORBit_small_allocbuf (TC_CORBA_sequence_CSIIOP_ServiceConfiguration, (l))) #define CORBA_sequence_CSIIOP_ServiceConfiguration_allocbuf(l) ((CSIIOP_ServiceConfiguration*)ORBit_small_allocbuf (TC_CORBA_sequence_CSIIOP_ServiceConfiguration, (l))) #endif #if !defined(_CSIIOP_ServiceConfigurationList_defined) #define _CSIIOP_ServiceConfigurationList_defined 1 typedef CORBA_sequence_CSIIOP_ServiceConfiguration CSIIOP_ServiceConfigurationList; #define CSIIOP_ServiceConfigurationList_marshal(x,y,z) CORBA_sequence_CSIIOP_ServiceConfiguration_marshal((x),(y),(z)) #define CSIIOP_ServiceConfigurationList_demarshal(x,y,z,i) CORBA_sequence_CSIIOP_ServiceConfiguration_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSIIOP_ServiceConfigurationList_0) #define TC_IMPL_TC_CSIIOP_ServiceConfigurationList_0 'i' #define TC_IMPL_TC_CSIIOP_ServiceConfigurationList_1 'o' #define TC_IMPL_TC_CSIIOP_ServiceConfigurationList_2 'p' #define TC_IMPL_TC_CSIIOP_ServiceConfigurationList_3 '_' #define TC_IMPL_TC_CSIIOP_ServiceConfigurationList_4 'd' #define TC_IMPL_TC_CSIIOP_ServiceConfigurationList_5 'e' #define TC_IMPL_TC_CSIIOP_ServiceConfigurationList_6 'f' #define TC_IMPL_TC_CSIIOP_ServiceConfigurationList_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSIIOP_ServiceConfigurationList_struct; #define TC_CSIIOP_ServiceConfigurationList ((CORBA_TypeCode)&TC_CSIIOP_ServiceConfigurationList_struct) #endif #define CSIIOP_ServiceConfigurationList__alloc() ((CSIIOP_ServiceConfigurationList *)ORBit_small_alloc (TC_CORBA_sequence_CSIIOP_ServiceConfiguration)) #define CSIIOP_ServiceConfigurationList__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CSIIOP_ServiceConfiguration,(m),(d)) #define CSIIOP_ServiceConfigurationList_allocbuf(l) ((CSIIOP_ServiceConfiguration*)ORBit_small_allocbuf (TC_CORBA_sequence_CSIIOP_ServiceConfiguration, (l))) #endif #if !defined(_CSIIOP_AS_ContextSec_defined) #define _CSIIOP_AS_ContextSec_defined 1 typedef struct CSIIOP_AS_ContextSec_type CSIIOP_AS_ContextSec; struct CSIIOP_AS_ContextSec_type { CSIIOP_AssociationOptions target_supports; CSIIOP_AssociationOptions target_requires; CSI_OID client_authentication_mech; CSI_GSS_NT_ExportedName target_name; }; #if !defined(TC_IMPL_TC_CSIIOP_AS_ContextSec_0) #define TC_IMPL_TC_CSIIOP_AS_ContextSec_0 'i' #define TC_IMPL_TC_CSIIOP_AS_ContextSec_1 'o' #define TC_IMPL_TC_CSIIOP_AS_ContextSec_2 'p' #define TC_IMPL_TC_CSIIOP_AS_ContextSec_3 '_' #define TC_IMPL_TC_CSIIOP_AS_ContextSec_4 'd' #define TC_IMPL_TC_CSIIOP_AS_ContextSec_5 'e' #define TC_IMPL_TC_CSIIOP_AS_ContextSec_6 'f' #define TC_IMPL_TC_CSIIOP_AS_ContextSec_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSIIOP_AS_ContextSec_struct; #define TC_CSIIOP_AS_ContextSec ((CORBA_TypeCode)&TC_CSIIOP_AS_ContextSec_struct) #endif #define CSIIOP_AS_ContextSec__alloc() ((CSIIOP_AS_ContextSec *)ORBit_small_alloc (TC_CSIIOP_AS_ContextSec)) #define CSIIOP_AS_ContextSec__freekids(m,d) ORBit_small_freekids (TC_CSIIOP_AS_ContextSec,(m),(d)) #endif #if !defined(_CSIIOP_SAS_ContextSec_defined) #define _CSIIOP_SAS_ContextSec_defined 1 typedef struct CSIIOP_SAS_ContextSec_type CSIIOP_SAS_ContextSec; struct CSIIOP_SAS_ContextSec_type { CSIIOP_AssociationOptions target_supports; CSIIOP_AssociationOptions target_requires; CSIIOP_ServiceConfigurationList privilege_authorities; CSI_OIDList supported_naming_mechanisms; CSI_IdentityTokenType supported_identity_types; }; #if !defined(TC_IMPL_TC_CSIIOP_SAS_ContextSec_0) #define TC_IMPL_TC_CSIIOP_SAS_ContextSec_0 'i' #define TC_IMPL_TC_CSIIOP_SAS_ContextSec_1 'o' #define TC_IMPL_TC_CSIIOP_SAS_ContextSec_2 'p' #define TC_IMPL_TC_CSIIOP_SAS_ContextSec_3 '_' #define TC_IMPL_TC_CSIIOP_SAS_ContextSec_4 'd' #define TC_IMPL_TC_CSIIOP_SAS_ContextSec_5 'e' #define TC_IMPL_TC_CSIIOP_SAS_ContextSec_6 'f' #define TC_IMPL_TC_CSIIOP_SAS_ContextSec_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSIIOP_SAS_ContextSec_struct; #define TC_CSIIOP_SAS_ContextSec ((CORBA_TypeCode)&TC_CSIIOP_SAS_ContextSec_struct) #endif #define CSIIOP_SAS_ContextSec__alloc() ((CSIIOP_SAS_ContextSec *)ORBit_small_alloc (TC_CSIIOP_SAS_ContextSec)) #define CSIIOP_SAS_ContextSec__freekids(m,d) ORBit_small_freekids (TC_CSIIOP_SAS_ContextSec,(m),(d)) #endif #if !defined(_CSIIOP_CompoundSecMech_defined) #define _CSIIOP_CompoundSecMech_defined 1 typedef struct CSIIOP_CompoundSecMech_type CSIIOP_CompoundSecMech; struct CSIIOP_CompoundSecMech_type { CSIIOP_AssociationOptions target_requires; IOP_TaggedComponent transport_mech; CSIIOP_AS_ContextSec as_context_mech; CSIIOP_SAS_ContextSec sas_context_mech; }; #if !defined(TC_IMPL_TC_CSIIOP_CompoundSecMech_0) #define TC_IMPL_TC_CSIIOP_CompoundSecMech_0 'i' #define TC_IMPL_TC_CSIIOP_CompoundSecMech_1 'o' #define TC_IMPL_TC_CSIIOP_CompoundSecMech_2 'p' #define TC_IMPL_TC_CSIIOP_CompoundSecMech_3 '_' #define TC_IMPL_TC_CSIIOP_CompoundSecMech_4 'd' #define TC_IMPL_TC_CSIIOP_CompoundSecMech_5 'e' #define TC_IMPL_TC_CSIIOP_CompoundSecMech_6 'f' #define TC_IMPL_TC_CSIIOP_CompoundSecMech_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSIIOP_CompoundSecMech_struct; #define TC_CSIIOP_CompoundSecMech ((CORBA_TypeCode)&TC_CSIIOP_CompoundSecMech_struct) #endif #define CSIIOP_CompoundSecMech__alloc() ((CSIIOP_CompoundSecMech *)ORBit_small_alloc (TC_CSIIOP_CompoundSecMech)) #define CSIIOP_CompoundSecMech__freekids(m,d) ORBit_small_freekids (TC_CSIIOP_CompoundSecMech,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CSIIOP_CompoundSecMech) #define ORBIT_DECL_CORBA_sequence_CSIIOP_CompoundSecMech 1 #define ORBIT_IMPL_CORBA_sequence_CSIIOP_CompoundSecMech_0 'i' #define ORBIT_IMPL_CORBA_sequence_CSIIOP_CompoundSecMech_1 'o' #define ORBIT_IMPL_CORBA_sequence_CSIIOP_CompoundSecMech_2 'p' #define ORBIT_IMPL_CORBA_sequence_CSIIOP_CompoundSecMech_3 '_' #define ORBIT_IMPL_CORBA_sequence_CSIIOP_CompoundSecMech_4 'd' #define ORBIT_IMPL_CORBA_sequence_CSIIOP_CompoundSecMech_5 'e' #define ORBIT_IMPL_CORBA_sequence_CSIIOP_CompoundSecMech_6 'f' #define ORBIT_IMPL_CORBA_sequence_CSIIOP_CompoundSecMech_7 's' #if !defined(_CORBA_sequence_CSIIOP_CompoundSecMech_defined) #define _CORBA_sequence_CSIIOP_CompoundSecMech_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CSIIOP_CompoundSecMech* _buffer; CORBA_boolean _release; } CORBA_sequence_CSIIOP_CompoundSecMech; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CSIIOP_CompoundSecMech_0) #define TC_IMPL_TC_CORBA_sequence_CSIIOP_CompoundSecMech_0 'i' #define TC_IMPL_TC_CORBA_sequence_CSIIOP_CompoundSecMech_1 'o' #define TC_IMPL_TC_CORBA_sequence_CSIIOP_CompoundSecMech_2 'p' #define TC_IMPL_TC_CORBA_sequence_CSIIOP_CompoundSecMech_3 '_' #define TC_IMPL_TC_CORBA_sequence_CSIIOP_CompoundSecMech_4 'd' #define TC_IMPL_TC_CORBA_sequence_CSIIOP_CompoundSecMech_5 'e' #define TC_IMPL_TC_CORBA_sequence_CSIIOP_CompoundSecMech_6 'f' #define TC_IMPL_TC_CORBA_sequence_CSIIOP_CompoundSecMech_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CSIIOP_CompoundSecMech_struct; #define TC_CORBA_sequence_CSIIOP_CompoundSecMech ((CORBA_TypeCode)&TC_CORBA_sequence_CSIIOP_CompoundSecMech_struct) #endif #define CORBA_sequence_CSIIOP_CompoundSecMech__alloc() ((CORBA_sequence_CSIIOP_CompoundSecMech *)ORBit_small_alloc (TC_CORBA_sequence_CSIIOP_CompoundSecMech)) #define CORBA_sequence_CSIIOP_CompoundSecMech__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CSIIOP_CompoundSecMech,(m),(d)) #define CORBA_sequence_CSIIOP_CompoundSecMech_allocbuf(l) ((CSIIOP_CompoundSecMech*)ORBit_small_allocbuf (TC_CORBA_sequence_CSIIOP_CompoundSecMech, (l))) #define CORBA_sequence_CSIIOP_CompoundSecMech_allocbuf(l) ((CSIIOP_CompoundSecMech*)ORBit_small_allocbuf (TC_CORBA_sequence_CSIIOP_CompoundSecMech, (l))) #endif #if !defined(_CSIIOP_CompoundSecMechanisms_defined) #define _CSIIOP_CompoundSecMechanisms_defined 1 typedef CORBA_sequence_CSIIOP_CompoundSecMech CSIIOP_CompoundSecMechanisms; #define CSIIOP_CompoundSecMechanisms_marshal(x,y,z) CORBA_sequence_CSIIOP_CompoundSecMech_marshal((x),(y),(z)) #define CSIIOP_CompoundSecMechanisms_demarshal(x,y,z,i) CORBA_sequence_CSIIOP_CompoundSecMech_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSIIOP_CompoundSecMechanisms_0) #define TC_IMPL_TC_CSIIOP_CompoundSecMechanisms_0 'i' #define TC_IMPL_TC_CSIIOP_CompoundSecMechanisms_1 'o' #define TC_IMPL_TC_CSIIOP_CompoundSecMechanisms_2 'p' #define TC_IMPL_TC_CSIIOP_CompoundSecMechanisms_3 '_' #define TC_IMPL_TC_CSIIOP_CompoundSecMechanisms_4 'd' #define TC_IMPL_TC_CSIIOP_CompoundSecMechanisms_5 'e' #define TC_IMPL_TC_CSIIOP_CompoundSecMechanisms_6 'f' #define TC_IMPL_TC_CSIIOP_CompoundSecMechanisms_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSIIOP_CompoundSecMechanisms_struct; #define TC_CSIIOP_CompoundSecMechanisms ((CORBA_TypeCode)&TC_CSIIOP_CompoundSecMechanisms_struct) #endif #define CSIIOP_CompoundSecMechanisms__alloc() ((CSIIOP_CompoundSecMechanisms *)ORBit_small_alloc (TC_CORBA_sequence_CSIIOP_CompoundSecMech)) #define CSIIOP_CompoundSecMechanisms__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CSIIOP_CompoundSecMech,(m),(d)) #define CSIIOP_CompoundSecMechanisms_allocbuf(l) ((CSIIOP_CompoundSecMech*)ORBit_small_allocbuf (TC_CORBA_sequence_CSIIOP_CompoundSecMech, (l))) #endif #if !defined(_CSIIOP_CompoundSecMechList_defined) #define _CSIIOP_CompoundSecMechList_defined 1 typedef struct CSIIOP_CompoundSecMechList_type CSIIOP_CompoundSecMechList; struct CSIIOP_CompoundSecMechList_type { CORBA_boolean stateful; CSIIOP_CompoundSecMechanisms mechanism_list; }; #if !defined(TC_IMPL_TC_CSIIOP_CompoundSecMechList_0) #define TC_IMPL_TC_CSIIOP_CompoundSecMechList_0 'i' #define TC_IMPL_TC_CSIIOP_CompoundSecMechList_1 'o' #define TC_IMPL_TC_CSIIOP_CompoundSecMechList_2 'p' #define TC_IMPL_TC_CSIIOP_CompoundSecMechList_3 '_' #define TC_IMPL_TC_CSIIOP_CompoundSecMechList_4 'd' #define TC_IMPL_TC_CSIIOP_CompoundSecMechList_5 'e' #define TC_IMPL_TC_CSIIOP_CompoundSecMechList_6 'f' #define TC_IMPL_TC_CSIIOP_CompoundSecMechList_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSIIOP_CompoundSecMechList_struct; #define TC_CSIIOP_CompoundSecMechList ((CORBA_TypeCode)&TC_CSIIOP_CompoundSecMechList_struct) #endif #define CSIIOP_CompoundSecMechList__alloc() ((CSIIOP_CompoundSecMechList *)ORBit_small_alloc (TC_CSIIOP_CompoundSecMechList)) #define CSIIOP_CompoundSecMechList__freekids(m,d) ORBit_small_freekids (TC_CSIIOP_CompoundSecMechList,(m),(d)) #endif #if !defined(_CSIIOP_TransportAddress_defined) #define _CSIIOP_TransportAddress_defined 1 typedef struct CSIIOP_TransportAddress_type CSIIOP_TransportAddress; struct CSIIOP_TransportAddress_type { CORBA_string host_name; CORBA_unsigned_short port; }; #if !defined(TC_IMPL_TC_CSIIOP_TransportAddress_0) #define TC_IMPL_TC_CSIIOP_TransportAddress_0 'i' #define TC_IMPL_TC_CSIIOP_TransportAddress_1 'o' #define TC_IMPL_TC_CSIIOP_TransportAddress_2 'p' #define TC_IMPL_TC_CSIIOP_TransportAddress_3 '_' #define TC_IMPL_TC_CSIIOP_TransportAddress_4 'd' #define TC_IMPL_TC_CSIIOP_TransportAddress_5 'e' #define TC_IMPL_TC_CSIIOP_TransportAddress_6 'f' #define TC_IMPL_TC_CSIIOP_TransportAddress_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSIIOP_TransportAddress_struct; #define TC_CSIIOP_TransportAddress ((CORBA_TypeCode)&TC_CSIIOP_TransportAddress_struct) #endif #define CSIIOP_TransportAddress__alloc() ((CSIIOP_TransportAddress *)ORBit_small_alloc (TC_CSIIOP_TransportAddress)) #define CSIIOP_TransportAddress__freekids(m,d) ORBit_small_freekids (TC_CSIIOP_TransportAddress,(m),(d)) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CSIIOP_TransportAddress) #define ORBIT_DECL_CORBA_sequence_CSIIOP_TransportAddress 1 #define ORBIT_IMPL_CORBA_sequence_CSIIOP_TransportAddress_0 'i' #define ORBIT_IMPL_CORBA_sequence_CSIIOP_TransportAddress_1 'o' #define ORBIT_IMPL_CORBA_sequence_CSIIOP_TransportAddress_2 'p' #define ORBIT_IMPL_CORBA_sequence_CSIIOP_TransportAddress_3 '_' #define ORBIT_IMPL_CORBA_sequence_CSIIOP_TransportAddress_4 'd' #define ORBIT_IMPL_CORBA_sequence_CSIIOP_TransportAddress_5 'e' #define ORBIT_IMPL_CORBA_sequence_CSIIOP_TransportAddress_6 'f' #define ORBIT_IMPL_CORBA_sequence_CSIIOP_TransportAddress_7 's' #if !defined(_CORBA_sequence_CSIIOP_TransportAddress_defined) #define _CORBA_sequence_CSIIOP_TransportAddress_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CSIIOP_TransportAddress* _buffer; CORBA_boolean _release; } CORBA_sequence_CSIIOP_TransportAddress; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CSIIOP_TransportAddress_0) #define TC_IMPL_TC_CORBA_sequence_CSIIOP_TransportAddress_0 'i' #define TC_IMPL_TC_CORBA_sequence_CSIIOP_TransportAddress_1 'o' #define TC_IMPL_TC_CORBA_sequence_CSIIOP_TransportAddress_2 'p' #define TC_IMPL_TC_CORBA_sequence_CSIIOP_TransportAddress_3 '_' #define TC_IMPL_TC_CORBA_sequence_CSIIOP_TransportAddress_4 'd' #define TC_IMPL_TC_CORBA_sequence_CSIIOP_TransportAddress_5 'e' #define TC_IMPL_TC_CORBA_sequence_CSIIOP_TransportAddress_6 'f' #define TC_IMPL_TC_CORBA_sequence_CSIIOP_TransportAddress_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CSIIOP_TransportAddress_struct; #define TC_CORBA_sequence_CSIIOP_TransportAddress ((CORBA_TypeCode)&TC_CORBA_sequence_CSIIOP_TransportAddress_struct) #endif #define CORBA_sequence_CSIIOP_TransportAddress__alloc() ((CORBA_sequence_CSIIOP_TransportAddress *)ORBit_small_alloc (TC_CORBA_sequence_CSIIOP_TransportAddress)) #define CORBA_sequence_CSIIOP_TransportAddress__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CSIIOP_TransportAddress,(m),(d)) #define CORBA_sequence_CSIIOP_TransportAddress_allocbuf(l) ((CSIIOP_TransportAddress*)ORBit_small_allocbuf (TC_CORBA_sequence_CSIIOP_TransportAddress, (l))) #define CORBA_sequence_CSIIOP_TransportAddress_allocbuf(l) ((CSIIOP_TransportAddress*)ORBit_small_allocbuf (TC_CORBA_sequence_CSIIOP_TransportAddress, (l))) #endif #if !defined(_CSIIOP_TransportAddressList_defined) #define _CSIIOP_TransportAddressList_defined 1 typedef CORBA_sequence_CSIIOP_TransportAddress CSIIOP_TransportAddressList; #define CSIIOP_TransportAddressList_marshal(x,y,z) CORBA_sequence_CSIIOP_TransportAddress_marshal((x),(y),(z)) #define CSIIOP_TransportAddressList_demarshal(x,y,z,i) CORBA_sequence_CSIIOP_TransportAddress_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CSIIOP_TransportAddressList_0) #define TC_IMPL_TC_CSIIOP_TransportAddressList_0 'i' #define TC_IMPL_TC_CSIIOP_TransportAddressList_1 'o' #define TC_IMPL_TC_CSIIOP_TransportAddressList_2 'p' #define TC_IMPL_TC_CSIIOP_TransportAddressList_3 '_' #define TC_IMPL_TC_CSIIOP_TransportAddressList_4 'd' #define TC_IMPL_TC_CSIIOP_TransportAddressList_5 'e' #define TC_IMPL_TC_CSIIOP_TransportAddressList_6 'f' #define TC_IMPL_TC_CSIIOP_TransportAddressList_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSIIOP_TransportAddressList_struct; #define TC_CSIIOP_TransportAddressList ((CORBA_TypeCode)&TC_CSIIOP_TransportAddressList_struct) #endif #define CSIIOP_TransportAddressList__alloc() ((CSIIOP_TransportAddressList *)ORBit_small_alloc (TC_CORBA_sequence_CSIIOP_TransportAddress)) #define CSIIOP_TransportAddressList__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CSIIOP_TransportAddress,(m),(d)) #define CSIIOP_TransportAddressList_allocbuf(l) ((CSIIOP_TransportAddress*)ORBit_small_allocbuf (TC_CORBA_sequence_CSIIOP_TransportAddress, (l))) #endif #ifndef CSIIOP_TAG_SECIOP_SEC_TRANS #define CSIIOP_TAG_SECIOP_SEC_TRANS 35U #endif /* !CSIIOP_TAG_SECIOP_SEC_TRANS */ #if !defined(_CSIIOP_SECIOP_SEC_TRANS_defined) #define _CSIIOP_SECIOP_SEC_TRANS_defined 1 typedef struct CSIIOP_SECIOP_SEC_TRANS_type CSIIOP_SECIOP_SEC_TRANS; struct CSIIOP_SECIOP_SEC_TRANS_type { CSIIOP_AssociationOptions target_supports; CSIIOP_AssociationOptions target_requires; CSI_OID mech_oid; CSI_GSS_NT_ExportedName target_name; CSIIOP_TransportAddressList addresses; }; #if !defined(TC_IMPL_TC_CSIIOP_SECIOP_SEC_TRANS_0) #define TC_IMPL_TC_CSIIOP_SECIOP_SEC_TRANS_0 'i' #define TC_IMPL_TC_CSIIOP_SECIOP_SEC_TRANS_1 'o' #define TC_IMPL_TC_CSIIOP_SECIOP_SEC_TRANS_2 'p' #define TC_IMPL_TC_CSIIOP_SECIOP_SEC_TRANS_3 '_' #define TC_IMPL_TC_CSIIOP_SECIOP_SEC_TRANS_4 'd' #define TC_IMPL_TC_CSIIOP_SECIOP_SEC_TRANS_5 'e' #define TC_IMPL_TC_CSIIOP_SECIOP_SEC_TRANS_6 'f' #define TC_IMPL_TC_CSIIOP_SECIOP_SEC_TRANS_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSIIOP_SECIOP_SEC_TRANS_struct; #define TC_CSIIOP_SECIOP_SEC_TRANS ((CORBA_TypeCode)&TC_CSIIOP_SECIOP_SEC_TRANS_struct) #endif #define CSIIOP_SECIOP_SEC_TRANS__alloc() ((CSIIOP_SECIOP_SEC_TRANS *)ORBit_small_alloc (TC_CSIIOP_SECIOP_SEC_TRANS)) #define CSIIOP_SECIOP_SEC_TRANS__freekids(m,d) ORBit_small_freekids (TC_CSIIOP_SECIOP_SEC_TRANS,(m),(d)) #endif #ifndef CSIIOP_TAG_TLS_SEC_TRANS #define CSIIOP_TAG_TLS_SEC_TRANS 36U #endif /* !CSIIOP_TAG_TLS_SEC_TRANS */ #if !defined(_CSIIOP_TLS_SEC_TRANS_defined) #define _CSIIOP_TLS_SEC_TRANS_defined 1 typedef struct CSIIOP_TLS_SEC_TRANS_type CSIIOP_TLS_SEC_TRANS; struct CSIIOP_TLS_SEC_TRANS_type { CSIIOP_AssociationOptions target_supports; CSIIOP_AssociationOptions target_requires; CSIIOP_TransportAddressList addresses; }; #if !defined(TC_IMPL_TC_CSIIOP_TLS_SEC_TRANS_0) #define TC_IMPL_TC_CSIIOP_TLS_SEC_TRANS_0 'i' #define TC_IMPL_TC_CSIIOP_TLS_SEC_TRANS_1 'o' #define TC_IMPL_TC_CSIIOP_TLS_SEC_TRANS_2 'p' #define TC_IMPL_TC_CSIIOP_TLS_SEC_TRANS_3 '_' #define TC_IMPL_TC_CSIIOP_TLS_SEC_TRANS_4 'd' #define TC_IMPL_TC_CSIIOP_TLS_SEC_TRANS_5 'e' #define TC_IMPL_TC_CSIIOP_TLS_SEC_TRANS_6 'f' #define TC_IMPL_TC_CSIIOP_TLS_SEC_TRANS_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CSIIOP_TLS_SEC_TRANS_struct; #define TC_CSIIOP_TLS_SEC_TRANS ((CORBA_TypeCode)&TC_CSIIOP_TLS_SEC_TRANS_struct) #endif #define CSIIOP_TLS_SEC_TRANS__alloc() ((CSIIOP_TLS_SEC_TRANS *)ORBit_small_alloc (TC_CSIIOP_TLS_SEC_TRANS)) #define CSIIOP_TLS_SEC_TRANS__freekids(m,d) ORBit_small_freekids (TC_CSIIOP_TLS_SEC_TRANS,(m),(d)) #endif #if !defined(_BiDirPolicy_BidirectionalPolicyValue_defined) #define _BiDirPolicy_BidirectionalPolicyValue_defined 1 typedef CORBA_unsigned_short BiDirPolicy_BidirectionalPolicyValue; #define BiDirPolicy_BidirectionalPolicyValue_marshal(x,y,z) CORBA_unsigned_short_marshal((x),(y),(z)) #define BiDirPolicy_BidirectionalPolicyValue_demarshal(x,y,z,i) CORBA_unsigned_short_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_BiDirPolicy_BidirectionalPolicyValue_0) #define TC_IMPL_TC_BiDirPolicy_BidirectionalPolicyValue_0 'i' #define TC_IMPL_TC_BiDirPolicy_BidirectionalPolicyValue_1 'o' #define TC_IMPL_TC_BiDirPolicy_BidirectionalPolicyValue_2 'p' #define TC_IMPL_TC_BiDirPolicy_BidirectionalPolicyValue_3 '_' #define TC_IMPL_TC_BiDirPolicy_BidirectionalPolicyValue_4 'd' #define TC_IMPL_TC_BiDirPolicy_BidirectionalPolicyValue_5 'e' #define TC_IMPL_TC_BiDirPolicy_BidirectionalPolicyValue_6 'f' #define TC_IMPL_TC_BiDirPolicy_BidirectionalPolicyValue_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_BiDirPolicy_BidirectionalPolicyValue_struct; #define TC_BiDirPolicy_BidirectionalPolicyValue ((CORBA_TypeCode)&TC_BiDirPolicy_BidirectionalPolicyValue_struct) #endif #define BiDirPolicy_BidirectionalPolicyValue__alloc() ((BiDirPolicy_BidirectionalPolicyValue *)ORBit_small_alloc (TC_CORBA_unsigned_short)) #define BiDirPolicy_BidirectionalPolicyValue__freekids(m,d) ORBit_small_freekids (TC_CORBA_unsigned_short,(m),(d)) #endif #ifndef BiDirPolicy_NORMAL #define BiDirPolicy_NORMAL 0U #endif /* !BiDirPolicy_NORMAL */ #ifndef BiDirPolicy_BOTH #define BiDirPolicy_BOTH 1U #endif /* !BiDirPolicy_BOTH */ #ifndef BiDirPolicy_BIDIRECTIONAL_POLICY_TYPE #define BiDirPolicy_BIDIRECTIONAL_POLICY_TYPE 37U #endif /* !BiDirPolicy_BIDIRECTIONAL_POLICY_TYPE */ #if !defined(ORBIT_DECL_BiDirPolicy_BidirectionalPolicy) && !defined(_BiDirPolicy_BidirectionalPolicy_defined) #define ORBIT_DECL_BiDirPolicy_BidirectionalPolicy 1 #define _BiDirPolicy_BidirectionalPolicy_defined 1 #define BiDirPolicy_BidirectionalPolicy__freekids CORBA_Object__freekids typedef CORBA_Object BiDirPolicy_BidirectionalPolicy; extern CORBA_unsigned_long BiDirPolicy_BidirectionalPolicy__classid; #if !defined(TC_IMPL_TC_BiDirPolicy_BidirectionalPolicy_0) #define TC_IMPL_TC_BiDirPolicy_BidirectionalPolicy_0 'i' #define TC_IMPL_TC_BiDirPolicy_BidirectionalPolicy_1 'o' #define TC_IMPL_TC_BiDirPolicy_BidirectionalPolicy_2 'p' #define TC_IMPL_TC_BiDirPolicy_BidirectionalPolicy_3 '_' #define TC_IMPL_TC_BiDirPolicy_BidirectionalPolicy_4 'd' #define TC_IMPL_TC_BiDirPolicy_BidirectionalPolicy_5 'e' #define TC_IMPL_TC_BiDirPolicy_BidirectionalPolicy_6 'f' #define TC_IMPL_TC_BiDirPolicy_BidirectionalPolicy_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_BiDirPolicy_BidirectionalPolicy_struct; #define TC_BiDirPolicy_BidirectionalPolicy ((CORBA_TypeCode)&TC_BiDirPolicy_BidirectionalPolicy_struct) #endif #endif #if !defined(_CONV_FRAME_CodeSetId_defined) #define _CONV_FRAME_CodeSetId_defined 1 typedef CORBA_unsigned_long CONV_FRAME_CodeSetId; #define CONV_FRAME_CodeSetId_marshal(x,y,z) CORBA_unsigned_long_marshal((x),(y),(z)) #define CONV_FRAME_CodeSetId_demarshal(x,y,z,i) CORBA_unsigned_long_demarshal((x),(y),(z),(i)) #if !defined(TC_IMPL_TC_CONV_FRAME_CodeSetId_0) #define TC_IMPL_TC_CONV_FRAME_CodeSetId_0 'i' #define TC_IMPL_TC_CONV_FRAME_CodeSetId_1 'o' #define TC_IMPL_TC_CONV_FRAME_CodeSetId_2 'p' #define TC_IMPL_TC_CONV_FRAME_CodeSetId_3 '_' #define TC_IMPL_TC_CONV_FRAME_CodeSetId_4 'd' #define TC_IMPL_TC_CONV_FRAME_CodeSetId_5 'e' #define TC_IMPL_TC_CONV_FRAME_CodeSetId_6 'f' #define TC_IMPL_TC_CONV_FRAME_CodeSetId_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CONV_FRAME_CodeSetId_struct; #define TC_CONV_FRAME_CodeSetId ((CORBA_TypeCode)&TC_CONV_FRAME_CodeSetId_struct) #endif #define CONV_FRAME_CodeSetId__alloc() ((CONV_FRAME_CodeSetId *)ORBit_small_alloc (TC_CORBA_unsigned_long)) #define CONV_FRAME_CodeSetId__freekids(m,d) ORBit_small_freekids (TC_CORBA_unsigned_long,(m),(d)) #endif #if !defined(_CONV_FRAME_CodeSetComponent_defined) #define _CONV_FRAME_CodeSetComponent_defined 1 typedef struct CONV_FRAME_CodeSetComponent_type CONV_FRAME_CodeSetComponent; #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_unsigned_long) #define ORBIT_DECL_CORBA_sequence_CORBA_unsigned_long 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_unsigned_long_7 's' #if !defined(_CORBA_sequence_CORBA_unsigned_long_defined) #define _CORBA_sequence_CORBA_unsigned_long_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_unsigned_long* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_unsigned_long; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_unsigned_long_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_unsigned_long_struct; #define TC_CORBA_sequence_CORBA_unsigned_long ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_unsigned_long_struct) #endif #define CORBA_sequence_CORBA_unsigned_long__alloc() ((CORBA_sequence_CORBA_unsigned_long *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_unsigned_long)) #define CORBA_sequence_CORBA_unsigned_long__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_unsigned_long,(m),(d)) #define CORBA_sequence_CORBA_unsigned_long_allocbuf(l) ((CORBA_unsigned_long*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_unsigned_long, (l))) #define CORBA_sequence_CORBA_unsigned_long_allocbuf(l) ((CORBA_unsigned_long*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_unsigned_long, (l))) #endif #if !defined(ORBIT_DECL_CORBA_sequence_CONV_FRAME_CodeSetId) #define ORBIT_DECL_CORBA_sequence_CONV_FRAME_CodeSetId 1 #define ORBIT_IMPL_CORBA_sequence_CONV_FRAME_CodeSetId_0 'i' #define ORBIT_IMPL_CORBA_sequence_CONV_FRAME_CodeSetId_1 'o' #define ORBIT_IMPL_CORBA_sequence_CONV_FRAME_CodeSetId_2 'p' #define ORBIT_IMPL_CORBA_sequence_CONV_FRAME_CodeSetId_3 '_' #define ORBIT_IMPL_CORBA_sequence_CONV_FRAME_CodeSetId_4 'd' #define ORBIT_IMPL_CORBA_sequence_CONV_FRAME_CodeSetId_5 'e' #define ORBIT_IMPL_CORBA_sequence_CONV_FRAME_CodeSetId_6 'f' #define ORBIT_IMPL_CORBA_sequence_CONV_FRAME_CodeSetId_7 's' #if !defined(_CORBA_sequence_CONV_FRAME_CodeSetId_defined) #define _CORBA_sequence_CONV_FRAME_CodeSetId_defined 1 typedef CORBA_sequence_CORBA_unsigned_long CORBA_sequence_CONV_FRAME_CodeSetId; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CONV_FRAME_CodeSetId_0) #define TC_IMPL_TC_CORBA_sequence_CONV_FRAME_CodeSetId_0 'i' #define TC_IMPL_TC_CORBA_sequence_CONV_FRAME_CodeSetId_1 'o' #define TC_IMPL_TC_CORBA_sequence_CONV_FRAME_CodeSetId_2 'p' #define TC_IMPL_TC_CORBA_sequence_CONV_FRAME_CodeSetId_3 '_' #define TC_IMPL_TC_CORBA_sequence_CONV_FRAME_CodeSetId_4 'd' #define TC_IMPL_TC_CORBA_sequence_CONV_FRAME_CodeSetId_5 'e' #define TC_IMPL_TC_CORBA_sequence_CONV_FRAME_CodeSetId_6 'f' #define TC_IMPL_TC_CORBA_sequence_CONV_FRAME_CodeSetId_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CONV_FRAME_CodeSetId_struct; #define TC_CORBA_sequence_CONV_FRAME_CodeSetId ((CORBA_TypeCode)&TC_CORBA_sequence_CONV_FRAME_CodeSetId_struct) #endif #define CORBA_sequence_CONV_FRAME_CodeSetId__alloc CORBA_sequence_CORBA_unsigned_long__alloc #define CORBA_sequence_CONV_FRAME_CodeSetId__freekids CORBA_sequence_CORBA_unsigned_long__freekids #define CORBA_sequence_CONV_FRAME_CodeSetId_allocbuf CORBA_sequence_CORBA_unsigned_long_allocbuf #define CORBA_sequence_CONV_FRAME_CodeSetId_marshal(x,y,z) CORBA_sequence_CORBA_unsigned_long_marshal((x),(y),(z)) #define CORBA_sequence_CONV_FRAME_CodeSetId_demarshal(x,y,z,i) CORBA_sequence_CORBA_unsigned_long_demarshal((x),(y),(z),(i)) #endif struct CONV_FRAME_CodeSetComponent_type { CONV_FRAME_CodeSetId native_code_set; CORBA_sequence_CONV_FRAME_CodeSetId conversion_code_sets; }; #if !defined(TC_IMPL_TC_CONV_FRAME_CodeSetComponent_0) #define TC_IMPL_TC_CONV_FRAME_CodeSetComponent_0 'i' #define TC_IMPL_TC_CONV_FRAME_CodeSetComponent_1 'o' #define TC_IMPL_TC_CONV_FRAME_CodeSetComponent_2 'p' #define TC_IMPL_TC_CONV_FRAME_CodeSetComponent_3 '_' #define TC_IMPL_TC_CONV_FRAME_CodeSetComponent_4 'd' #define TC_IMPL_TC_CONV_FRAME_CodeSetComponent_5 'e' #define TC_IMPL_TC_CONV_FRAME_CodeSetComponent_6 'f' #define TC_IMPL_TC_CONV_FRAME_CodeSetComponent_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CONV_FRAME_CodeSetComponent_struct; #define TC_CONV_FRAME_CodeSetComponent ((CORBA_TypeCode)&TC_CONV_FRAME_CodeSetComponent_struct) #endif #define CONV_FRAME_CodeSetComponent__alloc() ((CONV_FRAME_CodeSetComponent *)ORBit_small_alloc (TC_CONV_FRAME_CodeSetComponent)) #define CONV_FRAME_CodeSetComponent__freekids(m,d) ORBit_small_freekids (TC_CONV_FRAME_CodeSetComponent,(m),(d)) #endif #if !defined(_CONV_FRAME_CodeSetComponentInfo_defined) #define _CONV_FRAME_CodeSetComponentInfo_defined 1 typedef struct CONV_FRAME_CodeSetComponentInfo_type CONV_FRAME_CodeSetComponentInfo; struct CONV_FRAME_CodeSetComponentInfo_type { CONV_FRAME_CodeSetComponent ForCharData; CONV_FRAME_CodeSetComponent ForWcharData; }; #if !defined(TC_IMPL_TC_CONV_FRAME_CodeSetComponentInfo_0) #define TC_IMPL_TC_CONV_FRAME_CodeSetComponentInfo_0 'i' #define TC_IMPL_TC_CONV_FRAME_CodeSetComponentInfo_1 'o' #define TC_IMPL_TC_CONV_FRAME_CodeSetComponentInfo_2 'p' #define TC_IMPL_TC_CONV_FRAME_CodeSetComponentInfo_3 '_' #define TC_IMPL_TC_CONV_FRAME_CodeSetComponentInfo_4 'd' #define TC_IMPL_TC_CONV_FRAME_CodeSetComponentInfo_5 'e' #define TC_IMPL_TC_CONV_FRAME_CodeSetComponentInfo_6 'f' #define TC_IMPL_TC_CONV_FRAME_CodeSetComponentInfo_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CONV_FRAME_CodeSetComponentInfo_struct; #define TC_CONV_FRAME_CodeSetComponentInfo ((CORBA_TypeCode)&TC_CONV_FRAME_CodeSetComponentInfo_struct) #endif #define CONV_FRAME_CodeSetComponentInfo__alloc() ((CONV_FRAME_CodeSetComponentInfo *)ORBit_small_alloc (TC_CONV_FRAME_CodeSetComponentInfo)) #define CONV_FRAME_CodeSetComponentInfo__freekids(m,d) ORBit_small_freekids (TC_CONV_FRAME_CodeSetComponentInfo,(m),(d)) #endif #if !defined(_CONV_FRAME_CodeSetContext_defined) #define _CONV_FRAME_CodeSetContext_defined 1 typedef struct CONV_FRAME_CodeSetContext_type CONV_FRAME_CodeSetContext; struct CONV_FRAME_CodeSetContext_type { CONV_FRAME_CodeSetId char_data; CONV_FRAME_CodeSetId wchar_data; }; #if !defined(TC_IMPL_TC_CONV_FRAME_CodeSetContext_0) #define TC_IMPL_TC_CONV_FRAME_CodeSetContext_0 'i' #define TC_IMPL_TC_CONV_FRAME_CodeSetContext_1 'o' #define TC_IMPL_TC_CONV_FRAME_CodeSetContext_2 'p' #define TC_IMPL_TC_CONV_FRAME_CodeSetContext_3 '_' #define TC_IMPL_TC_CONV_FRAME_CodeSetContext_4 'd' #define TC_IMPL_TC_CONV_FRAME_CodeSetContext_5 'e' #define TC_IMPL_TC_CONV_FRAME_CodeSetContext_6 'f' #define TC_IMPL_TC_CONV_FRAME_CodeSetContext_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CONV_FRAME_CodeSetContext_struct; #define TC_CONV_FRAME_CodeSetContext ((CORBA_TypeCode)&TC_CONV_FRAME_CodeSetContext_struct) #endif #define CONV_FRAME_CodeSetContext__alloc() ((CONV_FRAME_CodeSetContext *)ORBit_small_alloc (TC_CONV_FRAME_CodeSetContext)) #define CONV_FRAME_CodeSetContext__freekids(m,d) ORBit_small_freekids (TC_CONV_FRAME_CodeSetContext,(m),(d)) #endif #ifndef IOP_TAG_ORBIT_SPECIFIC #define IOP_TAG_ORBIT_SPECIFIC 3135221450U #endif /* !IOP_TAG_ORBIT_SPECIFIC */ #ifndef IOP_TAG_GENERIC_IOP #define IOP_TAG_GENERIC_IOP 1329746944U #endif /* !IOP_TAG_GENERIC_IOP */ #ifndef IOP_TAG_GENERIC_SSL_SEC_TRANS #define IOP_TAG_GENERIC_SSL_SEC_TRANS 1329746944U #endif /* !IOP_TAG_GENERIC_SSL_SEC_TRANS */ #if !defined(_IOP_ORBitSpecificProfileBody_defined) #define _IOP_ORBitSpecificProfileBody_defined 1 typedef struct IOP_ORBitSpecificProfileBody_type IOP_ORBitSpecificProfileBody; #if !defined(ORBIT_DECL_CORBA_sequence_CORBA_octet) #define ORBIT_DECL_CORBA_sequence_CORBA_octet 1 #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_0 'i' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_1 'o' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_2 'p' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_3 '_' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_4 'd' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_5 'e' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_6 'f' #define ORBIT_IMPL_CORBA_sequence_CORBA_octet_7 's' #if !defined(_CORBA_sequence_CORBA_octet_defined) #define _CORBA_sequence_CORBA_octet_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; CORBA_octet* _buffer; CORBA_boolean _release; } CORBA_sequence_CORBA_octet; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_CORBA_octet_0) #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_0 'i' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_1 'o' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_2 'p' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_3 '_' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_4 'd' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_5 'e' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_6 'f' #define TC_IMPL_TC_CORBA_sequence_CORBA_octet_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_CORBA_octet_struct; #define TC_CORBA_sequence_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_sequence_CORBA_octet_struct) #endif #define CORBA_sequence_CORBA_octet__alloc() ((CORBA_sequence_CORBA_octet *)ORBit_small_alloc (TC_CORBA_sequence_CORBA_octet)) #define CORBA_sequence_CORBA_octet__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_CORBA_octet,(m),(d)) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #define CORBA_sequence_CORBA_octet_allocbuf(l) ((CORBA_octet*)ORBit_small_allocbuf (TC_CORBA_sequence_CORBA_octet, (l))) #endif struct IOP_ORBitSpecificProfileBody_type { CORBA_string unix_sock_path; CORBA_unsigned_short ipv6_port; CORBA_sequence_CORBA_octet object_key; }; #if !defined(TC_IMPL_TC_IOP_ORBitSpecificProfileBody_0) #define TC_IMPL_TC_IOP_ORBitSpecificProfileBody_0 'i' #define TC_IMPL_TC_IOP_ORBitSpecificProfileBody_1 'o' #define TC_IMPL_TC_IOP_ORBitSpecificProfileBody_2 'p' #define TC_IMPL_TC_IOP_ORBitSpecificProfileBody_3 '_' #define TC_IMPL_TC_IOP_ORBitSpecificProfileBody_4 'd' #define TC_IMPL_TC_IOP_ORBitSpecificProfileBody_5 'e' #define TC_IMPL_TC_IOP_ORBitSpecificProfileBody_6 'f' #define TC_IMPL_TC_IOP_ORBitSpecificProfileBody_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IOP_ORBitSpecificProfileBody_struct; #define TC_IOP_ORBitSpecificProfileBody ((CORBA_TypeCode)&TC_IOP_ORBitSpecificProfileBody_struct) #endif #define IOP_ORBitSpecificProfileBody__alloc() ((IOP_ORBitSpecificProfileBody *)ORBit_small_alloc (TC_IOP_ORBitSpecificProfileBody)) #define IOP_ORBitSpecificProfileBody__freekids(m,d) ORBit_small_freekids (TC_IOP_ORBitSpecificProfileBody,(m),(d)) #endif #if !defined(_IOP_GenericIOPProfileBody_defined) #define _IOP_GenericIOPProfileBody_defined 1 typedef struct IOP_GenericIOPProfileBody_type IOP_GenericIOPProfileBody; #if !defined(ORBIT_DECL_CORBA_sequence_IOP_TaggedComponent) #define ORBIT_DECL_CORBA_sequence_IOP_TaggedComponent 1 #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_0 'i' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_1 'o' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_2 'p' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_3 '_' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_4 'd' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_5 'e' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_6 'f' #define ORBIT_IMPL_CORBA_sequence_IOP_TaggedComponent_7 's' #if !defined(_CORBA_sequence_IOP_TaggedComponent_defined) #define _CORBA_sequence_IOP_TaggedComponent_defined 1 typedef struct { CORBA_unsigned_long _maximum, _length; IOP_TaggedComponent* _buffer; CORBA_boolean _release; } CORBA_sequence_IOP_TaggedComponent; #endif #if !defined(TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_0) #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_0 'i' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_1 'o' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_2 'p' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_3 '_' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_4 'd' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_5 'e' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_6 'f' #define TC_IMPL_TC_CORBA_sequence_IOP_TaggedComponent_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_IOP_TaggedComponent_struct; #define TC_CORBA_sequence_IOP_TaggedComponent ((CORBA_TypeCode)&TC_CORBA_sequence_IOP_TaggedComponent_struct) #endif #define CORBA_sequence_IOP_TaggedComponent__alloc() ((CORBA_sequence_IOP_TaggedComponent *)ORBit_small_alloc (TC_CORBA_sequence_IOP_TaggedComponent)) #define CORBA_sequence_IOP_TaggedComponent__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_IOP_TaggedComponent,(m),(d)) #define CORBA_sequence_IOP_TaggedComponent_allocbuf(l) ((IOP_TaggedComponent*)ORBit_small_allocbuf (TC_CORBA_sequence_IOP_TaggedComponent, (l))) #define CORBA_sequence_IOP_TaggedComponent_allocbuf(l) ((IOP_TaggedComponent*)ORBit_small_allocbuf (TC_CORBA_sequence_IOP_TaggedComponent, (l))) #endif struct IOP_GenericIOPProfileBody_type { IIOP_Version iiop_version; CORBA_string protocol; CORBA_string host; CORBA_string service; CORBA_sequence_IOP_TaggedComponent components; }; #if !defined(TC_IMPL_TC_IOP_GenericIOPProfileBody_0) #define TC_IMPL_TC_IOP_GenericIOPProfileBody_0 'i' #define TC_IMPL_TC_IOP_GenericIOPProfileBody_1 'o' #define TC_IMPL_TC_IOP_GenericIOPProfileBody_2 'p' #define TC_IMPL_TC_IOP_GenericIOPProfileBody_3 '_' #define TC_IMPL_TC_IOP_GenericIOPProfileBody_4 'd' #define TC_IMPL_TC_IOP_GenericIOPProfileBody_5 'e' #define TC_IMPL_TC_IOP_GenericIOPProfileBody_6 'f' #define TC_IMPL_TC_IOP_GenericIOPProfileBody_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IOP_GenericIOPProfileBody_struct; #define TC_IOP_GenericIOPProfileBody ((CORBA_TypeCode)&TC_IOP_GenericIOPProfileBody_struct) #endif #define IOP_GenericIOPProfileBody__alloc() ((IOP_GenericIOPProfileBody *)ORBit_small_alloc (TC_IOP_GenericIOPProfileBody)) #define IOP_GenericIOPProfileBody__freekids(m,d) ORBit_small_freekids (TC_IOP_GenericIOPProfileBody,(m),(d)) #endif #if !defined(_IOP_SSLGenericComponent_defined) #define _IOP_SSLGenericComponent_defined 1 typedef struct IOP_SSLGenericComponent_type IOP_SSLGenericComponent; struct IOP_SSLGenericComponent_type { CORBA_string service; }; #if !defined(TC_IMPL_TC_IOP_SSLGenericComponent_0) #define TC_IMPL_TC_IOP_SSLGenericComponent_0 'i' #define TC_IMPL_TC_IOP_SSLGenericComponent_1 'o' #define TC_IMPL_TC_IOP_SSLGenericComponent_2 'p' #define TC_IMPL_TC_IOP_SSLGenericComponent_3 '_' #define TC_IMPL_TC_IOP_SSLGenericComponent_4 'd' #define TC_IMPL_TC_IOP_SSLGenericComponent_5 'e' #define TC_IMPL_TC_IOP_SSLGenericComponent_6 'f' #define TC_IMPL_TC_IOP_SSLGenericComponent_7 's' #ifdef ORBIT_IDL_C_IMODULE_iop_defs static #else extern #endif ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_IOP_SSLGenericComponent_struct; #define TC_IOP_SSLGenericComponent ((CORBA_TypeCode)&TC_IOP_SSLGenericComponent_struct) #endif #define IOP_SSLGenericComponent__alloc() ((IOP_SSLGenericComponent *)ORBit_small_alloc (TC_IOP_SSLGenericComponent)) #define IOP_SSLGenericComponent__freekids(m,d) ORBit_small_freekids (TC_IOP_SSLGenericComponent,(m),(d)) #endif /** stub prototypes **/ CORBA_OctetSeq* IOP_Codec_encode(IOP_Codec _obj, const CORBA_any* data, CORBA_Environment *ev); CORBA_any* IOP_Codec_decode(IOP_Codec _obj, const CORBA_OctetSeq* data, CORBA_Environment *ev); CORBA_OctetSeq* IOP_Codec_encode_value(IOP_Codec _obj, const CORBA_any* data, CORBA_Environment *ev); CORBA_any* IOP_Codec_decode_value(IOP_Codec _obj, const CORBA_OctetSeq* data, const CORBA_TypeCode tc, CORBA_Environment *ev); IOP_Codec IOP_CodecFactory_create_codec(IOP_CodecFactory _obj, const IOP_Encoding* enc, CORBA_Environment *ev); #define BiDirPolicy_BidirectionalPolicy__get_policy_type CORBA_Policy__get_policy_type #define BiDirPolicy_BidirectionalPolicy_copy CORBA_Policy_copy #define BiDirPolicy_BidirectionalPolicy_destroy CORBA_Policy_destroy BiDirPolicy_BidirectionalPolicyValue BiDirPolicy_BidirectionalPolicy__get_value(BiDirPolicy_BidirectionalPolicy _obj, CORBA_Environment *ev); #ifndef __ORBIT_IMETHODS_INDEX #define __ORBIT_IMETHODS_INDEX #define ORBIT_IMETHODS_INDEX(m) (m ## __imethods_index) #endif /* __ORBIT_IMETHODS_INDEX */ #ifdef __cplusplus } #endif /* __cplusplus */ #ifndef EXCLUDE_ORBIT_H #include #endif /* EXCLUDE_ORBIT_H */ #endif #undef ORBIT_IDL_SERIAL ORBit2-2.14.19/include/orbit/orb-core/corba-any.h0000644000175000001440000000302211334247617016151 00000000000000#ifndef CORBA_ANY_H #define CORBA_ANY_H 1 #include G_BEGIN_DECLS void CORBA_any__copy (CORBA_any *out, const CORBA_any *in); CORBA_any *CORBA_any__alloc (void); #define CORBA_any_alloc CORBA_any__alloc gpointer CORBA_any__freekids (gpointer mem, gpointer data); #define CORBA_any_set_release(a, r) (a)->_release = r #define CORBA_any_get_release(a) (a)->_release gpointer ORBit_copy_value (gconstpointer value, CORBA_TypeCode tc); CORBA_boolean ORBit_any_equivalent (CORBA_any *obj, CORBA_any *any, CORBA_Environment *ev); #ifdef ORBIT2_INTERNAL_API void ORBit_marshal_arg (GIOPSendBuffer *buf, gconstpointer val, CORBA_TypeCode tc); void ORBit_marshal_any (GIOPSendBuffer *buf, const CORBA_any *val); gpointer ORBit_demarshal_arg (GIOPRecvBuffer *buf, CORBA_TypeCode tc, CORBA_ORB orb); gboolean ORBit_demarshal_any (GIOPRecvBuffer *buf, CORBA_any *retval, CORBA_ORB orb); gboolean ORBit_demarshal_value (CORBA_TypeCode tc, gpointer *val, GIOPRecvBuffer *buf, CORBA_ORB orb); void ORBit_marshal_value (GIOPSendBuffer *buf, gconstpointer *val, CORBA_TypeCode tc); CORBA_boolean ORBit_value_equivalent (gpointer *a, gpointer *b, CORBA_TypeCode tc, CORBA_Environment *ev); size_t ORBit_gather_alloc_info (CORBA_TypeCode tc); #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/orb-core/orbit-object.h0000644000175000001440000000324411334247617016667 00000000000000#ifndef ORBIT_OBJECT_H #define ORBIT_OBJECT_H 1 #include #ifdef G_PLATFORM_WIN32 #define ORBIT2_MAYBE_CONST #else #define ORBIT2_MAYBE_CONST const #endif G_BEGIN_DECLS typedef enum { ORBIT_ROT_NULL, ORBIT_ROT_OBJREF, /* values below here all signify psuedo-objects */ ORBIT_ROT_ORB, ORBIT_ROT_ADAPTOR, ORBIT_ROT_POAMANAGER, ORBIT_ROT_POLICY, ORBIT_ROT_TYPECODE, ORBIT_ROT_REQUEST, ORBIT_ROT_SERVERREQUEST, ORBIT_ROT_CONTEXT, ORBIT_ROT_DYNANY, ORBIT_ROT_OAOBJECT, ORBIT_ROT_ORBGROUP, ORBIT_ROT_POACURRENT, ORBIT_ROT_CLIENT_POLICY } ORBit_RootObject_Type; typedef struct ORBit_RootObject_struct *ORBit_RootObject; typedef void (* ORBit_RootObject_DestroyFunc) (ORBit_RootObject obj); typedef struct _ORBit_RootObject_Interface { ORBit_RootObject_Type type; ORBit_RootObject_DestroyFunc destroy; } ORBit_RootObject_Interface; struct ORBit_RootObject_struct { const ORBit_RootObject_Interface *interface; int refs; }; #define ORBIT_REFCOUNT_STATIC -10 void ORBit_RootObject_init (ORBit_RootObject obj, const ORBit_RootObject_Interface *interface); #ifdef ORBIT2_INTERNAL_API /* Used to determine whether the refcount is valid or not */ #define ORBIT_REFCOUNT_MAX (1<<20) #define ORBIT_ROOT_OBJECT(obj) ((ORBit_RootObject)(obj)) #define ORBIT_ROOT_OBJECT_TYPE(obj) (((ORBit_RootObject)(obj))->interface->type) gpointer ORBit_RootObject_duplicate (gpointer obj); gpointer ORBit_RootObject_duplicate_T (gpointer obj); void ORBit_RootObject_release (gpointer obj); void ORBit_RootObject_release_T (gpointer obj); extern GMutex *ORBit_RootObject_lifecycle_lock; #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/orb-core/corba-string.h0000644000175000001440000000126411334247617016676 00000000000000#ifndef CORBA_STRING_H #define CORBA_STRING_H 1 #include G_BEGIN_DECLS CORBA_char *CORBA_string_alloc (CORBA_unsigned_long len); CORBA_wchar *CORBA_wstring_alloc (CORBA_unsigned_long len); /* * ORBit extension. */ CORBA_char *CORBA_string_dup (const CORBA_char *str); CORBA_wchar *CORBA_wstring_dup (const CORBA_wchar *str); CORBA_unsigned_long CORBA_wstring_len (CORBA_wchar *ws); #ifdef ORBIT2_INTERNAL_API gpointer CORBA_string__freekids (gpointer mem, gpointer data); CORBA_sequence_CORBA_octet * ORBit_sequence_CORBA_octet_dup (const CORBA_sequence_CORBA_octet *seq); #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/orb-core/corba-typecode.h0000644000175000001440000001127011334247617017202 00000000000000#ifndef CORBA_TYPECODE_H #define CORBA_TYPECODE_H 1 #include #include #include G_BEGIN_DECLS #define CORBA_tk_recursive 0xffffffff #define CORBA_tk_last (CORBA_tk_abstract_interface + 1) struct CORBA_TypeCode_struct { struct ORBit_RootObject_struct parent; CORBA_unsigned_long kind; /* The type */ CORBA_unsigned_long flags; /* native - impl. flags */ CORBA_short c_length; /* native - C size */ CORBA_short c_align; /* native - C align */ CORBA_unsigned_long length; /* length of sub types / parts */ CORBA_unsigned_long sub_parts; /* length of sub parts */ CORBA_TypeCode *subtypes; /* for struct, exception, union, alias, array, sequence */ CORBA_TypeCode discriminator; /* for union */ char *name; char *repo_id; char **subnames; /* for struct, exception, union, enum */ CORBA_long *sublabels; /* for union */ CORBA_long default_index; /* for union */ CORBA_unsigned_long recurse_depth; /* for recursive sequence */ CORBA_unsigned_short digits; /* for fixed */ CORBA_short scale; /* for fixed */ }; extern ORBIT2_MAYBE_CONST ORBit_RootObject_Interface ORBit_TypeCode_epv; #define TC_null ((CORBA_TypeCode)&TC_null_struct) #define TC_void ((CORBA_TypeCode)&TC_void_struct) #define TC_CORBA_short ((CORBA_TypeCode)&TC_CORBA_short_struct) #define TC_CORBA_long ((CORBA_TypeCode)&TC_CORBA_long_struct) #define TC_CORBA_long_long ((CORBA_TypeCode)&TC_CORBA_long_long_struct) #define TC_CORBA_unsigned_short ((CORBA_TypeCode)&TC_CORBA_unsigned_short_struct) #define TC_CORBA_unsigned_long ((CORBA_TypeCode)&TC_CORBA_unsigned_long_struct) #define TC_CORBA_unsigned_long_long ((CORBA_TypeCode)&TC_CORBA_unsigned_long_long_struct) #define TC_CORBA_float ((CORBA_TypeCode)&TC_CORBA_float_struct) #define TC_CORBA_double ((CORBA_TypeCode)&TC_CORBA_double_struct) #define TC_CORBA_long_double ((CORBA_TypeCode)&TC_CORBA_long_double_struct) #define TC_CORBA_boolean ((CORBA_TypeCode)&TC_CORBA_boolean_struct) #define TC_CORBA_char ((CORBA_TypeCode)&TC_CORBA_char_struct) #define TC_CORBA_wchar ((CORBA_TypeCode)&TC_CORBA_wchar_struct) #define TC_CORBA_octet ((CORBA_TypeCode)&TC_CORBA_octet_struct) #define TC_CORBA_any ((CORBA_TypeCode)&TC_CORBA_any_struct) #define TC_CORBA_TypeCode ((CORBA_TypeCode)&TC_CORBA_TypeCode_struct) #define TC_CORBA_Principal ((CORBA_TypeCode)&TC_CORBA_Principal_struct) #define TC_CORBA_Object ((CORBA_TypeCode)&TC_CORBA_Object_struct) #define TC_CORBA_string ((CORBA_TypeCode)&TC_CORBA_string_struct) #define TC_CORBA_wstring ((CORBA_TypeCode)&TC_CORBA_wstring_struct) extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_null_struct; extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_void_struct; extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_char_struct; extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_wchar_struct; extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_string_struct; extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_wstring_struct; extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_long_struct; extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_unsigned_long_struct; extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_short_struct; extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_unsigned_short_struct; extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_octet_struct; #define TC_Object_struct TC_CORBA_Object_struct extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_Object_struct; extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_any_struct; extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_TypeCode_struct; extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_boolean_struct; extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_float_struct; extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_double_struct; extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_long_double_struct; extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_long_long_struct; extern ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_unsigned_long_long_struct; #ifdef ORBIT2_INTERNAL_API #include void ORBit_encode_CORBA_TypeCode (CORBA_TypeCode tc, GIOPSendBuffer *buf); gboolean ORBit_decode_CORBA_TypeCode (CORBA_TypeCode *tc, GIOPRecvBuffer *buf); const char *ORBit_tk_to_name (CORBA_unsigned_long tk); #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/orb-core/corba-object.h0000644000175000001440000000332211334247617016633 00000000000000#ifndef CORBA_OBJECT_H #define CORBA_OBJECT_H 1 #include G_BEGIN_DECLS #ifdef ORBIT2_INTERNAL_API GIOPConnection *ORBit_object_get_connection (CORBA_Object obj); GIOPConnection *ORBit_object_peek_connection (CORBA_Object obj); void ORBit_marshal_object (GIOPSendBuffer *buf, CORBA_Object obj); gboolean ORBit_demarshal_object (CORBA_Object *obj, GIOPRecvBuffer *buf, CORBA_ORB orb); CORBA_Object ORBit_objref_new (CORBA_ORB orb, ORBit_OAObject adaptor_obj, GQuark type_id); #endif /* ORBIT2_INTERNAL_API */ /* * Client invocation policy API */ typedef struct _ORBitPolicy ORBitPolicy; /* An extended policy - blocks re-enterancy by default */ #define ORBIT_TYPE_POLICY_EX (ORBit_policy_ex_get_type ()) GType ORBit_policy_ex_get_type (void) G_GNUC_CONST; ORBitPolicy *ORBit_policy_new (GType type, const char *first_prop, ...); ORBitPolicy *ORBit_policy_ref (ORBitPolicy *p); void ORBit_policy_unref (ORBitPolicy *p); void ORBit_object_set_policy (CORBA_Object obj, ORBitPolicy *p); ORBitPolicy *ORBit_object_get_policy (CORBA_Object obj); void ORBit_policy_push (ORBitPolicy *p); void ORBit_policy_pop (void); /* * CORBA_Object interface type data. */ #include #define CORBA_OBJECT_SMALL_GET_TYPE_ID 12 #define CORBA_OBJECT_SMALL_GET_IINTERFACE 13 extern ORBit_IInterface CORBA_Object__iinterface; extern ORBit_IMethod CORBA_Object__imethods[]; #define CORBA_Object_IMETHODS_LEN 12 G_END_DECLS #endif /* CORBA_OBJECT_H */ ORBit2-2.14.19/include/orbit/orb-core/corba-policy-type.h0000644000175000001440000000065411334247617017650 00000000000000#ifndef CORBA_POLICY_TYPE_H #define CORBA_POLICY_TYPE_H 1 #include G_BEGIN_DECLS #ifdef ORBIT2_INTERNAL_API struct CORBA_Policy_type { struct ORBit_RootObject_struct parent; CORBA_unsigned_long type; CORBA_unsigned_long value; }; CORBA_Policy ORBit_Policy_new (CORBA_unsigned_long type, CORBA_unsigned_long value); #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/orb-core/corba-typecode-type.h0000644000175000001440000000050611334247617020161 00000000000000#ifndef CORBA_TYPECODE_TYPE_H #define CORBA_TYPECODE_TYPE_H 1 #include G_BEGIN_DECLS #if !defined(ORBIT_DECL_CORBA_TypeCode) && !defined(_CORBA_TypeCode_defined) #define ORBIT_DECL_CORBA_TypeCode 1 #define _CORBA_TypeCode_defined 1 typedef struct CORBA_TypeCode_struct *CORBA_TypeCode; #endif G_END_DECLS #endif ORBit2-2.14.19/include/orbit/orb-core/corba-object-type.h0000644000175000001440000000143711334247617017617 00000000000000#ifndef CORBA_OBJECT_TYPE_H #define CORBA_OBJECT_TYPE_H 1 #include G_BEGIN_DECLS #if defined(ORBIT2_INTERNAL_API) /* This ABI is now purely internal and can be hacked around */ typedef CORBA_sequence_CORBA_octet ORBit_ObjectKey; struct CORBA_Object_type { struct ORBit_RootObject_struct parent; GIOPConnection *connection; /* l */ GQuark type_qid; GSList *profile_list; /* l */ GSList *forward_locations; /* l */ ORBit_ObjectKey *object_key; /* l */ struct _ORBitPolicy *invoke_policy; /* l */ CORBA_ORB orb; ORBit_OAObject adaptor_obj; }; #endif /* defined(ORBIT2_INTERNAL_API) */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/orb-core/orb-core-types.h0000644000175000001440000000103611334247617017153 00000000000000#ifndef ORB_CORE_TYPES_H #define ORB_CORE_TYPES_H 1 #include #include #include #include #include #include #include #include #include #define EXCLUDE_ORBIT_H #include #undef EXCLUDE_ORBIT_H #endif ORBit2-2.14.19/include/orbit/orb-core/orbit-small.h0000644000175000001440000001174011334247617016531 00000000000000/* * An attempt to shrink the beast to a managable size. */ #ifndef CORBA_SMALL_H #define CORBA_SMALL_H 1 #include #include G_BEGIN_DECLS typedef struct { CORBA_unsigned_long version; ORBit_IInterface **interfaces; CORBA_sequence_CORBA_TypeCode types; } ORBit_IModule; const char *ORBit_get_safe_tmp (void); /* Builtin allocators */ gpointer ORBit_small_alloc (CORBA_TypeCode tc); gpointer ORBit_small_allocbuf (CORBA_TypeCode tc, CORBA_unsigned_long length); void ORBit_small_freekids (CORBA_TypeCode tc, gpointer p, gpointer d); /* More friendly(?) sequence allocators */ gpointer ORBit_sequence_alloc (CORBA_TypeCode sequence_tc, CORBA_unsigned_long length); void ORBit_sequence_append (gpointer sequence, gconstpointer element); void ORBit_sequence_set_size (gpointer sequence, CORBA_unsigned_long length); #define ORBit_sequence_index(sequence,idx) (sequence)->_buffer[(idx)] void ORBit_sequence_concat (gpointer sequence, gconstpointer append); void ORBit_sequence_remove (gpointer sequence, guint idx); typedef enum { ORBIT_CONNECTION_CONNECTED, ORBIT_CONNECTION_CONNECTING, ORBIT_CONNECTION_DISCONNECTED, ORBIT_CONNECTION_IN_PROC } ORBitConnectionStatus; gpointer ORBit_small_get_servant (CORBA_Object obj); ORBitConnectionStatus ORBit_small_get_connection_status (CORBA_Object obj); ORBitConnectionStatus ORBit_small_listen_for_broken (CORBA_Object obj, GCallback fn, gpointer user_data); ORBitConnectionStatus ORBit_small_unlisten_for_broken_full (CORBA_Object obj, GCallback fn, gpointer user_data); /* old / stale */ ORBitConnectionStatus ORBit_small_unlisten_for_broken (CORBA_Object obj, GCallback fn); typedef struct _ORBitConnection ORBitConnection; ORBitConnection *ORBit_small_get_connection (CORBA_Object obj); ORBitConnection *ORBit_small_get_connection_ref (CORBA_Object obj); void ORBit_small_connection_unref (ORBitConnection *cnx); void ORBit_connection_set_max_buffer (ORBitConnection *cnx, gulong max_buffer_bytes); #if defined(ORBIT2_INTERNAL_API) || defined (ORBIT2_STUBS_API) #define ORBIT_SMALL_FAST_LOCALS 1 #define ORBIT_SMALL_FORCE_GENERIC_MARSHAL 2 extern int ORBit_small_flags; /* Deprecated - only for bin-compat with pre 2.4 stubs */ void ORBit_small_invoke_stub (CORBA_Object object, ORBit_IMethod *m_data, gpointer ret, gpointer *args, CORBA_Context ctx, CORBA_Environment *ev); void ORBit_small_invoke_stub_n (CORBA_Object object, ORBit_IMethods *methods, glong index, gpointer ret, gpointer *args, CORBA_Context ctx, CORBA_Environment *ev); #endif /* defined(ORBIT2_INTERNAL_API) || defined (ORBIT2_STUBS_API) */ #ifdef ORBIT2_INTERNAL_API #include void ORBit_small_invoke_adaptor (ORBit_OAObject adaptor_obj, GIOPRecvBuffer *recv_buffer, ORBit_IMethod *m_data, gpointer data, CORBA_Environment *ev); #endif /* ORBIT2_INTERNAL_API */ /* Type library work */ CORBA_char *ORBit_small_get_type_id (CORBA_Object object, CORBA_Environment *ev); ORBit_IInterface *ORBit_small_get_iinterface (CORBA_Object opt_object, const CORBA_char *repo_id, CORBA_Environment *ev); gboolean ORBit_small_load_typelib (const char *libname); CORBA_sequence_CORBA_TypeCode * ORBit_small_get_types (const char *name); CORBA_sequence_ORBit_IInterface * ORBit_small_get_iinterfaces (const char *name); typedef struct _ORBitAsyncQueueEntry ORBitAsyncQueueEntry; typedef void (*ORBitAsyncInvokeFunc) (CORBA_Object object, ORBit_IMethod *m_data, ORBitAsyncQueueEntry *aqe, gpointer user_data, CORBA_Environment *ev); /* Various bits for Async work */ void ORBit_small_invoke_async (CORBA_Object obj, ORBit_IMethod *m_data, ORBitAsyncInvokeFunc fn, gpointer user_data, gpointer *args, CORBA_Context ctx, CORBA_Environment *ev); void ORBit_small_demarshal_async (ORBitAsyncQueueEntry *aqe, gpointer ret, gpointer *args, CORBA_Environment *ev); G_END_DECLS #endif /* CORBA_SMALL_H */ ORBit2-2.14.19/include/orbit/orb-core/allocators.h0000644000175000001440000000525411334247617016452 00000000000000#ifndef _ALLOCATORS_H_ #define _ALLOCATORS_H_ #include G_BEGIN_DECLS #define CORBA_sequence_set_release(s,r) (s)->_release = r #define CORBA_sequence_get_release(s) (s)->_release void CORBA_free (gpointer mem); gpointer ORBit_alloc_tcval (CORBA_TypeCode tc, guint nelements); gpointer ORBit_realloc_tcval (gpointer old, CORBA_TypeCode tc, guint old_num_elements, guint num_elements); #ifdef ORBIT2_INTERNAL_API #define PTR_TO_MEMINFO(x) (((ORBit_mem_info *)(x)) - 1) #define MEMINFO_TO_PTR(x) ((gpointer)((x) + 1)) /** This function-type is used internally by the memory allocator as a callback. When called, it must "free" anything contained in {mem}. Normally, it does not free {mem} itself, only what is inside {mem}. For example, if {mem} contains only integers, then nothing happens. Alternatively, if {mem} contains object references, then CORBA_Object_free (or ORBit_RootObject_release()) must be invoked on it. The callback func must return the "end" of {mem}. This is used when iterating through sequences, arrays and structs. Previously, older code supported the idea that the callback could return FALSE (or NULL?), in which case that meant that the callback itself had already free'd the memory. This convention is no longer used. Below, some magic values of the fnc ptr are defined. **/ typedef gpointer (*ORBit_Mem_free_fn) (gpointer mem, gpointer func_data); #define ORBIT_MEMHOW_HOW(how) ((how) & 0x3) #define ORBIT_MEMHOW_ELEMENTS(how) ((how) >> 2) #define ORBIT_MEMHOW_MAKE(how,elements) (((elements) << 2) | (how)) typedef enum { ORBIT_MEMHOW_NONE = 0, /* don't free */ ORBIT_MEMHOW_SIMPLE = 1, /* plain g_free */ ORBIT_MEMHOW_TYPECODE = 2, /* free via typecode */ ORBIT_MEMHOW_FREEFNC = 3 /* free via a method */ } ORBitMemHow; typedef struct ORBit_Memprefix { union { CORBA_TypeCode tc; ORBit_Mem_free_fn free_fn; } u; ORBitMemHow how; } ORBit_MemPrefix; void ORBit_free (gpointer mem); void ORBit_free_T (gpointer mem); CORBA_char *ORBit_alloc_string (size_t string_length); gpointer ORBit_alloc_simple (size_t block_size); gpointer ORBit_alloc_by_tc (CORBA_TypeCode tc); gpointer ORBit_alloc_with_free_fn (size_t element_size, guint num_elements, ORBit_Mem_free_fn free_fn); CORBA_TypeCode ORBit_alloc_get_tcval (gpointer mem); gpointer CORBA_any__freekids (gpointer mem, gpointer dat); gpointer ORBit_freekids_via_TypeCode (CORBA_TypeCode tc, gpointer mem); #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif /* _ALLOCATORS_H_ */ ORBit2-2.14.19/include/orbit/orb-core/orb-types.h0000644000175000001440000000332111334247617016224 00000000000000#ifndef ORB_TYPES_H #define ORB_TYPES_H 1 #include G_BEGIN_DECLS /* * The ORBIT_ALIGNOF_ defines are generated by configure * and reside in orbit/orbit-config.h * * Here the alignment of complex types is computed. */ /* alignment of the CORBA_any struct. */ #define ORBIT_ALIGNOF_CORBA_ANY MAX( ORBIT_ALIGNOF_CORBA_STRUCT, \ ORBIT_ALIGNOF_CORBA_POINTER) /* alignment of CORBA_any._value. */ #define ORBIT_ALIGNOF_CORBA_TCVAL MAX(MAX( ORBIT_ALIGNOF_CORBA_LONG, \ ORBIT_ALIGNOF_CORBA_STRUCT), \ ORBIT_ALIGNOF_CORBA_POINTER) /* alignment of sequence structures. */ #define ORBIT_ALIGNOF_CORBA_SEQ MAX(MAX( ORBIT_ALIGNOF_CORBA_STRUCT, \ ORBIT_ALIGNOF_CORBA_LONG), \ ORBIT_ALIGNOF_CORBA_POINTER) /* alignment of CORBA_fixed_d_s */ #define ORBIT_ALIGNOF_CORBA_FIXED MAX ( ORBIT_ALIGNOF_CORBA_SHORT, \ ORBIT_ALIGNOF_CORBA_STRUCT); /* typedef CORBA_char *CORBA_ORBid; */ typedef struct CORBA_any_struct CORBA_any; typedef struct { CORBA_unsigned_short _digits; CORBA_short _scale; signed char _sign; signed char _value[1]; } CORBA_fixed_d_s; struct CORBA_NVList_type { CORBA_unsigned_long flags; /* should be CORBA_Flags */ GArray *list; }; #define CORBA_OBJECT_NIL NULL #define CORBA_ARG_IN (1<<0) #define CORBA_ARG_OUT (1<<1) #define CORBA_ARG_INOUT (1<<2) #define CORBA_CTX_RESTRICT_SCOPE (1<<3) #define CORBA_CTX_DELETE_DESCENDENTS (1<<4) #define CORBA_OUT_LIST_MEMORY (1<<5) #define CORBA_IN_COPY_VALUE (1<<6) #define CORBA_DEPENDENT_LIST (1<<7) #define CORBA_INV_NO_RESPONSE (1<<8) #define CORBA_INV_TERM_ON_ERROR (1<<9) #define CORBA_RESP_NO_WAIT (1<<10) G_END_DECLS #endif ORBit2-2.14.19/include/orbit/GIOP/0000755000175000001440000000000011450334030013217 500000000000000ORBit2-2.14.19/include/orbit/GIOP/giop-basics.h0000644000175000001440000000064711334247617015536 00000000000000#ifndef GIOP_BASICS_H #define GIOP_BASICS_H 1 #include G_BEGIN_DECLS #ifdef ORBIT2_INTERNAL_API typedef struct _GIOPRecvBuffer GIOPRecvBuffer; typedef struct _GIOPSendBuffer GIOPSendBuffer; typedef struct _GIOPConnection GIOPConnection; typedef enum { GIOP_1_0, GIOP_1_1, GIOP_1_2, GIOP_LATEST = GIOP_1_2, GIOP_NUM_VERSIONS } GIOPVersion; #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/GIOP/Makefile.am0000644000175000001440000000025211334247617015211 00000000000000giop_headers = \ giop-connection.h \ giop-recv-buffer.h \ giop-send-buffer.h \ giop-server.h \ giop-types.h \ giop.h \ giop-basics.h EXTRA_DIST = $(giop_headers) ORBit2-2.14.19/include/orbit/GIOP/giop-server.h0000644000175000001440000000401311334247617015567 00000000000000#ifndef GIOP_SERVER_H #define GIOP_SERVER_H 1 #include #include G_BEGIN_DECLS #ifdef ORBIT2_INTERNAL_API #define GIOP_TYPE_SERVER (giop_server_get_type ()) #define GIOP_TYPE_IS_SERVER(type) (G_TYPE_FUNDAMENTAL (type) == GIOP_TYPE_SERVER) #define GIOP_SERVER(object) ( \ GIOP_IS_SERVER (object) ? \ ((GIOPServer *)(object)) : \ G_TYPE_CHECK_INSTANCE_CAST ((object), GIOP_TYPE_SERVER, GIOPServer) \ ) #define GIOP_SERVER_CLASS(class) ( \ GIOP_IS_SERVER_CLASS (class) ? \ ((GIOPServerClass *)(class)) : \ G_TYPE_CHECK_CLASS_CAST ((class), GIOP_TYPE_SERVER, GIOPServerClass) \ ) #define GIOP_IS_SERVER(object) ( \ ((GIOPServer *)(object)) != NULL && \ GIOP_IS_SERVER_CLASS (((GTypeInstance *)(object))->g_class) \ ) #define GIOP_IS_SERVER_CLASS(class) ( \ ((GTypeClass *)(class)) != NULL && \ GIOP_TYPE_IS_SERVER (((GTypeClass*) (class))->g_type) \ ) typedef struct { LinkServer parent; gpointer orb_data; GIOPVersion giop_version; } GIOPServer; typedef struct { LinkServerClass parent_class; } GIOPServerClass; GType giop_server_get_type (void) G_GNUC_CONST; GIOPServer *giop_server_new (GIOPVersion giop_version, const char *proto_name, const char *local_host_info, const char *local_serv_info, LinkConnectionOptions create_options, gpointer create_orb_data); #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/GIOP/Makefile.in0000644000175000001440000002604211450333732015220 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = include/orbit/GIOP DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ giop_headers = \ giop-connection.h \ giop-recv-buffer.h \ giop-send-buffer.h \ giop-server.h \ giop-types.h \ giop.h \ giop-basics.h EXTRA_DIST = $(giop_headers) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/orbit/GIOP/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu include/orbit/GIOP/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/include/orbit/GIOP/giop.h0000644000175000001440000000343511334247617014272 00000000000000#ifndef GIOP_H #define GIOP_H 1 #include #define ORBIT_SSL_SUPPORT LINK_SSL_SUPPORT #include #include #include #include #include G_BEGIN_DECLS #ifdef ORBIT2_INTERNAL_API void giop_init (gboolean thread_safe, gboolean blank_wire_data); void giop_main_run (void); void giop_shutdown (void); gboolean giop_thread_safe (void); gboolean giop_thread_io (void); GIOPThread *giop_thread_self (void); void giop_invoke_async (GIOPMessageQueueEntry *ent); void giop_recv_set_limit (glong limit); glong giop_recv_get_limit (void); void giop_incoming_signal_T (GIOPThread *tdata, GIOPMsgType t); typedef struct _GIOPQueue GIOPQueue; GIOPThread *giop_thread_get_main (void); void giop_thread_set_main_handler (gpointer request_handler); void giop_thread_request_push (GIOPThread *tdata, gpointer *poa_object, gpointer *recv_buffer); void giop_thread_request_push_key (gpointer key, gpointer *poa_object, gpointer *recv_buffer); gboolean giop_thread_same_key (gpointer key, gboolean no_key_default); void giop_thread_key_add (GIOPThread *tdata, gpointer key); void giop_thread_key_release (gpointer key); void giop_thread_new_check (GIOPThread *opt_self); void giop_thread_queue_process (GIOPThread *tdata); gboolean giop_thread_queue_empty_T (GIOPThread *tdata); void giop_thread_queue_tail_wakeup(GIOPThread *tdata); #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/GIOP/giop-recv-buffer.h0000644000175000001440000000554011334247617016475 00000000000000#ifndef GIOP_RECV_BUFFER_H #define GIOP_RECV_BUFFER_H 1 #include #include G_BEGIN_DECLS #ifdef ORBIT2_INTERNAL_API typedef enum { GIOP_MSG_READING_HEADER, GIOP_MSG_READING_BODY, GIOP_MSG_AWAITING_FRAGMENTS, GIOP_MSG_READY } GIOPMessageBufferState; typedef struct _GIOPMessageQueueEntry GIOPMessageQueueEntry; typedef void (*GIOPAsyncCallback) (GIOPMessageQueueEntry *ent); /* Internals used to setup waiting for a reply */ struct _GIOPMessageQueueEntry { GIOPRecvBuffer *buffer; GIOPConnection *cnx; CORBA_unsigned_long msg_type; CORBA_unsigned_long request_id; GIOPThread *src_thread; GIOPAsyncCallback async_cb; }; struct _GIOPRecvBuffer { GIOPMsg msg; guchar *message_body; guchar *cur; guchar *end; GIOPConnection *connection; GIOPMessageBufferState state; GIOPVersion giop_version; gulong left_to_read; guint free_body : 1; }; #define giop_msg_conversion_needed(msg) giop_endian_conversion_needed(GIOP_MSG(msg)->header.flags) GIOPRecvBuffer *giop_recv_buffer_use_buf (GIOPConnection *cnx); GIOPRecvBuffer *giop_recv_buffer_use_encaps_buf (GIOPRecvBuffer *buf); GIOPRecvBuffer *giop_recv_buffer_use_encaps (guchar *mem, gulong len); void giop_recv_list_destroy_queue_entry (GIOPMessageQueueEntry *ent); void giop_recv_list_setup_queue_entry (GIOPMessageQueueEntry *ent, GIOPConnection *cnx, CORBA_unsigned_long msg_type, CORBA_unsigned_long request_id); void giop_recv_list_setup_queue_entry_async (GIOPMessageQueueEntry *ent, GIOPAsyncCallback cb); GIOPRecvBuffer *giop_recv_buffer_get (GIOPMessageQueueEntry *ent, gboolean *timeout); void giop_recv_buffer_unuse (GIOPRecvBuffer *buf); #define giop_recv_buffer_reply_status(buf) ( \ (buf)->msg.header.version [1] == 2 ? (buf)->msg.u.reply_1_2.reply_status : \ (buf)->msg.header.version [1] == 1 ? (buf)->msg.u.reply_1_1.reply_status : \ (buf)->msg.header.version [1] == 0 ? (buf)->msg.u.reply_1_0.reply_status : 0 \ ) CORBA_unsigned_long giop_recv_buffer_get_request_id (GIOPRecvBuffer *buf); char *giop_recv_buffer_get_opname (GIOPRecvBuffer *buf); CORBA_sequence_CORBA_octet *giop_recv_buffer_get_objkey (GIOPRecvBuffer *buf); void giop_recv_list_zap (GIOPConnection *cnx); gboolean giop_connection_handle_input (LinkConnection *lcnx); void giop_connection_destroy_frags (GIOPConnection *cnx); extern void giop_timeout_add (GIOPConnection *cnx); #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/GIOP/giop-connection.h0000644000175000001440000000437211334247617016430 00000000000000#ifndef GIOP_CONNECTION_H #define GIOP_CONNECTION_H 1 #include #include #include #ifndef G_OS_WIN32 # include /* XXX really needed? */ #endif G_BEGIN_DECLS #ifdef ORBIT2_INTERNAL_API #define GIOP_TYPE_CONNECTION (giop_connection_get_type ()) #define GIOP_TYPE_IS_CONNECTION(type) (G_TYPE_FUNDAMENTAL (type) == GIOP_TYPE_CONNECTION) #define GIOP_CONNECTION(object) (GIOP_IS_CONNECTION (object) ? ((GIOPConnection*) (object)) : \ G_TYPE_CHECK_INSTANCE_CAST ((object), GIOP_TYPE_CONNECTION, GIOPConnection)) #define GIOP_CONNECTION_CLASS(class) (GIOP_IS_CONNECTION_CLASS (class) ? ((GIOPConnectionClass*) (class)) : \ G_TYPE_CHECK_CLASS_CAST ((class), GIOP_TYPE_CONNECTION, GIOPConnectionClass)) #define GIOP_IS_CONNECTION(object) (((GIOPConnection*) (object)) != NULL && \ GIOP_IS_CONNECTION_CLASS (((GTypeInstance*) (object))->g_class)) #define GIOP_IS_CONNECTION_CLASS(class) (((GTypeClass*) (class)) != NULL && \ GIOP_TYPE_IS_CONNECTION (((GTypeClass*) (class))->g_type)) struct _GIOPConnection { LinkConnection parent; GIOPRecvBuffer *incoming_msg; GList *incoming_frags; GIOPVersion giop_version; gpointer orb_data; }; typedef struct { LinkConnectionClass parent_class; } GIOPConnectionClass; GType giop_connection_get_type (void) G_GNUC_CONST; GIOPConnection *giop_connection_initiate (gpointer orb_data, const char *proto_name, const char *remote_host_info, const char *remote_serv_info, GIOPConnectionOptions options, GIOPVersion giop_version); void giop_connections_shutdown (void); void giop_connection_close (GIOPConnection *cnx); LinkConnectionStatus giop_connection_try_reconnect (GIOPConnection *cnx); #define giop_connection_ref(cnx) link_connection_ref(&((cnx)->parent)) #define giop_connection_unref(cnx) link_connection_unref(&((cnx)->parent)) /* set the link timeout in milliseconds */ extern void giop_set_timeout (guint msec); #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/GIOP/giop-types.h0000644000175000001440000001154011334247617015430 00000000000000#ifndef GIOP_TYPES_H #define GIOP_TYPES_H 1 #include #include #include #include #include #include #include #include G_BEGIN_DECLS #ifdef ORBIT2_INTERNAL_API typedef struct _GIOPThread GIOPThread; struct _GIOPThread { GMutex *lock; GCond *incoming; GMainContext *wake_context; GList *keys; /* ie. per POA, per Connection, per Object etc. */ GList *async_ents; GList *request_queue; GQueue *invoke_policies; void (*request_handler) (gpointer poa_object, gpointer recv_buffer, gpointer dummy); }; #define GIOP_INITIAL_MSG_SIZE_LIMIT (256*1024) typedef enum { GIOP_CONNECTION_SSL } GIOPConnectionOptions; extern const char giop_version_ids[GIOP_NUM_VERSIONS][2]; typedef struct { CORBA_char magic[4]; CORBA_char version[2]; CORBA_octet flags; CORBA_octet message_type; CORBA_unsigned_long message_size; } GIOPMsgHeader; typedef enum { GIOP_REQUEST, GIOP_REPLY, GIOP_CANCELREQUEST, GIOP_LOCATEREQUEST, GIOP_LOCATEREPLY, GIOP_CLOSECONNECTION, GIOP_MESSAGEERROR, GIOP_FRAGMENT, GIOP_NUM_MSG_TYPES } GIOPMsgType; #if 0 typedef enum { GIOP_NO_EXCEPTION, GIOP_USER_EXCEPTION, GIOP_SYSTEM_EXCEPTION, GIOP_LOCATION_FORWARD, GIOP_LOCATION_FORWARD_PERM, GIOP_NEEDS_ADDRESSING_MODE } GIOPReplyStatusType_1_2; typedef enum { GIOP_UNKNOWN_OBJECT, GIOP_OBJECT_HERE, GIOP_OBJECT_FORWARD, GIOP_OBJECT_FORWARD_PERM, GIOP_LOC_SYSTEM_EXCEPTION, GIOP_LOC_NEEDS_ADDRESSING_MODE } GIOPLocateStatusType_1_2; typedef CORBA_unsigned_long IOP_ServiceId; typedef struct { IOP_ServiceId context_id; CORBA_sequence_CORBA_octet context_data; } IOP_ServiceContext; typedef struct { CORBA_unsigned_long _length; IOP_ServiceContext *_buffer; CORBA_boolean _release : 1; } IOP_ServiceContextList; #endif typedef CORBA_sequence_CORBA_octet CORBA_Principal; typedef struct { IOP_ServiceContextList service_context; CORBA_unsigned_long request_id; CORBA_boolean response_expected; CORBA_sequence_CORBA_octet object_key; CORBA_char *operation; CORBA_Principal requesting_principal; } GIOPMsgRequest_1_0; typedef struct { IOP_ServiceContextList service_context; CORBA_unsigned_long request_id; CORBA_boolean response_expected; CORBA_char reserved[3]; CORBA_sequence_CORBA_octet object_key; CORBA_char *operation; CORBA_Principal requesting_principal; } GIOPMsgRequest_1_1; typedef struct { CORBA_unsigned_long request_id; CORBA_octet response_flags; CORBA_octet reserved[3]; GIOP_TargetAddress target; CORBA_char *operation; IOP_ServiceContextList service_context; } GIOPMsgRequest_1_2; typedef struct { IOP_ServiceContextList service_context; CORBA_unsigned_long request_id; CORBA_unsigned_long reply_status; /* lame */ } GIOPMsgReply_1_0; typedef GIOPMsgReply_1_0 GIOPMsgReply_1_1; typedef struct { CORBA_unsigned_long request_id; CORBA_unsigned_long reply_status; IOP_ServiceContextList service_context; } GIOPMsgReply_1_2; typedef struct { CORBA_unsigned_long request_id; } GIOPMsgCancelRequest; typedef struct { CORBA_unsigned_long request_id; CORBA_sequence_CORBA_octet object_key; } GIOPMsgLocateRequest_1_0; typedef GIOPMsgLocateRequest_1_0 GIOPMsgLocateRequest_1_1; typedef struct { CORBA_unsigned_long request_id; GIOP_TargetAddress target; } GIOPMsgLocateRequest_1_2; typedef struct { CORBA_unsigned_long request_id; CORBA_unsigned_long locate_status; /* lame */ } GIOPMsgLocateReply_1_0; typedef GIOPMsgLocateReply_1_0 GIOPMsgLocateReply_1_1; typedef struct { CORBA_unsigned_long request_id; CORBA_unsigned_long locate_status; } GIOPMsgLocateReply_1_2; typedef struct { GIOPMsgHeader header; union { GIOPMsgRequest_1_0 request_1_0; GIOPMsgRequest_1_1 request_1_1; GIOPMsgRequest_1_2 request_1_2; GIOPMsgReply_1_0 reply_1_0; GIOPMsgReply_1_1 reply_1_1; GIOPMsgReply_1_2 reply_1_2; GIOPMsgCancelRequest cancel_request; GIOPMsgLocateRequest_1_0 locate_request_1_0; GIOPMsgLocateRequest_1_1 locate_request_1_1; GIOPMsgLocateRequest_1_2 locate_request_1_2; GIOPMsgLocateReply_1_0 locate_reply_1_0; GIOPMsgLocateReply_1_1 locate_reply_1_1; GIOPMsgLocateReply_1_2 locate_reply_1_2; } u; } GIOPMsg; #define GIOP_FLAG_BIG_ENDIAN 0 #define GIOP_FLAG_LITTLE_ENDIAN 1 #define GIOP_FLAG_FRAGMENTED 2 #if G_BYTE_ORDER == G_BIG_ENDIAN # define GIOP_FLAG_ENDIANNESS GIOP_FLAG_BIG_ENDIAN #elif G_BYTE_ORDER == G_LITTLE_ENDIAN # define GIOP_FLAG_ENDIANNESS GIOP_FLAG_LITTLE_ENDIAN #else # error "Unsupported endianness on this system." #endif #define giop_endian_conversion_needed(to_endianness) ((to_endianness&GIOP_FLAG_LITTLE_ENDIAN)!=GIOP_FLAG_ENDIANNESS) #define GIOP_MSG(x) ((GIOPMsg *)(x)) #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/GIOP/giop-send-buffer.h0000644000175000001440000000456611334247617016476 00000000000000#ifndef GIOP_SEND_BUFFER_H #define GIOP_SEND_BUFFER_H 1 #include #include G_BEGIN_DECLS #ifdef ORBIT2_INTERNAL_API typedef struct { gulong size; guchar *ptr; } GIOPIndirectChunk; struct _GIOPSendBuffer { GIOPMsg msg; struct iovec *iovecs; gulong num_alloced; gulong num_used; const guchar *lastptr; guchar *indirect; gulong indirect_left; GIOPIndirectChunk *indirects; guint num_indirects_alloced; guint num_indirects_used; GIOPVersion giop_version; guint header_size; }; GIOPSendBuffer *giop_send_buffer_use (GIOPVersion giop_version); /* The operation_vec must be tail aligned to sizeof(CORBA_unsigned_long) */ GIOPSendBuffer *giop_send_buffer_use_request (GIOPVersion giop_version, CORBA_unsigned_long request_id, CORBA_boolean response_expected, const CORBA_sequence_CORBA_octet *objkey, const struct iovec *operation_vec, const struct iovec *principal_vec); /* No cancel - we never send it */ GIOPSendBuffer *giop_send_buffer_use_reply (GIOPVersion giop_version, CORBA_unsigned_long request_id, CORBA_unsigned_long reply_status); GIOPSendBuffer *giop_send_buffer_use_locate_request (GIOPVersion giop_version, CORBA_unsigned_long request_id, const CORBA_sequence_CORBA_octet *objkey); GIOPSendBuffer *giop_send_buffer_use_locate_reply (GIOPVersion giop_version, CORBA_unsigned_long request_id, CORBA_unsigned_long locate_status); GIOPSendBuffer *giop_send_buffer_use_close_connection (GIOPVersion giop_version); GIOPSendBuffer *giop_send_buffer_use_message_error (GIOPVersion giop_version); void giop_send_buffer_unuse (GIOPSendBuffer *buf); void giop_send_buffer_append (GIOPSendBuffer *buf, gconstpointer mem, gulong len); guchar *giop_send_buffer_append_aligned (GIOPSendBuffer *buf, gconstpointer mem, gulong align_len); void giop_send_buffer_append_string (GIOPSendBuffer *buf, const char *str); void giop_send_buffer_align (GIOPSendBuffer *buf, gulong boundary); int giop_send_buffer_write (GIOPSendBuffer *buf, GIOPConnection *cnx, gboolean block); #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/util/0000755000175000001440000000000011450334030013436 500000000000000ORBit2-2.14.19/include/orbit/util/Makefile.am0000644000175000001440000000020211334247617015423 00000000000000utilincludedir = $(includedir)/orbit-2.0/orbit/util utilinclude_HEADERS = \ basic_types.h \ orbit-util.h \ orbit-genrand.h ORBit2-2.14.19/include/orbit/util/Makefile.in0000644000175000001440000003553511450333733015447 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = include/orbit/util DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(utilinclude_HEADERS) ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(utilincludedir)" HEADERS = $(utilinclude_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ utilincludedir = $(includedir)/orbit-2.0/orbit/util utilinclude_HEADERS = \ basic_types.h \ orbit-util.h \ orbit-genrand.h all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/orbit/util/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu include/orbit/util/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-utilincludeHEADERS: $(utilinclude_HEADERS) @$(NORMAL_INSTALL) test -z "$(utilincludedir)" || $(MKDIR_P) "$(DESTDIR)$(utilincludedir)" @list='$(utilinclude_HEADERS)'; test -n "$(utilincludedir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(utilincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(utilincludedir)" || exit $$?; \ done uninstall-utilincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(utilinclude_HEADERS)'; test -n "$(utilincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(utilincludedir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(utilincludedir)" && rm -f $$files ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(HEADERS) installdirs: for dir in "$(DESTDIR)$(utilincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-utilincludeHEADERS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-utilincludeHEADERS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool ctags distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip \ install-utilincludeHEADERS installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags uninstall uninstall-am \ uninstall-utilincludeHEADERS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/include/orbit/util/orbit-genrand.h0000644000175000001440000000105711334247617016304 00000000000000 #ifndef ORBIT_GENRAND_H #define ORBIT_GENRAND_H 1 #include G_BEGIN_DECLS #ifdef ORBIT2_INTERNAL_API typedef enum { ORBIT_GENUID_STRONG, ORBIT_GENUID_SIMPLE } ORBitGenUidType; typedef enum { ORBIT_GENUID_COOKIE, ORBIT_GENUID_OBJECT_ID } ORBitGenUidRole; gboolean ORBit_genuid_init (ORBitGenUidType type); void ORBit_genuid_fini (void); void ORBit_genuid_buffer (guint8 *buffer, int length, ORBitGenUidRole role); #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif /* ORBIT_GENRAND_H */ ORBit2-2.14.19/include/orbit/util/orbit-util.h0000644000175000001440000000141311334247617015637 00000000000000#ifndef ORBIT_UTIL_H #define ORBIT_UTIL_H 1 #include #include #include #include G_BEGIN_DECLS /* Align a value upward to a boundary, expressed as a number of bytes. E.g. align to an 8-byte boundary with argument of 8. */ /* * (this + boundary - 1) * & * ~(boundary - 1) */ #define ALIGN_VALUE(this, boundary) \ (( ((gulong)(this)) + (((gulong)(boundary)) -1)) & (~(((gulong)(boundary))-1))) #define ALIGN_ADDRESS(this, boundary) \ ((gpointer)ALIGN_VALUE(this, boundary)) #ifdef ORBIT2_INTERNAL_API gulong ORBit_wchar_strlen(CORBA_wchar *wstr); #define num2hexdigit(n) (((n)>9)?((n)+'a'-10):((n)+'0')) #endif /* ORBIT2_INTERNAL_API */ G_END_DECLS #endif ORBit2-2.14.19/include/orbit/util/basic_types.h0000644000175000001440000000224411334247617016055 00000000000000#ifndef BASIC_TYPES_H #define BASIC_TYPES_H 1 #include G_BEGIN_DECLS enum { CORBA_FALSE = FALSE, CORBA_TRUE = TRUE }; typedef gint16 CORBA_short; typedef gint32 CORBA_long; typedef guint16 CORBA_unsigned_short; typedef guint32 CORBA_unsigned_long; typedef gfloat CORBA_float; typedef gdouble CORBA_double; typedef char CORBA_char; typedef gunichar2 CORBA_wchar; typedef guchar CORBA_boolean; typedef guchar CORBA_octet; typedef gdouble CORBA_long_double; /* * Bad hack, oh well */ typedef CORBA_char *CORBA_string; typedef CORBA_wchar *CORBA_wstring; #if !defined(ORBIT_DECL_CORBA_Object) && !defined(_CORBA_Object_defined) #define ORBIT_DECL_CORBA_Object 1 #define _CORBA_Object_defined 1 typedef struct CORBA_Object_type *CORBA_Object; #endif #ifdef G_HAVE_GINT64 #define HAVE_CORBA_LONG_LONG /* * According to the spec, these two are optional. * We support them if we can. */ typedef gint64 CORBA_long_long; typedef guint64 CORBA_unsigned_long_long; #else #error "" #error "You don't G_HAVE_GINT64 defined in glib." #error "Please make sure you don't have an old glibconfig.h lying around." #error "" #endif G_END_DECLS #endif ORBit2-2.14.19/include/orbit/orbit-config.h0000644000175000001440000000154511450333744015154 00000000000000#ifndef ORBIT_CONFIG_H #define ORBIT_CONFIG_H 1 #define ORBIT_CONFIG_SERIAL 20 #ifndef ORBIT_MAJOR_VERSION #define ORBIT_MAJOR_VERSION (2) #define ORBIT_MINOR_VERSION (14) #define ORBIT_MICRO_VERSION (19) #endif #define ORBIT_IMPLEMENTS_IS_A 1 /* * Alignment of CORBA types mapped to C. * These have *nothing* to do with CDR alignment. */ #define ORBIT_ALIGNOF_CORBA_OCTET 1 #define ORBIT_ALIGNOF_CORBA_BOOLEAN 1 #define ORBIT_ALIGNOF_CORBA_CHAR 1 #define ORBIT_ALIGNOF_CORBA_WCHAR 2 #define ORBIT_ALIGNOF_CORBA_SHORT 2 #define ORBIT_ALIGNOF_CORBA_LONG 4 #define ORBIT_ALIGNOF_CORBA_LONG_LONG 4 #define ORBIT_ALIGNOF_CORBA_FLOAT 4 #define ORBIT_ALIGNOF_CORBA_DOUBLE 4 #define ORBIT_ALIGNOF_CORBA_LONG_DOUBLE 4 #define ORBIT_ALIGNOF_CORBA_STRUCT 1 #define ORBIT_ALIGNOF_CORBA_POINTER 4 #endif ORBit2-2.14.19/configure.in0000644000175000001440000002716011413117255012165 00000000000000m4_define([orbit_major_version],[2]) m4_define([orbit_minor_version],[14]) m4_define([orbit_micro_version],[19]) m4_define([orbit_version],[orbit_major_version.orbit_minor_version.orbit_micro_version]) dnl Process this file with autoconf to produce a configure script. AC_INIT([ORBit2],[orbit_version],[http://bugzilla.gnome.org/enter_bug.cgi?product=ORBit2],[ORBit2]) # Process this file with autoconf to produce a configure script. # require autoconf 2.54 AC_PREREQ(2.54) # Before making a release, the LT_VERSION string should be modified. # The string is of the form C:R:A. # - If interfaces have been changed or added, but binary compatibility has # been preserved, change to C+1:0:A+1 # - If binary compatibility has been broken (eg removed or changed interfaces) # change to C+1:0:0 # - If the interface is the same as the previous version, change to C:R+1:A LT_VERSION=1:0:1 AC_SUBST(LT_VERSION) ORBIT_MAJOR_VERSION=orbit_major_version ORBIT_MINOR_VERSION=orbit_minor_version ORBIT_MICRO_VERSION=orbit_micro_version ORBIT_VERSION=orbit_version AC_SUBST(ORBIT_MAJOR_VERSION) AC_SUBST(ORBIT_MINOR_VERSION) AC_SUBST(ORBIT_MICRO_VERSION) AC_SUBST(ORBIT_VERSION) # Increment this every time a feature is added in the .idl compiler # that needs help from the main libraries. ORBIT_SERIAL=20 AC_SUBST(ORBIT_SERIAL) # For automake. AC_CONFIG_HEADERS([config.h]) dnl Initialize automake stuff AM_INIT_AUTOMAKE([1.9 no-dist-gzip dist-bzip2 no-define]) dnl Required by autoconf 2.60 AC_SUBST(datarootdir) AC_CANONICAL_HOST AC_MSG_CHECKING([for Win32]) case "$host" in *-*-mingw*) os_win32=yes LIBM= MINGW_LDFLAGS="-Wl,--enable-runtime-pseudo-reloc" ;; *) os_win32=no LIBM=-lm MINGW_LDFLAGS= ;; esac AC_MSG_RESULT([$os_win32]) AM_CONDITIONAL(OS_WIN32, [test "$os_win32" = "yes"]) AC_SUBST(LIBM) AC_SUBST(MINGW_LDFLAGS) LDFLAGS="$MINGW_LDFLAGS $LDFLAGS" if test "$os_win32" = "yes"; then if test x$enable_static = xyes -o x$enable_static = x; then AC_MSG_WARN([Disabling static library build, must build as DLL on Windows.]) enable_static=no fi if test x$enable_shared = xno; then AC_MSG_WARN([Enabling shared library build, must build as DLL on Windows.]) fi enable_shared=yes fi dnl Checks for programs. AC_PROG_CC AC_PROG_INSTALL AC_LIBTOOL_DLOPEN AC_LIBTOOL_WIN32_DLL AM_PROG_LIBTOOL AM_MAINTAINER_MODE dnl Useful for automating stuff AC_CACHE_CHECK([for aclocal flags], ac_cv_orbit_aclocal_flags,[ ac_cv_orbit_aclocal_flags="$ACLOCAL_FLAGS" ]) ACLOCAL="$ACLOCAL $ac_cv_orbit_aclocal_flags" AC_ARG_ENABLE(http, [--enable-http enables http connections],, enable_http=no) AM_CONDITIONAL(ENABLE_HTTP, test x"$enable_http" = xyes) if test x"$enable_http" = xyes ; then AC_DEFINE(ENABLE_HTTP, 1, [Define if HTTP connections are available]) fi dnl --enable-compile-warnings AC_ARG_ENABLE(compile-warnings, [ --enable-compile-warnings=[no/yes] Turn on compiler warnings.], [enable_compile_warnings="$enableval"],[enable_compile_warnings="yes"]) dnl --enable-debug=(yes|minimum|no) AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging [default=no]],,enable_debug=minimum) if test "x$enable_debug" = "xyes"; then ORBIT_DEBUG_CFLAGS="-ggdb -O0 -DG_ENABLE_DEBUG" else if test "x$enable_debug" = "xno"; then ORBIT_DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS" else ORBIT_DEBUG_CFLAGS="" fi fi AC_ARG_ENABLE(purify, [ --enable-purify be clean for memory debuggers], enable_purify=yes, enable_purify=no) if test z$enable_purify = zyes; then AC_DEFINE(ORBIT_PURIFY, 1, [defined if purify is enabled]) fi AC_MSG_CHECKING(which idl compiler to use) IDL_COMPILER="\$(top_builddir)/src/idl-compiler/orbit-idl-2\$(EXEEXT)" AC_ARG_WITH(idl-compiler, [ --with-idl-compiler use specific idl compiler (useful when crosscompiling)], if test "x$withval" != x; then if test -f "$withval"; then IDL_COMPILER=$withval fi fi ) if test x$IDL_COMPILER == x"\$(top_builddir)/src/idl-compiler/orbit-idl-2\$(EXEEXT)"; then AC_MSG_RESULT(internal) else AC_MSG_RESULT(external ($IDL_COMPILER)) fi AC_SUBST(IDL_COMPILER) AC_PROG_AWK GLIB_REQUIRED=2.8.0 LIBIDL_REQUIRED=0.8.2 AC_SUBST(GLIB_REQUIRED) AC_SUBST(LIBIDL_REQUIRED) dnl Check for pkg-config version; want >= 0.14.0 because of -pthread bug PKG_PROG_PKG_CONFIG([0.18]) LOCAL_LINC_LIBS='$(top_builddir)/linc2/src/liblinc.la' LOCAL_LINC_CFLAGS='-I$(top_srcdir)/linc2/include -I$(top_builddir)/linc2/include' AC_SUBST(LOCAL_LINC_LIBS) AC_SUBST(LOCAL_LINC_CFLAGS) dnl Checks for libraries. PKG_CHECK_MODULES(ORBIT, \ glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gthread-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED) AC_SUBST(ORBIT_LIBS) AC_SUBST(ORBIT_CFLAGS) PKG_CHECK_MODULES(ORBIT_IDL, \ libIDL-2.0 >= $LIBIDL_REQUIRED \ glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED) AC_SUBST(ORBIT_IDL_LIBS) AC_SUBST(ORBIT_IDL_CFLAGS) PKG_CHECK_MODULES(ORBIT_NAME, glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gthread-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED) AC_SUBST(ORBIT_NAME_LIBS) AC_SUBST(ORBIT_NAME_CFLAGS) dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(fcntl.h unistd.h sys/endian.h endian.h machine/endian.h) AC_CHECK_HEADERS(sys/machine.h sys/isa_defs.h sys/poll.h sys/select.h) AC_CHECK_HEADERS(sys/time.h netinet/in.h sys/socket.h arpa/inet.h) AC_CHECK_HEADERS(stddef.h wchar.h wcstr.h wctype.h machine/types.h) AC_CHECK_HEADERS(sys/un.h sys/uio.h syslog.h) AC_CHECK_HEADERS(sys/wait.h netdb.h) AC_CHECK_HEADERS(utime.h sys/utime.h) AC_CHECK_HEADERS([linux/socket.h]) AC_CHECK_HEADERS(sys/sockio.h) if test "$os_win32" = "yes"; then AC_CHECK_HEADERS(winsock2.h) if test $ac_cv_header_winsock2_h = yes; then dnl If we have , assume we find the functions dnl in -lws2_32. LIBS="-lws2_32 $LIBS" fi fi dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_C_INLINE AC_TYPE_SIZE_T dnl Checks for library functions. AC_FUNC_VPRINTF AC_CHECK_FUNC(socket,,[AC_CHECK_LIB(socket,socket)]) AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)]) AC_CHECK_FUNC(sigaction) AC_CHECK_FUNC(syslog) dnl This generates warnings from autoconf... AC_C_BIGENDIAN dnl dnl So many people with broken linking setups asked about this dnl it turned out to be necessary to check for this. dnl dofus_save_libs="$LIBS" LIBS="$ORBIT_LIBS $LIBS" AC_TRY_RUN([ #include main () { return 0; } ],, AC_MSG_ERROR([ Linking is badly borked on your system. Please ensure your library path is correct Check config.log for details - check near the end of the log above 'failed program was' Alternatively ensure that your /etc/ld.so.conf (and/or LD_LIBRARY_PATH) includes the prefix you're compiling on: '${prefix}' ]), AC_MSG_WARN([Could not check for borked linking while cross-compiling])) LIBS="$dofus_save_libs" orig_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $ORBIT_CFLAGS" AC_CHECK_ALIGNOF(CORBA_octet) AC_CHECK_ALIGNOF(CORBA_boolean) AC_CHECK_ALIGNOF(CORBA_char) AC_CHECK_ALIGNOF(CORBA_wchar) AC_CHECK_ALIGNOF(CORBA_short) AC_CHECK_ALIGNOF(CORBA_long) AC_CHECK_ALIGNOF(CORBA_long_long) AC_CHECK_ALIGNOF(CORBA_float) AC_CHECK_ALIGNOF(CORBA_double) AC_CHECK_ALIGNOF(CORBA_long_double) AC_CHECK_ALIGNOF(CORBA_struct) AC_CHECK_ALIGNOF(CORBA_pointer) CPPFLAGS=$orig_CPPFLAGS if test "x$GCC" = "xyes" -a "x$enable_compile_warnings" != "xno"; then WARN_CFLAGS="-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations" else WARN_CFLAGS= fi AC_MSG_CHECKING(what warning flags to pass to the C compiler) AC_MSG_RESULT($WARN_CFLAGS) AC_SUBST(WARN_CFLAGS) AC_SUBST(pkglibdir) if test "$enable_maintainer_mode" = "yes"; then DISABLE_DEPRECATED_CFLAGS=" \ -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES" AC_SUBST(DISABLE_DEPRECATED_CFLAGS) fi dnl dnl --------- start linc bits --------- dnl dnl Checks for libraries. PKG_CHECK_MODULES(LINC, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED) AC_SUBST(LINC_LIBS) AC_SUBST(LINC_CFLAGS) dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(fcntl.h unistd.h sys/endian.h endian.h machine/endian.h sys/machine.h sys/isa_defs.h sys/poll.h) AC_CHECK_HEADERS(stddef.h wchar.h wcstr.h wctype.h machine/types.h) AC_CHECK_HEADERS(netinet/in.h netinet/tcp.h sys/un.h) AC_CHECK_HEADERS(arpa/nameser.h resolv.h) dnl AC_CHECK_HEADERS(linux/irda.h) dnl Checks for library functions. AC_CHECK_FUNCS(poll basename) AC_CHECK_FUNC(res_init,,[AC_CHECK_LIB(resolv,res_init)]) AC_CHECK_LIB(resolv,res_9_init) AC_CHECK_FUNC(socket,,[AC_CHECK_LIB(socket,socket)]) AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)]) AC_CHECK_FUNC(getaddrinfo,,[AC_CHECK_LIB(nsl,getaddrinfo)]) if test x"$ac_cv_func_getaddrinfo" = "xyes" ; then AC_DEFINE(HAVE_GETADDRINFO, 1, [Define if getaddrinfo() is available]) fi AC_CHECK_FUNC(getnameinfo,,[AC_CHECK_LIB(nsl,getnameinfo)]) if test x"$ac_cv_func_getnameinfo" = "xyes" ; then AC_DEFINE(HAVE_GETNAMEINFO, 1, [Define if getnameinfo() is available]) fi have_inet_pton=no AC_CHECK_FUNC(inet_pton,,) if test x"$ac_cv_func_inet_pton" = "xyes" ; then have_inet_pton=yes AC_DEFINE(HAVE_INET_PTON, 1, [Define if inet_pton() is available]) fi # AC_CHECK_TYPE doesn't work here. AC_MSG_CHECKING([for socklen_t]) AC_TRY_COMPILE( [#ifdef _WIN32 #include #else #include #include #endif], [socklen_t len;], [AC_MSG_RESULT(yes)], [AC_DEFINE(socklen_t, size_t, [Define socklen_t to be of type size_t]) AC_MSG_RESULT(no)]) # Blatantly stolen from configure.in in the sample code from # "UNIX Network Programming, Volume 1" by W. Richard Stevens AC_CACHE_CHECK(if sockaddr has sa_len member, ac_cv_sockaddr_has_sa_len, AC_TRY_COMPILE([ # include # include ], [unsigned int i = sizeof(((struct sockaddr *)0)->sa_len)], ac_cv_sockaddr_has_sa_len=yes, ac_cv_sockaddr_has_sa_len=no)) if test x"$ac_cv_sockaddr_has_sa_len" = "xyes" ; then AC_DEFINE(HAVE_SOCKADDR_SA_LEN, 1, [Define if sockaddr has sa_len member]) fi dnl dnl --------- end linc bits --------- dnl dnl dnl --------- set additional gcc flags to catch errors --------- dnl AX_CFLAGS_GCC_OPTION(-Werror-implicit-function-declaration) CFLAGS="$CFLAGS $ORBIT_DEBUG_CFLAGS" AC_SUBST(CFLAGS) dnl ----- gtk-doc ------ GTK_DOC_CHECK([1.0]) AC_CONFIG_FILES([ Makefile orbit2-config ORBit-2.0.pc ORBit-2.0-uninstalled.pc ORBit-CosNaming-2.0.pc ORBit-CosNaming-2.0-uninstalled.pc ORBit-imodule-2.0.pc ORBit-imodule-2.0-uninstalled.pc ORBit.spec orbit2-zip src/Makefile src/idl-compiler/Makefile src/idl-compiler/ORBit-idl-2.0.pc src/idl/Makefile src/idl/CORBA/Makefile src/idl/CORBA_PIDL/Makefile src/idl/interop/Makefile src/idl/misc/Makefile src/orb/Makefile src/orb/include/Makefile src/orb/util/Makefile src/orb/GIOP/Makefile src/orb/orb-core/Makefile src/orb/dynamic/Makefile src/orb/poa/Makefile src/services/Makefile src/services/name/Makefile src/services/imodule/Makefile include/Makefile include/orbit/Makefile include/orbit/orbit-config.h include/orbit/GIOP/Makefile include/orbit/util/Makefile include/orbit/orb-core/Makefile include/orbit/poa/Makefile include/orbit/dynamic/Makefile test/Makefile test/everything/Makefile test/inhibit/Makefile test/poa/Makefile docs/Makefile docs/devel/Makefile docs/internals/Makefile docs/api/Makefile linc2/Makefile linc2/src/Makefile linc2/test/Makefile linc2/include/Makefile linc2/include/linc/Makefile linc2/include/linc/linc-config.h ]) AC_OUTPUT echo "ORBit configuration: Source code location: ${srcdir} Compiler: ${CC} Purify cleanliness: ${enable_purify} " ORBit2-2.14.19/test/0000755000175000001440000000000011450334031010677 500000000000000ORBit2-2.14.19/test/echo-client.c0000644000175000001440000000712411334247617013177 00000000000000/* * CORBA echo test * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Elliot Lee */ #include #include #include "echo.h" #define ABORT_IF_EXCEPTION(_ev, _message) \ if ((_ev)->_major != CORBA_NO_EXCEPTION) { \ g_error("%s: %s", _message, CORBA_exception_id (_ev)); \ CORBA_exception_free (_ev); \ abort(); \ } static Echo echo_client, bec; static gboolean echo_opt_quiet = FALSE; int main (int argc, char *argv[]) { CORBA_Environment ev; CORBA_ORB orb; CORBA_double rv; char buf[30]; int i; int niters = 1000; CORBA_exception_init(&ev); orb = CORBA_ORB_init(&argc, argv, "orbit-local-orb", &ev); /* read IOR from command line as first argument */ if(argc < 2) { g_print ("ERROR, usage: %s [<#iterations>]\n", argv[0]); return 1; } if (argv[1][0] == '$') argv[1] = getenv (argv[1]+1); /* read (optional) number of iterations from command line as * second argument (100) */ if(argc == 3) niters = atoi(argv[2]); /* bind to object */ echo_client = CORBA_ORB_string_to_object(orb, argv[1], &ev); ABORT_IF_EXCEPTION (&ev, "cannot bind to object"); g_assert (echo_client!=NULL); /* Iterate various times. Each time the client invokes * 'echoString(..)' a new reference to service is returned which * is used for next loop. At end of each loop the old * obj. reference is released. */ for(i = 0; i < niters; i++) { /* Method call without any argument, usefull to tell * lifeness */ Echo_doNothing(echo_client, &ev); ABORT_IF_EXCEPTION (&ev, "service raised exception "); /* Ask echo-service to print string 'buf' on console. The * service returns random double float value in 'vr' */ g_snprintf(buf, sizeof(buf), "Hello, world [%d]", i); bec = Echo_echoString(echo_client, buf, &rv, &ev); ABORT_IF_EXCEPTION (&ev, "service raised exception "); /* print random value generated by echo-service */ if ( !echo_opt_quiet ) g_message("[client] %g", rv); /* Asynchronous/oneway method call, the function returns * immediately. Usefull for log-message transfer */ Echo_doOneWay(echo_client, "log message ", &ev); ABORT_IF_EXCEPTION (&ev, "service raised exception "); /* release first object reference and use the new one for * next loop */ CORBA_Object_release(echo_client, &ev); ABORT_IF_EXCEPTION (&ev, "service raised exception "); /* swap object references */ echo_client = bec; bec = CORBA_OBJECT_NIL; } /* release initial object reference */ CORBA_Object_release(echo_client, &ev); ABORT_IF_EXCEPTION (&ev, "service raised exception "); /* shutdown ORB, shutdown IO channels */ CORBA_ORB_shutdown (orb, FALSE, &ev); ABORT_IF_EXCEPTION(&ev, "ORB shutdown ..."); /* destroy local ORB */ CORBA_ORB_destroy(orb, &ev); ABORT_IF_EXCEPTION (&ev, "destroying local ORB raised exception"); return 0; } ORBit2-2.14.19/test/test-dynany.c0000644000175000001440000003305211334247617013263 00000000000000#include #include #include #include #include #include "dynany.h" #define CHECK_OK(ev) g_assert ((ev)->_major == CORBA_NO_EXCEPTION) #define CHECK_TYPE_MISMATCH(ev) \ do { \ g_assert ((ev)->_major == CORBA_USER_EXCEPTION && \ !strcmp ((ev)->_id, ex_DynamicAny_DynAny_TypeMismatch)); \ CORBA_exception_free (ev); \ } while (0) #define CHECK_INVALID_VALUE(ev) \ do { \ g_assert ((ev)->_major == CORBA_USER_EXCEPTION && \ !strcmp ((ev)->_id, ex_DynamicAny_DynAny_InvalidValue)); \ CORBA_exception_free (ev); \ } while (0) #define CHECK_OBJECT_NOT_EXIST(ev) \ do { \ g_assert ((ev)->_major == CORBA_SYSTEM_EXCEPTION && \ !strcmp ((ev)->_id, ex_CORBA_OBJECT_NOT_EXIST)); \ CORBA_exception_free (ev); \ } while (0) static DynamicAny_DynAny create_basic_dyn_any (CORBA_ORB orb, CORBA_TypeCode type, CORBA_Environment *ev) { DynamicAny_DynAnyFactory f; DynamicAny_DynAny d; f = (DynamicAny_DynAnyFactory) CORBA_ORB_resolve_initial_references ( orb, "DynAnyFactory", ev); CHECK_OK (ev); d = DynamicAny_DynAnyFactory_create_dyn_any_from_type_code ( f, type, ev); CHECK_OK (ev); CORBA_Object_release ((CORBA_Object)f, ev); CHECK_OK (ev); return d; } static DynamicAny_DynAny create_dyn_any (CORBA_ORB orb, const CORBA_any *any, CORBA_Environment *ev) { DynamicAny_DynAnyFactory f; DynamicAny_DynAny d; f = (DynamicAny_DynAnyFactory) CORBA_ORB_resolve_initial_references ( orb, "DynAnyFactory", ev); CHECK_OK (ev); d = DynamicAny_DynAnyFactory_create_dyn_any ( f, any, ev); CHECK_OK (ev); CORBA_Object_release ((CORBA_Object)f, ev); CHECK_OK (ev); return d; } static int double_equal (double a, double b) { const double delta = 0.0001; if (fabs (a - b) < delta) return TRUE; else return FALSE; } static void test_long (CORBA_ORB orb, CORBA_Environment *ev) { DynamicAny_DynAny dyn_any; CORBA_long value; CORBA_TypeCode type; dyn_any = create_basic_dyn_any (orb, TC_CORBA_long, ev); CHECK_OK (ev); g_assert (dyn_any != CORBA_OBJECT_NIL); /* 1. Inserting */ DynamicAny_DynAny_insert_long (dyn_any, 2, ev); CHECK_OK (ev); DynamicAny_DynAny_insert_boolean (dyn_any, TRUE, ev); CHECK_TYPE_MISMATCH (ev); DynamicAny_DynAny_insert_double (dyn_any, 1.3267, ev); CHECK_TYPE_MISMATCH (ev); DynamicAny_DynAny_insert_reference (dyn_any, (CORBA_Object) dyn_any, ev); CHECK_TYPE_MISMATCH (ev); /* 2. Getting */ DynamicAny_DynAny_get_boolean (dyn_any, ev); CHECK_TYPE_MISMATCH (ev); DynamicAny_DynAny_get_double (dyn_any, ev); CHECK_TYPE_MISMATCH (ev); DynamicAny_DynAny_get_reference (dyn_any, ev); CHECK_TYPE_MISMATCH (ev); value = DynamicAny_DynAny_get_long (dyn_any, ev); CHECK_OK (ev); g_assert (value == 2); type = DynamicAny_DynAny_type (dyn_any, ev); CHECK_OK (ev); g_assert (CORBA_TypeCode_equal (type, TC_CORBA_long, ev)); CHECK_OK (ev); CORBA_Object_release ((CORBA_Object) type, ev); CHECK_OK (ev); CORBA_Object_release ((CORBA_Object) dyn_any, ev); CHECK_OK (ev); } static void test_string (CORBA_ORB orb, CORBA_Environment *ev) { DynamicAny_DynAny dyn_any; CORBA_char *value; const char string[] = "Hello World"; dyn_any = create_basic_dyn_any (orb, TC_CORBA_string, ev); CHECK_OK (ev); g_assert (dyn_any != CORBA_OBJECT_NIL); /* 1. Inserting */ DynamicAny_DynAny_insert_string (dyn_any, (CORBA_char *)string, ev); CHECK_OK (ev); DynamicAny_DynAny_insert_boolean (dyn_any, TRUE, ev); CHECK_TYPE_MISMATCH (ev); DynamicAny_DynAny_insert_double (dyn_any, 1.3267, ev); CHECK_TYPE_MISMATCH (ev); /* 2. Getting */ DynamicAny_DynAny_get_boolean (dyn_any, ev); CHECK_TYPE_MISMATCH (ev); DynamicAny_DynAny_get_double (dyn_any, ev); CHECK_TYPE_MISMATCH (ev); DynamicAny_DynAny_get_reference (dyn_any, ev); CHECK_TYPE_MISMATCH (ev); value = DynamicAny_DynAny_get_string (dyn_any, ev); CHECK_OK (ev); g_assert (!strcmp (value, string)); CORBA_free (value); CORBA_Object_release ((CORBA_Object) dyn_any, ev); CHECK_OK (ev); } static void test_copy (CORBA_ORB orb, CORBA_Environment *ev) { DynamicAny_DynAny dyn_any; DynamicAny_DynAny dyn_any_copy; CORBA_any *any; const char string[] = "Hello World2"; dyn_any = create_basic_dyn_any (orb, TC_CORBA_string, ev); CHECK_OK (ev); g_assert (dyn_any != CORBA_OBJECT_NIL); DynamicAny_DynAny_insert_string (dyn_any, (CORBA_char *)string, ev); CHECK_OK (ev); any = DynamicAny_DynAny_to_any (dyn_any, ev); CHECK_OK (ev); g_assert (any != NULL); dyn_any_copy = create_dyn_any (orb, any, ev); CHECK_OK (ev); g_assert (dyn_any_copy != NULL); CORBA_free (any); g_assert (DynamicAny_DynAny_equal (dyn_any_copy, dyn_any, ev)); CHECK_OK (ev); { /* Knock up an integer any */ DynamicAny_DynAny int_any = create_basic_dyn_any ( orb, TC_CORBA_long, ev); CHECK_OK (ev); DynamicAny_DynAny_insert_long (int_any, 57, ev); CHECK_OK (ev); any = DynamicAny_DynAny_to_any (int_any, ev); CHECK_OK (ev); CORBA_Object_release ((CORBA_Object) int_any, ev); CHECK_OK (ev); } DynamicAny_DynAny_from_any (dyn_any, any, ev); CHECK_TYPE_MISMATCH (ev); CORBA_free (any); DynamicAny_DynAny_assign (dyn_any, dyn_any_copy, ev); CHECK_OK (ev); g_assert (DynamicAny_DynAny_equal (dyn_any_copy, dyn_any, ev)); CHECK_OK (ev); CORBA_Object_release ((CORBA_Object) dyn_any, ev); CHECK_OK (ev); CORBA_Object_release ((CORBA_Object) dyn_any_copy, ev); CHECK_OK (ev); } static void test_sequence (CORBA_ORB orb, CORBA_Environment *ev) { DynamicAny_DynAny dyn_any; DynamicAny_DynSequence dyn_seq; int i, len; dyn_any = create_basic_dyn_any ( orb, TC_CORBA_sequence_CORBA_octet, ev); dyn_seq = (DynamicAny_DynSequence) dyn_any; CHECK_OK (ev); g_assert (dyn_any != CORBA_OBJECT_NIL); DynamicAny_DynAny_insert_long (dyn_any, 5, ev); CHECK_TYPE_MISMATCH (ev); DynamicAny_DynSequence_set_length (dyn_seq, 100, ev); CHECK_OK (ev); for (i = 0; i < 100; i++) { g_assert (DynamicAny_DynAny_seek (dyn_any, i, ev)); CHECK_OK (ev); DynamicAny_DynAny_insert_octet (dyn_any, 100 - i, ev); CHECK_OK (ev); } len = DynamicAny_DynAny_component_count (dyn_any, ev); CHECK_OK (ev); g_assert (len == 100); len = DynamicAny_DynSequence_get_length (dyn_seq, ev); CHECK_OK (ev); g_assert (len == 100); /* Only growing the length for now */ DynamicAny_DynAny_seek (dyn_any, -1, ev); CHECK_OK (ev); DynamicAny_DynSequence_set_length (dyn_seq, 150, ev); CHECK_OK (ev); len = DynamicAny_DynSequence_get_length (dyn_seq, ev); CHECK_OK (ev); g_assert (len == 150); DynamicAny_DynAny_insert_octet (dyn_any, 137, ev); CHECK_OK (ev); i = DynamicAny_DynAny_get_octet (dyn_any, ev); CHECK_OK (ev); g_assert (i == 137); DynamicAny_DynSequence_set_length (dyn_seq, 200, ev); CHECK_OK (ev); i = DynamicAny_DynAny_get_octet (dyn_any, ev); CHECK_OK (ev); g_assert (i == 137); len = DynamicAny_DynSequence_get_length (dyn_seq, ev); CHECK_OK (ev); g_assert (len == 200); { DynamicAny_AnySeq *seq; seq = DynamicAny_DynSequence_get_elements (dyn_seq, ev); CHECK_OK (ev); DynamicAny_DynSequence_set_elements (dyn_seq, seq, ev); CHECK_OK (ev); CORBA_free (seq); } CORBA_Object_release ((CORBA_Object) dyn_any, ev); CHECK_OK (ev); } static void test_array (CORBA_ORB orb, CORBA_Environment *ev) { DynamicAny_DynAny dyn_any; CORBA_double d; int i; dyn_any = create_basic_dyn_any ( orb, TC_Test_MyArray, ev); CHECK_OK (ev); g_assert (dyn_any != CORBA_OBJECT_NIL); g_assert (DynamicAny_DynAny_seek (dyn_any, 99, ev)); CHECK_OK (ev); DynamicAny_DynAny_insert_long (dyn_any, 2, ev); CHECK_TYPE_MISMATCH (ev); DynamicAny_DynAny_insert_double (dyn_any, 2.71828182845, ev); CHECK_OK (ev); /* 1. Insert */ for (i = 0; i < 37; i+= 3) { d = i * 2.7 + 3.1; DynamicAny_DynAny_seek (dyn_any, i, ev); CHECK_OK (ev); DynamicAny_DynAny_insert_double (dyn_any, d, ev); CHECK_OK (ev); } /* 1. Extract */ for (i = 0; i < 37; i+= 3) { d = i * 2.7 + 3.1; DynamicAny_DynAny_seek (dyn_any, i, ev); CHECK_OK (ev); g_assert (double_equal (DynamicAny_DynAny_get_double (dyn_any, ev), d)); CHECK_OK (ev); } CORBA_Object_release ((CORBA_Object) dyn_any, ev); CHECK_OK (ev); } static const char * enum_subnames_array [] = { "KIPPER", "BLOATER", "HERRING" }; static void test_enum (CORBA_ORB orb, CORBA_Environment *ev) { int i; DynamicAny_DynEnum dyn_enum; dyn_enum = (DynamicAny_DynEnum) create_basic_dyn_any ( orb, TC_Test_Fishy, ev); CHECK_OK (ev); g_assert (dyn_enum != CORBA_OBJECT_NIL); i = DynamicAny_DynEnum_get_as_ulong (dyn_enum, ev); CHECK_OK (ev); g_assert (i == 0); for (i = 0; i < sizeof (enum_subnames_array) / sizeof (const char *); i++) { DynamicAny_DynEnum_set_as_string (dyn_enum, enum_subnames_array [i], ev); CHECK_OK (ev); g_assert (DynamicAny_DynEnum_get_as_ulong (dyn_enum, ev) == i); CHECK_OK (ev); } for (i = 0; i < sizeof (enum_subnames_array) / sizeof (const char *); i++) { CORBA_char *str; DynamicAny_DynEnum_set_as_ulong (dyn_enum, i, ev); CHECK_OK (ev); str = DynamicAny_DynEnum_get_as_string (dyn_enum, ev); CHECK_OK (ev); g_assert (!strcmp (str, enum_subnames_array [i])); CORBA_free (str); } CORBA_Object_release ((CORBA_Object) dyn_enum, ev); CHECK_OK (ev); } static const char * union_subnames_array [] = { "tgw", "nut", "atl", "rmt", "ibid" }; static CORBA_TypeCode union_subtypes_array [] = { TC_CORBA_long, TC_CORBA_double, TC_CORBA_string, TC_Test_Fishy, TC_Test_OSeq }; static void test_union (CORBA_ORB orb, CORBA_Environment *ev) { DynamicAny_DynUnion dyn_union; CORBA_TCKind kind; dyn_union = (DynamicAny_DynUnion) create_basic_dyn_any ( orb, TC_Test_English, ev); CHECK_OK (ev); g_assert (dyn_union != CORBA_OBJECT_NIL); kind = DynamicAny_DynUnion_discriminator_kind (dyn_union, ev); CHECK_OK (ev); g_assert (kind == CORBA_tk_ulong); CORBA_Object_release ((CORBA_Object) dyn_union, ev); CHECK_OK (ev); } static void test_struct (CORBA_ORB orb, CORBA_Environment *ev) { DynamicAny_DynAny dyn_any, sub_any; DynamicAny_DynStruct dyn_struct; DynamicAny_NameValuePairSeq *members; /* DynamicAny_NameDynAnyPairSeq *dyn_members; */ CORBA_TCKind kind; CORBA_char *str; CORBA_double dv = 1.23; const char *test_str = "one is not amused"; int i; dyn_any = create_basic_dyn_any ( orb, TC_Test_Unions, ev); dyn_struct = (DynamicAny_DynStruct) dyn_any; CHECK_OK (ev); g_assert (dyn_any != CORBA_OBJECT_NIL); g_assert (!DynamicAny_DynStruct_seek (dyn_any, 6, ev)); CHECK_OK (ev); for (i = 0; i < 5; i++) { DynamicAny_DynStruct_seek (dyn_any, i, ev); CHECK_OK (ev); kind = DynamicAny_DynStruct_current_member_kind (dyn_struct, ev); CHECK_OK (ev); g_assert (union_subtypes_array [i]->kind == kind); str = DynamicAny_DynStruct_current_member_name (dyn_struct, ev); CHECK_OK (ev); g_assert (!strcmp (union_subnames_array [i], str)); CORBA_free (str); } g_assert (DynamicAny_DynStruct_seek (dyn_any, 0, ev)); CHECK_OK (ev); DynamicAny_DynAny_insert_long (dyn_any, 345, ev); CHECK_OK (ev); g_assert (DynamicAny_DynAny_next (dyn_any, ev)); CHECK_OK (ev); DynamicAny_DynAny_insert_double (dyn_any, dv, ev); CHECK_OK (ev); g_assert (DynamicAny_DynAny_next (dyn_any, ev)); CHECK_OK (ev); DynamicAny_DynAny_insert_string (dyn_any, test_str, ev); CHECK_OK (ev); sub_any = DynamicAny_DynAny_current_component (dyn_any, ev); CHECK_OK (ev); str = DynamicAny_DynAny_get_string (sub_any, ev); CHECK_OK (ev); g_assert (!strcmp (test_str, str)); CORBA_free (str); g_assert (DynamicAny_DynStruct_seek (dyn_any, 0, ev)); CHECK_OK (ev); g_assert (DynamicAny_DynAny_get_long (dyn_any, ev) == 345); CHECK_OK (ev); g_assert (DynamicAny_DynAny_next (dyn_any, ev)); CHECK_OK (ev); g_assert (double_equal (DynamicAny_DynAny_get_double (dyn_any, ev), dv)); CHECK_OK (ev); g_assert (DynamicAny_DynAny_next (dyn_any, ev)); CHECK_OK (ev); members = DynamicAny_DynStruct_get_members (dyn_struct, ev); g_assert (members != NULL); CHECK_OK (ev); DynamicAny_DynStruct_set_members (dyn_struct, members, ev); CHECK_OK (ev); CORBA_free (members); /* it's not clear how best to deal with this: dyn_members = DynamicAny_DynStruct_get_members_as_dyn_any (dyn_any, ev); g_assert (dyn_members != NULL); CHECK_OK (ev); DynamicAny_DynStruct_set_members_as_dyn_any (dyn_any, dyn_members, ev); CHECK_OK (ev); CORBA_free (dyn_members);*/ CORBA_Object_release ((CORBA_Object) dyn_any, ev); CHECK_OK (ev); str = DynamicAny_DynAny_get_string (sub_any, ev); CHECK_OBJECT_NOT_EXIST (ev); CORBA_Object_release ((CORBA_Object) sub_any, ev); CHECK_OK (ev); } #define d_printf printf int main (int argc, char *argv[]) { CORBA_Environment ev; CORBA_ORB orb; free (malloc (8)); g_thread_init (NULL); CORBA_exception_init (&ev); orb = CORBA_ORB_init (NULL, NULL, "orbit-local-orb", &ev); /* * Since the API is entirely macro generated * we only need to test a few cases. */ d_printf ("Testing basic DynAny ...\n"); d_printf (" + long ops ...\n"); test_long (orb, &ev); d_printf (" + string ops ...\n"); test_string (orb, &ev); d_printf (" + copying ...\n"); test_copy (orb, &ev); d_printf ("Testing DynSequence ...\n"); test_sequence (orb, &ev); d_printf ("Testing DynEnum ...\n"); test_enum (orb, &ev); d_printf ("Testing DynUnion ...\n"); test_union (orb, &ev); d_printf ("Testing DynArray...\n"); test_array (orb, &ev); d_printf ("Testing DynStruct...\n"); test_struct (orb, &ev); CORBA_ORB_destroy (orb, &ev); CHECK_OK (&ev); CORBA_Object_release ((CORBA_Object) orb, &ev); CHECK_OK (&ev); d_printf ("all DynAny tests passed ok.\n"); return 0; } ORBit2-2.14.19/test/empty.idl0000644000175000001440000000005011334247617012460 00000000000000interface Empty { void doNothing(); }; ORBit2-2.14.19/test/empty-client.c0000644000175000001440000000476711334247617013431 00000000000000/* * CORBA emopty test * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Elliot Lee */ #include #include #include "empty.h" static Empty empty_client; #define ABORT_IF_EXCEPTION(_ev, _message) \ if ((_ev)->_major != CORBA_NO_EXCEPTION) { \ g_error("%s: %s", _message, CORBA_exception_id (_ev)); \ CORBA_exception_free (_ev); \ abort(); \ } int main (int argc, char *argv[]) { CORBA_Environment ev; CORBA_ORB orb; int i; int niters = 100; CORBA_exception_init(&ev); orb = CORBA_ORB_init(&argc, argv, "orbit-local-orb", &ev); ABORT_IF_EXCEPTION(&ev, "ORB init ..."); #if 0 for(i = 0; i < (sizeof(theblah) - 1); i++) theblah[i] = 'a'; theblah[sizeof(theblah) - 1] = '\0'; #endif if(argc < 2) { printf("Need a binding ID thing as argv[1]\n"); return 1; } if(argc == 3) niters = atoi(argv[2]); /* bind to object */ empty_client = CORBA_ORB_string_to_object(orb, argv[1], &ev); ABORT_IF_EXCEPTION(&ev, "Cannot bind to object ..."); printf("corba = %d, empty = %d, foobar = %d\n", CORBA_Object_is_a(empty_client, "IDL:CORBA/Object:1.0", &ev), CORBA_Object_is_a(empty_client, "IDL:Empty:1.0", &ev), CORBA_Object_is_a(empty_client, "IDL:Foo/Bar:1.0", &ev)); for(i = 0; i < niters; i++) { Empty_doNothing(empty_client, &ev); ABORT_IF_EXCEPTION(&ev, "doNothing() ..."); } /* release initial object reference */ CORBA_Object_release(empty_client, &ev); ABORT_IF_EXCEPTION(&ev, "release empty_client ..."); /* shutdown ORB, shutdown IO channels */ CORBA_ORB_shutdown (orb, FALSE, &ev); ABORT_IF_EXCEPTION(&ev, "ORB shutdown ..."); /* destroy local ORB */ CORBA_ORB_destroy (orb, &ev); ABORT_IF_EXCEPTION(&ev, "ORB destroy ..."); return 0; } ORBit2-2.14.19/test/Makefile.am0000644000175000001440000000534111334247617012674 00000000000000SUBDIRS = everything inhibit poa INCLUDES = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/src/orb \ -I$(top_builddir)/include \ -DORBIT2_INTERNAL_API \ $(WARN_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_CFLAGS) bin_PROGRAMS=ior-decode-2 typelib-dump noinst_PROGRAMS=test1 \ echo-client echo-client-t echo-server \ empty-client empty-server \ test-any-client test-any-server \ timeout-client timeout-server check_PROGRAMS = test-dynany test-mem test-performance test-giop test-corbaloc TESTS = timeout.sh $(check_PROGRAMS) LDADD = $(top_builddir)/src/orb/libORBit-2.la $(ORBIT_LIBS) test_corbaloc_SOURCES = test-corbaloc.c test_performance_SOURCES = \ test-performance.c \ test1.h \ test1-skels.c \ test1-common.c test_giop_SOURCES = \ test-giop.c \ test-giop-frag.h TEST_ANY_IDLOUT=test-any.h test-any-common.c test-any-stubs.c test-any-skels.c test_any_client_SOURCES=test-any-client.c $(TEST_ANY_IDLOUT) test_any_server_SOURCES=test-any-server.c $(TEST_ANY_IDLOUT) $(srcdir)/test-any-client.c $(srcdir)/test-any-server.c: test-any.h ECHO_IDLOUT=echo.h echo-common.c echo-stubs.c echo-skels.c echo_client_SOURCES=echo-client.c $(ECHO_IDLOUT) echo_client_t_SOURCES=echo-client-t.c $(ECHO_IDLOUT) echo_server_SOURCES=echo-server.c echo-srv.c $(ECHO_IDLOUT) echo-share.h$ $(srcdir)/echo-client-t.c $(srcdir)/echo-client.c $(srcdir)/echo-server.c $(srcdir)/echo-srv.c: echo.h EMPTY_IDLOUT=empty.h empty-common.c empty-stubs.c empty-skels.c empty_client_SOURCES=empty-client.c $(EMPTY_IDLOUT) empty_server_SOURCES=empty-server.c $(EMPTY_IDLOUT) $(srcdir)/empty-client.c $(srcdir)/empty-server.c: empty.h TIMEOUT_IDLOUT=timeout.h timeout-common.c timeout-stubs.c timeout-skels.c timeout_client_SOURCES=timeout-client.c $(TIMEOUT_IDLOUT) timeout_server_SOURCES=timeout-server.c $(TIMEOUT_IDLOUT) $(srcdir)/timeout-client.c $(srcdir)/timeout-server.c: timeout.h IDLOUT=test1-stubs.c test1-skels.c test1-common.c test1.h test1_SOURCES=test1.c $(IDLOUT) $(srcdir)/test1.c: test1.h test_mem_SOURCES=test-mem.c $(IDLOUT) ior_decode_2_SOURCES=ior-decode.c typelib_dump_SOURCES=typelib-dump.c DYNANY_IDLOUT=dynany.h dynany-common.c dynany-skels.c dynany-stubs.c test_dynany_SOURCES=$(DYNANY_IDLOUT) test-dynany.c test_dynany_LDFLAGS=$(LIBM) IDL_FLAGS = --showcpperrors IDL_FILES=echo.idl empty.idl test-any.idl test1.idl dynany.idl timeout.idl include $(top_srcdir)/Makefile.shared BUILT_SOURCES = \ $(EMPTY_IDLOUT) \ $(ECHO_IDLOUT) \ $(IDLOUT) \ $(TEST_ANY_IDLOUT) \ $(DYNANY_IDLOUT) \ $(TIMEOUT_IDLOUT) CLEANFILES = $(BUILT_SOURCES) timeout-server.iorfile EXTRA_DIST = $(IDL_FILES) timeout_impl.c timeout.sh dist-hook: cd $(distdir); rm -f $(BUILT_SOURCES) ORBit2-2.14.19/test/Makefile.in0000644000175000001440000012055011450333734012700 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = ior-decode-2$(EXEEXT) typelib-dump$(EXEEXT) noinst_PROGRAMS = test1$(EXEEXT) echo-client$(EXEEXT) \ echo-client-t$(EXEEXT) echo-server$(EXEEXT) \ empty-client$(EXEEXT) empty-server$(EXEEXT) \ test-any-client$(EXEEXT) test-any-server$(EXEEXT) \ timeout-client$(EXEEXT) timeout-server$(EXEEXT) check_PROGRAMS = test-dynany$(EXEEXT) test-mem$(EXEEXT) \ test-performance$(EXEEXT) test-giop$(EXEEXT) \ test-corbaloc$(EXEEXT) DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/Makefile.shared subdir = test ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS) am__objects_1 = echo-common.$(OBJEXT) echo-stubs.$(OBJEXT) \ echo-skels.$(OBJEXT) am_echo_client_OBJECTS = echo-client.$(OBJEXT) $(am__objects_1) echo_client_OBJECTS = $(am_echo_client_OBJECTS) echo_client_LDADD = $(LDADD) am__DEPENDENCIES_1 = echo_client_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am_echo_client_t_OBJECTS = echo-client-t.$(OBJEXT) $(am__objects_1) echo_client_t_OBJECTS = $(am_echo_client_t_OBJECTS) echo_client_t_LDADD = $(LDADD) echo_client_t_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am_echo_server_OBJECTS = echo-server.$(OBJEXT) echo-srv.$(OBJEXT) \ $(am__objects_1) echo_server_OBJECTS = $(am_echo_server_OBJECTS) echo_server_LDADD = $(LDADD) echo_server_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am__objects_2 = empty-common.$(OBJEXT) empty-stubs.$(OBJEXT) \ empty-skels.$(OBJEXT) am_empty_client_OBJECTS = empty-client.$(OBJEXT) $(am__objects_2) empty_client_OBJECTS = $(am_empty_client_OBJECTS) empty_client_LDADD = $(LDADD) empty_client_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am_empty_server_OBJECTS = empty-server.$(OBJEXT) $(am__objects_2) empty_server_OBJECTS = $(am_empty_server_OBJECTS) empty_server_LDADD = $(LDADD) empty_server_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am_ior_decode_2_OBJECTS = ior-decode.$(OBJEXT) ior_decode_2_OBJECTS = $(am_ior_decode_2_OBJECTS) ior_decode_2_LDADD = $(LDADD) ior_decode_2_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am__objects_3 = test-any-common.$(OBJEXT) test-any-stubs.$(OBJEXT) \ test-any-skels.$(OBJEXT) am_test_any_client_OBJECTS = test-any-client.$(OBJEXT) \ $(am__objects_3) test_any_client_OBJECTS = $(am_test_any_client_OBJECTS) test_any_client_LDADD = $(LDADD) test_any_client_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am_test_any_server_OBJECTS = test-any-server.$(OBJEXT) \ $(am__objects_3) test_any_server_OBJECTS = $(am_test_any_server_OBJECTS) test_any_server_LDADD = $(LDADD) test_any_server_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am_test_corbaloc_OBJECTS = test-corbaloc.$(OBJEXT) test_corbaloc_OBJECTS = $(am_test_corbaloc_OBJECTS) test_corbaloc_LDADD = $(LDADD) test_corbaloc_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am__objects_4 = dynany-common.$(OBJEXT) dynany-skels.$(OBJEXT) \ dynany-stubs.$(OBJEXT) am_test_dynany_OBJECTS = $(am__objects_4) test-dynany.$(OBJEXT) test_dynany_OBJECTS = $(am_test_dynany_OBJECTS) test_dynany_LDADD = $(LDADD) test_dynany_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) test_dynany_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(test_dynany_LDFLAGS) $(LDFLAGS) -o $@ am_test_giop_OBJECTS = test-giop.$(OBJEXT) test_giop_OBJECTS = $(am_test_giop_OBJECTS) test_giop_LDADD = $(LDADD) test_giop_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am__objects_5 = test1-stubs.$(OBJEXT) test1-skels.$(OBJEXT) \ test1-common.$(OBJEXT) am_test_mem_OBJECTS = test-mem.$(OBJEXT) $(am__objects_5) test_mem_OBJECTS = $(am_test_mem_OBJECTS) test_mem_LDADD = $(LDADD) test_mem_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am_test_performance_OBJECTS = test-performance.$(OBJEXT) \ test1-skels.$(OBJEXT) test1-common.$(OBJEXT) test_performance_OBJECTS = $(am_test_performance_OBJECTS) test_performance_LDADD = $(LDADD) test_performance_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am_test1_OBJECTS = test1.$(OBJEXT) $(am__objects_5) test1_OBJECTS = $(am_test1_OBJECTS) test1_LDADD = $(LDADD) test1_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am__objects_6 = timeout-common.$(OBJEXT) timeout-stubs.$(OBJEXT) \ timeout-skels.$(OBJEXT) am_timeout_client_OBJECTS = timeout-client.$(OBJEXT) $(am__objects_6) timeout_client_OBJECTS = $(am_timeout_client_OBJECTS) timeout_client_LDADD = $(LDADD) timeout_client_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am_timeout_server_OBJECTS = timeout-server.$(OBJEXT) $(am__objects_6) timeout_server_OBJECTS = $(am_timeout_server_OBJECTS) timeout_server_LDADD = $(LDADD) timeout_server_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am_typelib_dump_OBJECTS = typelib-dump.$(OBJEXT) typelib_dump_OBJECTS = $(am_typelib_dump_OBJECTS) typelib_dump_LDADD = $(LDADD) typelib_dump_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(echo_client_SOURCES) $(echo_client_t_SOURCES) \ $(echo_server_SOURCES) $(empty_client_SOURCES) \ $(empty_server_SOURCES) $(ior_decode_2_SOURCES) \ $(test_any_client_SOURCES) $(test_any_server_SOURCES) \ $(test_corbaloc_SOURCES) $(test_dynany_SOURCES) \ $(test_giop_SOURCES) $(test_mem_SOURCES) \ $(test_performance_SOURCES) $(test1_SOURCES) \ $(timeout_client_SOURCES) $(timeout_server_SOURCES) \ $(typelib_dump_SOURCES) DIST_SOURCES = $(echo_client_SOURCES) $(echo_client_t_SOURCES) \ $(echo_server_SOURCES) $(empty_client_SOURCES) \ $(empty_server_SOURCES) $(ior_decode_2_SOURCES) \ $(test_any_client_SOURCES) $(test_any_server_SOURCES) \ $(test_corbaloc_SOURCES) $(test_dynany_SOURCES) \ $(test_giop_SOURCES) $(test_mem_SOURCES) \ $(test_performance_SOURCES) $(test1_SOURCES) \ $(timeout_client_SOURCES) $(timeout_server_SOURCES) \ $(typelib_dump_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags am__tty_colors = \ red=; grn=; lgn=; blu=; std= DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = everything inhibit poa INCLUDES = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/src/orb \ -I$(top_builddir)/include \ -DORBIT2_INTERNAL_API \ $(WARN_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_CFLAGS) TESTS = timeout.sh $(check_PROGRAMS) LDADD = $(top_builddir)/src/orb/libORBit-2.la $(ORBIT_LIBS) test_corbaloc_SOURCES = test-corbaloc.c test_performance_SOURCES = \ test-performance.c \ test1.h \ test1-skels.c \ test1-common.c test_giop_SOURCES = \ test-giop.c \ test-giop-frag.h TEST_ANY_IDLOUT = test-any.h test-any-common.c test-any-stubs.c test-any-skels.c test_any_client_SOURCES = test-any-client.c $(TEST_ANY_IDLOUT) test_any_server_SOURCES = test-any-server.c $(TEST_ANY_IDLOUT) ECHO_IDLOUT = echo.h echo-common.c echo-stubs.c echo-skels.c echo_client_SOURCES = echo-client.c $(ECHO_IDLOUT) echo_client_t_SOURCES = echo-client-t.c $(ECHO_IDLOUT) echo_server_SOURCES = echo-server.c echo-srv.c $(ECHO_IDLOUT) echo-share.h$ EMPTY_IDLOUT = empty.h empty-common.c empty-stubs.c empty-skels.c empty_client_SOURCES = empty-client.c $(EMPTY_IDLOUT) empty_server_SOURCES = empty-server.c $(EMPTY_IDLOUT) TIMEOUT_IDLOUT = timeout.h timeout-common.c timeout-stubs.c timeout-skels.c timeout_client_SOURCES = timeout-client.c $(TIMEOUT_IDLOUT) timeout_server_SOURCES = timeout-server.c $(TIMEOUT_IDLOUT) IDLOUT = test1-stubs.c test1-skels.c test1-common.c test1.h test1_SOURCES = test1.c $(IDLOUT) test_mem_SOURCES = test-mem.c $(IDLOUT) ior_decode_2_SOURCES = ior-decode.c typelib_dump_SOURCES = typelib-dump.c DYNANY_IDLOUT = dynany.h dynany-common.c dynany-skels.c dynany-stubs.c test_dynany_SOURCES = $(DYNANY_IDLOUT) test-dynany.c test_dynany_LDFLAGS = $(LIBM) IDL_FLAGS = --showcpperrors IDL_FILES = echo.idl empty.idl test-any.idl test1.idl dynany.idl timeout.idl @MAINTAINER_MODE_TRUE@IDL_DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) @MAINTAINER_MODE_TRUE@IDL_DEP_FILES = $(IDL_FILES:%.idl=.deps/%.idl.P) BUILT_SOURCES = \ $(EMPTY_IDLOUT) \ $(ECHO_IDLOUT) \ $(IDLOUT) \ $(TEST_ANY_IDLOUT) \ $(DYNANY_IDLOUT) \ $(TIMEOUT_IDLOUT) CLEANFILES = $(BUILT_SOURCES) timeout-server.iorfile EXTRA_DIST = $(IDL_FILES) timeout_impl.c timeout.sh all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.shared $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu test/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list clean-checkPROGRAMS: @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list echo-client$(EXEEXT): $(echo_client_OBJECTS) $(echo_client_DEPENDENCIES) @rm -f echo-client$(EXEEXT) $(LINK) $(echo_client_OBJECTS) $(echo_client_LDADD) $(LIBS) echo-client-t$(EXEEXT): $(echo_client_t_OBJECTS) $(echo_client_t_DEPENDENCIES) @rm -f echo-client-t$(EXEEXT) $(LINK) $(echo_client_t_OBJECTS) $(echo_client_t_LDADD) $(LIBS) echo-server$(EXEEXT): $(echo_server_OBJECTS) $(echo_server_DEPENDENCIES) @rm -f echo-server$(EXEEXT) $(LINK) $(echo_server_OBJECTS) $(echo_server_LDADD) $(LIBS) empty-client$(EXEEXT): $(empty_client_OBJECTS) $(empty_client_DEPENDENCIES) @rm -f empty-client$(EXEEXT) $(LINK) $(empty_client_OBJECTS) $(empty_client_LDADD) $(LIBS) empty-server$(EXEEXT): $(empty_server_OBJECTS) $(empty_server_DEPENDENCIES) @rm -f empty-server$(EXEEXT) $(LINK) $(empty_server_OBJECTS) $(empty_server_LDADD) $(LIBS) ior-decode-2$(EXEEXT): $(ior_decode_2_OBJECTS) $(ior_decode_2_DEPENDENCIES) @rm -f ior-decode-2$(EXEEXT) $(LINK) $(ior_decode_2_OBJECTS) $(ior_decode_2_LDADD) $(LIBS) test-any-client$(EXEEXT): $(test_any_client_OBJECTS) $(test_any_client_DEPENDENCIES) @rm -f test-any-client$(EXEEXT) $(LINK) $(test_any_client_OBJECTS) $(test_any_client_LDADD) $(LIBS) test-any-server$(EXEEXT): $(test_any_server_OBJECTS) $(test_any_server_DEPENDENCIES) @rm -f test-any-server$(EXEEXT) $(LINK) $(test_any_server_OBJECTS) $(test_any_server_LDADD) $(LIBS) test-corbaloc$(EXEEXT): $(test_corbaloc_OBJECTS) $(test_corbaloc_DEPENDENCIES) @rm -f test-corbaloc$(EXEEXT) $(LINK) $(test_corbaloc_OBJECTS) $(test_corbaloc_LDADD) $(LIBS) test-dynany$(EXEEXT): $(test_dynany_OBJECTS) $(test_dynany_DEPENDENCIES) @rm -f test-dynany$(EXEEXT) $(test_dynany_LINK) $(test_dynany_OBJECTS) $(test_dynany_LDADD) $(LIBS) test-giop$(EXEEXT): $(test_giop_OBJECTS) $(test_giop_DEPENDENCIES) @rm -f test-giop$(EXEEXT) $(LINK) $(test_giop_OBJECTS) $(test_giop_LDADD) $(LIBS) test-mem$(EXEEXT): $(test_mem_OBJECTS) $(test_mem_DEPENDENCIES) @rm -f test-mem$(EXEEXT) $(LINK) $(test_mem_OBJECTS) $(test_mem_LDADD) $(LIBS) test-performance$(EXEEXT): $(test_performance_OBJECTS) $(test_performance_DEPENDENCIES) @rm -f test-performance$(EXEEXT) $(LINK) $(test_performance_OBJECTS) $(test_performance_LDADD) $(LIBS) test1$(EXEEXT): $(test1_OBJECTS) $(test1_DEPENDENCIES) @rm -f test1$(EXEEXT) $(LINK) $(test1_OBJECTS) $(test1_LDADD) $(LIBS) timeout-client$(EXEEXT): $(timeout_client_OBJECTS) $(timeout_client_DEPENDENCIES) @rm -f timeout-client$(EXEEXT) $(LINK) $(timeout_client_OBJECTS) $(timeout_client_LDADD) $(LIBS) timeout-server$(EXEEXT): $(timeout_server_OBJECTS) $(timeout_server_DEPENDENCIES) @rm -f timeout-server$(EXEEXT) $(LINK) $(timeout_server_OBJECTS) $(timeout_server_LDADD) $(LIBS) typelib-dump$(EXEEXT): $(typelib_dump_OBJECTS) $(typelib_dump_DEPENDENCIES) @rm -f typelib-dump$(EXEEXT) $(LINK) $(typelib_dump_OBJECTS) $(typelib_dump_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dynany-common.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dynany-skels.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dynany-stubs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/echo-client-t.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/echo-client.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/echo-common.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/echo-server.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/echo-skels.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/echo-srv.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/echo-stubs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/empty-client.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/empty-common.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/empty-server.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/empty-skels.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/empty-stubs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ior-decode.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-any-client.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-any-common.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-any-server.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-any-skels.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-any-stubs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-corbaloc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dynany.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-giop.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-mem.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-performance.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test1-common.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test1-skels.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test1-stubs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test1.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timeout-client.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timeout-common.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timeout-server.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timeout-skels.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timeout-stubs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/typelib-dump.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags check-TESTS: $(TESTS) @failed=0; all=0; xfail=0; xpass=0; skip=0; \ srcdir=$(srcdir); export srcdir; \ list=' $(TESTS) '; \ $(am__tty_colors); \ if test -n "$$list"; then \ for tst in $$list; do \ if test -f ./$$tst; then dir=./; \ elif test -f $$tst; then dir=; \ else dir="$(srcdir)/"; fi; \ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xpass=`expr $$xpass + 1`; \ failed=`expr $$failed + 1`; \ col=$$red; res=XPASS; \ ;; \ *) \ col=$$grn; res=PASS; \ ;; \ esac; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xfail=`expr $$xfail + 1`; \ col=$$lgn; res=XFAIL; \ ;; \ *) \ failed=`expr $$failed + 1`; \ col=$$red; res=FAIL; \ ;; \ esac; \ else \ skip=`expr $$skip + 1`; \ col=$$blu; res=SKIP; \ fi; \ echo "$${col}$$res$${std}: $$tst"; \ done; \ if test "$$all" -eq 1; then \ tests="test"; \ All=""; \ else \ tests="tests"; \ All="All "; \ fi; \ if test "$$failed" -eq 0; then \ if test "$$xfail" -eq 0; then \ banner="$$All$$all $$tests passed"; \ else \ if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ fi; \ else \ if test "$$xpass" -eq 0; then \ banner="$$failed of $$all $$tests failed"; \ else \ if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ fi; \ fi; \ dashes="$$banner"; \ skipped=""; \ if test "$$skip" -ne 0; then \ if test "$$skip" -eq 1; then \ skipped="($$skip test was not run)"; \ else \ skipped="($$skip tests were not run)"; \ fi; \ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$skipped"; \ fi; \ report=""; \ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ report="Please report to $(PACKAGE_BUGREPORT)"; \ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$report"; \ fi; \ dashes=`echo "$$dashes" | sed s/./=/g`; \ if test "$$failed" -eq 0; then \ echo "$$grn$$dashes"; \ else \ echo "$$red$$dashes"; \ fi; \ echo "$$banner"; \ test -z "$$skipped" || echo "$$skipped"; \ test -z "$$report" || echo "$$report"; \ echo "$$dashes$$std"; \ test "$$failed" -eq 0; \ else :; fi distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook check-am: all-am $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-recursive all-am: Makefile $(PROGRAMS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-recursive clean-am: clean-binPROGRAMS clean-checkPROGRAMS clean-generic \ clean-libtool clean-noinstPROGRAMS mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-local distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all check \ check-am ctags-recursive install install-am install-strip \ tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-TESTS check-am clean clean-binPROGRAMS \ clean-checkPROGRAMS clean-generic clean-libtool \ clean-noinstPROGRAMS ctags ctags-recursive dist-hook distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-local distclean-tags distdir dvi dvi-am html html-am \ info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-binPROGRAMS $(srcdir)/test-any-client.c $(srcdir)/test-any-server.c: test-any.h $(srcdir)/echo-client-t.c $(srcdir)/echo-client.c $(srcdir)/echo-server.c $(srcdir)/echo-srv.c: echo.h $(srcdir)/empty-client.c $(srcdir)/empty-server.c: empty.h $(srcdir)/timeout-client.c $(srcdir)/timeout-server.c: timeout.h $(srcdir)/test1.c: test1.h %-stubs.c %-skels.c %-common.c %-imodule.c %-skelimpl.c: %.h true %.h: $(IDL_DIR)%.idl $(IDL_COMPILER) -(rm -f $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c || true) > /dev/null $(IDL_COMPILER) $(IDL_FLAGS) --deps $(*D)/.deps/$(*F).idl.P $< for I in $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c; do \ if test -f $$I; then \ sed -e 's,OObject,Object,g' -e 's,TTypeCode,TypeCode,g' $$I > $$I.out; \ mv $$I.out $$I ; \ fi; \ done @MAINTAINER_MODE_TRUE@-include $(IDL_DEP_FILES) distclean-local: -rm -rf .deps dist-hook: cd $(distdir); rm -f $(BUILT_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/test/inhibit/0000755000175000001440000000000011450334031012325 500000000000000ORBit2-2.14.19/test/inhibit/Makefile.am0000644000175000001440000000133411334247617014320 00000000000000noinst_PROGRAMS= \ test-inhibit INCLUDES = \ -I$(top_srcdir)/include \ -I$(top_builddir)/include \ $(WARN_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_CFLAGS) LDADD = $(top_builddir)/src/orb/libORBit-2.la $(ORBIT_LIBS) FOO_IDLOUT=foo.h foo-stubs.c foo-skels.c foo-common.c BAA_IDLOUT=baa.h baa-stubs.c baa-skels.c baa-common.c test_inhibit_SOURCES=$(FOO_IDLOUT) $(BAA_IDLOUT) test-inhibit.c IDL_FLAGS=--showcpperrors -I$(srcdir) IDL_FILES=foo.idl baa.idl include $(top_srcdir)/Makefile.shared TESTS=test-inhibit BUILT_SOURCES = $(BAA_IDLOUT) $(FOO_IDLOUT) CLEANFILES = $(BUILT_SOURCES) EXTRA_DIST = $(IDL_FILES) dist-hook: cd $(distdir); rm -f $(BUILT_SOURCES) ORBit2-2.14.19/test/inhibit/Makefile.in0000644000175000001440000005121211450333734014324 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = test-inhibit$(EXEEXT) DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/Makefile.shared TESTS = test-inhibit$(EXEEXT) subdir = test/inhibit ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am__objects_1 = foo-stubs.$(OBJEXT) foo-skels.$(OBJEXT) \ foo-common.$(OBJEXT) am__objects_2 = baa-stubs.$(OBJEXT) baa-skels.$(OBJEXT) \ baa-common.$(OBJEXT) am_test_inhibit_OBJECTS = $(am__objects_1) $(am__objects_2) \ test-inhibit.$(OBJEXT) test_inhibit_OBJECTS = $(am_test_inhibit_OBJECTS) test_inhibit_LDADD = $(LDADD) am__DEPENDENCIES_1 = test_inhibit_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(test_inhibit_SOURCES) DIST_SOURCES = $(test_inhibit_SOURCES) ETAGS = etags CTAGS = ctags am__tty_colors = \ red=; grn=; lgn=; blu=; std= DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = \ -I$(top_srcdir)/include \ -I$(top_builddir)/include \ $(WARN_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_CFLAGS) LDADD = $(top_builddir)/src/orb/libORBit-2.la $(ORBIT_LIBS) FOO_IDLOUT = foo.h foo-stubs.c foo-skels.c foo-common.c BAA_IDLOUT = baa.h baa-stubs.c baa-skels.c baa-common.c test_inhibit_SOURCES = $(FOO_IDLOUT) $(BAA_IDLOUT) test-inhibit.c IDL_FLAGS = --showcpperrors -I$(srcdir) IDL_FILES = foo.idl baa.idl @MAINTAINER_MODE_TRUE@IDL_DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) @MAINTAINER_MODE_TRUE@IDL_DEP_FILES = $(IDL_FILES:%.idl=.deps/%.idl.P) BUILT_SOURCES = $(BAA_IDLOUT) $(FOO_IDLOUT) CLEANFILES = $(BUILT_SOURCES) EXTRA_DIST = $(IDL_FILES) all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.shared $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/inhibit/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu test/inhibit/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list test-inhibit$(EXEEXT): $(test_inhibit_OBJECTS) $(test_inhibit_DEPENDENCIES) @rm -f test-inhibit$(EXEEXT) $(LINK) $(test_inhibit_OBJECTS) $(test_inhibit_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/baa-common.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/baa-skels.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/baa-stubs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/foo-common.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/foo-skels.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/foo-stubs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-inhibit.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags check-TESTS: $(TESTS) @failed=0; all=0; xfail=0; xpass=0; skip=0; \ srcdir=$(srcdir); export srcdir; \ list=' $(TESTS) '; \ $(am__tty_colors); \ if test -n "$$list"; then \ for tst in $$list; do \ if test -f ./$$tst; then dir=./; \ elif test -f $$tst; then dir=; \ else dir="$(srcdir)/"; fi; \ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xpass=`expr $$xpass + 1`; \ failed=`expr $$failed + 1`; \ col=$$red; res=XPASS; \ ;; \ *) \ col=$$grn; res=PASS; \ ;; \ esac; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xfail=`expr $$xfail + 1`; \ col=$$lgn; res=XFAIL; \ ;; \ *) \ failed=`expr $$failed + 1`; \ col=$$red; res=FAIL; \ ;; \ esac; \ else \ skip=`expr $$skip + 1`; \ col=$$blu; res=SKIP; \ fi; \ echo "$${col}$$res$${std}: $$tst"; \ done; \ if test "$$all" -eq 1; then \ tests="test"; \ All=""; \ else \ tests="tests"; \ All="All "; \ fi; \ if test "$$failed" -eq 0; then \ if test "$$xfail" -eq 0; then \ banner="$$All$$all $$tests passed"; \ else \ if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ fi; \ else \ if test "$$xpass" -eq 0; then \ banner="$$failed of $$all $$tests failed"; \ else \ if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ fi; \ fi; \ dashes="$$banner"; \ skipped=""; \ if test "$$skip" -ne 0; then \ if test "$$skip" -eq 1; then \ skipped="($$skip test was not run)"; \ else \ skipped="($$skip tests were not run)"; \ fi; \ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$skipped"; \ fi; \ report=""; \ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ report="Please report to $(PACKAGE_BUGREPORT)"; \ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$report"; \ fi; \ dashes=`echo "$$dashes" | sed s/./=/g`; \ if test "$$failed" -eq 0; then \ echo "$$grn$$dashes"; \ else \ echo "$$red$$dashes"; \ fi; \ echo "$$banner"; \ test -z "$$skipped" || echo "$$skipped"; \ test -z "$$report" || echo "$$report"; \ echo "$$dashes$$std"; \ test "$$failed" -eq 0; \ else :; fi distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook check-am: all-am $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(PROGRAMS) installdirs: install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-local distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: all check check-am install install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ clean-generic clean-libtool clean-noinstPROGRAMS ctags \ dist-hook distclean distclean-compile distclean-generic \ distclean-libtool distclean-local distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am %-stubs.c %-skels.c %-common.c %-imodule.c %-skelimpl.c: %.h true %.h: $(IDL_DIR)%.idl $(IDL_COMPILER) -(rm -f $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c || true) > /dev/null $(IDL_COMPILER) $(IDL_FLAGS) --deps $(*D)/.deps/$(*F).idl.P $< for I in $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c; do \ if test -f $$I; then \ sed -e 's,OObject,Object,g' -e 's,TTypeCode,TypeCode,g' $$I > $$I.out; \ mv $$I.out $$I ; \ fi; \ done @MAINTAINER_MODE_TRUE@-include $(IDL_DEP_FILES) distclean-local: -rm -rf .deps dist-hook: cd $(distdir); rm -f $(BUILT_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/test/inhibit/foo.idl0000644000175000001440000000007311334247617013540 00000000000000module Foo { interface Parent { void foo (); }; }; ORBit2-2.14.19/test/inhibit/test-inhibit.c0000644000175000001440000000022111334247617015025 00000000000000#include #include "foo.h" #include "baa.h" int main (int argc, char **argv) { printf ("Inhibit build tests passed\n"); return 0; } ORBit2-2.14.19/test/inhibit/baa.idl0000644000175000001440000000044711334247617013505 00000000000000 #if !defined(__BAA_COMPILATION) && defined(__ORBIT_IDL__) %{ #pragma include_defs foo.h %} #pragma inhibit push #endif #include #if !defined(__BAA_COMPILATION) && defined(__ORBIT_IDL__) #pragma inhibit pop #endif module Foo { interface Child : Parent { void bar (); }; }; ORBit2-2.14.19/test/echo-server.c0000644000175000001440000000336211334247617013227 00000000000000/* * CORBA echo tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Elliot Lee */ #include #include #include #include #include "echo.h" #include "echo-share.h" /*public*/ gboolean echo_opt_quiet = 0; int main (int argc, char *argv[]) { FILE *iorfile; CORBA_Environment ev; CORBA_ORB orb; Echo echo_client = CORBA_OBJECT_NIL; char *retval; signal(SIGINT, exit); signal(SIGTERM, exit); CORBA_exception_init(&ev); orb = CORBA_ORB_init(&argc, argv, "orbit-local-orb", &ev); g_assert(ev._major == CORBA_NO_EXCEPTION); echo_srv_start_poa(orb, &ev); g_assert(ev._major == CORBA_NO_EXCEPTION); echo_client = echo_srv_start_object(&ev); retval = CORBA_ORB_object_to_string(orb, echo_client, &ev); g_assert(ev._major == CORBA_NO_EXCEPTION); iorfile = fopen ("echo-server.iorfile", "w"); fprintf(iorfile, "%s\n", retval); fclose(iorfile); fprintf(stdout, "%s\n", retval); CORBA_free(retval); CORBA_ORB_run (orb, &ev); echo_srv_finish_object(&ev); echo_srv_finish_poa(&ev); CORBA_exception_free(&ev); return 0; } ORBit2-2.14.19/test/typelib-dump.c0000644000175000001440000000470311334247617013420 00000000000000#include #include #include #include #include #include #include "../src/orb/orb-core/orb-core-private.h" static void dump_tc (CORBA_TypeCode tc) { CORBA_TypeCode kind = TC_CORBA_TCKind; printf ("Type %12s: '%s'\n", kind->subnames [tc->kind], tc->repo_id); } static void dump_iface (ORBit_IInterface *iface) { int i; printf ("Interface '%s', %u methods\n", iface->tc->repo_id, iface->methods._length); for (i = 0; i < iface->base_interfaces._length; i++) { int j; printf (" "); for (j = 0; j < i + 1; j++) printf (" "); printf ("%s\n", iface->base_interfaces._buffer [i]); } printf ("\n"); if (iface->methods._length > 0) { for (i = 0; i < iface->methods._length; i++) { ORBit_IMethod *m = &iface->methods._buffer [i]; printf (" %s (%u args, %s) %s%s\n", m->name, m->arguments._length, m->contexts._length ? "has context," : "", m->ret ? "returns " : "", m->ret ? m->ret->repo_id : ""); } } else printf ("No methods\n"); printf ("\n\n"); } static void list_libs (void) { int i; char **paths; printf ("Installed type libraries:\n\n"); paths = ORBit_get_typelib_paths (); for (i = 0; paths && paths [i]; i++) { DIR *dh; struct dirent *de; dh = opendir (paths [i]); if (!dh) continue; printf ("%s:\n\n", paths [i]); for (de = readdir (dh); de; de = readdir (dh)) { char *p, *str = g_strdup (de->d_name); if ((p = strstr (str, "_module.la"))) { *p = '\0'; printf ("\t%s\n", str); } g_free (str); } closedir (dh); } g_strfreev (paths); } int main (int argc, char *argv []) { int i; const char *name; CORBA_sequence_CORBA_TypeCode *tcs; CORBA_sequence_ORBit_IInterface *ifaces; if (argc < 2) { list_libs (); return 0; } name = argv [argc - 1]; if (!ORBit_small_load_typelib (name)) g_error ("Can't find typelib of name '%s' in path", name); tcs = ORBit_small_get_types (name); if (!tcs || tcs->_length == 0) printf ("No types\n"); else { printf ("%u types:\n", tcs->_length); for (i = 0; i < tcs->_length; i++) dump_tc (tcs->_buffer [i]); } ifaces = ORBit_small_get_iinterfaces (name); if (!ifaces || ifaces->_length == 0) printf ("No IInterfaces\n"); else { printf ("%u interfaces:\n", ifaces->_length); for (i = 0; i < ifaces->_length; i++) dump_iface (&ifaces->_buffer [i]); } return 0; } ORBit2-2.14.19/test/timeout.sh0000755000175000001440000000075711334247617012673 00000000000000#!/bin/sh # This will test GIOP timeouts echo "Running timeout server..." ./timeout-server & server=$! sleep 1 echo "Running timeout client..." ./timeout-client retv=$? case "`uname`" in Linux) killall lt-timeout-server ;; MINGW*) echo Please terminate timeout-server.exe in Task Manager. wait $server ;; *) echo Please kill timeout-server and/or lt-timeout-server from another window, echo then type something here. wait $server ;; esac exit $retv ORBit2-2.14.19/test/echo.idl0000644000175000001440000000023411334247617012244 00000000000000interface Echo { Echo echoString (in string astring, out double anum); void doNothing (); oneway void doOneWay (in string ignore); }; ORBit2-2.14.19/test/test-corbaloc.c0000644000175000001440000001763211334247617013553 00000000000000/* * CORBA corbaloc test * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Elliot Lee */ #include #include #include #include static gboolean IOP_ObjectKey_equal (ORBit_ObjectKey *a, ORBit_ObjectKey *b); gboolean IOP_profile_equal (CORBA_Object obj1, CORBA_Object obj2, gpointer d1, gpointer d2); static gboolean IOP_ObjectKey_equal (ORBit_ObjectKey *a, ORBit_ObjectKey *b) { if (a->_length != b->_length) return FALSE; if (memcmp (a->_buffer, b->_buffer, a->_length)) return FALSE; return TRUE; } CORBA_Object ORBit_corbaloc_to_object (CORBA_ORB orb, const gchar *corbaloc, CORBA_Environment *ev); #define ABORT_IF_EXCEPTION(_ev, _message) \ if ((_ev)->_major != CORBA_NO_EXCEPTION) { \ g_error("%s: %s", _message, CORBA_exception_id (_ev)); \ CORBA_exception_free (_ev); \ abort(); \ } /* this implementation realizes a full comparison of profiles and * differs from the original one found in corba-object.c.*/ static gboolean object_equal (gconstpointer a, gconstpointer b) { GSList *cur1, *cur2; CORBA_Object _obj = (CORBA_Object) a; CORBA_Object other_object = (CORBA_Object) b; g_assert (_obj->object_key && other_object->object_key); if (!IOP_ObjectKey_equal (_obj->object_key, other_object->object_key)) return FALSE; for (cur1 = _obj->profile_list; cur1; cur1 = cur1->next) { gboolean equal_found = FALSE; for (cur2 = other_object->profile_list; cur2; cur2 = cur2->next) { if (IOP_profile_equal (_obj, other_object, cur1->data, cur2->data)) { equal_found = TRUE; } } if (!equal_found) return FALSE; } return TRUE; } /** * */ static void export_object_to_stream (CORBA_ORB orb, CORBA_Object obj, FILE *stream, CORBA_Environment *ev) { CORBA_char *objref = NULL; /* write objref to file */ objref = CORBA_ORB_object_to_string (orb, obj, ev); if ((ev)->_major != CORBA_NO_EXCEPTION) return; /* print ior to terminal */ fprintf (stream, "%s\n", objref); fflush (stream); CORBA_free (objref); } struct ObjrefPair { gchar *corbaloc; gchar *ior; }; static const struct ObjrefPair objref_str[] = { /* OMG corbaloc */ { "corbaloc:iiop:localhost:9999/NameService", "IOR:010000000100000000000000010000000000000028000000010100000a0000006c6f63616c686f7374000f270b0000004e616d65536572766963650000000000" }, { "corbaloc:iiop:1.2@localhost/NameService", "IOR:010000000100000000000000010000000000000028000000010102000a0000006c6f63616c686f737400f90a0b0000004e616d65536572766963650000000000" }, /* OMG multi profile */ { "corbaloc:iiop:gnome.org:8888,iiop:gnome.de:7777/NameService", "IOR:010000000100000000000000020000000000000028000000010100000a000000676e6f6d652e6f726700b8220b0000004e616d6553657276696365000000000000000000280000000101000009000000676e6f6d652e64650000611e0b0000004e616d65536572766963650000000000" }, { "corbaloc::gnome.org:8888,:gnome.de:7777/NameService", "IOR:010000000100000000000000020000000000000028000000010100000a000000676e6f6d652e6f726700b8220b0000004e616d6553657276696365000000000000000000280000000101000009000000676e6f6d652e64650000611e0b0000004e616d65536572766963650000000000" }, { "corbaloc::gnome.org,:gnome.de/NameService", "IOR:010000000100000000000000020000000000000028000000010100000a000000676e6f6d652e6f726700f90a0b0000004e616d6553657276696365000000000000000000280000000101000009000000676e6f6d652e64650000f90a0b0000004e616d65536572766963650000000000" }, /* common corbaloc */ { "iiop:1.2@home.de/objkey", "IOR:0100000001000000000000000100000000000000240000000101020008000000686f6d652e646500f90af90a060000006f626a6b6579727600000000" }, { "iiop:gnome.org:8787/NameService", "IOR:010000000100000000000000010000000000000028000000010100000a000000676e6f6d652e6f72670053220b0000004e616d65536572766963650000000000" }, { "iiop:gnome.org/NameService", "IOR:010000000100000000000000010000000000000028000000010100000a000000676e6f6d652e6f726700f90a0b0000004e616d65536572766963650000000000" }, { "iiop://gnome.org/NameService", "IOR:010000000100000000000000010000000000000028000000010100000a000000676e6f6d652e6f726700f90a0b0000004e616d65536572766963650000000000" }, { "corbaloc:iiops:localhost:8885/NameService", "IOR:01000000010000000000000001000000000000003e000000010101000a0000006c6f63616c686f73740000000b0000004e616d65536572766963650001000000140000000e000000010101007f00000006000000b522" }, /* verify url-decoding */ { "corbaloc:iiops:localhost:8885/%4e%61%6d%65%53%65%72%76%69%63%65", "IOR:01000000010000000000000001000000000000003e000000010101000a0000006c6f63616c686f73740000000b0000004e616d65536572766963650001000000140000000e000000010101007f00000006000000b522" }, { "corbaloc:ssliop:localhost:8885/NameService", "IOR:01000000010000000000000001000000000000003e000000010101000a0000006c6f63616c686f73740000000b0000004e616d65536572766963650001000000140000000e000000010101007f00000006000000b522" }, { "corbaloc:uiop:/tmp/orbit-frehberg-3333:/NameService", "IOR:01000000010000000000000001000000caaedfba3300000001010200190000002f746d702f6f726269742d66726568626572672d33333333006300000b0000004e616d6553657276696365" }, { "corbaloc:uiop:/tmp/orbit-frehberg-3333:,iiop:localhost:88/NameService", "IOR:01000000010000000000000002000000caaedfba3300000001010200190000002f746d702f6f726269742d66726568626572672d33333333006300000b0000004e616d6553657276696365000000000028000000010101650a0000006c6f63616c686f737400b8220b0000004e616d65536572766963650000000000" }, { NULL, NULL } }; int main (int argc, char *argv[]) { glong i = 0; CORBA_Object client = CORBA_OBJECT_NIL; CORBA_Object verify = CORBA_OBJECT_NIL; CORBA_Environment ev; CORBA_ORB orb; g_thread_init (NULL); CORBA_exception_init(&ev); orb = CORBA_ORB_init(&argc, argv, "orbit-local-orb", &ev); g_print ("running... \n"); for (i = 0; objref_str[i].corbaloc; ++i) { gchar *corbaloc = objref_str[i].corbaloc; gchar *ior = objref_str[i].ior; g_print ("verify \"%s\"\n", corbaloc); /* bind to object */ client = CORBA_ORB_string_to_object(orb, corbaloc, &ev); ABORT_IF_EXCEPTION (&ev, "resolving corbloc failed"); g_assert (client!=NULL); if (ior) { verify = CORBA_ORB_string_to_object (orb, ior, &ev); ABORT_IF_EXCEPTION (&ev, "de-stringify object failed"); g_assert (verify!=NULL); if (!object_equal(client, verify)) { export_object_to_stream (orb, client, stderr, &ev); g_error ("verification failed\n"); } CORBA_Object_release (verify, &ev); ABORT_IF_EXCEPTION (&ev, "release failed"); } else { export_object_to_stream (orb, client, stderr, &ev); } /* release initial object reference */ CORBA_Object_release(client, &ev); ABORT_IF_EXCEPTION (&ev, "release failed"); } /* shutdown ORB, shutdown IO channels */ CORBA_ORB_shutdown (orb, FALSE, &ev); ABORT_IF_EXCEPTION(&ev, "ORB shutdown ..."); /* destroy local ORB */ CORBA_ORB_destroy(orb, &ev); ABORT_IF_EXCEPTION (&ev, "destroying local ORB raised exception"); return 0; } ORBit2-2.14.19/test/timeout-client.c0000644000175000001440000001530011334247617013742 00000000000000/* * CORBA GIOP timeout test * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Jules Colding */ #include #include #include #include #include #include "timeout.h" /* * This method will return an ORB which is so initialized * as to set a specific GIOP timeout value. * * orb_name : Name of return ORB or empty string * * timeout : GIOP timeout in milliseconds * * Return value : Initialized ORB or CORBA::ORB::_nil() * */ static CORBA_ORB create_timeout_orb(const char *orb_name, const char *timeout, CORBA_Environment *ev) { CORBA_ORB orb = CORBA_OBJECT_NIL; char timeout_str[128] = { '\0' }; int argc = 0; char **argv = NULL; // sanity checks if (!orb_name) return CORBA_OBJECT_NIL; if (!timeout) return CORBA_OBJECT_NIL; snprintf (timeout_str, sizeof(timeout_str), "--GIOPTimeoutMSEC=%s", timeout); argc = 2; argv = (char**)malloc (sizeof(char*) * argc); if (!argv) return CORBA_OBJECT_NIL; memset ((void*)argv, 0, argc); // dummy argument argv[0] = "timeout-client"; // Set a timeout limit for GIOP operations argv[1] = timeout_str; // initialize the ORB orb = CORBA_ORB_init (&argc, argv, (char*)orb_name, ev); if (ev->_major != CORBA_NO_EXCEPTION) orb = CORBA_OBJECT_NIL; free (argv); return orb; } static CORBA_Object object_ref_from_file(CORBA_ORB orb, gchar *filename, CORBA_Environment *ev) { CORBA_Object obj = CORBA_OBJECT_NIL; CORBA_char *objref = NULL; FILE *file = NULL; struct stat st; size_t c = 0; file = g_fopen(filename, "r"); if (!file) return CORBA_OBJECT_NIL; if (g_stat(filename, &st)) goto out; objref = g_malloc0(st.st_size + 1); if (!objref) goto out; // must work even if sizeof(char) != sizeof(CORBA_char) (should be impossible, I know, but bad things happen...) c = fread((void*)objref, sizeof(CORBA_char), (size_t)(st.st_size/sizeof(CORBA_char)), file); if (c != st.st_size) goto out; obj = (CORBA_Object)CORBA_ORB_string_to_object(orb, objref, ev); out: g_free(objref); fclose(file); return obj; } static Timeout get_timeout_ref(CORBA_ORB orb) { Timeout obj = CORBA_OBJECT_NIL; CORBA_boolean cb = CORBA_FALSE; CORBA_Environment ev[1]; CORBA_exception_init (ev); obj = object_ref_from_file(orb, "timeout-server.iorfile", ev); if (ev->_major != CORBA_NO_EXCEPTION) { g_print ("object_ref_from_file(): %s\n", CORBA_exception_id (ev)); obj = CORBA_OBJECT_NIL; goto out; } cb = CORBA_Object_is_nil((CORBA_Object)obj, ev); if (ev->_major != CORBA_NO_EXCEPTION) { g_print ("create_timeout_orb(): %s\n", CORBA_exception_id (ev)); obj = CORBA_OBJECT_NIL; goto out; } if (cb) { g_print ("Could not get Timeout reference\n"); goto out; } out: CORBA_exception_free (ev); return obj; } int main (int argc, char *argv[]) { Timeout timeout_obj = CORBA_OBJECT_NIL; CORBA_Environment ev; CORBA_ORB orb; int retv = EXIT_FAILURE; g_thread_init (NULL); CORBA_exception_init (&ev); /* create timeout orb */ orb = create_timeout_orb ("orbit-io-thread", "2000", &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_print ("create_timeout_orb(): %s\n", CORBA_exception_id (&ev)); goto out; } /* get ref */ if (argc == 1) timeout_obj = get_timeout_ref(orb); else if (argc == 2) timeout_obj = (Timeout)CORBA_ORB_string_to_object (orb, argv[1], &ev); else { g_print ("ERROR, usage: %s [ior]\n", argv[0]); } if (ev._major != CORBA_NO_EXCEPTION) { g_print ("CORBA_ORB_string_to_object(): %s\n", CORBA_exception_id (&ev)); goto out; } /* * test GIOP timeout */ g_print ("Provoking timeout exception... "); Timeout_ping (timeout_obj, 3, &ev); if (ev._major == CORBA_NO_EXCEPTION) { g_print ("ERROR: Timeout exception expected\n"); goto out; } else { if (strcmp (CORBA_exception_id (&ev), ex_CORBA_TIMEOUT)) { g_print ("Timeout_ping(): %s\n", CORBA_exception_id (&ev)); goto out; } } CORBA_exception_free (&ev); CORBA_exception_init (&ev); g_print ("OK\n"); g_print ("Testing reacquired connection with no server delay... "); Timeout_ping (timeout_obj, 0, &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_print ("Timeout_ping(): %s\n", CORBA_exception_id (&ev)); goto out; } g_print ("OK\n"); /* test no timeout but with a small delay */ g_print ("Testing with small server delay... "); Timeout_ping (timeout_obj, 1, &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_print ("Timeout_ping(): %s\n", CORBA_exception_id (&ev)); goto out; } g_print ("OK\n"); g_print ("Provoking timeout exception... "); Timeout_ping (timeout_obj, 3, &ev); if (ev._major == CORBA_NO_EXCEPTION) { g_print ("ERROR: Timeout exception expected\n"); goto out; } else { if (strcmp (CORBA_exception_id (&ev), ex_CORBA_TIMEOUT)) { g_print ("Timeout_ping(): %s\n", CORBA_exception_id (&ev)); goto out; } } CORBA_exception_free (&ev); CORBA_exception_init (&ev); g_print ("OK\n"); g_print ("Testing reacquired connection with no server delay... "); Timeout_ping (timeout_obj, 0, &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_print ("Timeout_ping(): %s\n", CORBA_exception_id (&ev)); goto out; } g_print ("OK\n"); retv = EXIT_SUCCESS; out: g_print ("Shutting down GIOP timeout tests... "); /* release object reference */ CORBA_Object_release(timeout_obj, &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_print ("CORBA_Object_release(): %s\n", CORBA_exception_id (&ev)); retv = EXIT_FAILURE; goto fast_out; } /* shutdown ORB, shutdown IO channels */ CORBA_ORB_shutdown (orb, FALSE, &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_print ("CORBA_ORB_shutdown(): %s\n", CORBA_exception_id (&ev)); retv = EXIT_FAILURE; goto fast_out; } /* destroy local ORB */ CORBA_ORB_destroy(orb, &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_print ("CORBA_ORB_destroy(): %s\n", CORBA_exception_id (&ev)); retv = EXIT_FAILURE; goto fast_out; } g_print ("OK\n"); fast_out: CORBA_exception_free (&ev); if (retv == EXIT_FAILURE) g_print ("Some GIOP timeout tests failed\n"); else g_print ("All GIOP timeout tests passed OK\n"); return retv; } ORBit2-2.14.19/test/test-any-server.c0000644000175000001440000000423111334247617014051 00000000000000#include #include #include #include "test-any.h" static TestAny client; static CORBA_any * do_print(PortableServer_Servant servant, const CORBA_any *any, CORBA_Environment *ev); static PortableServer_ServantBase__epv base_epv = { NULL, NULL, NULL }; static POA_TestAny__epv TestAny_epv = { NULL, do_print }; static POA_TestAny__vepv poa_TestAny_vepv = { &base_epv, &TestAny_epv }; static POA_TestAny poa_TestAny_servant = { NULL, &poa_TestAny_vepv }; int main (int argc, char *argv[]) { FILE *iorfile; PortableServer_ObjectId *objid; PortableServer_POA poa; CORBA_Environment ev; char *retval; CORBA_ORB orb; CORBA_exception_init(&ev); orb = CORBA_ORB_init(&argc, argv, "orbit-local-orb", &ev); POA_TestAny__init(&poa_TestAny_servant, &ev); poa = (PortableServer_POA) CORBA_ORB_resolve_initial_references(orb, "RootPOA", &ev); PortableServer_POAManager_activate( PortableServer_POA__get_the_POAManager(poa, &ev), &ev); objid = PortableServer_POA_activate_object(poa, &poa_TestAny_servant, &ev); client = PortableServer_POA_servant_to_reference(poa, &poa_TestAny_servant, &ev); if (!client) { printf("Cannot get objref\n"); return 1; } retval = CORBA_ORB_object_to_string(orb, client, &ev); iorfile = fopen ("test-any-server.iorfile", "w"); fprintf(iorfile, "%s\n", retval); fclose(iorfile); g_print("%s\n", retval); fflush(stdout); CORBA_free(retval); CORBA_ORB_run(orb, &ev); return 0; } static CORBA_any* do_print(PortableServer_Servant servant, const CORBA_any *any, CORBA_Environment *ev) { TestAnyStruct* any_struct = any->_value; CORBA_any *retval; g_message("[server] %d: %s", any_struct->long_value, any_struct->string_value); retval = CORBA_any_alloc(); #if 1 retval->_type = (CORBA_TypeCode)TC_TestAnyStruct; retval->_value = TestAnyStruct__alloc(); ((TestAnyStruct *)retval->_value)->long_value = 84; ((TestAnyStruct *)retval->_value)->string_value = CORBA_string_dup("Hi there"); #else retval->_type = (CORBA_TypeCode)TC_null; retval->_value = NULL; #endif CORBA_any_set_release(retval, CORBA_TRUE); return retval; } ORBit2-2.14.19/test/test-any.idl0000644000175000001440000000017511334247617013076 00000000000000struct TestAnyStruct { string<20> string_value; long long_value; }; interface TestAny { any print( in any what ); }; ORBit2-2.14.19/test/poa/0000755000175000001440000000000011450334031011456 500000000000000ORBit2-2.14.19/test/poa/poatest-basic-shell.c0000644000175000001440000000506011334247617015424 00000000000000/* * CORBA POA tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Mark McLoughlin */ #include #include #include #include "poatest-basic-shell.h" PortableServer_POA child_poa = CORBA_OBJECT_NIL; CORBA_ORB orb = CORBA_OBJECT_NIL; int main (int argc, char **argv) { CORBA_Environment ev; PortableServer_POA rootpoa; PortableServer_POAManager poa_mgr; poatest poatest_obj; g_thread_init (NULL); CORBA_exception_init (&ev); orb = CORBA_ORB_init (&argc, argv, "", &ev); /* * Get the Root POA */ rootpoa = (PortableServer_POA) CORBA_ORB_resolve_initial_references (orb, "RootPOA", &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("resolve_initial_references : ", &ev); return 1; } /* * Get the Root POA's POAManager */ poa_mgr = PortableServer_POA__get_the_POAManager (rootpoa, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("the_POAManager : ", &ev); return 1; } /* * Run the test */ poatest_obj = poatest_run (rootpoa, poa_mgr); if (poatest_obj == CORBA_OBJECT_NIL) return 1; /* * Call 'test' method and print out execption. */ poatest_test (poatest_obj, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("test : ", &ev); return 1; } CORBA_Object_release ((CORBA_Object) poatest_obj, &ev); CORBA_Object_release ((CORBA_Object) poa_mgr, &ev); CORBA_Object_release ((CORBA_Object) rootpoa, &ev); if (child_poa != CORBA_OBJECT_NIL) { PortableServer_POA_destroy ( child_poa, CORBA_FALSE, CORBA_FALSE, &ev); CORBA_Object_release ((CORBA_Object) child_poa, &ev); } CORBA_ORB_shutdown (orb, CORBA_TRUE, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("ORB_shutdown : ", &ev); return 1; } CORBA_ORB_destroy (orb, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("ORB_destroy : ", &ev); return 1; } CORBA_Object_release ((CORBA_Object) orb, &ev); return 0; } ORBit2-2.14.19/test/poa/poatest-basic05.c0000644000175000001440000001205011334247617014461 00000000000000/* * CORBA POA tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Mark McLoughlin */ /* * Test 5 : poatest-basic05.c * o POA with USER_ID Id Assignment and PERSISTENT lifespan policy. * o object created, activated and reference generated, then * deactivated and POA destroyed. * o POA recreated and object re-activated. Reference should * still be valid. */ #include #include #include #include "poatest-basic-shell.h" static void poatest_test_impl (PortableServer_Servant servant, CORBA_Environment *ev) { } static PortableServer_ServantBase__epv base_epv = { NULL, /* _private */ NULL, /* finalize */ NULL /* default_POA */ }; static POA_poatest__epv poatest_epv = { NULL, /* _private */ poatest_test_impl /* test */ }; static POA_poatest__vepv poatest_vepv = { &base_epv, /* _base_epv */ &poatest_epv /* poatest_epv */ }; static POA_poatest poatest_servant = { NULL, /* _private */ &poatest_vepv /* vepv */ }; poatest poatest_run (PortableServer_POA rootpoa, PortableServer_POAManager rootpoa_mgr) { CORBA_Environment ev; poatest poatest_obj; CORBA_PolicyList *poa_policies; PortableServer_ObjectId *objid; CORBA_exception_init (&ev); /* * Create child POA with USER_ID Id Assignment and PERSISTENT lifespan policy. */ poa_policies = CORBA_PolicyList__alloc (); poa_policies->_maximum = 2; poa_policies->_length = 2; poa_policies->_buffer = CORBA_PolicyList_allocbuf (2); CORBA_sequence_set_release (poa_policies, CORBA_TRUE); poa_policies->_buffer[0] = (CORBA_Policy) PortableServer_POA_create_id_assignment_policy ( rootpoa, PortableServer_USER_ID, &ev); poa_policies->_buffer[1] = (CORBA_Policy) PortableServer_POA_create_lifespan_policy ( rootpoa, PortableServer_PERSISTENT, &ev); child_poa = PortableServer_POA_create_POA (rootpoa, "User Id and Persistent POA", rootpoa_mgr, poa_policies, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("create_POA : ", &ev); return CORBA_OBJECT_NIL; } /* * Initialise the servant. */ POA_poatest__init (&poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POA_poatest__init : ", &ev); return CORBA_OBJECT_NIL; } /* * Set up the ObjectId. */ objid = PortableServer_string_to_ObjectId ("Test Id", &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("string_to_ObjectId : ", &ev); return CORBA_OBJECT_NIL; } /* * Activate object with user assigned Id. */ PortableServer_POA_activate_object_with_id (child_poa, objid, &poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("activate_object_with_id : ", &ev); return CORBA_OBJECT_NIL; } /* * Get reference for object. */ poatest_obj = PortableServer_POA_servant_to_reference (child_poa, &poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("servant_to_reference : ", &ev); return CORBA_OBJECT_NIL; } /* * Deactivate object and destroy POA */ PortableServer_POA_deactivate_object(child_poa, objid, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("deactivate_object : ", &ev); return CORBA_OBJECT_NIL; } PortableServer_POA_destroy (child_poa, CORBA_FALSE, CORBA_FALSE, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POA_destroy : ", &ev); return CORBA_OBJECT_NIL; } /* * Re-create POA and re-activate the object. */ child_poa = PortableServer_POA_create_POA (rootpoa, "User Id and Persistent POA", rootpoa_mgr, poa_policies, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("create_POA : ", &ev); return CORBA_OBJECT_NIL; } PortableServer_POA_activate_object_with_id (child_poa, objid, &poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("activate_object_with_id : ", &ev); return CORBA_OBJECT_NIL; } /* * Reference should still be valid. */ CORBA_free (objid); CORBA_Policy_destroy (poa_policies->_buffer[0], &ev); CORBA_Policy_destroy (poa_policies->_buffer[1], &ev); CORBA_free (poa_policies); /* * Activate the POAManager. POA will now accept requests */ PortableServer_POAManager_activate( rootpoa_mgr, &ev ); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POAManager_activate : ", &ev); return CORBA_OBJECT_NIL; } return poatest_obj; } ORBit2-2.14.19/test/poa/poatest-exception.h0000644000175000001440000000407611334247617015247 00000000000000/* * CORBA POA tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Mark McLoughlin */ #ifndef __POATEST_EXCEPTION_H__ #define __POATEST_EXCEPTION_H__ #include #include /* * knackered from bonobo-exception.h */ #define POATEST_EX(ev) ((ev != NULL) && (ev)->_major != CORBA_NO_EXCEPTION) #define POATEST_PRINT_EX(str, ev) \ G_STMT_START { \ switch ((ev)->_major) { \ case CORBA_NO_EXCEPTION : \ fprintf (stderr, str "No exception.\n"); \ break; \ case CORBA_USER_EXCEPTION : \ fprintf (stderr, str "User Exception : %s\n", \ CORBA_exception_id ((ev))); \ break; \ case CORBA_SYSTEM_EXCEPTION : \ fprintf (stderr, str "System Exception : %s\n", \ CORBA_exception_id ((ev))); \ break; \ default : \ break; \ } \ } G_STMT_END; #endif /* __POATEST_EXCEPTION_H__ */ ORBit2-2.14.19/test/poa/Makefile.am0000644000175000001440000000453411334247617013456 00000000000000INCLUDES = \ -I$(top_srcdir)/include \ -I$(top_builddir)/include \ $(WARN_CFLAGS) \ $(ORBIT_CFLAGS) POA_TESTS_SRCS = poatest-basic01.c \ poatest-basic02.c \ poatest-basic03.c \ poatest-basic04.c \ poatest-basic06.c \ poatest-basic07.c \ poatest-basic08.c \ poatest-basic09.c \ poatest-basic10.c \ poatest-basic11.c # poatest-basic05.c TESTS = test-poa \ poatest-basic01 \ poatest-basic02 \ poatest-basic03 \ poatest-basic04 \ poatest-basic06 \ poatest-basic07 \ poatest-basic08 \ poatest-basic09 \ poatest-basic10 # these don't work - it seems noinst_PROGRAMS= \ poatest-basic11 \ poatest-basic05 check_PROGRAMS = $(TESTS) LDADD = $(top_builddir)/src/orb/libORBit-2.la $(ORBIT_LIBS) POATEST_IDLOUT = poatest.h poatest-common.c poatest-skels.c poatest-stubs.c IDL_FLAGS=--showcpperrors IDL_FILES=poatest.idl include $(top_srcdir)/Makefile.shared common_srcs = \ $(POATEST_IDLOUT) \ poatest-basic-shell.c \ poatest-basic-shell.h \ poatest-exception.h test_poa_SOURCES = test-poa.c poatest_basic01_SOURCES = $(common_srcs) poatest-basic01.c poatest_basic02_SOURCES = $(common_srcs) poatest-basic02.c poatest_basic03_SOURCES = $(common_srcs) poatest-basic03.c poatest_basic04_SOURCES = $(common_srcs) poatest-basic04.c poatest_basic05_SOURCES = $(common_srcs) poatest-basic05.c poatest_basic06_SOURCES = $(common_srcs) poatest-basic06.c poatest_basic07_SOURCES = $(common_srcs) poatest-basic07.c poatest_basic08_SOURCES = $(common_srcs) poatest-basic08.c poatest_basic09_SOURCES = $(common_srcs) poatest-basic09.c poatest_basic10_SOURCES = $(common_srcs) poatest-basic10.c poatest_basic11_SOURCES = $(common_srcs) poatest-basic11.c README : $(POA_TESTS_SRCS) awk -F'*' 'BEGIN { intest = 0; } \ /^ \* Test/ { intest = 1; } \ intest == 1 && /^ \*\// { intest=0; print "\n"; } \ intest == 1 && /^ \*/ { print $$2; } ' \ $(POA_TESTS_SRCS) > README BUILT_SOURCES = $(POATEST_IDLOUT) CLEANFILES = $(BUILT_SOURCES) EXTRA_DIST = $(IDL_FILES) README dist-hook: cd $(distdir); rm -f $(BUILT_SOURCES) ORBit2-2.14.19/test/poa/poatest-basic04.c0000644000175000001440000000722611334247617014471 00000000000000/* * CORBA POA tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Mark McLoughlin */ /* * Test 4 : poatest-basic04.c * o POA with USER_ID Id Assignment policy. * o activated object with user assigned Id. */ #include #include #include #include "poatest-basic-shell.h" static void poatest_test_impl (PortableServer_Servant servant, CORBA_Environment *ev) { } PortableServer_ServantBase__epv base_epv = { NULL, /* _private */ NULL, /* finalize */ NULL /* default_POA */ }; POA_poatest__epv poatest_epv = { NULL, /* _private */ poatest_test_impl /* test */ }; POA_poatest__vepv poatest_vepv = { &base_epv, /* _base_epv */ &poatest_epv /* poatest_epv */ }; POA_poatest poatest_servant = { NULL, /* _private */ &poatest_vepv /* vepv */ }; poatest poatest_run (PortableServer_POA rootpoa, PortableServer_POAManager rootpoa_mgr) { CORBA_Environment ev; poatest poatest_obj; CORBA_PolicyList *poa_policies; PortableServer_ObjectId *objid; CORBA_exception_init (&ev); /* * Create child POA with USER_ID Id Assignment policy. */ poa_policies = CORBA_PolicyList__alloc (); poa_policies->_maximum = 1; poa_policies->_length = 1; poa_policies->_buffer = CORBA_PolicyList_allocbuf (1); CORBA_sequence_set_release (poa_policies, CORBA_TRUE); poa_policies->_buffer[0] = (CORBA_Policy) PortableServer_POA_create_id_assignment_policy ( rootpoa, PortableServer_USER_ID, &ev); child_poa = PortableServer_POA_create_POA (rootpoa, "User Id POA", rootpoa_mgr, poa_policies, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("create_POA : ", &ev); return CORBA_OBJECT_NIL; } CORBA_Policy_destroy (poa_policies->_buffer[0], &ev); CORBA_free (poa_policies); /* * Initialise the servant. */ POA_poatest__init (&poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POA_poatest__init : ", &ev); return CORBA_OBJECT_NIL; } /* * Set up the ObjectId. */ objid = PortableServer_string_to_ObjectId ("Test Id", &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("string_to_ObjectId : ", &ev); return CORBA_OBJECT_NIL; } /* * Activate object with user assigned Id. */ PortableServer_POA_activate_object_with_id (child_poa, objid, &poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("activate_object_with_id : ", &ev); return CORBA_OBJECT_NIL; } CORBA_free (objid); poatest_obj = PortableServer_POA_servant_to_reference (child_poa, &poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("servant_to_reference : ", &ev); return CORBA_OBJECT_NIL; } /* * Activate the POAManager. POA will now accept requests */ PortableServer_POAManager_activate (rootpoa_mgr, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POAManager_activate : ", &ev); return CORBA_OBJECT_NIL; } return poatest_obj; } ORBit2-2.14.19/test/poa/poatest-basic09.c0000644000175000001440000001057311334247617014475 00000000000000/* * CORBA POA tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Mark McLoughlin */ /* * Test 9 : poatest-basic09.c * o POA with RETAIN servant retention policy, USE_DEFAULT_SERVANT * request processing policy and MULTIPLE_ID id uniqueness policy. * o activate an object. * o create a reference for an inactive object and invoke method * on this object. */ #include #include #include #include "poatest-basic-shell.h" static void poatest_test_impl (PortableServer_Servant servant, CORBA_Environment *ev) { } PortableServer_ServantBase__epv base_epv = { NULL, /* _private */ NULL, /* finalize */ NULL /* default_POA */ }; POA_poatest__epv poatest_epv = { NULL, /* _private */ poatest_test_impl /* test */ }; POA_poatest__vepv poatest_vepv = { &base_epv, /* _base_epv */ &poatest_epv /* poatest_epv */ }; POA_poatest poatest_servant = { NULL, /* _private */ &poatest_vepv /* vepv */ }; poatest poatest_run (PortableServer_POA rootpoa, PortableServer_POAManager rootpoa_mgr ) { CORBA_Environment ev; poatest poatest_obj; CORBA_PolicyList *poa_policies; PortableServer_ObjectId *objid; CORBA_exception_init (&ev); /* * Create child POA with RETAIN servant retention policy, USE_DEFAULT_SERVANT * request processing policy and MULTIPLE_ID id uniqueness policy. */ poa_policies = CORBA_PolicyList__alloc (); poa_policies->_maximum = 3; poa_policies->_length = 3; poa_policies->_buffer = CORBA_PolicyList_allocbuf (3); CORBA_sequence_set_release (poa_policies, CORBA_TRUE); poa_policies->_buffer[0] = (CORBA_Policy) PortableServer_POA_create_id_uniqueness_policy ( rootpoa, PortableServer_MULTIPLE_ID, &ev); poa_policies->_buffer[1] = (CORBA_Policy) PortableServer_POA_create_request_processing_policy ( rootpoa, PortableServer_USE_DEFAULT_SERVANT, &ev); poa_policies->_buffer[2] = (CORBA_Policy) PortableServer_POA_create_servant_retention_policy ( rootpoa, PortableServer_RETAIN, &ev); child_poa = PortableServer_POA_create_POA (rootpoa, "Default Servant POA", rootpoa_mgr, poa_policies, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("create_POA : ", &ev); return CORBA_OBJECT_NIL; } CORBA_Policy_destroy (poa_policies->_buffer[0], &ev); CORBA_Policy_destroy (poa_policies->_buffer[1], &ev); CORBA_Policy_destroy (poa_policies->_buffer[2], &ev); CORBA_free (poa_policies); /* * Initialise the servant. */ POA_poatest__init (&poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POA_poatest__init : ", &ev); return CORBA_OBJECT_NIL; } /* * Register the default servant. */ PortableServer_POA_set_servant (child_poa, &poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("set_servant : ", &ev); return CORBA_OBJECT_NIL; } /* * Activate an object. */ objid = PortableServer_POA_activate_object (child_poa, &poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("activate_object : ", &ev); return CORBA_OBJECT_NIL; } CORBA_free (objid); /* * Create a reference for an inactive object. */ poatest_obj = PortableServer_POA_create_reference (child_poa, "IDL:poatest:1.0", &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("create_reference : ", &ev); return CORBA_OBJECT_NIL; } /* * Activate the POAManager. POA will now accept requests */ PortableServer_POAManager_activate (rootpoa_mgr, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POAManager_activate : ", &ev); return CORBA_OBJECT_NIL; } return poatest_obj; } ORBit2-2.14.19/test/poa/Makefile.in0000644000175000001440000007153311450333734013465 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ TESTS = test-poa$(EXEEXT) poatest-basic01$(EXEEXT) \ poatest-basic02$(EXEEXT) poatest-basic03$(EXEEXT) \ poatest-basic04$(EXEEXT) poatest-basic06$(EXEEXT) \ poatest-basic07$(EXEEXT) poatest-basic08$(EXEEXT) \ poatest-basic09$(EXEEXT) poatest-basic10$(EXEEXT) noinst_PROGRAMS = poatest-basic11$(EXEEXT) poatest-basic05$(EXEEXT) check_PROGRAMS = $(am__EXEEXT_1) DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/Makefile.shared subdir = test/poa ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__EXEEXT_1 = test-poa$(EXEEXT) poatest-basic01$(EXEEXT) \ poatest-basic02$(EXEEXT) poatest-basic03$(EXEEXT) \ poatest-basic04$(EXEEXT) poatest-basic06$(EXEEXT) \ poatest-basic07$(EXEEXT) poatest-basic08$(EXEEXT) \ poatest-basic09$(EXEEXT) poatest-basic10$(EXEEXT) PROGRAMS = $(noinst_PROGRAMS) am__objects_1 = poatest-common.$(OBJEXT) poatest-skels.$(OBJEXT) \ poatest-stubs.$(OBJEXT) am__objects_2 = $(am__objects_1) poatest-basic-shell.$(OBJEXT) am_poatest_basic01_OBJECTS = $(am__objects_2) \ poatest-basic01.$(OBJEXT) poatest_basic01_OBJECTS = $(am_poatest_basic01_OBJECTS) poatest_basic01_LDADD = $(LDADD) am__DEPENDENCIES_1 = poatest_basic01_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am_poatest_basic02_OBJECTS = $(am__objects_2) \ poatest-basic02.$(OBJEXT) poatest_basic02_OBJECTS = $(am_poatest_basic02_OBJECTS) poatest_basic02_LDADD = $(LDADD) poatest_basic02_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am_poatest_basic03_OBJECTS = $(am__objects_2) \ poatest-basic03.$(OBJEXT) poatest_basic03_OBJECTS = $(am_poatest_basic03_OBJECTS) poatest_basic03_LDADD = $(LDADD) poatest_basic03_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am_poatest_basic04_OBJECTS = $(am__objects_2) \ poatest-basic04.$(OBJEXT) poatest_basic04_OBJECTS = $(am_poatest_basic04_OBJECTS) poatest_basic04_LDADD = $(LDADD) poatest_basic04_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am_poatest_basic05_OBJECTS = $(am__objects_2) \ poatest-basic05.$(OBJEXT) poatest_basic05_OBJECTS = $(am_poatest_basic05_OBJECTS) poatest_basic05_LDADD = $(LDADD) poatest_basic05_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am_poatest_basic06_OBJECTS = $(am__objects_2) \ poatest-basic06.$(OBJEXT) poatest_basic06_OBJECTS = $(am_poatest_basic06_OBJECTS) poatest_basic06_LDADD = $(LDADD) poatest_basic06_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am_poatest_basic07_OBJECTS = $(am__objects_2) \ poatest-basic07.$(OBJEXT) poatest_basic07_OBJECTS = $(am_poatest_basic07_OBJECTS) poatest_basic07_LDADD = $(LDADD) poatest_basic07_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am_poatest_basic08_OBJECTS = $(am__objects_2) \ poatest-basic08.$(OBJEXT) poatest_basic08_OBJECTS = $(am_poatest_basic08_OBJECTS) poatest_basic08_LDADD = $(LDADD) poatest_basic08_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am_poatest_basic09_OBJECTS = $(am__objects_2) \ poatest-basic09.$(OBJEXT) poatest_basic09_OBJECTS = $(am_poatest_basic09_OBJECTS) poatest_basic09_LDADD = $(LDADD) poatest_basic09_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am_poatest_basic10_OBJECTS = $(am__objects_2) \ poatest-basic10.$(OBJEXT) poatest_basic10_OBJECTS = $(am_poatest_basic10_OBJECTS) poatest_basic10_LDADD = $(LDADD) poatest_basic10_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am_poatest_basic11_OBJECTS = $(am__objects_2) \ poatest-basic11.$(OBJEXT) poatest_basic11_OBJECTS = $(am_poatest_basic11_OBJECTS) poatest_basic11_LDADD = $(LDADD) poatest_basic11_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) am_test_poa_OBJECTS = test-poa.$(OBJEXT) test_poa_OBJECTS = $(am_test_poa_OBJECTS) test_poa_LDADD = $(LDADD) test_poa_DEPENDENCIES = $(top_builddir)/src/orb/libORBit-2.la \ $(am__DEPENDENCIES_1) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(poatest_basic01_SOURCES) $(poatest_basic02_SOURCES) \ $(poatest_basic03_SOURCES) $(poatest_basic04_SOURCES) \ $(poatest_basic05_SOURCES) $(poatest_basic06_SOURCES) \ $(poatest_basic07_SOURCES) $(poatest_basic08_SOURCES) \ $(poatest_basic09_SOURCES) $(poatest_basic10_SOURCES) \ $(poatest_basic11_SOURCES) $(test_poa_SOURCES) DIST_SOURCES = $(poatest_basic01_SOURCES) $(poatest_basic02_SOURCES) \ $(poatest_basic03_SOURCES) $(poatest_basic04_SOURCES) \ $(poatest_basic05_SOURCES) $(poatest_basic06_SOURCES) \ $(poatest_basic07_SOURCES) $(poatest_basic08_SOURCES) \ $(poatest_basic09_SOURCES) $(poatest_basic10_SOURCES) \ $(poatest_basic11_SOURCES) $(test_poa_SOURCES) ETAGS = etags CTAGS = ctags am__tty_colors = \ red=; grn=; lgn=; blu=; std= DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = \ -I$(top_srcdir)/include \ -I$(top_builddir)/include \ $(WARN_CFLAGS) \ $(ORBIT_CFLAGS) POA_TESTS_SRCS = poatest-basic01.c \ poatest-basic02.c \ poatest-basic03.c \ poatest-basic04.c \ poatest-basic06.c \ poatest-basic07.c \ poatest-basic08.c \ poatest-basic09.c \ poatest-basic10.c \ poatest-basic11.c LDADD = $(top_builddir)/src/orb/libORBit-2.la $(ORBIT_LIBS) POATEST_IDLOUT = poatest.h poatest-common.c poatest-skels.c poatest-stubs.c IDL_FLAGS = --showcpperrors IDL_FILES = poatest.idl @MAINTAINER_MODE_TRUE@IDL_DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) @MAINTAINER_MODE_TRUE@IDL_DEP_FILES = $(IDL_FILES:%.idl=.deps/%.idl.P) common_srcs = \ $(POATEST_IDLOUT) \ poatest-basic-shell.c \ poatest-basic-shell.h \ poatest-exception.h test_poa_SOURCES = test-poa.c poatest_basic01_SOURCES = $(common_srcs) poatest-basic01.c poatest_basic02_SOURCES = $(common_srcs) poatest-basic02.c poatest_basic03_SOURCES = $(common_srcs) poatest-basic03.c poatest_basic04_SOURCES = $(common_srcs) poatest-basic04.c poatest_basic05_SOURCES = $(common_srcs) poatest-basic05.c poatest_basic06_SOURCES = $(common_srcs) poatest-basic06.c poatest_basic07_SOURCES = $(common_srcs) poatest-basic07.c poatest_basic08_SOURCES = $(common_srcs) poatest-basic08.c poatest_basic09_SOURCES = $(common_srcs) poatest-basic09.c poatest_basic10_SOURCES = $(common_srcs) poatest-basic10.c poatest_basic11_SOURCES = $(common_srcs) poatest-basic11.c BUILT_SOURCES = $(POATEST_IDLOUT) CLEANFILES = $(BUILT_SOURCES) EXTRA_DIST = $(IDL_FILES) README all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.shared $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/poa/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu test/poa/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-checkPROGRAMS: @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list poatest-basic01$(EXEEXT): $(poatest_basic01_OBJECTS) $(poatest_basic01_DEPENDENCIES) @rm -f poatest-basic01$(EXEEXT) $(LINK) $(poatest_basic01_OBJECTS) $(poatest_basic01_LDADD) $(LIBS) poatest-basic02$(EXEEXT): $(poatest_basic02_OBJECTS) $(poatest_basic02_DEPENDENCIES) @rm -f poatest-basic02$(EXEEXT) $(LINK) $(poatest_basic02_OBJECTS) $(poatest_basic02_LDADD) $(LIBS) poatest-basic03$(EXEEXT): $(poatest_basic03_OBJECTS) $(poatest_basic03_DEPENDENCIES) @rm -f poatest-basic03$(EXEEXT) $(LINK) $(poatest_basic03_OBJECTS) $(poatest_basic03_LDADD) $(LIBS) poatest-basic04$(EXEEXT): $(poatest_basic04_OBJECTS) $(poatest_basic04_DEPENDENCIES) @rm -f poatest-basic04$(EXEEXT) $(LINK) $(poatest_basic04_OBJECTS) $(poatest_basic04_LDADD) $(LIBS) poatest-basic05$(EXEEXT): $(poatest_basic05_OBJECTS) $(poatest_basic05_DEPENDENCIES) @rm -f poatest-basic05$(EXEEXT) $(LINK) $(poatest_basic05_OBJECTS) $(poatest_basic05_LDADD) $(LIBS) poatest-basic06$(EXEEXT): $(poatest_basic06_OBJECTS) $(poatest_basic06_DEPENDENCIES) @rm -f poatest-basic06$(EXEEXT) $(LINK) $(poatest_basic06_OBJECTS) $(poatest_basic06_LDADD) $(LIBS) poatest-basic07$(EXEEXT): $(poatest_basic07_OBJECTS) $(poatest_basic07_DEPENDENCIES) @rm -f poatest-basic07$(EXEEXT) $(LINK) $(poatest_basic07_OBJECTS) $(poatest_basic07_LDADD) $(LIBS) poatest-basic08$(EXEEXT): $(poatest_basic08_OBJECTS) $(poatest_basic08_DEPENDENCIES) @rm -f poatest-basic08$(EXEEXT) $(LINK) $(poatest_basic08_OBJECTS) $(poatest_basic08_LDADD) $(LIBS) poatest-basic09$(EXEEXT): $(poatest_basic09_OBJECTS) $(poatest_basic09_DEPENDENCIES) @rm -f poatest-basic09$(EXEEXT) $(LINK) $(poatest_basic09_OBJECTS) $(poatest_basic09_LDADD) $(LIBS) poatest-basic10$(EXEEXT): $(poatest_basic10_OBJECTS) $(poatest_basic10_DEPENDENCIES) @rm -f poatest-basic10$(EXEEXT) $(LINK) $(poatest_basic10_OBJECTS) $(poatest_basic10_LDADD) $(LIBS) poatest-basic11$(EXEEXT): $(poatest_basic11_OBJECTS) $(poatest_basic11_DEPENDENCIES) @rm -f poatest-basic11$(EXEEXT) $(LINK) $(poatest_basic11_OBJECTS) $(poatest_basic11_LDADD) $(LIBS) test-poa$(EXEEXT): $(test_poa_OBJECTS) $(test_poa_DEPENDENCIES) @rm -f test-poa$(EXEEXT) $(LINK) $(test_poa_OBJECTS) $(test_poa_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poatest-basic-shell.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poatest-basic01.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poatest-basic02.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poatest-basic03.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poatest-basic04.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poatest-basic05.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poatest-basic06.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poatest-basic07.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poatest-basic08.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poatest-basic09.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poatest-basic10.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poatest-basic11.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poatest-common.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poatest-skels.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poatest-stubs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-poa.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags check-TESTS: $(TESTS) @failed=0; all=0; xfail=0; xpass=0; skip=0; \ srcdir=$(srcdir); export srcdir; \ list=' $(TESTS) '; \ $(am__tty_colors); \ if test -n "$$list"; then \ for tst in $$list; do \ if test -f ./$$tst; then dir=./; \ elif test -f $$tst; then dir=; \ else dir="$(srcdir)/"; fi; \ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xpass=`expr $$xpass + 1`; \ failed=`expr $$failed + 1`; \ col=$$red; res=XPASS; \ ;; \ *) \ col=$$grn; res=PASS; \ ;; \ esac; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xfail=`expr $$xfail + 1`; \ col=$$lgn; res=XFAIL; \ ;; \ *) \ failed=`expr $$failed + 1`; \ col=$$red; res=FAIL; \ ;; \ esac; \ else \ skip=`expr $$skip + 1`; \ col=$$blu; res=SKIP; \ fi; \ echo "$${col}$$res$${std}: $$tst"; \ done; \ if test "$$all" -eq 1; then \ tests="test"; \ All=""; \ else \ tests="tests"; \ All="All "; \ fi; \ if test "$$failed" -eq 0; then \ if test "$$xfail" -eq 0; then \ banner="$$All$$all $$tests passed"; \ else \ if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ fi; \ else \ if test "$$xpass" -eq 0; then \ banner="$$failed of $$all $$tests failed"; \ else \ if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ fi; \ fi; \ dashes="$$banner"; \ skipped=""; \ if test "$$skip" -ne 0; then \ if test "$$skip" -eq 1; then \ skipped="($$skip test was not run)"; \ else \ skipped="($$skip tests were not run)"; \ fi; \ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$skipped"; \ fi; \ report=""; \ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ report="Please report to $(PACKAGE_BUGREPORT)"; \ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$report"; \ fi; \ dashes=`echo "$$dashes" | sed s/./=/g`; \ if test "$$failed" -eq 0; then \ echo "$$grn$$dashes"; \ else \ echo "$$red$$dashes"; \ fi; \ echo "$$banner"; \ test -z "$$skipped" || echo "$$skipped"; \ test -z "$$report" || echo "$$report"; \ echo "$$dashes$$std"; \ test "$$failed" -eq 0; \ else :; fi distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook check-am: all-am $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(PROGRAMS) installdirs: install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am clean-am: clean-checkPROGRAMS clean-generic clean-libtool \ clean-noinstPROGRAMS mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-local distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: all check check-am install install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ clean-checkPROGRAMS clean-generic clean-libtool \ clean-noinstPROGRAMS ctags dist-hook distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-local distclean-tags distdir dvi dvi-am html html-am \ info info-am install install-am install-data install-data-am \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \ uninstall-am %-stubs.c %-skels.c %-common.c %-imodule.c %-skelimpl.c: %.h true %.h: $(IDL_DIR)%.idl $(IDL_COMPILER) -(rm -f $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c || true) > /dev/null $(IDL_COMPILER) $(IDL_FLAGS) --deps $(*D)/.deps/$(*F).idl.P $< for I in $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c; do \ if test -f $$I; then \ sed -e 's,OObject,Object,g' -e 's,TTypeCode,TypeCode,g' $$I > $$I.out; \ mv $$I.out $$I ; \ fi; \ done @MAINTAINER_MODE_TRUE@-include $(IDL_DEP_FILES) distclean-local: -rm -rf .deps README : $(POA_TESTS_SRCS) awk -F'*' 'BEGIN { intest = 0; } \ /^ \* Test/ { intest = 1; } \ intest == 1 && /^ \*\// { intest=0; print "\n"; } \ intest == 1 && /^ \*/ { print $$2; } ' \ $(POA_TESTS_SRCS) > README dist-hook: cd $(distdir); rm -f $(BUILT_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/test/poa/poatest-basic11.c0000644000175000001440000000524011334247617014461 00000000000000/* * CORBA POA tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Mark McLoughlin */ /* * Test 1 : poatest-basic01.c * o Root POA. * o activated object with system assigned id. */ #include #include #include #include #include "poatest-basic-shell.h" static void poatest_test_impl (PortableServer_Servant servant, CORBA_Environment *ev) { } static PortableServer_ServantBase__epv base_epv = { NULL, /* _private */ NULL, /* finalize */ NULL /* default_POA */ }; static POA_poatest__epv poatest_epv = { NULL, /* _private */ poatest_test_impl /* test */ }; static POA_poatest__vepv poatest_vepv = { &base_epv, /* _base_epv */ &poatest_epv /* poatest_epv */ }; static POA_poatest poatest_servant = { NULL, /* _private */ &poatest_vepv /* vepv */ }; poatest poatest_run (PortableServer_POA rootpoa, PortableServer_POAManager rootpoa_mgr ) { CORBA_Environment ev; PortableServer_ObjectId *objid; PortableServer_ObjectId *objid_back; CORBA_char *objid_str; CORBA_exception_init( &ev ); /* * Initialise the servant. */ POA_poatest__init (&poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POA_poatest__init : ", &ev); return CORBA_OBJECT_NIL; } /* * Activate object. POA will assign an ObjectId. */ objid = PortableServer_POA_activate_object (rootpoa, &poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("activate_object : ", &ev); return CORBA_OBJECT_NIL; } objid_str = PortableServer_ObjectId_to_string (objid, &ev); g_assert (objid_str != NULL); g_assert (strlen (objid_str) == objid->_length); objid_back = PortableServer_string_to_ObjectId (objid_str, &ev); g_assert (objid->_length == objid_back->_length); g_assert (!memcmp (objid->_buffer, objid_back->_buffer, objid->_length)); CORBA_free (objid_back); CORBA_free (objid_str); CORBA_free (objid); return CORBA_OBJECT_NIL; } ORBit2-2.14.19/test/poa/poatest-basic10.c0000644000175000001440000001012611334247617014457 00000000000000/* * CORBA POA tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Mark McLoughlin */ /* * Test 10 : poatest-basic10.c * o POA with NON_RETAIN servant retention policy, USE_DEFAULT_SERVANT * request processing policy and MULTIPLE_ID id uniqueness policy. * o create a reference for an inactive object and invoke method * on this object. */ #include #include #include #include "poatest-basic-shell.h" static void poatest_test_impl (PortableServer_Servant servant, CORBA_Environment *ev) { } PortableServer_ServantBase__epv base_epv = { NULL, /* _private */ NULL, /* finalize */ NULL /* default_POA */ }; POA_poatest__epv poatest_epv = { NULL, /* _private */ poatest_test_impl /* test */ }; POA_poatest__vepv poatest_vepv = { &base_epv, /* _base_epv */ &poatest_epv /* poatest_epv */ }; POA_poatest poatest_servant = { NULL, /* _private */ &poatest_vepv /* vepv */ }; poatest poatest_run (PortableServer_POA rootpoa, PortableServer_POAManager rootpoa_mgr) { CORBA_Environment ev; poatest poatest_obj; CORBA_PolicyList *poa_policies; CORBA_exception_init (&ev); /* * Create child POA with NON_RETAIN servant retention policy, USE_DEFAULT_SERVANT * request processing policy and MULTIPLE_ID id uniqueness policy. */ poa_policies = CORBA_PolicyList__alloc (); poa_policies->_maximum = 3; poa_policies->_length = 3; poa_policies->_buffer = CORBA_PolicyList_allocbuf (3); CORBA_sequence_set_release (poa_policies, CORBA_TRUE); poa_policies->_buffer[0] = (CORBA_Policy) PortableServer_POA_create_id_uniqueness_policy ( rootpoa, PortableServer_MULTIPLE_ID, &ev); poa_policies->_buffer[1] = (CORBA_Policy) PortableServer_POA_create_request_processing_policy( rootpoa, PortableServer_USE_DEFAULT_SERVANT, &ev); poa_policies->_buffer[2] = (CORBA_Policy) PortableServer_POA_create_servant_retention_policy( rootpoa, PortableServer_NON_RETAIN, &ev); child_poa = PortableServer_POA_create_POA (rootpoa, "Default Servant POA", rootpoa_mgr, poa_policies, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("create_POA : ", &ev); return CORBA_OBJECT_NIL; } CORBA_Policy_destroy (poa_policies->_buffer[0], &ev); CORBA_Policy_destroy (poa_policies->_buffer[1], &ev); CORBA_Policy_destroy (poa_policies->_buffer[2], &ev); CORBA_free (poa_policies); /* * Initialise the servant. */ POA_poatest__init (&poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POA_poatest__init : ", &ev); return CORBA_OBJECT_NIL; } /* * Register the default servant. */ PortableServer_POA_set_servant (child_poa, &poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("set_servant : ", &ev); return CORBA_OBJECT_NIL; } /* * Create a reference for an inactive object. */ poatest_obj = PortableServer_POA_create_reference (child_poa, "IDL:poatest:1.0", &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("create_reference : ", &ev); return CORBA_OBJECT_NIL; } /* * Activate the POAManager. POA will now accept requests */ PortableServer_POAManager_activate (rootpoa_mgr, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POAManager_activate : ", &ev); return CORBA_OBJECT_NIL; } return poatest_obj; } ORBit2-2.14.19/test/poa/poatest-basic06.c0000644000175000001440000000731011334247617014465 00000000000000/* * CORBA POA tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Mark McLoughlin */ /* * Test 6 : poatest-basic06.c * o POA with MULTIPLE_ID Object Id Uniqueness policy. * o activate two objects with the same servant. */ #include #include #include #include "poatest-basic-shell.h" static void poatest_test_impl (PortableServer_Servant servant, CORBA_Environment *ev) { } PortableServer_ServantBase__epv base_epv = { NULL, /* _private */ NULL, /* finalize */ NULL /* default_POA */ }; POA_poatest__epv poatest_epv = { NULL, /* _private */ poatest_test_impl /* test */ }; POA_poatest__vepv poatest_vepv = { &base_epv, /* _base_epv */ &poatest_epv /* poatest_epv */ }; POA_poatest poatest_servant = { NULL, /* _private */ &poatest_vepv /* vepv */ }; poatest poatest_run (PortableServer_POA rootpoa, PortableServer_POAManager rootpoa_mgr) { CORBA_Environment ev; poatest poatest_obj; CORBA_PolicyList *poa_policies; PortableServer_ObjectId *obj1id, *obj2id; CORBA_exception_init (&ev); /* * Create child POA with MULTIPLE_ID Object Id Uniqueness policy. */ poa_policies = CORBA_PolicyList__alloc (); poa_policies->_maximum = 1; poa_policies->_length = 1; poa_policies->_buffer = CORBA_PolicyList_allocbuf (1); CORBA_sequence_set_release (poa_policies, CORBA_TRUE); poa_policies->_buffer[0] = (CORBA_Policy) PortableServer_POA_create_id_uniqueness_policy ( rootpoa, PortableServer_MULTIPLE_ID, &ev); child_poa = PortableServer_POA_create_POA (rootpoa, "Multiple Id POA", rootpoa_mgr, poa_policies, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("create_POA : ", &ev); return CORBA_OBJECT_NIL; } CORBA_Policy_destroy (poa_policies->_buffer[0], &ev); CORBA_free (poa_policies); /* * Initialise the servant. */ POA_poatest__init (&poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POA_poatest__init : ", &ev); return CORBA_OBJECT_NIL; } /* * Activate two objects. */ obj1id = PortableServer_POA_activate_object (child_poa, &poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("activate_object : ", &ev); return CORBA_OBJECT_NIL; } CORBA_free (obj1id); obj2id = PortableServer_POA_activate_object (child_poa, &poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("activate_object : ", &ev); return CORBA_OBJECT_NIL; } /* * Get reference for second object. */ poatest_obj = PortableServer_POA_id_to_reference (child_poa, obj2id, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("id_to_reference : ", &ev); return CORBA_OBJECT_NIL; } CORBA_free (obj2id); /* * Activate the POAManager. POA will now accept requests */ PortableServer_POAManager_activate (rootpoa_mgr, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POAManager_activate : ", &ev); return CORBA_OBJECT_NIL; } return poatest_obj; } ORBit2-2.14.19/test/poa/README0000644000175000001440000000352211334247617012276 00000000000000 Test 1 : poatest-basic01.c o Root POA. o activated object with system assigned id. Test 2 : poatest-basic02.c o Root POA. o implicitly activated object with servant_to_reference. Test 3 : poatest-basic03.c o Root POA. o implicitly activated object with servant_to_id. Test 4 : poatest-basic04.c o POA with USER_ID Id Assignment policy. o activated object with user assigned Id. Test 6 : poatest-basic06.c o POA with MULTIPLE_ID Object Id Uniqueness policy. o activate two objects with the same servant. Test 7 : poatest-basic07.c o POA with MULTIPLE_ID Object Id Uniqueness policy and IMPLICIT_ACTIVATION Implicit Activation policy. o implicitly activate two objects with the same servant using servant_to_reference. o same as Test 2 except a second object should activated from the same servant. Test 8 : poatest-basic08.c o POA with MULTIPLE_ID Object Id Uniqueness policy and IMLICIT_ACTIVATION Implicit Activation policy. o implicitly activate two objects with the same servant using servant_to_id. o same as Test 3 except a second object should activated from the same servant. Test 9 : poatest-basic09.c o POA with RETAIN servant retention policy, USE_DEFAULT_SERVANT request processing policy and MULTIPLE_ID id uniqueness policy. o activate an object. o create a reference for an inactive object and invoke method on this object. Test 10 : poatest-basic10.c o POA with NON_RETAIN servant retention policy, USE_DEFAULT_SERVANT request processing policy and MULTIPLE_ID id uniqueness policy. o create a reference for an inactive object and invoke method on this object. Test 1 : poatest-basic01.c o Root POA. o activated object with system assigned id. ORBit2-2.14.19/test/poa/poatest.idl0000644000175000001440000000146211334247617013570 00000000000000/* * CORBA POA tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Mark McLoughlin */ interface poatest { void test (); }; ORBit2-2.14.19/test/poa/poatest-basic02.c0000644000175000001440000000462411334247617014466 00000000000000/* * CORBA POA tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Mark McLoughlin */ /* * Test 2 : poatest-basic02.c * o Root POA. * o implicitly activated object with servant_to_reference. */ #include #include #include #include "poatest-basic-shell.h" static void poatest_test_impl (PortableServer_Servant servant, CORBA_Environment *ev) { } PortableServer_ServantBase__epv base_epv = { NULL, /* _private */ NULL, /* finalize */ NULL /* default_POA */ }; POA_poatest__epv poatest_epv = { NULL, /* _private */ poatest_test_impl /* test */ }; POA_poatest__vepv poatest_vepv = { &base_epv, /* _base_epv */ &poatest_epv /* poatest_epv */ }; POA_poatest poatest_servant = { NULL, /* _private */ &poatest_vepv /* vepv */ }; poatest poatest_run (PortableServer_POA rootpoa, PortableServer_POAManager rootpoa_mgr) { CORBA_Environment ev; poatest poatest_obj; CORBA_exception_init( &ev ); /* * Initialise the servant. */ POA_poatest__init (&poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POA_poatest__init : ", &ev); return CORBA_OBJECT_NIL; } /* * Imlicitly activate the Object. * See sections 11.2.7 and 11.3.8.21. */ poatest_obj = PortableServer_POA_servant_to_reference (rootpoa, &poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("servant_to_reference : ", &ev); return CORBA_OBJECT_NIL; } /* * Activate the POAManager. POA will now accept requests */ PortableServer_POAManager_activate (rootpoa_mgr, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POAManager_activate : ", &ev); return CORBA_OBJECT_NIL; } return poatest_obj; } ORBit2-2.14.19/test/poa/test-poa.c0000644000175000001440000000165311334247617013321 00000000000000#include #include #include CORBA_ORB orb = CORBA_OBJECT_NIL; int main (int argc, char **argv) { CORBA_Environment ev[1]; PortableServer_POA rootpoa, poa; CORBA_exception_init (ev); orb = CORBA_ORB_init (&argc, argv, "", ev); rootpoa = (PortableServer_POA) CORBA_ORB_resolve_initial_references (orb, "RootPOA", ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); { poa = ORBit_POA_new_from (orb, rootpoa, "Foo", NULL, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); PortableServer_POA_destroy (poa, FALSE, FALSE, ev); CORBA_Object_release ((CORBA_Object) poa, ev); } CORBA_Object_release ((CORBA_Object) rootpoa, ev); CORBA_ORB_destroy (orb, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release ((CORBA_Object) orb, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_exception_free (ev); fprintf (stderr, "PASS: test-poa\n"); return 0; } ORBit2-2.14.19/test/poa/poatest-basic08.c0000644000175000001440000001026011334247617014465 00000000000000/* * CORBA POA tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Mark McLoughlin */ /* * Test 8 : poatest-basic08.c * o POA with MULTIPLE_ID Object Id Uniqueness policy and * IMLICIT_ACTIVATION Implicit Activation policy. * o implicitly activate two objects with the same servant * using servant_to_id. * o same as Test 3 except a second object should activated * from the same servant. */ #include #include #include #include "poatest-basic-shell.h" static void poatest_test_impl (PortableServer_Servant servant, CORBA_Environment *ev) { } PortableServer_ServantBase__epv base_epv = { NULL, /* _private */ NULL, /* finalize */ NULL /* default_POA */ }; POA_poatest__epv poatest_epv = { NULL, /* _private */ poatest_test_impl /* test */ }; POA_poatest__vepv poatest_vepv = { &base_epv, /* _base_epv */ &poatest_epv /* poatest_epv */ }; POA_poatest poatest_servant = { NULL, /* _private */ &poatest_vepv /* vepv */ }; poatest poatest_run (PortableServer_POA rootpoa, PortableServer_POAManager rootpoa_mgr) { CORBA_Environment ev; poatest poatest_obj; CORBA_PolicyList *poa_policies; PortableServer_ObjectId *obj1id, *obj2id; CORBA_exception_init( &ev ); /* * Create child POA with MULTIPLE_ID Object Id Uniqueness policy and * IMLICIT_ACTIVATION Implicit Activation policy. */ poa_policies = CORBA_PolicyList__alloc (); poa_policies->_maximum = 2; poa_policies->_length = 2; poa_policies->_buffer = CORBA_PolicyList_allocbuf (2); CORBA_sequence_set_release (poa_policies, CORBA_TRUE); poa_policies->_buffer[0] = (CORBA_Policy) PortableServer_POA_create_id_uniqueness_policy ( rootpoa, PortableServer_MULTIPLE_ID, &ev); poa_policies->_buffer[1] = (CORBA_Policy) PortableServer_POA_create_implicit_activation_policy ( rootpoa, PortableServer_IMPLICIT_ACTIVATION, &ev); child_poa = PortableServer_POA_create_POA (rootpoa, "Multiple Id POA", rootpoa_mgr, poa_policies, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("create_POA : ", &ev); return CORBA_OBJECT_NIL; } CORBA_Policy_destroy (poa_policies->_buffer[0], &ev); CORBA_Policy_destroy (poa_policies->_buffer[1], &ev); CORBA_free (poa_policies); /* * Initialise the servant. */ POA_poatest__init (&poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POA_poatest__init : ", &ev); return CORBA_OBJECT_NIL; } /* * Implicitly activate two objects. */ obj1id = PortableServer_POA_servant_to_id (child_poa, &poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("servant_to_id : ", &ev); return CORBA_OBJECT_NIL; } CORBA_free (obj1id); obj2id = PortableServer_POA_servant_to_id (child_poa, &poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("servant_to_id : ", &ev); return CORBA_OBJECT_NIL; } /* * Get reference for second activated object */ poatest_obj = PortableServer_POA_id_to_reference (child_poa, obj2id, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("id_to_reference : ", &ev); return CORBA_OBJECT_NIL; } CORBA_free( obj2id ); /* * Activate the POAManager. POA will now accept requests */ PortableServer_POAManager_activate (rootpoa_mgr, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POAManager_activate : ", &ev); return CORBA_OBJECT_NIL; } return poatest_obj; } ORBit2-2.14.19/test/poa/poatest-basic-shell.h0000644000175000001440000000050011334247617015423 00000000000000#ifndef _POATEST_BASIC_SHELL_H_ #define _POATEST_BASIC_SHELL_H_ #include "poatest.h" #include "poatest-exception.h" poatest poatest_run (PortableServer_POA rootpoa, PortableServer_POAManager rootpoa_mgr); extern CORBA_ORB orb; extern PortableServer_POA child_poa; #endif /* _POATEST_BASIC_SHELL_H_ */ ORBit2-2.14.19/test/poa/poatest-basic03.c0000644000175000001440000000524511334247617014467 00000000000000/* * CORBA POA tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Mark McLoughlin */ /* * Test 3 : poatest-basic03.c * o Root POA. * o implicitly activated object with servant_to_id. */ #include #include #include #include "poatest-basic-shell.h" static void poatest_test_impl (PortableServer_Servant servant, CORBA_Environment *ev) { } PortableServer_ServantBase__epv base_epv = { NULL, /* _private */ NULL, /* finalize */ NULL /* default_POA */ }; POA_poatest__epv poatest_epv = { NULL, /* _private */ poatest_test_impl /* test */ }; POA_poatest__vepv poatest_vepv = { &base_epv, /* _base_epv */ &poatest_epv /* poatest_epv */ }; POA_poatest poatest_servant = { NULL, /* _private */ &poatest_vepv /* vepv */ }; poatest poatest_run (PortableServer_POA rootpoa, PortableServer_POAManager rootpoa_mgr) { CORBA_Environment ev; poatest poatest_obj; PortableServer_ObjectId *objid; CORBA_exception_init (&ev); /* * Initialise the servant. */ POA_poatest__init (&poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POA_poatest__init : ", &ev); return CORBA_OBJECT_NIL; } /* * Imlicitly activate the Object. * See sections 11.2.7 and 11.3.8.20. */ objid = PortableServer_POA_servant_to_id (rootpoa, &poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("servant_to_id : ", &ev); return CORBA_OBJECT_NIL; } /* * Get reference for activated object */ poatest_obj = PortableServer_POA_id_to_reference (rootpoa, objid, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("id_to_reference : ", &ev); return CORBA_OBJECT_NIL; } CORBA_free ( objid ); /* * Activate the POAManager. POA will now accept requests */ PortableServer_POAManager_activate (rootpoa_mgr, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POAManager_activate : ", &ev); return CORBA_OBJECT_NIL; } return poatest_obj; } ORBit2-2.14.19/test/poa/poatest-basic01.c0000644000175000001440000000527511334247617014470 00000000000000/* * CORBA POA tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Mark McLoughlin */ /* * Test 1 : poatest-basic01.c * o Root POA. * o activated object with system assigned id. */ #include #include #include #include "poatest-basic-shell.h" static void poatest_test_impl (PortableServer_Servant servant, CORBA_Environment *ev) { } static PortableServer_ServantBase__epv base_epv = { NULL, /* _private */ NULL, /* finalize */ NULL /* default_POA */ }; static POA_poatest__epv poatest_epv = { NULL, /* _private */ poatest_test_impl /* test */ }; static POA_poatest__vepv poatest_vepv = { &base_epv, /* _base_epv */ &poatest_epv /* poatest_epv */ }; static POA_poatest poatest_servant = { NULL, /* _private */ &poatest_vepv /* vepv */ }; poatest poatest_run (PortableServer_POA rootpoa, PortableServer_POAManager rootpoa_mgr ) { CORBA_Environment ev; poatest poatest_obj; PortableServer_ObjectId *objid; CORBA_exception_init( &ev ); /* * Initialise the servant. */ POA_poatest__init (&poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POA_poatest__init : ", &ev); return CORBA_OBJECT_NIL; } /* * Activate object. POA will assign an ObjectId. */ objid = PortableServer_POA_activate_object (rootpoa, &poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("activate_object : ", &ev); return CORBA_OBJECT_NIL; } CORBA_free (objid); /* * Get a reference for the activated Object. */ poatest_obj = PortableServer_POA_servant_to_reference (rootpoa, &poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("servant_to_reference : ", &ev); return CORBA_OBJECT_NIL; } /* * Activate the POAManager. POA will now accept requests */ PortableServer_POAManager_activate (rootpoa_mgr, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POAManager_activate : ", &ev); return CORBA_OBJECT_NIL; } return poatest_obj; } ORBit2-2.14.19/test/poa/poatest-basic07.c0000644000175000001440000000777511334247617014505 00000000000000/* * CORBA POA tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Mark McLoughlin */ /* * Test 7 : poatest-basic07.c * o POA with MULTIPLE_ID Object Id Uniqueness policy and * IMPLICIT_ACTIVATION Implicit Activation policy. * o implicitly activate two objects with the same servant * using servant_to_reference. * o same as Test 2 except a second object should activated * from the same servant. */ #include #include #include #include "poatest-basic-shell.h" static void poatest_test_impl (PortableServer_Servant servant, CORBA_Environment *ev) { } PortableServer_ServantBase__epv base_epv = { NULL, /* _private */ NULL, /* finalize */ NULL /* default_POA */ }; POA_poatest__epv poatest_epv = { NULL, /* _private */ poatest_test_impl /* test */ }; POA_poatest__vepv poatest_vepv = { &base_epv, /* _base_epv */ &poatest_epv /* poatest_epv */ }; POA_poatest poatest_servant = { NULL, /* _private */ &poatest_vepv /* vepv */ }; poatest poatest_run (PortableServer_POA rootpoa, PortableServer_POAManager rootpoa_mgr) { CORBA_Environment ev; poatest poatest_obj1, poatest_obj2; CORBA_PolicyList *poa_policies; CORBA_exception_init( &ev ); /* * Create child POA with MULTIPLE_ID Object Id Uniqueness policy and * IMPLICIT_ACTIVATION Implicit Activation policy. */ poa_policies = CORBA_PolicyList__alloc (); poa_policies->_maximum = 2; poa_policies->_length = 2; poa_policies->_buffer = CORBA_PolicyList_allocbuf (2); CORBA_sequence_set_release (poa_policies, CORBA_TRUE); poa_policies->_buffer[0] = (CORBA_Policy) PortableServer_POA_create_id_uniqueness_policy ( rootpoa, PortableServer_MULTIPLE_ID, &ev); poa_policies->_buffer[1] = (CORBA_Policy) PortableServer_POA_create_implicit_activation_policy ( rootpoa, PortableServer_IMPLICIT_ACTIVATION, &ev); child_poa = PortableServer_POA_create_POA (rootpoa, "Multiple Id POA", rootpoa_mgr, poa_policies, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("create_POA : ", &ev); return CORBA_OBJECT_NIL; } CORBA_Policy_destroy (poa_policies->_buffer[0], &ev); CORBA_Policy_destroy (poa_policies->_buffer[1], &ev); CORBA_free (poa_policies); /* * Initialise the servant. */ POA_poatest__init (&poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POA_poatest__init : ", &ev); return CORBA_OBJECT_NIL; } /* * Implicitly activate two objects. */ poatest_obj1 = PortableServer_POA_servant_to_reference (child_poa, &poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("servant_to_reference : ", &ev); return CORBA_OBJECT_NIL; } CORBA_Object_release (poatest_obj1, &ev); poatest_obj2 = PortableServer_POA_servant_to_reference (child_poa, &poatest_servant, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("servant_to_reference : ", &ev); return CORBA_OBJECT_NIL; } /* * Activate the POAManager. POA will now accept requests */ PortableServer_POAManager_activate (rootpoa_mgr, &ev); if (POATEST_EX (&ev)) { POATEST_PRINT_EX ("POAManager_activate : ", &ev); return CORBA_OBJECT_NIL; } return poatest_obj2; } ORBit2-2.14.19/test/timeout.idl0000644000175000001440000000010011334247617013004 00000000000000interface Timeout { void ping(in unsigned long delay_secs); }; ORBit2-2.14.19/test/test-mem.c0000644000175000001440000001504611334247617012542 00000000000000#include #include #include #include #include #if defined(_POSIX_SOURCE) #include #include #include #include #endif #include #include "test1.h" #define ORBIT_EX(ev) ((ev)->_major != CORBA_NO_EXCEPTION && (g_warning("%s", CORBA_exception_id(ev)),TRUE)) #define ORBIT_EX_IS_A(ev,id) (((ev)->_major != CORBA_NO_EXCEPTION && strcmp(id, CORBA_exception_id(ev)) == 0) || (g_warning("%s", CORBA_exception_id(ev)),FALSE)) /*** App-specific servant structures ***/ typedef struct { POA_Test servant; /* ------ add private attributes here ------ */ CORBA_octet buf[1024]; /* big enough to see mem-leaks fast*/ /* ------ ---------- end ------------ ------ */ } impl_POA_Test; /*** Implementation stub prototypes ***/ static void impl_Test__destroy(impl_POA_Test * servant, CORBA_Environment * ev); static CORBA_string impl_Test_op(impl_POA_Test * servant, const CORBA_char * astr, CORBA_Environment * ev); /*** epv structures ***/ static PortableServer_ServantBase__epv impl_Test_base_epv = { NULL, /* _private data */ (gpointer) & impl_Test__destroy, /* finalize routine */ NULL, /* default_POA routine */ }; static POA_Test__epv impl_Test_epv = { NULL, /* _private */ (gpointer) & impl_Test_op, }; /*** vepv structures ***/ static POA_Test__vepv impl_Test_vepv = { &impl_Test_base_epv, &impl_Test_epv }; /*** Stub implementations ***/ static void impl_Test__destroy(impl_POA_Test * servant, CORBA_Environment * ev) { POA_Test__fini((PortableServer_Servant) servant, ev); g_free(servant); } static CORBA_string impl_Test_op(impl_POA_Test * servant, const CORBA_char * astr, CORBA_Environment * ev) { CORBA_string retval; /* ------ insert method code here ------ */ retval = CORBA_string_dup ("blahblah"); /* ------ ---------- end ------------ ------ */ return retval; } static void test_ORBit_alloc (void) { gpointer p; int i; p = ORBit_alloc_string (100); g_assert ((gulong)p & 0x1); for (i = 0; i < 100; i++) ((guchar *)p) [i] = i; CORBA_free (p); p = CORBA_string_dup ("Foo"); g_assert (((gulong)p & 0x1)); CORBA_free (p); p = ORBit_alloc_simple (100); g_assert (!((gulong)p & 0x1)); for (i = 0; i < 100; i++) ((guchar *)p) [i] = i; CORBA_free (p); p = ORBit_alloc_tcval (TC_CORBA_sequence_CORBA_octet, 1); g_assert (!((gulong)p & 0x1)); CORBA_free (p); p = ORBit_alloc_tcval (TC_ORBit_IInterface, 8); g_assert (!((gulong)p & 0x1)); CORBA_free (p); } static void test_ORBit_sequence (void) { gpointer seq = ORBit_sequence_alloc (TC_CORBA_sequence_CORBA_octet, 1000); CORBA_free (seq); } static void test_activate_deactivate (PortableServer_POA poa, CORBA_Environment * ev) { impl_POA_Test *newservant; PortableServer_ObjectId *objid; newservant = g_new0(impl_POA_Test, 1); newservant->servant.vepv = &impl_Test_vepv; POA_Test__init((PortableServer_Servant) newservant, ev); objid = PortableServer_POA_activate_object(poa, newservant, ev); g_assert (!ORBIT_EX (ev)); PortableServer_POA_deactivate_object (poa, objid, ev); g_assert (!ORBIT_EX (ev)); CORBA_free(objid); } static CORBA_ORB global_orb = CORBA_OBJECT_NIL; /* global orb */ static void server_shutdown (int sig) { CORBA_Environment local_ev[1]; CORBA_exception_init(local_ev); if (global_orb != CORBA_OBJECT_NIL) { CORBA_ORB_shutdown (global_orb, FALSE, local_ev); g_assert (!ORBIT_EX (local_ev)); } } static long get_procmem (void) { #if defined(_POSIX_SOURCE) long ret=0; char cmd[255]; FILE *handle = NULL; sprintf (cmd, "ps --no-headers -o \"rss\" -p %d 2>/dev/null", getpid()); handle = popen (cmd, "r"); if (!handle) return 0; switch (fscanf (handle, "%ld", &ret)) { case EOF: g_warning ("EOF, executing \"%s\" failed", cmd); break; case 0: g_warning ("parse error, executing \"%s\" failed", cmd); break; default: break; } pclose (handle); return ret; #else return 0; #endif } #define LEAK_DETECT_WITH_TOLERANCE(N,CALL,TOLERANCE) do { \ long mem_usage_start = 0; \ long mem_usage_end = 0; \ long i = 0; \ mem_usage_start = get_procmem (); \ for (i = 0; i < (N); ++i) { \ (CALL); \ } \ mem_usage_end = get_procmem (); \ g_print ("mem usage prev/post: " \ "%5ldKB / %5ldKB -- %5dx " #CALL "\n", \ mem_usage_start, \ mem_usage_end, \ N); \ g_assert ( mem_usage_end - mem_usage_start < TOLERANCE); \ } while(FALSE) static void main_func(int argc, char *argv[]) { PortableServer_POA poa = CORBA_OBJECT_NIL; PortableServer_POAManager poa_manager = CORBA_OBJECT_NIL; CORBA_Environment ev[1]; CORBA_exception_init(ev); /* init signal handling */ signal(SIGINT, server_shutdown); signal(SIGTERM, server_shutdown); /* create Object Request Broker (ORB) */ global_orb = CORBA_ORB_init(&argc, argv, "orbit-local-treaded-orb", ev); g_assert (!ORBIT_EX (ev)); /* get Portable Object Adaptor (POA) */ poa = (PortableServer_POA) CORBA_ORB_resolve_initial_references(global_orb, "RootPOA", ev); g_assert (!ORBIT_EX (ev)); /* activate POA Manager */ poa_manager = PortableServer_POA__get_the_POAManager(poa, ev); g_assert (!ORBIT_EX (ev)); PortableServer_POAManager_activate(poa_manager, ev); g_assert (!ORBIT_EX (ev)); LEAK_DETECT_WITH_TOLERANCE (1000, test_ORBit_alloc (), 50); LEAK_DETECT_WITH_TOLERANCE (1000, test_ORBit_sequence (), 50); LEAK_DETECT_WITH_TOLERANCE (1000, test_activate_deactivate (poa, ev), 50); /* tear down the ORB */ CORBA_Object_release ((CORBA_Object) poa_manager, ev); g_assert (!ORBIT_EX (ev)); CORBA_Object_release ((CORBA_Object) poa, ev); g_assert (!ORBIT_EX (ev)); if (global_orb != CORBA_OBJECT_NIL) { /* going to destroy orb.. */ CORBA_ORB_destroy(global_orb, ev); g_assert (!ORBIT_EX (ev)); } } int main(int argc, char *argv[]) { /* ORBit2-2.7.6 leaks on shutdown with about 700KB */ /* LEAK_DETECT_WITH_TOLERANCE (1, main_func (argc,argv), 20); */ g_thread_init (NULL); main_func (argc, argv); exit (0); } ORBit2-2.14.19/test/echo-client-t.c0000644000175000001440000000400111334247617013427 00000000000000#include #include #include "echo.h" static int niters = 10000; static int nthreads = 8; static char *server_ior; static CORBA_ORB orb; static gpointer echo_client_thread (gpointer data) { int i; Echo echo_client; CORBA_Environment *ev, real_ev; CORBA_exception_init ((ev = &real_ev)); echo_client = CORBA_ORB_string_to_object (orb, server_ior, ev); if (!echo_client) { g_error ("[%p]: Cannot bind to %s\n", g_thread_self (), server_ior); return NULL; } for (i = 0; i < 4; i++) /* let others get started */ g_thread_yield (); for (i = 0; i < niters; i++) { char *str; CORBA_double tmp; Echo retval; str = g_strdup_printf ("[%p]: Hello, world [%d]", g_thread_self (), i); Echo_doOneWay (echo_client, str, ev); retval = Echo_echoString (echo_client, str, &tmp, ev); g_free (str); if (ev->_major != CORBA_NO_EXCEPTION) { g_error ("[%p]: we got exception %s from echoString!\n", g_thread_self (), ev->_id); return NULL; } CORBA_Object_release (retval, ev); } CORBA_Object_release (echo_client, ev); return data; } int main (int argc, char *argv[]) { int i; GError *error = NULL; GThread **threads; CORBA_Environment *ev, real_ev; CORBA_exception_init ((ev = &real_ev)); orb = CORBA_ORB_init (&argc, argv, "orbit-local-mt-orb", ev); if (argc < 2) { g_error ("Syntax: %s [ [] ]\n", argv [0]); return 1; } server_ior = argv [1]; if (argc >= 3) niters = atoi (argv [2]); if (argc >= 4) nthreads = atoi (argv [3]); threads = g_new0 (GThread *, nthreads); for (i = 0; i < nthreads; i++) { threads [i] = g_thread_create ( echo_client_thread, &threads[i], TRUE, &error); if (error) g_error ("Error spawning threads '%s'", error->message); } for (i = 0; i < nthreads; i++) { if (!(g_thread_join (threads [i]) == &threads [i])) g_error ("Wierd thread join problem '%d'", i); } CORBA_ORB_destroy (orb, ev); CORBA_Object_release ((CORBA_Object) orb, ev); return 0; } ORBit2-2.14.19/test/test-giop.c0000644000175000001440000001715711334247617012727 00000000000000#include "config.h" #include #include #include #include #include #include "GIOP/giop-debug.h" #include "test-giop-frag.h" #ifndef G_ENABLE_DEBUG #ifdef __GNUC__ # warning GIOP test hooks only enabled in a debugging build #endif int main (int argc, char *argv[]) { g_warning ("GIOP test hooks only enabled in a debugging build"); return 0; } #else static LinkWriteOpts *non_blocking = NULL; static GIOPServer *server = NULL; static GIOPConnection *server_cnx = NULL; static GIOPConnection *cnx = NULL; static gboolean fragment_done; static void wait_for_disconnect (void) { int i; /* a main_pending just looks for IO and not HUPs */ for (i = 0; i < 10; i++) { if (link_main_pending ()) i = 0; link_main_iteration (FALSE); } } static void hook_unexpected_frag_reply (GIOPRecvBuffer *buf) { char *p; const char testa[] = "ADVENTURE"; /* cf. Willard Price */ const char testb[] = "MILLENNIUM"; /* cf. Robbie Williams */ const char testc[] = "It isn't, said the Caterpillar"; const char testd[] = "Why? said the Caterpillar"; fragment_done = TRUE; g_assert (buf != NULL); g_assert (buf->left_to_read == 0); g_assert (buf->msg.header.message_size == 1727); p = buf->message_body + 52; g_assert (!strncmp (p, testa, sizeof (testa) - 1)); p = buf->message_body + 97; g_assert (!strncmp (p, testb, sizeof (testb) - 1)); p = buf->message_body + 1002; g_assert (!strncmp (p, testc, sizeof (testc) - 1)); p = buf->message_body + 1702; g_assert (!strncmp (p, testd, sizeof (testd) - 1)); } static void test_fragments (void) { link_connection_write ( LINK_CONNECTION (cnx), giop_fragment_data, sizeof (giop_fragment_data), non_blocking); giop_debug_hook_unexpected_reply = hook_unexpected_frag_reply; fragment_done = FALSE; while (!fragment_done) link_main_iteration (FALSE); giop_debug_hook_unexpected_reply = NULL; } static gboolean spoof_done; static gboolean spoof_succeeded; static void test_spoof_callback (GIOPMessageQueueEntry *ent) { spoof_done = spoof_succeeded = TRUE; } static void test_spoof_hook (GIOPRecvBuffer *buffer, GIOPMessageQueueEntry *ent) { spoof_done = TRUE; } static void test_spoofing (void) { int i; GIOPConnection *misc; GIOPSendBuffer *reply; GIOPMessageQueueEntry ent; CORBA_unsigned_long request_id; request_id = 0x12345; giop_debug_hook_spoofed_reply = test_spoof_hook; misc = g_object_new (giop_connection_get_type (), NULL); for (i = 0; i < 2; i++) { giop_recv_list_setup_queue_entry (&ent, !i ? server_cnx : misc, GIOP_REPLY, request_id); giop_recv_list_setup_queue_entry_async (&ent, test_spoof_callback); reply = giop_send_buffer_use_reply ( GIOP_1_2, request_id , CORBA_NO_EXCEPTION); spoof_done = FALSE; spoof_succeeded = FALSE; g_assert (!giop_send_buffer_write (reply, cnx, TRUE)); giop_send_buffer_unuse (reply); while (!spoof_done) link_main_iteration (TRUE); switch (i) { case 0: /* valid */ g_assert (spoof_succeeded); break; case 1: /* invalid */ g_assert (!spoof_succeeded); link_connection_ref (cnx); wait_for_disconnect (); g_assert (LINK_CONNECTION (cnx)->status == LINK_DISCONNECTED); link_connection_unref (cnx); break; default: g_assert_not_reached (); break; } } link_connection_unref (misc); giop_debug_hook_spoofed_reply = NULL; } static void run_test_hook_new_connection (GIOPServer *server, GIOPConnection *new_cnx) { g_assert (g_type_is_a (G_TYPE_FROM_INSTANCE (server), GIOP_TYPE_SERVER)); g_assert (g_type_is_a (G_TYPE_FROM_INSTANCE (new_cnx), GIOP_TYPE_CONNECTION)); server_cnx = new_cnx; } static void run_test (CORBA_ORB orb, void (*do_test) (void), gboolean reverse) { #ifndef G_OS_WIN32 server = giop_server_new (GIOP_1_2, "UNIX", NULL, NULL, 0, orb); #else server = giop_server_new (GIOP_1_2, "IPv4", NULL, NULL, 0, orb); #endif server_cnx = NULL; g_assert (LINK_IS_SERVER (server)); giop_debug_hook_new_connection = run_test_hook_new_connection; #ifndef G_OS_WIN32 cnx = giop_connection_initiate ( orb, "UNIX", LINK_SERVER (server)->local_host_info, LINK_SERVER (server)->local_serv_info, LINK_CONNECTION_NONBLOCKING, GIOP_1_2); #else cnx = giop_connection_initiate ( orb, "IPv4", LINK_SERVER (server)->local_host_info, LINK_SERVER (server)->local_serv_info, LINK_CONNECTION_NONBLOCKING, GIOP_1_2); #endif g_assert (cnx != NULL); while (server_cnx == NULL) link_main_iteration (TRUE); giop_debug_hook_new_connection = NULL; g_assert (server_cnx != NULL); if (reverse) { gpointer tmp = server_cnx; server_cnx = cnx; cnx = tmp; } do_test (); if (reverse) { gpointer tmp = server_cnx; server_cnx = cnx; cnx = tmp; } g_object_unref (G_OBJECT (server)); server_cnx = NULL; server = NULL; link_connection_unref (cnx); cnx = NULL; } static void test_cookie (CORBA_ORB orb) { int i; ORBit_ObjectAdaptor adaptor; CORBA_sequence_CORBA_octet *seq; adaptor = g_ptr_array_index (orb->adaptors, 0); g_assert (adaptor != NULL); seq = &adaptor->adaptor_key; g_assert (seq->_length > 8); fprintf (stderr, "ORB cookie (%ld): ", (long) seq->_length); for (i = 0; i < seq->_length; i++) fprintf (stderr, "%.2x", seq->_buffer [i]); fprintf (stderr, " - looks random ?\n"); } #define MANGLE_ITERATIONS 1000 /* fraction denominators */ #define MANGLE_HEADER 8 #define MANGLE_BODY 64 static int bits_corrupted = 0; static int cnx_closed = 0; static void test_incoming_mangler (GIOPRecvBuffer *buf) { int r; guchar *start, *p; CORBA_long len; switch (buf->state) { case GIOP_MSG_READING_HEADER: start = (guchar *) &buf->msg.header; r = MANGLE_HEADER; break; case GIOP_MSG_READING_BODY: start = (guchar *) buf->message_body + 12; r = MANGLE_BODY; break; default: start = NULL; r = 0; g_error ("Odd msg status"); break; } len = buf->end - start; for (p = start; p < buf->end; p++) { int i = rand (); if ((i * 1.0 * r) / (RAND_MAX + 1.0) <= 1.0) { int bit = 1 << ((i >> 8) & 0x7); p--; /* can do the same again */ *p ^= bit; bits_corrupted++; } } } static void test_mangling_exec (void) { link_connection_write ( LINK_CONNECTION (cnx), giop_fragment_data, sizeof (giop_fragment_data), non_blocking); wait_for_disconnect (); /* Wait around for things to blow up */ if (cnx->parent.status == LINK_DISCONNECTED) cnx_closed++; } static void test_mangling (CORBA_ORB orb) { int i; giop_debug_hook_incoming_mangler = test_incoming_mangler; fprintf (stderr, "Testing data corruption ...\n"); for (i = 0; i < MANGLE_ITERATIONS; i++) { run_test (orb, test_mangling_exec, i % 1); } fprintf (stderr, " %d bits corrupted, %d cnx terminated\n", bits_corrupted, cnx_closed); giop_debug_hook_incoming_mangler = NULL; } int main (int argc, char *argv[]) { CORBA_ORB orb; CORBA_Environment ev; g_thread_init (NULL); CORBA_exception_init (&ev); orb = CORBA_ORB_init (&argc, argv, "orbit-local-orb", &ev); g_assert (ev._major == CORBA_NO_EXCEPTION); non_blocking = link_write_options_new (FALSE); fprintf (stderr, "Testing fragment support ...\n"); run_test (orb, test_fragments, FALSE); run_test (orb, test_fragments, TRUE); fprintf (stderr, "Testing spoofing ...\n"); run_test (orb, test_spoofing, FALSE); run_test (orb, test_spoofing, TRUE); test_cookie (orb); test_mangling (orb); link_write_options_free (non_blocking); CORBA_ORB_destroy (orb, &ev); g_assert (ev._major == CORBA_NO_EXCEPTION); CORBA_Object_release ((CORBA_Object) orb, &ev); g_assert (ev._major == CORBA_NO_EXCEPTION); fprintf (stderr, "All tests passed.\n"); return 0; } #endif /* G_ENABLE_DEBUG */ ORBit2-2.14.19/test/test1.c0000644000175000001440000000030311334247617012035 00000000000000#include "test1.h" int main(int argc, char *argv[]) { CORBA_ORB orb; CORBA_Environment ev; CORBA_exception_init(&ev); orb = CORBA_ORB_init(&argc, argv, "orbit-local-orb", &ev); return 0; } ORBit2-2.14.19/test/everything/0000755000175000001440000000000011450334030013062 500000000000000ORBit2-2.14.19/test/everything/derivedServer.c0000644000175000001440000000114011334247617015772 00000000000000#include "everything.h" #include "constants.h" #include /* DerivedServer bits */ POA_test_DerivedServer__epv DerivedServer_epv = { NULL }; POA_test_BaseServer__epv BaseServer_epv = { NULL, NULL, /* opPolymorphic */ NULL /* attribPolymorphic */ }; POA_test_B1__epv B1_epv = { NULL }; POA_test_B2__epv B2_epv = { NULL }; POA_test_C1__epv C1_epv = { NULL }; PortableServer_ServantBase__epv DerivedServer_base_epv = {NULL, simple_finalize, NULL}; POA_test_DerivedServer__vepv DerivedServer_vepv = { &DerivedServer_base_epv, &BaseServer_epv, &B1_epv, &B2_epv, &C1_epv, &DerivedServer_epv }; ORBit2-2.14.19/test/everything/basicServer.c0000644000175000001440000001745611334247617015452 00000000000000/* * CORBA C language mapping tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Phil Dawes */ #include "everything.h" #include "constants.h" #include extern int _orbit_debug_flags; static CORBA_char * BasicServer__get_foo (PortableServer_Servant servant, CORBA_Environment *ev) { return CORBA_string_dup (constants_STRING_RETN); } static void BasicServer__set_foo (PortableServer_Servant servant, const CORBA_char *val, CORBA_Environment *ev) { g_assert (!strcmp (val, constants_STRING_IN)); } static CORBA_long BasicServer__get_bah (PortableServer_Servant servant, CORBA_Environment *ev) { return constants_LONG_RETN; } static CORBA_char * BasicServer_opString (PortableServer_Servant servant, const CORBA_char *inArg, CORBA_char **inoutArg, CORBA_char **outArg, CORBA_Environment *ev) { g_assert (!strcmp (inArg, constants_STRING_IN)); g_assert (!strcmp (*inoutArg, constants_STRING_INOUT_IN)); CORBA_free (*inoutArg); *inoutArg = CORBA_string_dup (constants_STRING_INOUT_OUT); *outArg = CORBA_string_dup (constants_STRING_OUT); return CORBA_string_dup (constants_STRING_RETN); } static CORBA_long BasicServer_opLong (PortableServer_Servant servant, const CORBA_long inArg, CORBA_long *inoutArg, CORBA_long *outArg, CORBA_Environment *ev) { g_assert (inArg == constants_LONG_IN); g_assert (*inoutArg == constants_LONG_INOUT_IN); *inoutArg = constants_LONG_INOUT_OUT; *outArg = constants_LONG_OUT;; return constants_LONG_RETN; } static CORBA_long_long BasicServer_opLongLong (PortableServer_Servant servant, const CORBA_long_long inArg, CORBA_long_long *inoutArg, CORBA_long_long *outArg, CORBA_Environment *ev) { g_assert (inArg == constants_LONG_LONG_IN); g_assert (*inoutArg == constants_LONG_LONG_INOUT_IN); *inoutArg = constants_LONG_LONG_INOUT_OUT; *outArg = constants_LONG_LONG_OUT;; return constants_LONG_LONG_RETN; } static CORBA_float BasicServer_opFloat (PortableServer_Servant servant, const CORBA_float inArg, CORBA_float *inoutArg, CORBA_float *outArg, CORBA_Environment *ev) { g_assert (inArg == constants_FLOAT_IN); g_assert (*inoutArg == constants_FLOAT_INOUT_IN); *inoutArg = constants_FLOAT_INOUT_OUT; *outArg = constants_FLOAT_OUT;; return constants_FLOAT_RETN; } static CORBA_double BasicServer_opDouble (PortableServer_Servant servant, const CORBA_double inArg, CORBA_double *inoutArg, CORBA_double *outArg, CORBA_Environment *ev) { g_assert (inArg == constants_DOUBLE_IN); g_assert (*inoutArg == constants_DOUBLE_INOUT_IN); *inoutArg = constants_DOUBLE_INOUT_OUT; *outArg = constants_DOUBLE_OUT;; return constants_DOUBLE_RETN; } static CORBA_long_double BasicServer_opLongDouble (PortableServer_Servant servant, const CORBA_long_double inArg, CORBA_long_double *inoutArg, CORBA_long_double *outArg, CORBA_Environment *ev) { g_assert (inArg == constants_LONG_DOUBLE_IN); g_assert (*inoutArg == constants_LONG_DOUBLE_INOUT_IN); *inoutArg = constants_LONG_DOUBLE_INOUT_OUT; *outArg = constants_LONG_DOUBLE_OUT;; return constants_LONG_DOUBLE_RETN; } static test_AnEnum BasicServer_opEnum (PortableServer_Servant servant, const test_AnEnum inArg, test_AnEnum *inoutArg, test_AnEnum *outArg, CORBA_Environment *ev) { g_assert (inArg == test_ENUM_IN); g_assert (*inoutArg == test_ENUM_INOUT_IN); *inoutArg = test_ENUM_INOUT_OUT; *outArg = test_ENUM_OUT; return test_ENUM_RETN; } static void BasicServer_opException (PortableServer_Servant servant, CORBA_Environment *ev) { test_TestException *ex = test_TestException__alloc (); ex->reason = CORBA_string_dup (constants_STRING_IN); ex->number = constants_LONG_IN; ex->aseq._buffer = CORBA_sequence_CORBA_long_allocbuf (1); ex->aseq._length = 1; ex->aseq._buffer [0] = constants_LONG_IN; ex->factory = getFactoryInstance(ev); CORBA_sequence_set_release (&ex->aseq, CORBA_TRUE); CORBA_exception_set ( ev, CORBA_USER_EXCEPTION, ex_test_TestException,ex); } static void BasicServer_opOneWay (PortableServer_Servant servant, const CORBA_char *str, CORBA_Environment *ev) { g_assert (!strcmp (str, constants_STRING_IN)); } static void BasicServer_testLargeStringSeq (PortableServer_Servant servant, const test_StrSeq *seq, CORBA_Environment *ev) { } /* Nasty IORs from JavaORB */ static char* iorstrings[] = { "IOR:010000001f00000049444c3a6f726269742f746573742f54657" "374466163746f72793a312e300000030000000054424f6400000001" "01020005000000554e495800000000160000006c6f63616c686f737" "42e6c6f63616c646f6d61696e0000002d0000002f746d702f6f7262" "69742d6d69636861656c2f6c696e632d363733322d302d373362323" "966373333316662390000000000000000caaedfba58000000010102" "002d0000002f746d702f6f726269742d6d69636861656c2f6c696e6" "32d363733322d302d37336232396637333331666239000000001c00" "000000000000331c40f8ba0fa828dc2928282828282808000000db7" "e269601000000480000000100000002000000050000001c00000000" "000000331c40f8ba0fa828dc2928282828282808000000db7e26960" "1000000140000000100000001000105000000000901010000000000", "IOR:000000000000002249444c3a4163636573736962696c6974792" "f4170706c69636174696f6e3a312e30000000000000010000000000" "000082000102000000000a3132372e302e302e3200837800000031a" "fabcb00000000200d3e1d2600000001000000000000000100000008" "526f6f74504f4100000000080000000100000000140000000000000" "2000000010000002000000000000100010000000205010001000100" "2000010109000000010001010000000026000000020002" }; static CORBA_long BasicServer_getObjectCount (PortableServer_Servant servant, CORBA_Environment *ev) { return G_N_ELEMENTS (iorstrings) + 1; } static CORBA_Object BasicServer_getObject (PortableServer_Servant servant, const CORBA_long which, CORBA_Environment *ev) { if (which < G_N_ELEMENTS (iorstrings)) return CORBA_ORB_string_to_object (global_orb, iorstrings[which], ev); else return CORBA_OBJECT_NIL; } static void BasicServer_testBoolString (PortableServer_Servant servant, CORBA_boolean inBool, const char *inArg, char **inoutArg, CORBA_Environment *ev) { } POA_test_BasicServer__epv BasicServer_epv = { NULL, BasicServer__get_foo, BasicServer__set_foo, BasicServer__get_bah, BasicServer_opString, BasicServer_opLong, BasicServer_opLongLong, BasicServer_opFloat, BasicServer_opDouble, BasicServer_opLongDouble, BasicServer_opEnum, BasicServer_opException, BasicServer_opOneWay, NULL, /* noImplement */ BasicServer_testLargeStringSeq, BasicServer_getObjectCount, BasicServer_getObject, BasicServer_testBoolString }; PortableServer_ServantBase__epv BasicServer_base_epv = {NULL, simple_finalize, NULL}; POA_test_BasicServer__vepv BasicServer_vepv = { &BasicServer_base_epv, &BasicServer_epv }; ORBit2-2.14.19/test/everything/pingServer.c0000644000175000001440000000723011334247617015313 00000000000000#include #include #include "everything.h" #include "constants.h" extern PortableServer_POA global_poa; typedef struct { POA_test_PingPongServer baseServant; CORBA_Object registered; } test_PingPongServer_Servant; static void PingPongServer_set (PortableServer_Servant servant, CORBA_Object object, const CORBA_char *name, CORBA_Environment *ev) { test_PingPongServer_Servant *this; this = (test_PingPongServer_Servant *) servant; this->registered = CORBA_Object_duplicate (object, ev); } static CORBA_Object PingPongServer_get (PortableServer_Servant servant, const CORBA_char *name, CORBA_Environment *ev) { test_PingPongServer_Servant *this; this = (test_PingPongServer_Servant *) servant; return CORBA_Object_duplicate (this->registered, ev); } static void PingPongServer_opSleep (PortableServer_Servant servant, const char *large_string, CORBA_Environment *ev) { /* Don't process the buffer - it should fill up at the other end */ g_usleep (10000); } static void PingPongServer_opOneWay (PortableServer_Servant servant, const CORBA_long l, CORBA_Environment *ev) { /* Do nothing, but try and confuse the queue */ link_main_iteration (FALSE); } static void PingPongServer_opOneWayCallback (PortableServer_Servant servant, test_PingPongServer remote_obj, CORBA_Environment *ev) { static int depth = 0; depth++; if (depth % 400 == 0 && depth > 1) fprintf (stderr, " recursion depth %d\n", depth); g_assert (ORBit_small_get_connection_status (remote_obj) != ORBIT_CONNECTION_IN_PROC); /* While this is blocking, loads more incoming * calls will trash our stack - quite possibly */ test_PingPongServer_opRoundTrip (remote_obj, ev); depth--; } static void PingPongServer_opRoundTrip (PortableServer_Servant servant, CORBA_Environment *ev) { /* do nothing, but forces a round-trip */ } static CORBA_long PingPongServer_pingPong (PortableServer_Servant servant, const test_PingPongServer replyTo, const CORBA_long idx, CORBA_Environment *ev) { CORBA_long ret; CORBA_Object me; me = PortableServer_POA_servant_to_reference ( global_poa, servant, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); test_PingPongServer_opOneWay (replyTo, 3, ev); if (idx > 0) ret = test_PingPongServer_pingPong (replyTo, me, idx - 1, ev); else ret = 0; CORBA_Object_release (me, ev); return ret; } static void ping_pong_finalize (PortableServer_Servant servant, CORBA_Environment *ev) { test_PingPongServer_Servant *this; this = (test_PingPongServer_Servant *) servant; CORBA_Object_release (this->registered, ev); g_free (servant); } PortableServer_ServantBase__epv PingPongServer_base_epv = { NULL, ping_pong_finalize, NULL }; POA_test_PingPongServer__epv PingPongServer_epv = { NULL, PingPongServer_opSleep, PingPongServer_opOneWay, PingPongServer_opOneWayCallback, PingPongServer_opRoundTrip, PingPongServer_pingPong, PingPongServer_set, PingPongServer_get }; POA_test_PingPongServer__vepv PingPongServer_vepv = { &PingPongServer_base_epv, &PingPongServer_epv }; static POA_test_PingPongServer * create_ping_pong_servant (void) { CORBA_Environment ev[1]; test_PingPongServer_Servant *servant; servant = g_new0 (test_PingPongServer_Servant, 1); servant->baseServant.vepv = &PingPongServer_vepv; servant->registered = CORBA_OBJECT_NIL; CORBA_exception_init (ev); POA_test_PingPongServer__init (servant, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_exception_free (ev); return (POA_test_PingPongServer *) servant; }; ORBit2-2.14.19/test/everything/everything.idl0000644000175000001440000002216511334247617015705 00000000000000/* * CORBA C language mapping tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Phil Dawes */ #pragma prefix "orbit" module test { const char CONST_CHAR_NL = '\x0A'; const char CONST_CHAR = 't'; const short CONST_SHORT = 0x1234; const long CONST_LONG = 0x12345678; const long long CONST_LONG_LONG = 0x12345678; const string CONST_STRING = "ConstString"; const float CONST_FLOAT = 1234.56; const double CONST_DOUBLE = 1234.5678; const long double CONST_LONG_DOUBLE = 1234.567891; const boolean CONST_BOOLEAN = TRUE; enum Soup { veggie, chicken, tomato, oxtail }; const Soup FAVORITE_SOUP = veggie; const Soup HORRIBLE_SOUP = oxtail; // Forward declarations interface BasicServer; interface StructServer; interface SequenceServer; interface UnionServer; interface ArrayServer; interface AnyServer; interface BaseServer; interface B1; interface B2; interface DerivedServer; interface TransientObj; interface ContextServer; interface DeadReferenceObj; interface PingPongServer; interface LifeCycleServer; interface TestFactory { BasicServer getBasicServer(); StructServer getStructServer(); string getStructServerIOR(); SequenceServer getSequenceServer(); UnionServer getUnionServer(); ArrayServer getArrayServer(); AnyServer getAnyServer(); ContextServer getContextServer(); oneway void segv (in string when); BaseServer getBaseServer(); DerivedServer getDerivedServer(); BaseServer getDerivedServerAsBaseServer(); B2 getDerivedServerAsB2(); TransientObj createTransientObj(); DeadReferenceObj createDeadReferenceObj(); PingPongServer createPingPongServer (); LifeCycleServer createLifeCycleServer (); void noOp (); }; interface LifeCycleServer { void deactivateOnReturn(); void deactivateUnrefOnReturn(); }; interface DeadReferenceObj { void test (); }; interface TransientObj { void remove(); }; typedef struct FixedLengthStruct { short a; } DummyStruct; struct VariableLengthStruct { string a; }; struct StructAny { string a; any b; }; struct CompoundStruct { VariableLengthStruct a; }; struct ObjectStruct { DerivedServer serv; }; struct AlignHoleInnerStruct { double a; octet b; }; struct AlignHoleStruct { AlignHoleInnerStruct a; char b; }; typedef sequence StrSeq; typedef sequence AnotherStrSeq; typedef sequence BoundedStructSeq; typedef sequence BoundedLongSeq; typedef sequence LongSeq; typedef sequence StrSeqSeq; typedef sequence AnySeq; struct StructWithSequenceInIt { StrSeqSeq theSeq; }; interface SequenceServer { StrSeq opStrSeq(in StrSeq inArg, inout StrSeq inoutArg, out StrSeq outArg); BoundedStructSeq opBoundedStructSeq(in BoundedStructSeq inArg, inout BoundedStructSeq inoutArg, out BoundedStructSeq outArg); LongSeq opMassiveSeq(); AnySeq opAnySeq(); }; typedef enum AnEnum { ENUM_IN, ENUM_INOUT_IN, ENUM_INOUT_OUT, ENUM_OUT, ENUM_RETN } DummyEnum; exception SimpleException { }; exception TestException { string reason; long number; LongSeq aseq; TestFactory factory; }; const long SequenceLen = 4; typedef octet OctetArray[SequenceLen]; typedef long LongArray[SequenceLen]; typedef string StrArray[SequenceLen]; typedef string StrArrayMultiDimensional[SequenceLen][3][5]; typedef FixedLengthStruct FixedLengthStructArray[SequenceLen]; typedef VariableLengthStruct VariableLengthStructArray[SequenceLen]; typedef AlignHoleStruct AlignHoleStructArray[SequenceLen]; interface ArrayServer { LongArray opLongArray(in LongArray inArg, inout LongArray inoutArg, out LongArray outArg); OctetArray opOctetArray(in OctetArray inArg, inout OctetArray inoutArg, out OctetArray outArg); FixedLengthStructArray opFixedLengthStructArray(in FixedLengthStructArray inArg, inout FixedLengthStructArray inoutArg, out FixedLengthStructArray outArg); StrArray opStrArray(in StrArray inArg, inout StrArray inoutArg, out StrArray outArg); AlignHoleStructArray opAlignHoleStructArray(in AlignHoleStructArray inArg, inout AlignHoleStructArray inoutArg, out AlignHoleStructArray outArg); }; interface BasicServer { attribute string foo; readonly attribute long bah; string opString(in string inArg, inout string inoutArg, out string outArg); long opLong(in long inArg, inout long inoutArg, out long outArg); long long opLongLong(in long long inArg, inout long long inoutArg, out long long outArg); float opFloat (in float inArg, inout float inoutArg, out float outArg); double opDouble (in double inArg, inout double inoutArg, out double outArg); long double opLongDouble (in long double inArg, inout long double inoutArg, out long double outArg); AnEnum opEnum(in AnEnum inArg, inout AnEnum inoutArg, out AnEnum outArg); void opException() raises(TestException); oneway void opOneWay(in string inArg); void noImplement (); void testLargeStringSeq (in StrSeq seq); long getObjectCount (); Object getObject (in long which); void testBoolString (in boolean inBool, in string inArg, inout string inoutArg); }; interface StructServer : BasicServer { FixedLengthStruct opFixed (in FixedLengthStruct inArg, inout FixedLengthStruct inoutArg, out FixedLengthStruct outArg); VariableLengthStruct opVariable (in VariableLengthStruct inArg, inout VariableLengthStruct inoutArg, out VariableLengthStruct outArg); CompoundStruct opCompound (in CompoundStruct inArg, inout CompoundStruct inoutArg, out CompoundStruct outArg); AlignHoleStruct opAlignHole (in AlignHoleStruct inArg, inout AlignHoleStruct inoutArg, out AlignHoleStruct outArg); oneway void opObjectStruct (in ObjectStruct inArg); StructAny opStructAny (); }; interface BaseServer { long opPolymorphic(); attribute string attribPolymorphic; }; // diamond of death, + an additional single inheritance level interface B1 : BaseServer{}; interface B2 : BaseServer{}; interface C1 : B1,B2 {}; interface DerivedServer : C1 {}; union FixedLengthUnion switch (char) { case 'a': long x; case 'b': char y; case 'c': case 'd': boolean z; case 'e': FixedLengthStruct v; }; union VariableLengthUnion switch (long) { case 1: long x; default: long w; case 2: string y; case 3: double j; case 4: boolean z; case 5: VariableLengthStruct a; case 6: StrSeq b; case 7: FixedLengthUnion c; case 8: StrArray d; }; union EnumUnion switch (enum Colour { red, green, blue }) { case red: long x; case blue: boolean y; }; union BooleanUnion switch(boolean) { case 0: VariableLengthStruct x; case 1: string y; }; typedef string StrArray2[20]; union ArrayUnion switch(unsigned short) { case 22: StrArray2 d; }; typedef sequence unionSeq; typedef FixedLengthUnion FixedLengthUnionArray[SequenceLen]; interface UnionServer { FixedLengthUnion opFixed (in FixedLengthUnion inArg, inout FixedLengthUnion inoutArg, out FixedLengthUnion outArg); VariableLengthUnion opVariable (in VariableLengthUnion inArg, inout VariableLengthUnion inoutArg, out VariableLengthUnion outArg); EnumUnion opMisc (in unionSeq inSeq, in BooleanUnion inArg, out ArrayUnion outArg); FixedLengthUnionArray opFixedLengthUnionArray (in FixedLengthUnionArray inArg, inout FixedLengthUnionArray inoutArg, out FixedLengthUnionArray outArg); }; interface AnyServer { any opAnyStrSeq(); any opAnyLong(in any inArg, inout any inoutArg, out any outArg); any opAnyString(in any inArg, inout any inoutArg, out any outArg); any opAnyStruct(in any inArg, inout any inoutArg, out any outArg); TypeCode opTypeCode(in TypeCode inArg, inout TypeCode inoutArg, out TypeCode outArg); }; interface ContextServer { Object opWithContext(in Object inArg, inout Object inoutArg, out Object outArg) context ("foo", "bar"); }; interface PingPongServer { oneway void opSleep (in string large_string); oneway void opOneWay (in long l); oneway void opOneWayCallback (in PingPongServer obj); void opRoundTrip (); long pingPong (in PingPongServer replyTo, in long idx); void set (in PingPongServer reg, in string name); Object get (in string name); }; }; ORBit2-2.14.19/test/everything/Makefile.am0000644000175000001440000000431511334247617015060 00000000000000check_PROGRAMS = client server EVERYTHING_BUILT = \ everything.h \ everything-skels.c \ everything-stubs.c \ everything-common.c EVERYTHING_IDLOUT = \ $(EVERYTHING_BUILT) \ everything-imodule.c INCLUDES = \ -I$(top_srcdir)/include \ -I$(top_builddir)/include \ -I$(top_builddir)/src \ -I$(top_builddir)/src/ORBitutil \ -I$(top_srcdir)/src/orb \ -I$(top_srcdir)/src \ -I$(top_srcdir)/src/services/imodule \ -DORBIT2_INTERNAL_API \ -DTEST_SRCDIR=\""$(top_srcdir)"/test/everything\" \ $(WARN_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_CFLAGS) \ $(ORBIT_IDL_CFLAGS) # -DORBIT_STUB_DEBUG_LOCAL LDADD = $(top_builddir)/src/services/imodule/libORBit-imodule-2.la \ $(top_builddir)/src/orb/libORBit-2.la \ $(ORBIT_IDL_LIBS) \ $(ORBIT_LIBS) # -lefence client.c : $(included_src) touch client.c client_SOURCES=${EVERYTHING_BUILT} client.c everything.idl constants.h client_DEPENDENCIES=${EVERYTHING_BUILT} $(included_src) client_LDADD = $(LDADD) client_LDFLAGS = -static -module included_src = \ anyServer.c \ arrayServer.c \ basicServer.c \ contextServer.c \ deadReference.c \ lifeCycle.c \ derivedServer.c \ pingServer.c \ sequenceServer.c \ structServer.c \ unionServer.c orbittypelibdir = $(libdir)/orbit-2.0 orbittypelib_LTLIBRARIES = Everything_module.la Everything_module_la_LDFLAGS = \ -export-dynamic -module -no-undefined -avoid-version Everything_module_la_SOURCES = \ everything-imodule.c Everything_module_la_LIBADD = \ $(top_builddir)/src/orb/libORBit-2.la \ $(ORBIT_LIBS) server_SOURCES=server.c ${EVERYTHING_BUILT} everything.idl constants.h server_LDFLAGS = -static -module server.c : $(included_src) touch server.c server_DEPENDENCIES=${EVERYTHING_BUILT} $(included_src) IDL_FLAGS= --showcpperrors --add-imodule IDL_FILES= everything.idl include $(top_srcdir)/Makefile.shared BUILT_SOURCES = ${EVERYTHING_BUILT} everything-imodule.c CLEANFILES = ${BUILT_SOURCES} iorfile TESTS = $(srcdir)/test.sh EXTRA_DIST = $(IDL_FILES) test.sh $(included_src) dist-hook: cd $(distdir); rm -f $(BUILT_SOURCES) ORBit2-2.14.19/test/everything/Makefile.in0000644000175000001440000006371511450333734015075 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ check_PROGRAMS = client$(EXEEXT) server$(EXEEXT) DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/Makefile.shared subdir = test/everything ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(orbittypelibdir)" LTLIBRARIES = $(orbittypelib_LTLIBRARIES) am__DEPENDENCIES_1 = Everything_module_la_DEPENDENCIES = \ $(top_builddir)/src/orb/libORBit-2.la $(am__DEPENDENCIES_1) am_Everything_module_la_OBJECTS = everything-imodule.lo Everything_module_la_OBJECTS = $(am_Everything_module_la_OBJECTS) Everything_module_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(Everything_module_la_LDFLAGS) $(LDFLAGS) -o $@ am__objects_1 = everything-skels.$(OBJEXT) everything-stubs.$(OBJEXT) \ everything-common.$(OBJEXT) am_client_OBJECTS = $(am__objects_1) client.$(OBJEXT) client_OBJECTS = $(am_client_OBJECTS) am__DEPENDENCIES_2 = \ $(top_builddir)/src/services/imodule/libORBit-imodule-2.la \ $(top_builddir)/src/orb/libORBit-2.la $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) client_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(client_LDFLAGS) \ $(LDFLAGS) -o $@ am_server_OBJECTS = server.$(OBJEXT) $(am__objects_1) server_OBJECTS = $(am_server_OBJECTS) server_LDADD = $(LDADD) server_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(server_LDFLAGS) \ $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(Everything_module_la_SOURCES) $(client_SOURCES) \ $(server_SOURCES) DIST_SOURCES = $(Everything_module_la_SOURCES) $(client_SOURCES) \ $(server_SOURCES) ETAGS = etags CTAGS = ctags am__tty_colors = \ red=; grn=; lgn=; blu=; std= DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EVERYTHING_BUILT = \ everything.h \ everything-skels.c \ everything-stubs.c \ everything-common.c EVERYTHING_IDLOUT = \ $(EVERYTHING_BUILT) \ everything-imodule.c INCLUDES = \ -I$(top_srcdir)/include \ -I$(top_builddir)/include \ -I$(top_builddir)/src \ -I$(top_builddir)/src/ORBitutil \ -I$(top_srcdir)/src/orb \ -I$(top_srcdir)/src \ -I$(top_srcdir)/src/services/imodule \ -DORBIT2_INTERNAL_API \ -DTEST_SRCDIR=\""$(top_srcdir)"/test/everything\" \ $(WARN_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_CFLAGS) \ $(ORBIT_IDL_CFLAGS) # -DORBIT_STUB_DEBUG_LOCAL LDADD = $(top_builddir)/src/services/imodule/libORBit-imodule-2.la \ $(top_builddir)/src/orb/libORBit-2.la \ $(ORBIT_IDL_LIBS) \ $(ORBIT_LIBS) client_SOURCES = ${EVERYTHING_BUILT} client.c everything.idl constants.h client_DEPENDENCIES = ${EVERYTHING_BUILT} $(included_src) client_LDADD = $(LDADD) client_LDFLAGS = -static -module included_src = \ anyServer.c \ arrayServer.c \ basicServer.c \ contextServer.c \ deadReference.c \ lifeCycle.c \ derivedServer.c \ pingServer.c \ sequenceServer.c \ structServer.c \ unionServer.c orbittypelibdir = $(libdir)/orbit-2.0 orbittypelib_LTLIBRARIES = Everything_module.la Everything_module_la_LDFLAGS = \ -export-dynamic -module -no-undefined -avoid-version Everything_module_la_SOURCES = \ everything-imodule.c Everything_module_la_LIBADD = \ $(top_builddir)/src/orb/libORBit-2.la \ $(ORBIT_LIBS) server_SOURCES = server.c ${EVERYTHING_BUILT} everything.idl constants.h server_LDFLAGS = -static -module server_DEPENDENCIES = ${EVERYTHING_BUILT} $(included_src) IDL_FLAGS = --showcpperrors --add-imodule IDL_FILES = everything.idl @MAINTAINER_MODE_TRUE@IDL_DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) @MAINTAINER_MODE_TRUE@IDL_DEP_FILES = $(IDL_FILES:%.idl=.deps/%.idl.P) BUILT_SOURCES = ${EVERYTHING_BUILT} everything-imodule.c CLEANFILES = ${BUILT_SOURCES} iorfile TESTS = $(srcdir)/test.sh EXTRA_DIST = $(IDL_FILES) test.sh $(included_src) all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.shared $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/everything/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu test/everything/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-orbittypelibLTLIBRARIES: $(orbittypelib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(orbittypelibdir)" || $(MKDIR_P) "$(DESTDIR)$(orbittypelibdir)" @list='$(orbittypelib_LTLIBRARIES)'; test -n "$(orbittypelibdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(orbittypelibdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(orbittypelibdir)"; \ } uninstall-orbittypelibLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(orbittypelib_LTLIBRARIES)'; test -n "$(orbittypelibdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(orbittypelibdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(orbittypelibdir)/$$f"; \ done clean-orbittypelibLTLIBRARIES: -test -z "$(orbittypelib_LTLIBRARIES)" || rm -f $(orbittypelib_LTLIBRARIES) @list='$(orbittypelib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done Everything_module.la: $(Everything_module_la_OBJECTS) $(Everything_module_la_DEPENDENCIES) $(Everything_module_la_LINK) -rpath $(orbittypelibdir) $(Everything_module_la_OBJECTS) $(Everything_module_la_LIBADD) $(LIBS) clean-checkPROGRAMS: @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list client$(EXEEXT): $(client_OBJECTS) $(client_DEPENDENCIES) @rm -f client$(EXEEXT) $(client_LINK) $(client_OBJECTS) $(client_LDADD) $(LIBS) server$(EXEEXT): $(server_OBJECTS) $(server_DEPENDENCIES) @rm -f server$(EXEEXT) $(server_LINK) $(server_OBJECTS) $(server_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/client.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/everything-common.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/everything-imodule.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/everything-skels.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/everything-stubs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/server.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags check-TESTS: $(TESTS) @failed=0; all=0; xfail=0; xpass=0; skip=0; \ srcdir=$(srcdir); export srcdir; \ list=' $(TESTS) '; \ $(am__tty_colors); \ if test -n "$$list"; then \ for tst in $$list; do \ if test -f ./$$tst; then dir=./; \ elif test -f $$tst; then dir=; \ else dir="$(srcdir)/"; fi; \ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xpass=`expr $$xpass + 1`; \ failed=`expr $$failed + 1`; \ col=$$red; res=XPASS; \ ;; \ *) \ col=$$grn; res=PASS; \ ;; \ esac; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xfail=`expr $$xfail + 1`; \ col=$$lgn; res=XFAIL; \ ;; \ *) \ failed=`expr $$failed + 1`; \ col=$$red; res=FAIL; \ ;; \ esac; \ else \ skip=`expr $$skip + 1`; \ col=$$blu; res=SKIP; \ fi; \ echo "$${col}$$res$${std}: $$tst"; \ done; \ if test "$$all" -eq 1; then \ tests="test"; \ All=""; \ else \ tests="tests"; \ All="All "; \ fi; \ if test "$$failed" -eq 0; then \ if test "$$xfail" -eq 0; then \ banner="$$All$$all $$tests passed"; \ else \ if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ fi; \ else \ if test "$$xpass" -eq 0; then \ banner="$$failed of $$all $$tests failed"; \ else \ if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ fi; \ fi; \ dashes="$$banner"; \ skipped=""; \ if test "$$skip" -ne 0; then \ if test "$$skip" -eq 1; then \ skipped="($$skip test was not run)"; \ else \ skipped="($$skip tests were not run)"; \ fi; \ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$skipped"; \ fi; \ report=""; \ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ report="Please report to $(PACKAGE_BUGREPORT)"; \ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$report"; \ fi; \ dashes=`echo "$$dashes" | sed s/./=/g`; \ if test "$$failed" -eq 0; then \ echo "$$grn$$dashes"; \ else \ echo "$$red$$dashes"; \ fi; \ echo "$$banner"; \ test -z "$$skipped" || echo "$$skipped"; \ test -z "$$report" || echo "$$report"; \ echo "$$dashes$$std"; \ test "$$failed" -eq 0; \ else :; fi distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook check-am: all-am $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(orbittypelibdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am clean-am: clean-checkPROGRAMS clean-generic clean-libtool \ clean-orbittypelibLTLIBRARIES mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-local distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-orbittypelibLTLIBRARIES install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-orbittypelibLTLIBRARIES .MAKE: all check check-am install install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ clean-checkPROGRAMS clean-generic clean-libtool \ clean-orbittypelibLTLIBRARIES ctags dist-hook distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-local distclean-tags distdir dvi dvi-am html html-am \ info info-am install install-am install-data install-data-am \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-orbittypelibLTLIBRARIES install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-orbittypelibLTLIBRARIES # -lefence client.c : $(included_src) touch client.c server.c : $(included_src) touch server.c %-stubs.c %-skels.c %-common.c %-imodule.c %-skelimpl.c: %.h true %.h: $(IDL_DIR)%.idl $(IDL_COMPILER) -(rm -f $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c || true) > /dev/null $(IDL_COMPILER) $(IDL_FLAGS) --deps $(*D)/.deps/$(*F).idl.P $< for I in $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c; do \ if test -f $$I; then \ sed -e 's,OObject,Object,g' -e 's,TTypeCode,TypeCode,g' $$I > $$I.out; \ mv $$I.out $$I ; \ fi; \ done @MAINTAINER_MODE_TRUE@-include $(IDL_DEP_FILES) distclean-local: -rm -rf .deps dist-hook: cd $(distdir); rm -f $(BUILT_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/test/everything/structServer.c0000644000175000001440000001203011334247617015674 00000000000000/* * CORBA C language mapping tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Phil Dawes */ #include "everything.h" #include "constants.h" #include static test_FixedLengthStruct StructServer_opFixed (PortableServer_Servant servant, const test_FixedLengthStruct *inArg, test_FixedLengthStruct *inoutArg, test_FixedLengthStruct *outArg, CORBA_Environment *ev) { test_FixedLengthStruct retval; g_assert (inArg->a == constants_SHORT_IN); g_assert (inoutArg->a == constants_SHORT_INOUT_IN); inoutArg->a = constants_SHORT_INOUT_OUT; outArg->a = constants_SHORT_OUT; retval.a = constants_SHORT_RETN; return retval; } static test_VariableLengthStruct* StructServer_opVariable (PortableServer_Servant servant, const test_VariableLengthStruct *inArg, test_VariableLengthStruct *inoutArg, test_VariableLengthStruct **outArg, CORBA_Environment *ev) { test_VariableLengthStruct *retval; g_assert (!strcmp (inArg->a,constants_STRING_IN)); g_assert (!strcmp (inoutArg->a,constants_STRING_INOUT_IN)); *outArg = test_VariableLengthStruct__alloc (); retval = test_VariableLengthStruct__alloc (); CORBA_free (inoutArg->a); inoutArg->a = CORBA_string_dup (constants_STRING_INOUT_OUT); (*outArg)->a = CORBA_string_dup (constants_STRING_OUT); retval->a = CORBA_string_dup (constants_STRING_RETN); return retval; } static test_CompoundStruct * StructServer_opCompound (PortableServer_Servant servant, const test_CompoundStruct *inArg, test_CompoundStruct *inoutArg, test_CompoundStruct **outArg, CORBA_Environment *ev) { test_CompoundStruct *retval; g_assert (!strcmp (inArg->a.a,constants_STRING_IN)); g_assert (!strcmp (inoutArg->a.a,constants_STRING_INOUT_IN)); *outArg = test_CompoundStruct__alloc (); retval = test_CompoundStruct__alloc (); CORBA_free (inoutArg->a.a); inoutArg->a.a = CORBA_string_dup (constants_STRING_INOUT_OUT); (*outArg)->a.a = CORBA_string_dup (constants_STRING_OUT); retval->a.a = CORBA_string_dup (constants_STRING_RETN); return retval; } static test_AlignHoleStruct StructServer_opAlignHole (PortableServer_Servant servant, const test_AlignHoleStruct *inArg, test_AlignHoleStruct *inoutArg, test_AlignHoleStruct *outArg, CORBA_Environment *ev) { test_AlignHoleStruct retval; g_assert (inArg->a.a == constants_DOUBLE_IN); g_assert (inArg->a.b == constants_OCTET_IN); g_assert (inArg->b == constants_CHAR_IN); g_assert (inoutArg->a.a == constants_DOUBLE_INOUT_IN); g_assert (inoutArg->a.b == constants_OCTET_INOUT_IN); g_assert (inoutArg->b == constants_CHAR_INOUT_IN); inoutArg->a.a = constants_DOUBLE_INOUT_OUT; inoutArg->a.b = constants_OCTET_INOUT_OUT; inoutArg->b = constants_CHAR_INOUT_OUT; outArg->a.a = constants_DOUBLE_OUT; outArg->a.b = constants_OCTET_OUT; outArg->b = constants_CHAR_OUT; retval.a.a = constants_DOUBLE_RETN; retval.a.b = constants_OCTET_RETN; retval.b = constants_CHAR_RETN; return retval; } static void StructServer_opObjectStruct (PortableServer_Servant servant, const test_ObjectStruct *inArg, CORBA_Environment *ev) { CORBA_Object objref; test_StructAny *val; objref = CORBA_Object_duplicate (inArg->serv, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); val = test_StructServer_opStructAny (inArg->serv, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_free (val); CORBA_Object_release (objref, ev); } static test_StructAny * StructServer_opStructAny (PortableServer_Servant servant, CORBA_Environment *ev) { test_StructAny *a = test_StructAny__alloc (); static CORBA_long l; a->a = CORBA_string_dup (constants_STRING_IN); l = constants_LONG_IN; a->b._release = FALSE; a->b._value = &l; a->b._type = TC_CORBA_long; return a; } POA_test_StructServer__epv StructServer_epv = { NULL, StructServer_opFixed, StructServer_opVariable, StructServer_opCompound, StructServer_opAlignHole, StructServer_opObjectStruct, StructServer_opStructAny }; PortableServer_ServantBase__epv StructServer_base_epv = {NULL, simple_finalize, NULL}; POA_test_StructServer__vepv StructServer_vepv = {&StructServer_base_epv,&BasicServer_epv,&StructServer_epv}; POA_test_StructServer StructServer_servant = {NULL,&StructServer_vepv}; /* Singleton */ ORBit2-2.14.19/test/everything/test.sh0000755000175000001440000000372211334247617014343 00000000000000#!/bin/sh # This is a generic script for firing up a server, waiting for it to write # its stringified IOR to a file, then firing up a client if test "z$ORBIT_TMPDIR" = "z"; then ORBIT_TMPDIR="/tmp/orbit-$USER/tst" rm -Rf $ORBIT_TMPDIR mkdir -p $ORBIT_TMPDIR fi TMPDIR=$ORBIT_TMPDIR; export TMPDIR; # 100: socket path max - Posix.1g SAMPLE_NAME="$ORBIT_TMPDIR/orbit-$USER/linc-78fe-0-14c0fc671d5b4"; echo "Sample name: '$SAMPLE_NAME'" if (test ${#SAMPLE_NAME} -gt 100); then echo "Socket directory path '$ORBIT_TMPDIR' too long for bind"; exit 1; else echo "Running with socketdir: '$ORBIT_TMPDIR'"; fi run_test() { echo testing with $1 ./server $1 & until test -s iorfile; do sleep 1; done if ./client $1; then echo "=============================================================" echo "Test passed with params: $1" echo "=============================================================" rm iorfile else echo "=============================================================" echo "Test failed with params: $1" echo " if this is an IPv4 test, can you ping `hostname` ?" echo "=============================================================" kill $! test x"$DONT_EXIT" = x && exit 1 rm iorfile fi } for params in '--ORBIIOPIPv4=1 --ORBIIOPUSock=0 --ORBCorbaloc=1' \ '--ORBIIOPIPv4=1 --ORBIIOPUSock=0 --thread-tests' \ '--ORBIIOPIPv4=1 --ORBIIOPUSock=0' \ '--ORBIIOPIPv4=1 --ORBIIOPUSock=0 --thread-safe' \ '--ORBIIOPIPv4=1 --ORBIIOPUSock=0 --gen-imodule' do run_test "$params" done # Don't run the Unix domain socket tests on Windows if test x"$WINDIR" = x; then for params in '--ORBIIOPIPv4=0 --ORBIIOPUSock=1 --ORBCorbaloc=1' \ '--ORBIIOPIPv4=0 --ORBIIOPUSock=1 --thread-tests' \ '--ORBIIOPIPv4=0 --ORBIIOPUSock=1' \ '--ORBIIOPIPv4=0 --ORBIIOPUSock=1 --thread-safe' \ '--ORBIIOPIPv4=0 --ORBIIOPUSock=1 --gen-imodule' do run_test "$params" done fi ORBit2-2.14.19/test/everything/unionServer.c0000644000175000001440000001224611334247617015511 00000000000000/* * CORBA C language mapping tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Phil Dawes */ #include #include #include "everything.h" #include "constants.h" static test_FixedLengthUnion UnionServer_opFixed(PortableServer_Servant _servant, const test_FixedLengthUnion *inArg, test_FixedLengthUnion *inoutArg, test_FixedLengthUnion *outArg, CORBA_Environment * ev){ test_FixedLengthUnion retval; g_assert(inArg->_d == 'a'); g_assert(inArg->_u.x == constants_LONG_IN); g_assert(inoutArg->_d == 'b'); g_assert(inoutArg->_u.y == 't'); inoutArg->_u.z = TRUE; inoutArg->_d = 'c'; outArg->_u.x = constants_LONG_OUT; outArg->_d = 'a'; retval._u.z = FALSE; retval._d = 'd'; return retval; } static test_VariableLengthUnion * UnionServer_opVariable(PortableServer_Servant _servant, const test_VariableLengthUnion * inArg, test_VariableLengthUnion * inoutArg, test_VariableLengthUnion ** outArg, CORBA_Environment * ev){ test_VariableLengthUnion *retval; g_assert(inArg->_d == 1); g_assert(inArg->_u.x == constants_LONG_IN); g_assert(inoutArg->_d == 2); g_assert(strcmp(inoutArg->_u.y,constants_STRING_INOUT_IN)==0); CORBA_free(inoutArg->_u.y); inoutArg->_u.z = TRUE; inoutArg->_d = 3; *outArg = test_VariableLengthUnion__alloc(); (*outArg)->_u.x = constants_LONG_OUT; (*outArg)->_d = 1; retval = test_VariableLengthUnion__alloc(); retval->_u.z = FALSE; retval->_d = 4; return retval; } static test_EnumUnion UnionServer_opMisc (PortableServer_Servant servant, const test_unionSeq *inSeq, const test_BooleanUnion *inArg, test_ArrayUnion **outArg, CORBA_Environment *ev) { test_EnumUnion retval; int i; g_assert (inSeq->_length == 3); g_assert (inSeq->_buffer [0]._d == 4); g_assert (inSeq->_buffer [0]._u.z == CORBA_TRUE); g_assert (inSeq->_buffer [1]._d == 2); g_assert (!strcmp (inSeq->_buffer [1]._u.y, "blah")); g_assert (inSeq->_buffer [2]._d == 55); g_assert (inSeq->_buffer [2]._u.w == constants_LONG_IN); g_assert (inArg->_d == 1); g_assert (!strcmp (inArg->_u.y, "blah de blah")); (*outArg) = test_ArrayUnion__alloc (); (*outArg)->_d = 22; for (i = 0; i < 20; i++) { char *tmp; tmp = g_strdup_printf ("Numero %d", i); (*outArg)->_u.d [i] = CORBA_string_dup (tmp); g_free (tmp); } retval._d = test_EnumUnion_red; retval._u.x = constants_LONG_IN; return retval; } static test_FixedLengthUnionArray_slice * UnionServer_opFixedLengthUnionArray(PortableServer_Servant _servant, const test_FixedLengthUnionArray inArg, test_FixedLengthUnionArray inoutArg, test_FixedLengthUnionArray outArg, CORBA_Environment *ev) { test_FixedLengthUnionArray_slice *retn; g_assert (inArg[0]._d == 'a'); g_assert (inArg[0]._u.x == constants_LONG_IN); g_assert (inArg[1]._d == 'b'); g_assert (inArg[1]._u.y == constants_CHAR_IN); g_assert (inArg[2]._d == 'c'); g_assert (inArg[3]._d == 'e'); g_assert (inArg[3]._u.v.a == constants_SHORT_IN); g_assert (inoutArg[0]._d == 'a'); g_assert (inoutArg[0]._u.x == constants_LONG_INOUT_IN); g_assert (inoutArg[1]._d == 'b'); g_assert (inoutArg[1]._u.y == constants_CHAR_INOUT_IN); g_assert (inoutArg[2]._d == 'c'); g_assert (inoutArg[3]._d == 'e'); g_assert (inoutArg[3]._u.v.a == constants_SHORT_INOUT_IN); inoutArg[0]._d = 'a'; inoutArg[0]._u.x = constants_LONG_INOUT_OUT; inoutArg[1]._d = 'b'; inoutArg[1]._u.y = constants_CHAR_INOUT_OUT; inoutArg[2]._d = 'c'; inoutArg[3]._d = 'e'; inoutArg[3]._u.v.a = constants_SHORT_INOUT_OUT; outArg[0]._d = 'a'; outArg[0]._u.x = constants_LONG_OUT; outArg[1]._d = 'b'; outArg[1]._u.y = constants_CHAR_OUT; outArg[2]._d = 'c'; outArg[3]._d = 'e'; outArg[3]._u.v.a = constants_SHORT_OUT; retn = test_FixedLengthUnionArray__alloc(); retn[0]._d = 'a'; retn[0]._u.x = constants_LONG_RETN; retn[1]._d = 'b'; retn[1]._u.y = constants_CHAR_RETN; retn[2]._d = 'c'; retn[3]._d = 'e'; retn[3]._u.v.a = constants_SHORT_RETN; return retn; } PortableServer_ServantBase__epv UnionServer_base_epv = {NULL, simple_finalize, NULL}; POA_test_UnionServer__epv UnionServer_epv = { NULL, UnionServer_opFixed, UnionServer_opVariable, UnionServer_opMisc, UnionServer_opFixedLengthUnionArray }; POA_test_UnionServer__vepv UnionServer_vepv = {&UnionServer_base_epv, &UnionServer_epv}; POA_test_UnionServer UnionServer_servant = {NULL, &UnionServer_vepv}; /* Singleton */ ORBit2-2.14.19/test/everything/contextServer.c0000644000175000001440000000426011334247617016042 00000000000000/* * CORBA C language mapping tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Michael Meeks */ #include "everything.h" #include "constants.h" #include static CORBA_Object ContextServer_opWithContext (PortableServer_Servant _servant, const CORBA_Object inArg, CORBA_Object *inoutArg, CORBA_Object *outArg, CORBA_Context ctx, CORBA_Environment *ev) { CORBA_NVList nvout; CORBA_NamedValue *nv; char *val; int i; CORBA_Context_get_values (ctx, NULL, 0, "", &nvout, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (nvout->list->len == 2); for (i = 0; i < nvout->list->len; i++) { nv = &g_array_index (nvout->list, CORBA_NamedValue, 0); if (!strcmp (nv->name, "bar")) { val = * (char **) nv->argument._value; g_assert (!strcmp (val, "baaaa")); } else if (!strcmp (nv->name, "foo")) { val = * (char **) nv->argument._value; g_assert (!strcmp (val, "foo2")); } else g_error ("Unknown context property '%s'", nv->name); } CORBA_NVList_free (nvout, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); *outArg = CORBA_OBJECT_NIL; return CORBA_Object_duplicate (inArg, ev); } POA_test_ContextServer__epv ContextServer_epv = { NULL, ContextServer_opWithContext }; PortableServer_ServantBase__epv ContextServer_base_epv = {NULL, simple_finalize, NULL}; POA_test_ContextServer__vepv ContextServer_vepv = { &ContextServer_base_epv, &ContextServer_epv }; ORBit2-2.14.19/test/everything/lifeCycle.c0000644000175000001440000000430111334247617015062 00000000000000/* * CORBA C language mapping tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Mark McLoughlin */ #include "everything.h" static void LifeCycleServer_deactivateOnReturn (PortableServer_Servant servant, CORBA_Environment *ev) { PortableServer_ObjectId *oid; oid = PortableServer_POA_servant_to_id (global_poa, servant, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); PortableServer_POA_deactivate_object (global_poa, oid, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_free (oid); } static void LifeCycleServer_deactivateUnrefOnReturn (PortableServer_Servant servant, CORBA_Environment *ev) { CORBA_Object self_ref; /* Will only 'work' in-proc */ PortableServer_ObjectId *oid; oid = PortableServer_POA_servant_to_id (global_poa, servant, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); PortableServer_POA_deactivate_object (global_poa, oid, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_free (oid); self_ref = PortableServer_POA_servant_to_reference (global_poa, servant, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release (self_ref, ev); CORBA_Object_release (self_ref, ev); } static POA_test_LifeCycleServer__epv LifeCycleServer_epv = { NULL, LifeCycleServer_deactivateOnReturn, LifeCycleServer_deactivateUnrefOnReturn }; static PortableServer_ServantBase__epv LifeCycleServer_base_epv = { NULL, simple_finalize, NULL }; static POA_test_LifeCycleServer__vepv LifeCycleServer_vepv = { &LifeCycleServer_base_epv, &LifeCycleServer_epv }; ORBit2-2.14.19/test/everything/README0000644000175000001440000000046711334247617013710 00000000000000This is a port of the orbitcpp 'everything' test to ORBit. The server writes the ior of the test factory out to the file 'iorfile', which the client then reads. The 'test.sh' script runs the server, then client. It is invoked by the 'make check' makefile target. - Phil Dawes (philipd@users.sourceforge.net) ORBit2-2.14.19/test/everything/constants.h0000644000175000001440000001070411334247617015210 00000000000000/* * CORBA C language mapping tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Phil Dawes */ #ifndef EVERYTHING_CONSTANTS_H #define EVERYTHING_CONSTANTS_H #include "everything.h" const CORBA_char * constants_STRING_IN="In string"; const CORBA_char * constants_STRING_INOUT_IN="Inout in string"; const CORBA_char * constants_STRING_INOUT_OUT="Inout out string"; const CORBA_char * constants_STRING_OUT="Out string"; const CORBA_char * constants_STRING_RETN="Retn String"; #define constants_LONG_IN 0x12345678 #define constants_LONG_INOUT_IN 0x34567812 #define constants_LONG_INOUT_OUT 0x56781234 #define constants_LONG_OUT 0x78123456 #define constants_LONG_RETN 0xAABBCCDD #define constants_LONG_LONG_IN constants_LONG_IN #define constants_LONG_LONG_INOUT_IN constants_LONG_INOUT_IN #define constants_LONG_LONG_INOUT_OUT constants_LONG_INOUT_OUT #define constants_LONG_LONG_OUT constants_LONG_OUT #define constants_LONG_LONG_RETN constants_LONG_RETN #define constants_FLOAT_IN ((CORBA_float) 127.13534) #define constants_FLOAT_INOUT_IN ((CORBA_float) 124.89432) #define constants_FLOAT_INOUT_OUT ((CORBA_float) 975.12694) #define constants_FLOAT_OUT ((CORBA_float) 112.54575) #define constants_FLOAT_RETN ((CORBA_float) 354.23535) #define constants_DOUBLE_IN ((CORBA_double) 127.13534) #define constants_DOUBLE_INOUT_IN ((CORBA_double) 124.89432) #define constants_DOUBLE_INOUT_OUT ((CORBA_double) 975.12694) #define constants_DOUBLE_OUT ((CORBA_double) 112.54575) #define constants_DOUBLE_RETN ((CORBA_double) 354.23535) #define constants_LONG_DOUBLE_IN ((CORBA_long_double) 127.13534) #define constants_LONG_DOUBLE_INOUT_IN ((CORBA_long_double) 124.89432) #define constants_LONG_DOUBLE_INOUT_OUT ((CORBA_long_double) 975.12694) #define constants_LONG_DOUBLE_OUT ((CORBA_long_double) 112.54575) #define constants_LONG_DOUBLE_RETN ((CORBA_long_double) 354.23535) const CORBA_char constants_CHAR_IN=0x23; const CORBA_char constants_CHAR_INOUT_IN=0x45; const CORBA_char constants_CHAR_INOUT_OUT=0x67; const CORBA_char constants_CHAR_OUT=0x89; const CORBA_char constants_CHAR_RETN=0xAC; const CORBA_octet constants_OCTET_IN=0x13; const CORBA_octet constants_OCTET_INOUT_IN=0x35; const CORBA_octet constants_OCTET_INOUT_OUT=0x57; const CORBA_octet constants_OCTET_OUT=0x79; const CORBA_octet constants_OCTET_RETN=0xBD; const CORBA_short constants_SHORT_IN=0x1234; const CORBA_short constants_SHORT_INOUT_IN=0x3456; const CORBA_short constants_SHORT_INOUT_OUT=0x5678; const CORBA_short constants_SHORT_OUT=0x7812; const CORBA_short constants_SHORT_RETN=0xAABB; const CORBA_char * constants_SEQ_STRING_IN[] = { "in1","in2","in3","in4" }; const CORBA_char * constants_SEQ_STRING_OUT[] = { "out1","out2","out3","out4" }; const CORBA_char * constants_SEQ_STRING_INOUT_IN[] = { "inout1","inout2","inout3","inout4" }; const CORBA_char * constants_SEQ_STRING_INOUT_OUT[] = { "inout21","inout22","inout23","inout24" }; const CORBA_char * constants_SEQ_STRING_RETN[] = { "retn1","retn2","retn3","retn4" }; const CORBA_long constants_SEQ_LONG_IN[] = { constants_LONG_IN,constants_LONG_INOUT_IN,15,7 }; const CORBA_long constants_SEQ_LONG_OUT[] = { constants_LONG_INOUT_IN, constants_LONG_INOUT_OUT,15,7 }; const CORBA_long constants_SEQ_LONG_INOUT_IN[] = { constants_LONG_INOUT_OUT, constants_LONG_OUT,7,15 }; const CORBA_long constants_SEQ_LONG_INOUT_OUT[] = { constants_LONG_OUT, constants_LONG_RETN,8,9 }; const CORBA_long constants_SEQ_LONG_RETN[] = { constants_LONG_RETN, constants_LONG_IN,2,3 }; const CORBA_long constants_SEQ_OCTET_IN[] = { 1, 3, 5, 7 }; const CORBA_long constants_SEQ_OCTET_OUT[] = { 2, 7, 9, 255 }; const CORBA_long constants_SEQ_OCTET_INOUT_IN[] = { 1, 15, 8, 0 }; const CORBA_long constants_SEQ_OCTET_INOUT_OUT[] = { 73, 128, 173, 15 }; const CORBA_long constants_SEQ_OCTET_RETN[] = { 1, 3, 5, 7 }; #endif ORBit2-2.14.19/test/everything/client.c0000644000175000001440000022764111334247617014457 00000000000000/* * CORBA C language mapping tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Phil Dawes */ #include #include #include #include #include "everything.h" #include "constants.h" #include "orb-core/orb-core-private.h" #include "orbit-imodule.h" #include "orbit/orbit.h" #define NUM_RUNS 1 #define NUM_THREADS 8 #undef TIMING_RUN #ifdef TIMING_RUN # define d_print(a) #else # define d_print(a) if (!thread_tests && a != NULL) g_print(a) #endif extern CORBA_ORB global_orb; gboolean in_proc; gboolean thread_safe = FALSE; gboolean thread_tests = FALSE; /* Ugly- but hey */ #define _IN_CLIENT_ #include "server.c" #undef _IN_CLIENT_ static void testConst (void) { d_print ("Testing constants...\n"); g_assert (test_CONST_CHAR == 't'); g_assert (test_CONST_LONG == 0x12345678); g_assert (test_CONST_LONG_LONG == 0x12345678); g_assert (!strcmp (test_CONST_STRING, "ConstString")); g_assert (test_CONST_FLOAT == 1234.56); g_assert (test_CONST_DOUBLE == 1234.5678); g_assert (test_CONST_LONG_DOUBLE == 1234.567891); g_assert (test_FAVORITE_SOUP == test_veggie); g_assert (test_HORRIBLE_SOUP == test_oxtail); } static void testSequenceHelpers (void) { CORBA_long l = 0; test_BoundedLongSeq *lseq = NULL; d_print ("Testing ORBit_sequence helpers...\n"); lseq = ORBit_sequence_alloc (TC_test_BoundedLongSeq, 2); g_assert (lseq != NULL); g_assert (lseq->_length == 2); g_assert (lseq->_maximum >= 2); ORBit_sequence_index (lseq, 0) = 0; ORBit_sequence_index (lseq, 1) = 0; l = 1; ORBit_sequence_append (lseq, &l); l++; ORBit_sequence_append (lseq, &l); g_assert (lseq->_length == 4); g_assert (ORBit_sequence_index (lseq, 2) == 1); g_assert (ORBit_sequence_index (lseq, 3) == 2); ORBit_sequence_remove(lseq, 2); g_assert (lseq->_length == 3); g_assert (ORBit_sequence_index (lseq, 2) == 2); ORBit_sequence_set_size (lseq, 100); ORBit_sequence_set_size (lseq, 0); CORBA_free (lseq); /* test incremental reallocation of memory */ { CORBA_long i = 0; CORBA_long j = 0; /* 16 times double capacity of buffer */ CORBA_long MAX_APPEND = 1<<16; /* generic sequence test */ CORBA_sequence_CORBA_octet *oseq = NULL; oseq = ORBit_sequence_alloc (TC_CORBA_sequence_CORBA_octet, 0); g_assert (oseq != NULL); g_assert (oseq->_length == 0); g_assert (oseq->_maximum >= 0); for (i = 0; i < MAX_APPEND; ++i) { CORBA_octet oct = (CORBA_octet) (i % 109); /* _append does shallow copy */ ORBit_sequence_append (oseq, &oct); /* realloc */ g_assert (i+1==oseq->_length); /* infrequent validation sequence values have * been re-located correctly */ if (i % 367 == 0) for (j = 0; j < oseq->_length; ++j /* prim */ ) { CORBA_octet j_check = (CORBA_octet) (j % 109); CORBA_octet j_value = ORBit_sequence_index (oseq, j); g_assert (j_value==j_check); } } CORBA_free (oseq); } /* test concat operation: concat two sequences of different * size. The concatinated sequence must contain values of both * in correct order. */ { CORBA_octet oct = 0; CORBA_long i = 0; CORBA_long j = 0; CORBA_long a = 0; CORBA_long b = 0; CORBA_sequence_CORBA_octet *aseq = NULL; CORBA_sequence_CORBA_octet *bseq = NULL; aseq = ORBit_sequence_alloc (TC_CORBA_sequence_CORBA_octet, 0); bseq = ORBit_sequence_alloc (TC_CORBA_sequence_CORBA_octet, 0); for (b = 0; b < 200; ++b) { ORBit_sequence_concat (aseq, bseq); a = 0; for (i = 0; i < b; ++i) for (j = 0; j < i; ++j, ++a) g_assert (ORBit_sequence_index (aseq, a) == j % 128); oct = b % 128; ORBit_sequence_append (bseq, &oct); } CORBA_free (aseq); CORBA_free (bseq); } } static void testAttribute (test_BasicServer objref, CORBA_Environment *ev) { CORBA_char *val; CORBA_long lval; d_print ("Testing attributes...\n"); val = test_BasicServer__get_foo (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (strcmp (val, constants_STRING_RETN)==0); CORBA_free (val); test_BasicServer__set_foo (objref, constants_STRING_IN, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); lval = test_BasicServer__get_bah (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (lval == constants_LONG_RETN); } static void testString (test_BasicServer objref, CORBA_Environment *ev) { const CORBA_char *in; CORBA_char *inout, *out, *retn; d_print ("Testing strings...\n"); in = constants_STRING_IN; inout = CORBA_string_dup (constants_STRING_INOUT_IN); retn = test_BasicServer_opString (objref, in, &inout, &out, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (strcmp (out, constants_STRING_OUT)==0); g_assert (strcmp (retn, constants_STRING_RETN)==0); g_assert (strcmp (in, constants_STRING_IN)==0); g_assert (strcmp (inout, constants_STRING_INOUT_OUT)==0); test_BasicServer_opOneWay (objref, constants_STRING_IN, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_free (inout); CORBA_free (out); CORBA_free (retn); } static void testLong (test_BasicServer objref, CORBA_Environment *ev) { CORBA_long inArg, inoutArg, outArg, retn; d_print ("Testing longs...\n"); inArg = constants_LONG_IN; inoutArg = constants_LONG_INOUT_IN; retn = test_BasicServer_opLong (objref, inArg, &inoutArg, &outArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (inArg == constants_LONG_IN); g_assert (inoutArg == constants_LONG_INOUT_OUT); g_assert (outArg == constants_LONG_OUT); g_assert (retn == constants_LONG_RETN); } static void testLongLong (test_BasicServer objref, CORBA_Environment *ev) { CORBA_long_long inArg, inoutArg, outArg, retn; d_print ("Testing long longs...\n"); inArg = constants_LONG_LONG_IN; inoutArg = constants_LONG_LONG_INOUT_IN; retn = test_BasicServer_opLongLong (objref, inArg, &inoutArg, &outArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (inArg == constants_LONG_LONG_IN); g_assert (inoutArg == constants_LONG_LONG_INOUT_OUT); g_assert (outArg == constants_LONG_LONG_OUT); g_assert (retn == constants_LONG_LONG_RETN); } static void testFloat (test_BasicServer objref, CORBA_Environment *ev) { CORBA_float inArg, inoutArg, outArg, retn; d_print ("Testing floats...\n"); inArg = constants_FLOAT_IN; inoutArg = constants_FLOAT_INOUT_IN; retn = test_BasicServer_opFloat (objref, inArg, &inoutArg, &outArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (inArg == constants_FLOAT_IN); g_assert (inoutArg == constants_FLOAT_INOUT_OUT); g_assert (outArg == constants_FLOAT_OUT); g_assert (retn == constants_FLOAT_RETN); } static void testDouble (test_BasicServer objref, CORBA_Environment *ev) { CORBA_double inArg, inoutArg, outArg, retn; d_print ("Testing doubles...\n"); inArg = constants_DOUBLE_IN; inoutArg = constants_DOUBLE_INOUT_IN; retn = test_BasicServer_opDouble (objref, inArg, &inoutArg, &outArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (inArg == constants_DOUBLE_IN); g_assert (inoutArg == constants_DOUBLE_INOUT_OUT); g_assert (outArg == constants_DOUBLE_OUT); g_assert (retn == constants_DOUBLE_RETN); } static void testLongDouble (test_BasicServer objref, CORBA_Environment *ev) { CORBA_long_double inArg, inoutArg, outArg, retn; d_print ("Testing long doubles...\n"); inArg = constants_LONG_DOUBLE_IN; inoutArg = constants_LONG_DOUBLE_INOUT_IN; retn = test_BasicServer_opLongDouble (objref, inArg, &inoutArg, &outArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (inArg == constants_LONG_DOUBLE_IN); g_assert (inoutArg == constants_LONG_DOUBLE_INOUT_OUT); g_assert (outArg == constants_LONG_DOUBLE_OUT); g_assert (retn == constants_LONG_DOUBLE_RETN); } static void testEnum (test_BasicServer objref, CORBA_Environment *ev) { test_AnEnum inArg, inoutArg, outArg, retn; d_print ("Testing enums...\n"); inArg = test_ENUM_IN; inoutArg = test_ENUM_INOUT_IN; retn = test_BasicServer_opEnum (objref, inArg, &inoutArg, &outArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (inArg == test_ENUM_IN); g_assert (inoutArg == test_ENUM_INOUT_OUT); g_assert (outArg == test_ENUM_OUT); g_assert (retn == test_ENUM_RETN); } static void testException (test_BasicServer objref, CORBA_Environment *ev) { test_TestException *ex; CORBA_Environment *cpyev; d_print ("Testing exceptions...\n"); test_BasicServer_opException (CORBA_OBJECT_NIL, ev); g_assert (ev->_major == CORBA_SYSTEM_EXCEPTION); g_assert (strcmp (CORBA_exception_id (ev), ex_CORBA_INV_OBJREF) == 0); CORBA_exception_free (ev); test_BasicServer_opException (objref, ev); g_assert (ev->_major == CORBA_USER_EXCEPTION); g_assert (strcmp (CORBA_exception_id (ev), ex_test_TestException) == 0); ex = CORBA_exception_value (ev); g_assert (strcmp (ex->reason, constants_STRING_IN) == 0); g_assert (ex->number == constants_LONG_IN); g_assert (ex->aseq._length == 1); g_assert (ex->aseq._buffer[0] == constants_LONG_IN); cpyev = CORBA_exception__copy (ev); CORBA_exception_free (ev); ev = cpyev; g_assert (ev->_major == CORBA_USER_EXCEPTION); g_assert (strcmp (CORBA_exception_id (ev), ex_test_TestException) == 0); /* FIXME: we can't do this until we get exception data from the typelib - and make sure we register all system types there too */ /* ex = CORBA_exception_value (ev); g_assert (strcmp (ex->reason, constants_STRING_IN) == 0); g_assert (ex->number == constants_LONG_IN); g_assert (ex->aseq._length == 1); g_assert (ex->aseq._buffer[0] == constants_LONG_IN);*/ CORBA_free (cpyev); } static void testBoolAlign (test_BasicServer objref, CORBA_Environment *ev) { char *inoutArg; d_print ("Testing bool arg. alignment ...\n"); inoutArg = CORBA_string_dup("foo"); test_BasicServer_testBoolString (objref, TRUE, "retout", &inoutArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static CORBA_TypeCode find_tc (CORBA_sequence_CORBA_TypeCode *tcs, const char *repo_id) { int i; for (i = 0; i < tcs->_length; i++) if (!strcmp (tcs->_buffer [i]->repo_id, repo_id)) return tcs->_buffer [i]; return NULL; } static void testIInterface (test_TestFactory factory, CORBA_Environment *ev) { CORBA_TypeCode tc; test_StructServer objref; CORBA_char *type_id; ORBit_IInterface *iinterface; CORBA_sequence_CORBA_TypeCode *tcs; d_print ("Testing IInterface code...\n"); objref = test_TestFactory_getStructServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); /* Check nil check is working ! */ g_assert (CORBA_Object_is_nil (CORBA_OBJECT_NIL, ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (!CORBA_Object_is_nil (objref, ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); /* Check non_existant is working ! */ g_assert (!CORBA_Object_non_existent (objref, ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); /* Ensure that we go over the wire at least once */ g_assert (CORBA_Object_is_a (objref, "IDL:orbit/test/StructServer:1.0", ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (CORBA_Object_is_a (objref, "IDL:orbit/test/BasicServer:1.0", ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); /* Scripting stuff */ /* Get real type id */ g_assert ( (type_id = ORBit_small_get_type_id (objref, ev))); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (!strcmp (type_id, "IDL:orbit/test/StructServer:1.0")); CORBA_free (type_id); /* Get interface data */ iinterface = ORBit_small_get_iinterface ( objref, "foo_bar_jelly", ev); g_assert (ev->_major != CORBA_NO_EXCEPTION); g_assert (iinterface == NULL); g_assert (!strcmp (ev->_id, ex_ORBit_NoIInterface)); CORBA_exception_free (ev); iinterface = ORBit_small_get_iinterface ( objref, "IDL:orbit/test/StructServer:1.0", ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (iinterface != NULL); g_assert (!strcmp (iinterface->tc->repo_id, "IDL:orbit/test/StructServer:1.0")); CORBA_free (iinterface); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); #define TYPELIB_NAME "./Everything_module" if (!ORBit_small_load_typelib (TYPELIB_NAME)) g_warning ("Failed to load '" TYPELIB_NAME "'"); iinterface = ORBit_small_get_iinterface ( objref, "IDL:orbit/test/StructServer:1.0", ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (iinterface != NULL); CORBA_free (iinterface); tcs = ORBit_small_get_types (TYPELIB_NAME); g_assert (find_tc (tcs, "IDL:orbit/test/Soup:1.0")); g_assert (find_tc (tcs, "IDL:orbit/test/EnumUnion/Colour:1.0")); g_assert (find_tc (tcs, "IDL:orbit/test/ArrayUnion:1.0")); tc = find_tc (tcs, "IDL:orbit/test/StrSeq:1.0"); g_assert (!strcmp (tc->repo_id, "IDL:orbit/test/StrSeq:1.0")); g_assert (tc->kind == CORBA_tk_alias); g_assert (tc->subtypes[0]->kind); CORBA_free (tcs); /* test subnames for unions correctly handle multiple case * labels pointing at the same sub type. */ tc = TC_test_FixedLengthUnion; g_assert(tc->sub_parts == 5); g_assert(!strcmp(tc->subnames[0], "x")); g_assert(!strcmp(tc->subnames[1], "y")); g_assert(!strcmp(tc->subnames[2], "z")); g_assert(!strcmp(tc->subnames[3], "z")); g_assert(!strcmp(tc->subnames[4], "v")); } static void testIsA (test_TestFactory factory, CORBA_Environment *ev) { test_DerivedServer ds; d_print ("Testing is_a ...\n"); g_assert (CORBA_Object_is_a (factory, "IDL:CORBA/Object:1.0", ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (CORBA_Object_is_a (factory, "IDL:omg.org/CORBA/Object:1.0", ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); ds = test_TestFactory_getDerivedServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (CORBA_Object_is_a (ds, "IDL:orbit/test/DerivedServer:1.0", ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (CORBA_Object_is_a (ds, "IDL:orbit/test/C1:1.0", ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (CORBA_Object_is_a (ds, "IDL:orbit/test/B1:1.0", ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (CORBA_Object_is_a (ds, "IDL:orbit/test/B2:1.0", ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (CORBA_Object_is_a (ds, "IDL:orbit/test/BaseServer:1.0", ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (CORBA_Object_is_a (factory, "IDL:CORBA/Object:1.0", ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release (ds, ev); } static void testFixedLengthStruct (test_TestFactory factory, CORBA_Environment *ev) { test_StructServer objref; test_FixedLengthStruct inArg, inoutArg, outArg, retn; CORBA_char *ior; d_print ("Testing struct code ...\n"); ior = test_TestFactory_getStructServerIOR (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); objref = CORBA_ORB_string_to_object (global_orb, ior, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (objref != CORBA_OBJECT_NIL); CORBA_free (ior); inArg.a = constants_SHORT_IN; inoutArg.a = constants_SHORT_INOUT_IN; retn = test_StructServer_opFixed (objref, &inArg, &inoutArg, &outArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (inArg.a == constants_SHORT_IN); g_assert (inoutArg.a == constants_SHORT_INOUT_OUT); g_assert (outArg.a == constants_SHORT_OUT); g_assert (retn.a == constants_SHORT_RETN); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testVariableLengthStruct (test_TestFactory factory, CORBA_Environment *ev) { test_StructServer objref; test_VariableLengthStruct inArg, inoutArg, *outArg, *retn; d_print ("Testing variable length structs...\n"); objref = test_TestFactory_getStructServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); inArg.a = (CORBA_char*)constants_STRING_IN; /* const cast */ inoutArg.a = CORBA_string_dup (constants_STRING_INOUT_IN); retn = test_StructServer_opVariable (objref, &inArg, &inoutArg, &outArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (strcmp (inArg.a, constants_STRING_IN)==0); g_assert (strcmp (inoutArg.a, constants_STRING_INOUT_OUT)==0); g_assert (strcmp (outArg->a, constants_STRING_OUT)==0); g_assert (strcmp (retn->a, constants_STRING_RETN)==0); CORBA_free (inoutArg.a); CORBA_free (outArg); CORBA_free (retn); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testCompoundStruct (test_TestFactory factory, CORBA_Environment *ev) { test_StructServer objref; test_CompoundStruct inArg, inoutArg, *outArg, *retn; d_print ("Testing compound structs...\n"); objref = test_TestFactory_getStructServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); inArg.a.a = CORBA_string_dup (constants_STRING_IN); inoutArg.a.a = CORBA_string_dup (constants_STRING_INOUT_IN); retn = test_StructServer_opCompound (objref, &inArg, &inoutArg, &outArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (strcmp (inArg.a.a, constants_STRING_IN)==0); g_assert (strcmp (inoutArg.a.a, constants_STRING_INOUT_OUT)==0); g_assert (strcmp (outArg->a.a, constants_STRING_OUT)==0); g_assert (strcmp (retn->a.a, constants_STRING_RETN)==0); CORBA_free (inArg.a.a); CORBA_free (inoutArg.a.a); CORBA_free (outArg); CORBA_free (retn); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testAlignHoleStruct (test_TestFactory factory, CORBA_Environment *ev) { test_StructServer objref; test_AlignHoleStruct inArg, inoutArg, outArg, retn; d_print ("Testing structs with aligning holes...\n"); objref = test_TestFactory_getStructServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); inArg.a.a = constants_DOUBLE_IN; inArg.a.b = constants_OCTET_IN; inArg.b = constants_CHAR_IN; inoutArg.a.a = constants_DOUBLE_INOUT_IN; inoutArg.a.b = constants_OCTET_INOUT_IN; inoutArg.b = constants_CHAR_INOUT_IN; memset(&outArg, 0, sizeof(outArg)); retn = test_StructServer_opAlignHole (objref, &inArg, &inoutArg, &outArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (inArg.a.a == constants_DOUBLE_IN); g_assert (inArg.a.b == constants_OCTET_IN); g_assert (inArg.b == constants_CHAR_IN); g_assert (inoutArg.a.a == constants_DOUBLE_INOUT_OUT); g_assert (inoutArg.a.b == constants_OCTET_INOUT_OUT); g_assert (inoutArg.b == constants_CHAR_INOUT_OUT); g_assert (outArg.a.a == constants_DOUBLE_OUT); g_assert (outArg.a.b == constants_OCTET_OUT); g_assert (outArg.b == constants_CHAR_OUT); g_assert (retn.a.a == constants_DOUBLE_RETN); g_assert (retn.a.b == constants_OCTET_RETN); g_assert (retn.b == constants_CHAR_RETN); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testObjectStruct (test_TestFactory factory, CORBA_Environment *ev) { test_StructServer objref; test_ObjectStruct inArg; d_print ("Testing object structs...\n"); objref = test_TestFactory_getStructServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); inArg.serv = objref; test_StructServer_opObjectStruct (objref, &inArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testStructAny (test_TestFactory factory, CORBA_Environment *ev) { test_StructServer objref; test_StructAny *a; d_print ("Testing 'any' structs...\n"); objref = test_TestFactory_getStructServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); a = test_StructServer_opStructAny (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (!strcmp (a->a, constants_STRING_IN)); g_assert (* (CORBA_long *)a->b._value == constants_LONG_IN); CORBA_free (a); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testUnboundedSequence (test_TestFactory factory, CORBA_Environment *ev) { test_SequenceServer objref; test_StrSeq *outArg = NULL, inArg, inoutArg, *retn; /* test_LongSeq *long_retn; */ guint i; d_print ("Testing unbounded sequences...\n"); objref = test_TestFactory_getSequenceServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); inArg._buffer = CORBA_sequence_CORBA_string_allocbuf (2); inArg._length = 2; CORBA_sequence_set_release (&inArg, CORBA_TRUE); for (i=0;i_major == CORBA_NO_EXCEPTION); for (i=0;i_length;i++) g_assert (strcmp (outArg->_buffer[i], constants_SEQ_STRING_OUT[i]) == 0); for (i=0;i_length;i++) g_assert (strcmp (retn->_buffer[i], constants_SEQ_STRING_RETN[i]) == 0); g_warning ("FIXME: opMassiveSeq fails - due to max. size check"); /* long_retn = test_SequenceServer_opMassiveSeq(objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_free (long_retn); */ CORBA_free (inArg._buffer); CORBA_free (inoutArg._buffer); CORBA_free (outArg); CORBA_free (retn); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testAnySequence (test_TestFactory factory, CORBA_Environment *ev) { test_AnySeq *any_retn, *copy; test_SequenceServer objref; d_print ("Testing sequence...\n"); objref = test_TestFactory_getSequenceServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); any_retn = test_SequenceServer_opAnySeq (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); copy = ORBit_copy_value (any_retn, TC_test_AnySeq); CORBA_free (any_retn); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testBoundedSequence (test_TestFactory factory, CORBA_Environment *ev) { test_SequenceServer objref; test_BoundedStructSeq inArg, inoutArg, *outArg, *retn; guint i; d_print ("Testing bounded sequences...\n"); objref = test_TestFactory_getSequenceServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); inArg._buffer = CORBA_sequence_test_CompoundStruct_allocbuf (2); inArg._length = 2; inArg._maximum = 2; CORBA_sequence_set_release (&inoutArg, CORBA_TRUE); for (i=0;i_major == CORBA_NO_EXCEPTION); for (i=0;i_length;i++){ g_assert (strcmp (outArg->_buffer[i].a.a, constants_SEQ_STRING_OUT[i]) == 0); } for (i=0;i_length;i++){ g_assert (strcmp (retn->_buffer[i].a.a, constants_SEQ_STRING_RETN[i]) == 0); } CORBA_free (inArg._buffer); CORBA_free (inoutArg._buffer); CORBA_free (outArg); CORBA_free (retn); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testFixedLengthUnion (test_TestFactory factory, CORBA_Environment *ev) { test_UnionServer objref; test_FixedLengthUnion inArg, inoutArg, outArg, retn; d_print ("Testing fixed length unions...\n"); objref = test_TestFactory_getUnionServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); inArg._u.x = constants_LONG_IN; inArg._d = 'a'; inoutArg._u.y = 't'; inoutArg._d = 'b'; retn = test_UnionServer_opFixed (objref, &inArg, &inoutArg, &outArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (inArg._d == 'a'); g_assert (inArg._u.x == constants_LONG_IN); g_assert (inoutArg._d == 'c'); g_assert (inoutArg._u.z == TRUE); g_assert (outArg._d == 'a'); g_assert (outArg._u.x == constants_LONG_OUT); g_assert (retn._d == 'd'); g_assert (retn._u.z == FALSE); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testVariableLengthUnion (test_TestFactory factory, CORBA_Environment *ev) { test_UnionServer objref; test_VariableLengthUnion inArg, inoutArg, *outArg, *retn; d_print ("Testing variable length unions...\n"); objref = test_TestFactory_getUnionServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); inArg._u.x = constants_LONG_IN; inArg._d = 1; inoutArg._u.y = CORBA_string_dup (constants_STRING_INOUT_IN); inoutArg._d = 2; retn = test_UnionServer_opVariable (objref, &inArg, &inoutArg, &outArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (inArg._d == 1); g_assert (inArg._u.x == constants_LONG_IN); g_assert (inoutArg._d == 3); g_assert (inoutArg._u.z == TRUE); g_assert (outArg->_d == 1); g_assert (outArg->_u.x == constants_LONG_OUT); g_assert (retn->_d == 4); g_assert (retn->_u.z == FALSE); CORBA_free (outArg); CORBA_free (retn); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testMiscUnions (test_TestFactory factory, CORBA_Environment *ev) { test_UnionServer obj; test_EnumUnion retn; test_unionSeq inSeq; test_VariableLengthUnion inSeq_buffer[3]; test_BooleanUnion inArg; test_ArrayUnion *outArg; int i; d_print ("Testing misc type unions...\n"); obj = test_TestFactory_getUnionServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); inSeq._length = inSeq._maximum = 3; inSeq._buffer = inSeq_buffer; inSeq._release = CORBA_FALSE; inSeq._buffer [0]._d = 4; inSeq._buffer [0]._u.z = CORBA_TRUE; inSeq._buffer [1]._d = 2; inSeq._buffer [1]._u.y = "blah"; inSeq._buffer [2]._d = 55; inSeq._buffer [2]._u.w = constants_LONG_IN; inArg._d = 1; inArg._u.y = "blah de blah"; retn = test_UnionServer_opMisc (obj, &inSeq, &inArg, &outArg, ev); g_assert (inSeq._length == 3); g_assert (inSeq._buffer [0]._d == 4); g_assert (inSeq._buffer [0]._u.z == CORBA_TRUE); g_assert (inSeq._buffer [1]._d == 2); g_assert (!strcmp (inSeq._buffer [1]._u.y, "blah")); g_assert (inSeq._buffer [2]._d == 55); g_assert (inSeq._buffer [2]._u.w == constants_LONG_IN); g_assert (inArg._d == 1); g_assert (!strcmp (inArg._u.y, "blah de blah")); g_assert (outArg->_d == 22); for (i = 0; i < 20; i++) { char *tmp; tmp = g_strdup_printf ("Numero %d", i); g_assert (!strcmp (outArg->_u.d [i], tmp)); g_free (tmp); } g_assert (retn._d == test_EnumUnion_red); g_assert (retn._u.x == constants_LONG_IN); CORBA_free (outArg); CORBA_Object_release (obj, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testUnionArray (test_TestFactory factory, CORBA_Environment *ev) { test_UnionServer obj; test_FixedLengthUnionArray_slice *retn; test_FixedLengthUnionArray inArg; test_FixedLengthUnionArray inoutArg; test_FixedLengthUnionArray outArg; d_print ("Testing union array...\n"); obj = test_TestFactory_getUnionServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); inArg[0]._d = 'a'; inArg[0]._u.x = constants_LONG_IN; inArg[1]._d = 'b'; inArg[1]._u.y = constants_CHAR_IN; inArg[2]._d = 'c'; inArg[3]._d = 'e'; inArg[3]._u.v.a = constants_SHORT_IN; inoutArg[0]._d = 'a'; inoutArg[0]._u.x = constants_LONG_INOUT_IN; inoutArg[1]._d = 'b'; inoutArg[1]._u.y = constants_CHAR_INOUT_IN; inoutArg[2]._d = 'c'; inoutArg[3]._d = 'e'; inoutArg[3]._u.v.a = constants_SHORT_INOUT_IN; retn = test_UnionServer_opFixedLengthUnionArray (obj, inArg, inoutArg, outArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (inArg[0]._d == 'a'); g_assert (inArg[0]._u.x == constants_LONG_IN); g_assert (inArg[1]._d == 'b'); g_assert (inArg[1]._u.y == constants_CHAR_IN); g_assert (inArg[2]._d == 'c'); g_assert (inArg[3]._d == 'e'); g_assert (inArg[3]._u.v.a == constants_SHORT_IN); g_assert (inoutArg[0]._d == 'a'); g_assert (inoutArg[0]._u.x == constants_LONG_INOUT_OUT); g_assert (inoutArg[1]._d == 'b'); g_assert (inoutArg[1]._u.y == constants_CHAR_INOUT_OUT); g_assert (inoutArg[2]._d == 'c'); g_assert (inoutArg[3]._d == 'e'); g_assert (inoutArg[3]._u.v.a == constants_SHORT_INOUT_OUT); g_assert (outArg[0]._d == 'a'); g_assert (outArg[0]._u.x == constants_LONG_OUT); g_assert (outArg[1]._d == 'b'); g_assert (outArg[1]._u.y == constants_CHAR_OUT); g_assert (outArg[2]._d == 'c'); g_assert (outArg[3]._d == 'e'); g_assert (outArg[3]._u.v.a == constants_SHORT_OUT); g_assert (retn[0]._d == 'a'); g_assert (retn[0]._u.x == constants_LONG_RETN); g_assert (retn[1]._d == 'b'); g_assert (retn[1]._u.y == constants_CHAR_RETN); g_assert (retn[2]._d == 'c'); g_assert (retn[3]._d == 'e'); g_assert (retn[3]._u.v.a == constants_SHORT_RETN); CORBA_free (retn); CORBA_Object_release (obj, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testLongArray (test_ArrayServer objref, CORBA_Environment *ev) { int i; test_LongArray inArg, inoutArg, outArg; test_LongArray_slice *retn; for (i=0;i_major == CORBA_NO_EXCEPTION); for (i=0;i_major == CORBA_NO_EXCEPTION); for (i=0;i_major == CORBA_NO_EXCEPTION); for (i=0;i_major == CORBA_NO_EXCEPTION); testLongArray (objref, ev); testOctetArray (objref, ev); testFixedLengthStructArray (objref, ev); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testStrArray (test_ArrayServer objref, CORBA_Environment *ev) { test_StrArray inArg, inoutArg; test_StrArray_slice *outArg, *retn; test_StrArrayMultiDimensional_slice *multidim; int i, n0, n1, n2; for (i=0;i_major == CORBA_NO_EXCEPTION); for (i=0;i_major == CORBA_NO_EXCEPTION); for (i=0;i_major == CORBA_NO_EXCEPTION); testStrArray (objref, ev); testAlignHoleStructArray (objref, ev); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testAnyLong (test_TestFactory factory, CORBA_Environment *ev) { test_AnyServer objref; CORBA_any inArg, inoutArg, *outArg, *retn; CORBA_long tmp, tmp1; d_print ("Testing any with longs...\n"); objref = test_TestFactory_getAnyServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); tmp = constants_LONG_IN; inArg._type = (CORBA_TypeCode)TC_CORBA_long; inArg._value = &tmp; CORBA_any_set_release (&inArg, CORBA_FALSE); inoutArg._type = (CORBA_TypeCode)TC_CORBA_long; tmp1 = constants_LONG_INOUT_IN; inoutArg._value = &tmp1; CORBA_any_set_release (&inoutArg, CORBA_FALSE); retn = test_AnyServer_opAnyLong (objref, &inArg, &inoutArg, &outArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert ( CORBA_TypeCode_equal (inArg._type, TC_CORBA_long, ev) ); g_assert (* (CORBA_long*)inArg._value == constants_LONG_IN); g_assert ( CORBA_TypeCode_equal (inoutArg._type, TC_CORBA_long, ev) ); g_assert (* (CORBA_long*)inoutArg._value == constants_LONG_INOUT_OUT); g_assert ( CORBA_TypeCode_equal (outArg->_type, TC_CORBA_long, ev) ); g_assert (* (CORBA_long*)outArg->_value == constants_LONG_OUT); g_assert ( CORBA_TypeCode_equal (retn->_type, TC_CORBA_long, ev) ); g_assert (* (CORBA_long*)retn->_value == constants_LONG_RETN); if (CORBA_any_get_release (&inArg)){ CORBA_free (inArg._value); CORBA_Object_release ((CORBA_Object)inArg._type, ev); } if (CORBA_any_get_release (&inoutArg)){ CORBA_free (inoutArg._value); CORBA_Object_release ((CORBA_Object)inoutArg._type, ev); } CORBA_free (outArg); CORBA_free (retn); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testAnyString (test_TestFactory factory, CORBA_Environment *ev) { test_AnyServer objref; CORBA_any inArg, inoutArg, *outArg, *retn; d_print ("Testing any with strings...\n"); objref = test_TestFactory_getAnyServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); inArg._type = (CORBA_TypeCode)TC_CORBA_string; inArg._value = &constants_STRING_IN; CORBA_any_set_release (&inArg, CORBA_FALSE); inoutArg._type = (CORBA_TypeCode)TC_CORBA_string; inoutArg._value = &constants_STRING_INOUT_IN; CORBA_any_set_release (&inoutArg, CORBA_FALSE); retn = test_AnyServer_opAnyString (objref, &inArg, &inoutArg, &outArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (CORBA_TypeCode_equal (inArg._type, TC_CORBA_string, ev)); g_assert (strcmp (* (CORBA_char **)inArg._value, constants_STRING_IN) == 0); g_assert (CORBA_TypeCode_equal (inoutArg._type, TC_CORBA_string, ev) ); g_assert (strcmp (* (CORBA_char **)inoutArg._value, constants_STRING_INOUT_OUT) == 0); g_assert (CORBA_TypeCode_equal (outArg->_type, TC_CORBA_string, ev) ); g_assert (strcmp (* (CORBA_char **)outArg->_value, constants_STRING_OUT) == 0); g_assert (CORBA_TypeCode_equal (retn->_type, TC_CORBA_string, ev) ); g_assert (strcmp (* (CORBA_char **)retn->_value, constants_STRING_RETN) == 0); if (CORBA_any_get_release (&inArg)){ CORBA_free (inArg._value); CORBA_Object_release ((CORBA_Object)inArg._type, ev); } if (CORBA_any_get_release (&inoutArg)){ CORBA_free (inoutArg._value); CORBA_Object_release ((CORBA_Object)inoutArg._type, ev); } CORBA_free (outArg); CORBA_free (retn); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testAnyStrSeq (test_TestFactory factory, CORBA_Environment *ev) { test_AnyServer objref; CORBA_any *retn; d_print ("Testing any with string sequences ...\n"); objref = test_TestFactory_getAnyServer(factory,ev); g_assert(ev->_major == CORBA_NO_EXCEPTION); retn = test_AnyServer_opAnyStrSeq (objref, ev); g_assert(ev->_major == CORBA_NO_EXCEPTION); CORBA_free (retn); CORBA_Object_release (objref, ev); } static void testAnyStruct (test_TestFactory factory, CORBA_Environment *ev) { test_AnyServer objref; CORBA_any inArg, inoutArg, *outArg, *retn; test_VariableLengthStruct inArgStruct; test_VariableLengthStruct * inoutArgStruct; d_print ("Testing any with structs...\n"); objref = test_TestFactory_getAnyServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); inoutArgStruct = test_VariableLengthStruct__alloc (); inArgStruct.a= (CORBA_char*)constants_STRING_IN; /* const cast */ inArg._type = (CORBA_TypeCode)TC_test_VariableLengthStruct; inArg._value = &inArgStruct; CORBA_any_set_release (&inArg, CORBA_FALSE); inoutArgStruct->a = CORBA_string_dup (constants_STRING_INOUT_IN); inoutArg._type = (CORBA_TypeCode)TC_test_VariableLengthStruct; inoutArg._value = inoutArgStruct; CORBA_any_set_release (&inoutArg, CORBA_TRUE); retn = test_AnyServer_opAnyStruct (objref, &inArg, &inoutArg, &outArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (CORBA_TypeCode_equal (inArg._type, TC_test_VariableLengthStruct, ev)); g_assert (strcmp ((* (test_VariableLengthStruct*)inArg._value).a, constants_STRING_IN) == 0); g_assert (CORBA_TypeCode_equal (inoutArg._type, TC_test_VariableLengthStruct, ev) ); g_assert (strcmp ((* (test_VariableLengthStruct*)inoutArg._value).a, constants_STRING_INOUT_OUT) == 0); g_assert (CORBA_TypeCode_equal (outArg->_type, TC_test_VariableLengthStruct, ev) ); g_assert (strcmp ((* (test_VariableLengthStruct*)outArg->_value).a, constants_STRING_OUT) == 0); g_assert (CORBA_TypeCode_equal (retn->_type, TC_test_VariableLengthStruct, ev) ); g_assert (strcmp ((* (test_VariableLengthStruct*)retn->_value).a, constants_STRING_RETN) == 0); if (CORBA_any_get_release (&inArg)){ /* This shouldn't be called */ CORBA_free (inArg._value); CORBA_Object_release ((CORBA_Object)inArg._type, ev); } if (CORBA_any_get_release (&inoutArg)){ CORBA_free (inoutArg._value); CORBA_Object_release ((CORBA_Object)inoutArg._type, ev); } CORBA_free (outArg); CORBA_free (retn); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testSequenceOfAny (test_TestFactory factory, CORBA_Environment *ev) { /* this test just checks the memory management for seq of any */ test_AnySeq anyseq; int i; d_print ("Testing Sequence of Any...\n"); anyseq._buffer = CORBA_sequence_CORBA_any_allocbuf (2); anyseq._length = 2; CORBA_sequence_set_release (&anyseq, CORBA_TRUE); for (i = 0; i < anyseq._length; i++) { anyseq._buffer [i]._type = (CORBA_TypeCode) TC_CORBA_string; anyseq._buffer [i]._value = &constants_STRING_IN; CORBA_any_set_release ( &anyseq._buffer[i], CORBA_FALSE); } CORBA_free (anyseq._buffer); } static void testAnyException (test_TestFactory factory, CORBA_Environment *ev) { CORBA_any *inArg; test_TestException *testex; d_print ("Testing Any with exception...\n"); inArg = CORBA_any__alloc (); testex = test_TestException__alloc (); inArg->_type = (CORBA_TypeCode) TC_test_TestException; inArg->_value = testex; CORBA_any_set_release (inArg, CORBA_TRUE); CORBA_free (inArg); } static void testAnyEquivalence (test_TestFactory factory, CORBA_Environment *ev) { test_unionSeq *aseq, *bseq; CORBA_any *a, *b; d_print ("Testing Anys equivalence...\n"); a = CORBA_any__alloc (); b = CORBA_any__alloc (); a->_type = b->_type = (CORBA_TypeCode) TC_test_unionSeq; aseq = test_unionSeq__alloc (); bseq = test_unionSeq__alloc (); aseq->_length = aseq->_maximum = 3; bseq->_length = bseq->_maximum = 3; aseq->_buffer = test_unionSeq_allocbuf (3); bseq->_buffer = test_unionSeq_allocbuf (3); bseq->_release = aseq->_release = CORBA_TRUE; bseq->_buffer [0]._d = aseq->_buffer [0]._d = 4; bseq->_buffer [0]._u.z = aseq->_buffer [0]._u.z = CORBA_TRUE; bseq->_buffer [1]._d = aseq->_buffer [1]._d = 2; aseq->_buffer [1]._u.y = CORBA_string_dup ("blah"); bseq->_buffer [1]._u.y = CORBA_string_dup ("blah"); bseq->_buffer [2]._d = aseq->_buffer [2]._d = 55; bseq->_buffer [2]._u.w = aseq->_buffer [2]._u.w = constants_LONG_IN; a->_value = aseq; b->_value = bseq; CORBA_any_set_release (a, CORBA_TRUE); CORBA_any_set_release (b, CORBA_TRUE); g_assert (ORBit_any_equivalent (a, b, ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); bseq->_buffer [0]._u.z = CORBA_FALSE; g_assert (!ORBit_any_equivalent (a, b, ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_free (b); b = NULL; bseq = NULL; b = ORBit_copy_value (a, TC_CORBA_any); g_assert (b != NULL); g_assert (ORBit_any_equivalent (a, b, ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); bseq = (test_unionSeq *) b->_value; bseq->_buffer [0]._u.z = CORBA_FALSE; g_assert (!ORBit_any_equivalent (a, b, ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_free (a); CORBA_free (b); } static void testTypeCode (test_TestFactory factory, CORBA_Environment *ev) { test_AnyServer objref; CORBA_TypeCode inArg, inoutArg, outArg, retn; d_print ("Testing TypeCodes...\n"); objref = test_TestFactory_getAnyServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); inArg = TC_test_ArrayUnion; inoutArg = TC_test_AnyServer; retn = test_AnyServer_opTypeCode (objref, inArg, &inoutArg, &outArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (CORBA_TypeCode_equal (inArg, TC_test_ArrayUnion, ev)); g_assert (CORBA_TypeCode_equal (inoutArg, TC_test_TestException, ev)); g_assert (CORBA_TypeCode_equal (outArg, TC_test_AnEnum, ev)); g_assert (CORBA_TypeCode_equal (retn, TC_test_VariableLengthStruct, ev)); CORBA_Object_release ((CORBA_Object)inArg, ev); CORBA_Object_release ((CORBA_Object)inoutArg, ev); CORBA_Object_release ((CORBA_Object)outArg, ev); CORBA_Object_release ((CORBA_Object)retn, ev); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testContext (test_TestFactory factory, CORBA_Environment *ev) { test_ContextServer objref; CORBA_Object inArg, inoutArg, outArg, retn; CORBA_Context ctx; d_print ("Testing Contexts...\n"); objref = test_TestFactory_getContextServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); inArg = inoutArg = outArg = retn = CORBA_OBJECT_NIL; CORBA_Context_create_child (CORBA_OBJECT_NIL, "Whatever", &ctx, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Context_set_one_value (ctx, "foo", "foo1", ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Context_set_one_value (ctx, "foo", "foo2", ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Context_set_one_value (ctx, "bar", "baaaa", ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); retn = test_ContextServer_opWithContext ( objref, inArg, &inoutArg, &outArg, ctx, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release (retn, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release (inArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release (inoutArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release (outArg, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release ( (CORBA_Object)ctx, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } #define SEQ_SIZE 4096 static test_StrSeq * make_large_str_seq (void) { test_StrSeq *seq = test_StrSeq__alloc (); int i; static const char base_data[] = "This is a longish test string it could go on for ever and ever"; seq->_buffer = test_StrSeq_allocbuf (SEQ_SIZE); for (i = 0; i < SEQ_SIZE; i++) { int len = 3 + (int) ((sizeof (base_data) - 3.0) * rand () / (RAND_MAX + 1.0)); seq->_buffer [i] = CORBA_string_dup (base_data); seq->_buffer [i] [len] = '\0'; } seq->_length = seq->_maximum = SEQ_SIZE; seq->_release = CORBA_TRUE; return seq; } static void testMisc (test_TestFactory factory, CORBA_Environment *ev) { CORBA_char *foo; CORBA_Context ctx; test_BasicServer objref; d_print ("Testing Misc bits...\n"); if (!in_proc) { /* Invoke a BasicServer method on a TestFactory */ foo = test_BasicServer__get_foo (factory, ev); g_assert (ev->_major == CORBA_SYSTEM_EXCEPTION); g_assert (!strcmp (ev->_id, "IDL:omg.org/CORBA/BAD_OPERATION:1.0")); CORBA_exception_free (ev); } g_assert (ORBit_copy_value (NULL, TC_CORBA_boolean) == NULL); objref = test_TestFactory_getBasicServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (objref != CORBA_OBJECT_NIL); g_assert (CORBA_Object_is_a (objref, "IDL:orbit/test/BasicServer:1.0", ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); { /* IOR stringification */ CORBA_char *ior; CORBA_Object o2; ior = CORBA_ORB_object_to_string (global_orb, factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); o2 = CORBA_ORB_string_to_object (global_orb, ior, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_free (ior); g_assert (o2 == factory); CORBA_Object_release (o2, ev); } test_BasicServer_noImplement (objref, ev); g_assert (ev->_major == CORBA_SYSTEM_EXCEPTION); g_assert (!strcmp (ev->_id, "IDL:omg.org/CORBA/NO_IMPLEMENT:1.0")); CORBA_exception_free (ev); if (!in_proc) { test_StrSeq *seq; seq = make_large_str_seq (); test_BasicServer_testLargeStringSeq (objref, seq, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_free (seq); } CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); /* Check we are building full type data */ if (strcmp (TC_test_ObjectStruct->subtypes [0]->repo_id, "IDL:orbit/test/DerivedServer:1.0")) g_warning ("Martin's bug needs fixing"); /* Check a daft one seen in CORBA_exception_free */ CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_test_SimpleException, NULL); CORBA_exception_free (ev); g_assert (ev->_id == NULL); g_assert (ev->_any._value == NULL); /* TypeCode equal */ g_assert (CORBA_TypeCode_equal ( TC_CORBA_string, TC_CORBA_string, ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (!CORBA_TypeCode_equal ( TC_test_StrSeq, TC_test_AnotherStrSeq, ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); /* TypeCode equivalent */ g_assert (CORBA_TypeCode_equivalent ( TC_CORBA_string, TC_CORBA_string, ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (CORBA_TypeCode_equivalent ( TC_test_StrSeq, TC_test_AnotherStrSeq, ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); /* * dead reference check */ if (!in_proc) { test_DeadReferenceObj obj; obj = test_TestFactory_createDeadReferenceObj (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (obj != CORBA_OBJECT_NIL); test_DeadReferenceObj_test (obj, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release (obj, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } else { /* Lets do some things on a de-activated ref */ test_BasicServer obj; PortableServer_ObjectId *oid; POA_test_BasicServer *servant; servant = SIMPLE_SERVANT_NEW (BasicServer); obj = create_object (global_poa, servant, ev); oid = PortableServer_POA_servant_to_id ( global_poa, servant, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); PortableServer_POA_deactivate_object ( global_poa, oid, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_free (oid); test_BasicServer_opException (obj, ev); g_assert (ev->_major == CORBA_SYSTEM_EXCEPTION); g_assert (!strcmp (ev->_id, ex_CORBA_OBJECT_NOT_EXIST)); CORBA_exception_free (ev); test_BasicServer_opOneWay (obj, "Foo", ev); g_assert (ev->_major == CORBA_SYSTEM_EXCEPTION); g_assert (!strcmp (ev->_id, ex_CORBA_OBJECT_NOT_EXIST)); CORBA_exception_free (ev); CORBA_Object_release (obj, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } /* Check the ORB cleans up contexts properly */ CORBA_ORB_get_default_context ( global_orb, &ctx, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (ctx != CORBA_OBJECT_NIL); CORBA_Object_release ((CORBA_Object) ctx, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); /* Check that various bonobo hooks work */ g_assert (ORBit_small_get_servant (NULL) == NULL); if (in_proc) { g_assert (ORBit_small_get_servant (factory)); g_assert (ORBit_small_get_connection_status (factory) == ORBIT_CONNECTION_IN_PROC); } else { g_assert (!ORBit_small_get_servant (factory)); g_assert (ORBit_small_get_connection_status (factory) == ORBIT_CONNECTION_CONNECTED); } } static void testIOR (test_TestFactory factory, CORBA_Environment *ev) { int i, count; CORBA_Object objref; d_print ("Testing IOR marshalling ...\n"); objref = test_TestFactory_getBasicServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); /* Check to see that the ORB correctly marshals various obj references */ count = test_BasicServer_getObjectCount (objref, ev); for (i = 0; i < count; i++) { CORBA_Object test_obj; test_obj = test_BasicServer_getObject (objref, i, ev); if (ev->_major != CORBA_NO_EXCEPTION) g_error ("Error demarshalling object number %d: %s", i, CORBA_exception_id (ev)); } CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testLifeCycle (test_TestFactory factory, CORBA_Environment *ev) { test_LifeCycleServer objref; ORBit_IMethod *method; d_print ("Testing LifeCycle bits...\n"); objref = test_TestFactory_createLifeCycleServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); d_print (" pre gnome 2.4 stubs ...\n"); if (in_proc) { method = &test_LifeCycleServer__iinterface.methods._buffer[1]; g_assert (!strcmp (method->name, "deactivateUnrefOnReturn")); } else { method = &test_LifeCycleServer__iinterface.methods._buffer[0]; g_assert (!strcmp (method->name, "deactivateOnReturn")); } ORBit_small_invoke_stub (objref, method, NULL, NULL, NULL, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); if (!in_proc) CORBA_Object_release (objref, ev); d_print (" post gnome 2.4 stubs ...\n"); objref = test_TestFactory_createLifeCycleServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); test_LifeCycleServer_deactivateOnReturn (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release (objref, ev); } static volatile int done = 0; static void test_BasicServer_opExceptionA_cb (CORBA_Object object, ORBit_IMethod *m_data, ORBitAsyncQueueEntry *aqe, gpointer user_data, CORBA_Environment *ev) { test_TestException *ex; /* Not a broken connection */ g_assert (ev->_major == CORBA_NO_EXCEPTION); ORBit_small_demarshal_async (aqe, NULL, NULL, ev); g_assert (ev->_major == CORBA_USER_EXCEPTION); g_assert (strcmp (CORBA_exception_id (ev), ex_test_TestException) == 0); ex = CORBA_exception_value (ev); g_assert (strcmp (ex->reason, constants_STRING_IN) == 0); g_assert (ex->number == constants_LONG_IN); g_assert (ex->aseq._length == 1); g_assert (ex->aseq._buffer[0] == constants_LONG_IN); done = 1; } static void test_BasicServer_opExceptionA (CORBA_Object obj, CORBA_Environment *ev) { ORBit_IMethod *m_data; m_data = &test_BasicServer__iinterface.methods._buffer [ORBIT_IMETHODS_INDEX(test_BasicServer_opException)]; /* if this failed, we re-ordered the IDL ... */ g_assert (!strcmp (m_data->name, "opException")); ORBit_small_invoke_async ( obj, m_data, test_BasicServer_opExceptionA_cb, NULL, NULL, NULL, ev); } static void test_BasicServer_opStringA_cb (CORBA_Object object, ORBit_IMethod *m_data, ORBitAsyncQueueEntry *aqe, gpointer user_data, CORBA_Environment *ev) { CORBA_char *inout_str = NULL, *out_str, *ret_str; CORBA_char **out_str_shim = &out_str; gpointer args[3]; gpointer ret = &ret_str; args[0] = NULL; args[1] = &inout_str; args[2] = &out_str_shim; /* Not a broken connection */ g_assert (ev->_major == CORBA_NO_EXCEPTION); ORBit_small_demarshal_async (aqe, ret, args, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (!strcmp (inout_str, constants_STRING_INOUT_OUT)); g_assert (!strcmp (out_str, constants_STRING_OUT)); g_assert (!strcmp (ret_str, constants_STRING_RETN)); CORBA_free (inout_str); CORBA_free (out_str); CORBA_free (ret_str); done = 1; } static void test_BasicServer_opStringA (CORBA_Object obj, const CORBA_char *in_str, const CORBA_char *inout_str, CORBA_Environment *ev) { gpointer args[3]; ORBit_IMethod *m_data; args[0] = &in_str; args[1] = &inout_str; args[2] = NULL; m_data = &test_BasicServer__iinterface.methods._buffer[ORBIT_IMETHODS_INDEX(test_BasicServer_opString)]; /* if this failed, we re-ordered the IDL ... */ g_assert (!strcmp (m_data->name, "opString")); ORBit_small_invoke_async ( obj, m_data, test_BasicServer_opStringA_cb, NULL, args, NULL, ev); } static void wait_until_done (void) { while (!done) g_main_context_iteration (NULL, TRUE); } static void testAsync (test_TestFactory factory, CORBA_Environment *ev) { test_BasicServer objref; d_print ("Testing Async invocations ...\n"); objref = test_TestFactory_getBasicServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); if (in_proc) { g_assert (objref->profile_list == NULL); g_assert (ORBit_small_get_connection_ref (objref) == NULL); } done = 0; test_BasicServer_opStringA ( objref, constants_STRING_IN, constants_STRING_INOUT_IN, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); /* While waiting do some normal methods */ testString (objref, ev); wait_until_done (); done = 0; test_BasicServer_opExceptionA (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); wait_until_done (); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void broken_cb (LinkConnection *connection, gboolean *broken) { *broken = TRUE; } static void testPingPong (test_TestFactory factory, gboolean thread_tests, CORBA_Environment *ev) { test_PingPongServer r_objref, l_objref, objref; CORBA_unsigned_long before_remote_hash; CORBA_unsigned_long after_remote_hash; #if NUM_THREADS > 0 if (thread_tests) { static volatile int warned = 0; if (!warned++) g_warning ("No thread available to handle incoming requests"); return; } #endif d_print ("Testing ping pong invocations ...\n"); r_objref = test_TestFactory_createPingPongServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); l_objref = TestFactory_createPingPongServer (NULL, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release (l_objref, ev); /* only want 1 ref */ g_assert (ORBit_small_get_servant (l_objref) != NULL); g_assert (ev->_major == CORBA_NO_EXCEPTION); before_remote_hash = CORBA_Object_hash (l_objref, 0, ev); test_PingPongServer_pingPong (r_objref, l_objref, 64, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); d_print ("Testing ping pong reg / lookup ...\n"); test_PingPongServer_set (r_objref, l_objref, "Foo", ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); objref = test_PingPongServer_get (r_objref, "Foo", ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (ORBit_small_get_servant (objref) != NULL); g_assert (l_objref == objref); after_remote_hash = CORBA_Object_hash (l_objref, 0, ev); d_print ("Testing hashing\n"); g_assert (before_remote_hash == after_remote_hash); d_print ("Testing equivalence\n"); g_assert (CORBA_Object_is_equivalent ( l_objref, objref, ev)); g_assert (CORBA_Object_is_equivalent ( CORBA_OBJECT_NIL, CORBA_OBJECT_NIL, ev)); g_assert (CORBA_Object_is_equivalent ( l_objref, l_objref, ev)); g_assert (CORBA_Object_is_equivalent ( r_objref, r_objref, ev)); g_assert (!CORBA_Object_is_equivalent ( r_objref, l_objref, ev)); g_assert (!CORBA_Object_is_equivalent ( l_objref, r_objref, ev)); g_assert (!CORBA_Object_is_equivalent ( l_objref, CORBA_OBJECT_NIL, ev)); g_assert (!CORBA_Object_is_equivalent ( CORBA_OBJECT_NIL, l_objref, ev)); #if 0 /* Test blocking bits - try to blow the remote guy's stack */ if (!in_proc) { int i; d_print ("Testing client limiting of stack smash on remote server\n"); for (i = 0; i < 10000; i++) { test_PingPongServer_opOneWayCallback (r_objref, l_objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } test_PingPongServer_opRoundTrip (r_objref, ev); } #endif if (!in_proc) { int i; ORBitConnection *cnx = ORBit_small_get_connection_ref (r_objref); const char *base = "This string is in order to provide some " "more bulky data on the wire, the larger " "the better. When the socket buffer fills " "we start exercising the linc buffering code " "and hopefully we get an exception somewhere " "indicating that the buffer is full and that " "the write has failed & that the connection is " "now saturated "; char *str; gboolean broken = FALSE; g_assert (cnx != NULL); ORBit_connection_set_max_buffer (cnx, 10000); str = g_strdup (base); for (i = 0; i < 4; i++) { char *new; new = g_strconcat (str, str, NULL); g_free (str); str = new; } d_print ("Testing non blocking IO ...\n"); ORBit_small_listen_for_broken ( r_objref, G_CALLBACK (broken_cb), &broken); for (i = 0; i < 100; i++) { test_PingPongServer_opSleep ( r_objref, str, ev); if (broken) break; } g_free (str); /* If this blows - perhaps you just have a strange * system scheduler */ /* g_assert (broken); */ CORBA_exception_free (ev); ORBit_small_connection_unref (cnx); ORBit_connection_set_max_buffer (cnx, 0); } CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release (l_objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release (r_objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testPolicy (test_TestFactory factory, gboolean thread_tests, CORBA_Environment *ev) { ORBitPolicy *policy; test_PingPongServer r_objref, l_objref; if (thread_tests || !thread_safe) return; d_print ("Testing policy code ...\n"); r_objref = test_TestFactory_createPingPongServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); l_objref = TestFactory_createPingPongServer (NULL, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release (l_objref, ev); /* only want 1 ref */ g_assert (ORBit_small_get_servant (l_objref) != NULL); g_assert (ev->_major == CORBA_NO_EXCEPTION); policy = ORBit_policy_new (ORBIT_TYPE_POLICY_EX, "allow", global_poa, NULL); ORBit_object_set_policy (r_objref, policy); test_PingPongServer_pingPong (r_objref, l_objref, 64, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); ORBit_object_set_policy (r_objref, NULL); ORBit_policy_unref (policy); CORBA_Object_release (l_objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release (r_objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void dummy_cb (LinkConnection *connection, gboolean *invoked) { *invoked = TRUE; } static void testSegv (test_TestFactory factory, CORBA_Environment *ev) { gboolean broken = FALSE; gboolean invoked = FALSE; if (in_proc) return; d_print ("Testing Fatal invocations ...\n"); g_assert (ORBit_small_listen_for_broken ( factory, G_CALLBACK (broken_cb), &broken) == ORBIT_CONNECTION_CONNECTED); g_assert (ORBit_small_listen_for_broken ( factory, G_CALLBACK (dummy_cb), &invoked) == ORBIT_CONNECTION_CONNECTED); g_assert (ORBit_small_unlisten_for_broken ( factory, G_CALLBACK (dummy_cb)) == ORBIT_CONNECTION_CONNECTED); g_assert (!CORBA_Object_non_existent (factory, ev)); test_TestFactory_segv (factory, "do it!", ev); #ifdef DO_HARDER_SEGV // unusual g_assert (ev->_major == CORBA_SYSTEM_EXCEPTION); g_assert (!strcmp (ev->_id, "IDL:omg.org/CORBA/COMM_FAILURE:1.0")); CORBA_exception_free (ev); g_assert (ORBit_small_get_connection_status (factory) == ORBIT_CONNECTION_DISCONNECTED); g_assert (broken); g_assert (!invoked); #else if (ORBit_small_unlisten_for_broken (factory, G_CALLBACK (broken_cb)) != ORBIT_CONNECTION_CONNECTED) g_warning ("Unusual race in unlisten"); g_assert (ev->_major == CORBA_NO_EXCEPTION); #endif } static void test_initial_references (CORBA_ORB orb, CORBA_Environment *ev) { CORBA_ORB_ObjectIdList *list; int i; fprintf (stderr, "\nInitial References:\n"); list = CORBA_ORB_list_initial_services (orb, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION && list && list->_length); for (i = 0; i < list->_length; i++) { CORBA_ORB_ObjectId id; CORBA_Object obj; id = list->_buffer [i]; g_assert (id); fprintf (stderr, "\t%s ... ", id); obj = CORBA_ORB_resolve_initial_references (orb, id, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION && obj != CORBA_OBJECT_NIL); CORBA_Object_release (obj, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); fprintf (stderr, "okay\n"); } CORBA_free (list); } #define TIME_TEST_RUNS 1000 static void test_time_noop (test_TestFactory factory, CORBA_Environment *ev) { int i; int old_flags; GTimer *timer; timer = g_timer_new (); g_timer_start (timer); for (i = 0; i < TIME_TEST_RUNS; i++) test_TestFactory_noOp (factory, ev); g_timer_stop (timer); fprintf (stderr, "In proc (fast) took %g msecs\n", g_timer_elapsed (timer, NULL) * 1000); old_flags = ORBit_small_flags; ORBit_small_flags |= ORBIT_SMALL_FORCE_GENERIC_MARSHAL; g_timer_reset (timer); g_timer_start (timer); for (i = 0; i < TIME_TEST_RUNS; i++) test_TestFactory_noOp (factory, ev); g_timer_stop (timer); fprintf (stderr, "In proc (slow) took %g msecs\n", g_timer_elapsed (timer, NULL) * 1000); ORBit_small_flags = old_flags; g_timer_destroy (timer); } static void test_basic_server (test_TestFactory factory, CORBA_Environment *ev) { test_BasicServer objref; objref = test_TestFactory_getBasicServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (objref != CORBA_OBJECT_NIL); g_assert (CORBA_Object_is_a (objref, "IDL:orbit/test/BasicServer:1.0", ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); testAttribute (objref, ev); testString (objref, ev); testLong (objref, ev); testLongLong (objref, ev); testFloat (objref, ev); testDouble (objref, ev); testLongDouble (objref, ev); testEnum (objref, ev); testException (objref, ev); testBoolAlign (objref, ev); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); } static void testDerivedServer (test_TestFactory factory, CORBA_Environment *ev) { CORBA_Object obj; PortableServer_ServantBase *servant; PortableServer_ObjectId *oid; ORBit_POAObject pobj; PortableServer_ServantBase__epv DerivedServer_base_epv = {NULL, simple_finalize, NULL}; POA_test_BasicServer__vepv DerivedServer_vepv = { &DerivedServer_base_epv, NULL }; d_print ("Testing DerivedServer ...\n"); servant = SIMPLE_SERVANT_NEW (DerivedServer); obj = create_object (global_poa, servant, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (test_C1__classid != 0); g_assert (test_B1__classid != 0); g_assert (test_B2__classid != 0); g_assert (test_DerivedServer__classid != 0); pobj = (ORBit_POAObject) obj->adaptor_obj; g_assert (pobj->vepvmap_cache [test_DerivedServer__classid] != 0); g_assert (pobj->vepvmap_cache [test_C1__classid] != 0); g_assert (pobj->vepvmap_cache [test_B1__classid] != 0); g_assert (pobj->vepvmap_cache [test_B2__classid] != 0); CORBA_Object_release (obj, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); oid = PortableServer_POA_servant_to_id (global_poa, servant, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); PortableServer_POA_deactivate_object (global_poa, oid, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_free (oid); } static void testNonExistent (test_TestFactory factory, CORBA_Environment *ev) { CORBA_Object non_existent; const char *non_existent_ior = "IOR:010000001f00000049444c3a6f726269742f746573742f54657" "374466163746f72793a312e300000030000000054424f6400000001" "01020005000000554e495800000000160000006c6f63616c686f737" "42e6c6f63616c646f6d61696e0000002d0000002f746d702f6f7262" "69742d6d69636861656c2f6c696e632d363733322d302d373362323" "966373333316662390000000000000000caaedfba58000000010102" "002d0000002f746d702f6f726269742d6d69636861656c2f6c696e6" "32d363733322d302d37336232396637333331666239000000001c00" "000000000000331c40f8ba0fa828dc2928282828282808000000db7" "e269601000000480000000100000002000000050000001c00000000" "000000331c40f8ba0fa828dc2928282828282808000000db7e26960" "1000000140000000100000001000105000000000901010000000000"; if (!in_proc) return; d_print ("Testing CORBA_Object_non_existent ...\n"); non_existent = CORBA_ORB_string_to_object (global_orb, non_existent_ior, ev); g_assert (CORBA_Object_non_existent (non_existent, ev)); CORBA_Object_release (non_existent, NULL); } static void testWithException (test_TestFactory factory, CORBA_Environment *ev) { int old_flags; CORBA_Object objref; CORBA_exception_set (ev, CORBA_SYSTEM_EXCEPTION, ex_CORBA_OBJECT_NOT_EXIST, NULL); objref = test_TestFactory_getBasicServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); old_flags = ORBit_small_flags; ORBit_small_flags |= ORBIT_SMALL_FORCE_GENERIC_MARSHAL; CORBA_exception_set (ev, CORBA_SYSTEM_EXCEPTION, ex_CORBA_OBJECT_NOT_EXIST, NULL); objref = test_TestFactory_getBasicServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release (objref, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); ORBit_small_flags = old_flags; } static void run_tests (test_TestFactory factory, gboolean thread_tests, CORBA_Environment *ev) { int i; for (i = 0; i < NUM_RUNS; i++) { testSequenceHelpers (); testConst (); test_basic_server (factory, ev); testIsA (factory, ev); testFixedLengthStruct (factory, ev); testVariableLengthStruct (factory, ev); testCompoundStruct (factory, ev); testAlignHoleStruct (factory, ev); testObjectStruct (factory, ev); testStructAny (factory, ev); testUnboundedSequence (factory, ev); testBoundedSequence (factory, ev); testAnySequence (factory, ev); testFixedLengthUnion (factory, ev); testVariableLengthUnion (factory, ev); testMiscUnions (factory, ev); testUnionArray (factory, ev); testFixedLengthArray (factory, ev); testVariableLengthArray (factory, ev); testAnyStrSeq (factory, ev); testAnyLong (factory, ev); testAnyString (factory, ev); testAnyStruct (factory, ev); testAnyException (factory, ev); testAnyEquivalence (factory, ev); testSequenceOfAny (factory, ev); testTypeCode (factory, ev); testContext (factory, ev); testIInterface (factory, ev); testDerivedServer (factory, ev); testNonExistent (factory, ev); #ifndef TIMING_RUN if (!thread_tests) testAsync (factory, ev); #endif if (!in_proc) { testPingPong (factory, thread_tests, ev); testPolicy (factory, thread_tests, ev); } testMisc (factory, ev); testIOR (factory, ev); testWithException (factory, ev); testLifeCycle (factory, ev); } #if NUM_RUNS > 1 g_warning ("Did '%d' iterations", i); #endif } static gpointer test_thread (gpointer data) { CORBA_Environment ev[1]; test_TestFactory factory = data; CORBA_exception_init (ev); run_tests (factory, TRUE, ev); CORBA_exception_free (ev); return data; } static void run_threaded_tests (test_TestFactory factory, CORBA_Environment *ev) { int i; GError *error = NULL; GThread **threads; if (!NUM_THREADS) return; fprintf (stderr, "Testing with %d threads\n", NUM_THREADS); threads = g_new0 (GThread *, NUM_THREADS); for (i = 0; i < NUM_THREADS; i++) { threads [i] = g_thread_create ( test_thread, factory, TRUE, &error); g_assert (!error); } for (i = 0; i < NUM_THREADS; i++) { if (!(g_thread_join (threads [i]) == factory)) g_error ("Wierd thread join problem '%d'", i); } } static void dump_protos (void) { int enabled_count = 0; LinkProtocolInfo *info; for (info = link_protocol_all (); info->name; info++) { gboolean enabled; if ((enabled = ORBit_proto_use (info->name))) enabled_count++; fprintf (stderr, "Protocol %8s: %s\n", info->name, enabled ? "enabled" : "disabled"); } g_assert (enabled_count > 0); } static void test_init (CORBA_Environment *ev) { g_assert (CORBA_ORB_init (NULL, NULL, "", ev) == global_orb); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_ORB_destroy (global_orb, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release ((CORBA_Object)global_orb, ev); } int main (int argc, char *argv []) { CORBA_Environment ev[1]; test_TestFactory factory; ORBit_IInterfaces *interfaces = NULL; gboolean gen_imodule = FALSE; char *orb_name; int i; g_thread_init (NULL); CORBA_exception_init (ev); /* FIXME - make this work nicely sometime. global_orb = CORBA_ORB_init (&argc, argv, "", ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release (global_orb, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); */ for (i = 0; i < argc; i++) { if (!strcmp (argv [i], "--gen-imodule")) gen_imodule = TRUE; if (!strcmp (argv [i], "--thread-safe")) thread_safe = TRUE; if (!strcmp (argv [i], "--thread-tests")) { thread_safe = TRUE; thread_tests = TRUE; } } if (thread_safe) orb_name = "orbit-local-orb"; else orb_name = "orbit-local-non-threaded-orb"; global_orb = CORBA_ORB_init (&argc, argv, orb_name, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); /* if (thread_tests) { g_warning ("FIXME: testing only"); link_set_io_thread (TRUE); } */ if (gen_imodule) { CORBA_sequence_CORBA_TypeCode *typecodes = NULL; interfaces = ORBit_iinterfaces_from_file ( TEST_SRCDIR "/everything.idl", NULL, &typecodes); g_assert (interfaces != NULL); g_assert (typecodes != NULL); CORBA_free (typecodes); init_iinterfaces (interfaces, ev); } test_init (ev); test_initial_references (global_orb, ev); free (malloc (8)); /* -lefence */ dump_protos (); /* In Proc ... */ in_proc = TRUE; fprintf (stderr, "\n --- In proc ---\n\n\n"); factory = get_server (global_orb, ev); g_assert (factory->profile_list == NULL); g_assert (ORBit_object_get_connection (factory) == NULL); test_time_noop (factory, ev); run_tests (factory, FALSE, ev); if (thread_tests) g_warning ("FIXME: disabled in-proc threaded tests for now"); /* run_threaded_tests (factory, ev); */ CORBA_Object_release (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); factory = CORBA_OBJECT_NIL; fprintf (stderr, "\n\n --- Out of proc ---\n\n\n"); in_proc = FALSE; { /* read the ior from iorfile, and swizzle to an objref*/ int size; char ior [1024]; FILE *infile = fopen ("iorfile", "rb"); if (!infile) g_error ("Start the server before running the client"); size = fread (ior, 1, 1024, infile); fclose (infile); ior [size] = '\0'; /* insure that string is terminated correctly */ factory = CORBA_ORB_string_to_object (global_orb, ior, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); if (CORBA_Object_non_existent (factory, ev)) g_error ("Can't contact the server"); g_assert (ev->_major == CORBA_NO_EXCEPTION); } run_tests (factory, FALSE, ev); if (thread_tests) run_threaded_tests (factory, ev); testSegv (factory, ev); CORBA_Object_release (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); if (gen_imodule) CORBA_free (interfaces); CORBA_Object_release ((CORBA_Object) global_poa, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_ORB_destroy (global_orb, ev); CORBA_exception_free (ev); CORBA_Object_release ((CORBA_Object) global_orb, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_exception_free (ev); d_print ("All tests passed successfully\n"); return 0; } ORBit2-2.14.19/test/everything/deadReference.c0000644000175000001440000000365011334247617015705 00000000000000/* * CORBA C language mapping tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Mark McLoughlin */ #include "everything.h" static void DeadReferenceObj_test (PortableServer_Servant servant, CORBA_Environment *ev) { PortableServer_Current poa_current; PortableServer_POA poa; CORBA_Object obj = CORBA_OBJECT_NIL; poa_current = (PortableServer_Current) CORBA_ORB_resolve_initial_references (global_orb, "POACurrent", ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); poa = PortableServer_Current_get_POA (poa_current, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); obj = PortableServer_POA_servant_to_reference (poa, servant, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (obj != CORBA_OBJECT_NIL); CORBA_Object_release ((CORBA_Object) obj, ev); CORBA_Object_release ((CORBA_Object) poa, ev); CORBA_Object_release ((CORBA_Object) poa_current, ev); } static POA_test_DeadReferenceObj__epv DeadReferenceObj_epv = { NULL, DeadReferenceObj_test }; static PortableServer_ServantBase__epv DeadReferenceObj_base_epv = { NULL, simple_finalize, NULL }; static POA_test_DeadReferenceObj__vepv DeadReferenceObj_vepv = { &DeadReferenceObj_base_epv, &DeadReferenceObj_epv }; ORBit2-2.14.19/test/everything/arrayServer.c0000644000175000001440000001363411334247617015501 00000000000000/* * CORBA C language mapping tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Phil Dawes */ static test_LongArray_slice * ArrayServer_opLongArray(PortableServer_Servant _servant, const test_LongArray inArg, test_LongArray inoutArg, test_LongArray outArg, CORBA_Environment * ev) { int i; test_LongArray_slice *retn; for(i=0;i */ #include "everything.h" #include "constants.h" #include static test_StrSeq * SequenceServer_opStrSeq (PortableServer_Servant _servant, const test_StrSeq * inArg, test_StrSeq * inoutArg, test_StrSeq ** outArg, CORBA_Environment * ev) { test_StrSeq *retn; guint i; for (i=0;i_length;i++) g_assert(strcmp(inArg->_buffer[i],constants_SEQ_STRING_IN[i]) == 0); for (i=0;i_length;i++) g_assert(strcmp(inoutArg->_buffer[i],constants_SEQ_STRING_INOUT_IN[i]) == 0); if (CORBA_sequence_get_release (inoutArg)) CORBA_free(inoutArg->_buffer); inoutArg->_buffer = CORBA_sequence_CORBA_string_allocbuf(2); inoutArg->_length = 2; CORBA_sequence_set_release(inoutArg, CORBA_TRUE); for (i=0;i_length;i++) inoutArg->_buffer[i] = CORBA_string_dup(constants_SEQ_STRING_INOUT_OUT[i]); *outArg = CORBA_sequence_CORBA_string__alloc(); (*outArg)->_buffer = CORBA_sequence_CORBA_string_allocbuf(2); (*outArg)->_length = 2; CORBA_sequence_set_release(*outArg, CORBA_TRUE); for (i=0;i<(*outArg)->_length;i++) (*outArg)->_buffer[i] = CORBA_string_dup(constants_SEQ_STRING_OUT[i]); retn = CORBA_sequence_CORBA_string__alloc(); retn->_buffer = CORBA_sequence_CORBA_string_allocbuf(2); retn->_length = 2; CORBA_sequence_set_release(retn, CORBA_TRUE); for (i=0;i_length;i++) retn->_buffer[i] = CORBA_string_dup(constants_SEQ_STRING_RETN[i]); return retn; } static test_BoundedStructSeq * SequenceServer_opBoundedStructSeq (PortableServer_Servant _servant, const test_BoundedStructSeq * inArg, test_BoundedStructSeq * inoutArg, test_BoundedStructSeq ** outArg, CORBA_Environment * ev) { test_BoundedStructSeq *retn; CORBA_long i; for (i = 0; i < inArg->_length; i++) g_assert (strcmp (inArg->_buffer[i].a.a, constants_SEQ_STRING_IN[i]) == 0); for (i = 0; i < inoutArg->_length; i++) g_assert(strcmp(inoutArg->_buffer[i].a.a,constants_SEQ_STRING_INOUT_IN[i]) == 0); if (CORBA_sequence_get_release (inoutArg)) CORBA_free (inoutArg->_buffer); inoutArg->_buffer = CORBA_sequence_test_CompoundStruct_allocbuf (2); inoutArg->_length = 2; CORBA_sequence_set_release (inoutArg, CORBA_TRUE); for (i = 0; i < inoutArg->_length; i++) inoutArg->_buffer[i].a.a = CORBA_string_dup (constants_SEQ_STRING_INOUT_OUT[i]); *outArg = CORBA_sequence_test_CompoundStruct__alloc (); (*outArg)->_buffer = CORBA_sequence_test_CompoundStruct_allocbuf (2); (*outArg)->_length = 2; CORBA_sequence_set_release (*outArg, CORBA_TRUE); for (i = 0; i < (*outArg)->_length; i++) (*outArg)->_buffer[i].a.a = CORBA_string_dup (constants_SEQ_STRING_OUT[i]); retn = CORBA_sequence_test_CompoundStruct__alloc (); retn->_buffer = CORBA_sequence_test_CompoundStruct_allocbuf (2); retn->_length = 2; CORBA_sequence_set_release (retn, CORBA_TRUE); for (i = 0; i < retn->_length; i++) retn->_buffer[i].a.a = CORBA_string_dup (constants_SEQ_STRING_RETN[i]); return retn; } static test_LongSeq * SequenceServer_opMassiveSeq (PortableServer_Servant servant, CORBA_Environment *ev) { test_LongSeq *retn; CORBA_long i; CORBA_long n = 400000; retn = test_LongSeq__alloc (); retn->_buffer = test_LongSeq_allocbuf (n); retn->_length = n; CORBA_sequence_set_release (retn, CORBA_TRUE); for (i = 0; i < retn->_length; i++) retn->_buffer[i] = i; return retn; } static test_AnySeq * SequenceServer_opAnySeq (PortableServer_Servant servant, CORBA_Environment *ev) { test_AnySeq *retn; CORBA_long i; CORBA_long n = 1000; retn = test_AnySeq__alloc (); retn->_buffer = test_AnySeq_allocbuf (n); retn->_length = n; CORBA_sequence_set_release (retn, CORBA_TRUE); for (i = 0; i < retn->_length; i++) { if (i < 500) retn->_buffer[i]._type = TC_void; else retn->_buffer[i]._type = TC_null; retn->_buffer[i]._value = NULL; retn->_buffer[i]._release = CORBA_FALSE; } return retn; } POA_test_SequenceServer__epv SequenceServer_epv = { NULL, SequenceServer_opStrSeq, SequenceServer_opBoundedStructSeq, SequenceServer_opMassiveSeq, SequenceServer_opAnySeq }; PortableServer_ServantBase__epv SequenceServer_base_epv = {NULL, simple_finalize, NULL}; POA_test_SequenceServer__vepv SequenceServer_vepv = { &SequenceServer_base_epv, &SequenceServer_epv }; ORBit2-2.14.19/test/everything/anyServer.c0000644000175000001440000001441211334247617015145 00000000000000/* * CORBA C language mapping tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Phil Dawes */ #include "everything.h" #include "constants.h" #include static CORBA_long opAnyLong_inout = constants_LONG_INOUT_OUT; static CORBA_long opAnyLong_out = constants_LONG_OUT; static CORBA_long opAnyLong_retn = constants_LONG_RETN; static CORBA_any * AnyServer_opAnyStrSeq (PortableServer_Servant _servant, CORBA_Environment * ev) { CORBA_any *retn; test_StrSeq *seq; int i; seq = test_StrSeq__alloc(); seq->_length = 16; seq->_buffer = CORBA_sequence_CORBA_string_allocbuf (seq->_length); seq->_release = TRUE; for (i = 0; i < seq->_length; i++) seq->_buffer [i] = CORBA_string_dup ("Foo"); retn = CORBA_any_alloc (); retn->_type = (CORBA_TypeCode) CORBA_Object_duplicate ( (CORBA_Object) TC_test_StrSeq, ev); retn->_value = seq; retn->_release = TRUE; return retn; } static CORBA_any * AnyServer_opAnyLong (PortableServer_Servant _servant, const CORBA_any * inArg, CORBA_any * inoutArg, CORBA_any ** outArg, CORBA_Environment * ev) { CORBA_any *retn; g_assert(CORBA_TypeCode_equal(inArg->_type,TC_CORBA_long,ev)); g_assert(*(CORBA_long*)inArg->_value == constants_LONG_IN); g_assert(CORBA_TypeCode_equal(inoutArg->_type,TC_CORBA_long,ev)); g_assert(*(CORBA_long*)inoutArg->_value == constants_LONG_INOUT_IN); if(CORBA_any_get_release(inoutArg)){ CORBA_free(inoutArg->_value); CORBA_Object_release((CORBA_Object)inoutArg->_type, ev); } inoutArg->_type = (CORBA_TypeCode)TC_CORBA_long; inoutArg->_value = &opAnyLong_inout; CORBA_any_set_release(inoutArg, CORBA_FALSE); *outArg = CORBA_any_alloc(); (*outArg)->_type = (CORBA_TypeCode)TC_CORBA_long; (*outArg)->_value = &opAnyLong_out; CORBA_any_set_release(*outArg, CORBA_FALSE); retn = CORBA_any_alloc(); retn->_type = (CORBA_TypeCode)TC_CORBA_long; retn->_value = &opAnyLong_retn; CORBA_any_set_release(retn, CORBA_FALSE); return retn; } static CORBA_any * AnyServer_opAnyString(PortableServer_Servant _servant, const CORBA_any * inArg, CORBA_any * inoutArg, CORBA_any ** outArg, CORBA_Environment * ev){ CORBA_any *retn; g_assert(CORBA_TypeCode_equal(inArg->_type,TC_CORBA_string,ev)); g_assert(strcmp(*(CORBA_char **)inArg->_value,constants_STRING_IN) == 0); g_assert(CORBA_TypeCode_equal(inoutArg->_type,TC_CORBA_string,ev) ); g_assert(strcmp(*(CORBA_char **)inoutArg->_value,constants_STRING_INOUT_IN) == 0); if(CORBA_any_get_release(inoutArg)){ CORBA_free(inoutArg->_value); CORBA_Object_release((CORBA_Object)inoutArg->_type, ev); } inoutArg->_type = (CORBA_TypeCode)TC_CORBA_string; inoutArg->_value = &constants_STRING_INOUT_OUT; CORBA_any_set_release(inoutArg, CORBA_FALSE); *outArg = CORBA_any_alloc(); (*outArg)->_type = (CORBA_TypeCode)TC_CORBA_string; (*outArg)->_value = &constants_STRING_OUT; CORBA_any_set_release(*outArg, CORBA_FALSE); retn = CORBA_any_alloc(); retn->_type = (CORBA_TypeCode)TC_CORBA_string; retn->_value = &constants_STRING_RETN; CORBA_any_set_release(retn, CORBA_FALSE); return retn; } static test_VariableLengthStruct inoutArgStruct; static test_VariableLengthStruct outArgStruct; static test_VariableLengthStruct retnStruct; static CORBA_any * AnyServer_opAnyStruct(PortableServer_Servant _servant, const CORBA_any * inArg, CORBA_any * inoutArg, CORBA_any ** outArg, CORBA_Environment * ev){ CORBA_any *retn; g_assert(CORBA_TypeCode_equal(inArg->_type,TC_test_VariableLengthStruct,ev)); g_assert(strcmp((*(test_VariableLengthStruct*)inArg->_value).a,constants_STRING_IN) == 0); g_assert(CORBA_TypeCode_equal(inoutArg->_type,TC_test_VariableLengthStruct,ev) ); g_assert(strcmp((*(test_VariableLengthStruct*)inoutArg->_value).a,constants_STRING_INOUT_IN) == 0); if(CORBA_any_get_release(inoutArg)){ CORBA_free(inoutArg->_value); CORBA_Object_release((CORBA_Object)inoutArg->_type, ev); } inoutArg->_type = (CORBA_TypeCode)TC_test_VariableLengthStruct; inoutArgStruct.a = (char *)constants_STRING_INOUT_OUT; inoutArg->_value = &inoutArgStruct; CORBA_any_set_release(inoutArg, CORBA_FALSE); *outArg = CORBA_any_alloc(); (*outArg)->_type = (CORBA_TypeCode)TC_test_VariableLengthStruct; outArgStruct.a = (char *)constants_STRING_OUT; (*outArg)->_value = &outArgStruct; CORBA_any_set_release(*outArg, CORBA_FALSE); retn = CORBA_any_alloc(); retn->_type = (CORBA_TypeCode)TC_test_VariableLengthStruct; retnStruct.a = (char *)constants_STRING_RETN; retn->_value = &retnStruct; CORBA_any_set_release(retn, CORBA_FALSE); return retn; } CORBA_TypeCode retntypecode = TC_test_VariableLengthStruct; static CORBA_TypeCode AnyServer_opTypeCode (PortableServer_Servant servant, const CORBA_TypeCode inArg, CORBA_TypeCode *inoutArg, CORBA_TypeCode *outArg, CORBA_Environment *ev) { g_assert (CORBA_TypeCode_equal (inArg, TC_test_ArrayUnion, ev)); g_assert (CORBA_TypeCode_equal (*inoutArg, TC_test_AnyServer, ev)); CORBA_Object_release ((CORBA_Object)*inoutArg, ev); *inoutArg = (CORBA_TypeCode) CORBA_Object_duplicate ( (CORBA_Object) TC_test_TestException, ev); *outArg = TC_test_AnEnum; return TC_test_VariableLengthStruct; } POA_test_AnyServer__epv AnyServer_epv = { NULL, AnyServer_opAnyStrSeq, AnyServer_opAnyLong, AnyServer_opAnyString, AnyServer_opAnyStruct, AnyServer_opTypeCode }; PortableServer_ServantBase__epv AnyServer_base_epv = {NULL, simple_finalize, NULL}; POA_test_AnyServer__vepv AnyServer_vepv = { &AnyServer_base_epv, &AnyServer_epv }; ORBit2-2.14.19/test/everything/server.c0000644000175000001440000004011611334247617014475 00000000000000/* * CORBA C language mapping tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Phil Dawes */ #undef DO_HARDER_SEGV #include "everything.h" #include #include #include #include "orbit-imodule.h" /* Singleton accessor for the test factory */ test_TestFactory getFactoryInstance(CORBA_Environment *ev); typedef void (*init_fn_t) (PortableServer_Servant, CORBA_Environment *); CORBA_Object create_object (PortableServer_POA poa, gpointer servant, CORBA_Environment *ev); CORBA_ORB global_orb; PortableServer_POA global_poa; static void simple_finalize (PortableServer_Servant servant, CORBA_Environment *ev) { /* g_warning ("Finalize servant %p", servant); */ g_free (servant); } static gpointer simple_servant_new (gpointer vepv, init_fn_t fn) { CORBA_Environment ev[1]; PortableServer_ClassInfo *class_info; PortableServer_ServantBase *servant = g_new0 (PortableServer_ServantBase, 1); servant->vepv = vepv; g_assert (servant->vepv[0] != NULL); CORBA_exception_init (ev); fn (servant, ev); if (ev->_major != CORBA_NO_EXCEPTION) g_error ("object__init failed: %d\n", ev->_major); g_assert (ORBIT_SERVANT_TO_CLASSINFO (servant) != NULL); CORBA_exception_free (ev); class_info = ORBIT_SERVANT_TO_CLASSINFO (servant); g_assert (class_info); /* g_warning ("Create servant %p ('%s')", servant, class_info->class_name); */ return servant; } #define SIMPLE_SERVANT_NEW(type) (simple_servant_new (&(type##_vepv), POA_test_##type##__init)) PortableServer_ServantBase__epv Simple_base_epv = {NULL, simple_finalize, NULL}; #include "basicServer.c" #include "structServer.c" #include "sequenceServer.c" #include "unionServer.c" #include "arrayServer.c" #include "anyServer.c" #include "contextServer.c" #include "deadReference.c" #include "lifeCycle.c" #include "pingServer.c" #include "derivedServer.c" typedef struct { POA_test_TestFactory baseServant; test_BasicServer basicServerRef; test_StructServer structServerRef; test_SequenceServer sequenceServerRef; test_UnionServer unionServerRef; test_ArrayServer arrayServerRef; test_AnyServer anyServerRef; test_ContextServer contextServerRef; test_DerivedServer derivedServerRef; GSList *pingPongServerRefs; } test_TestFactory_Servant; static test_BasicServer TestFactory_getBasicServer (PortableServer_Servant servant, CORBA_Environment *ev) { test_TestFactory_Servant *this = (test_TestFactory_Servant *) servant; return CORBA_Object_duplicate (this->basicServerRef, ev); } static CORBA_char * TestFactory_getStructServerIOR (PortableServer_Servant servant, CORBA_Environment *ev) { test_TestFactory_Servant *this = (test_TestFactory_Servant *) servant; return CORBA_ORB_object_to_string (global_orb, this->structServerRef, ev); } static test_StructServer TestFactory_getStructServer (PortableServer_Servant servant, CORBA_Environment *ev) { test_TestFactory_Servant *this = (test_TestFactory_Servant*) servant; return CORBA_Object_duplicate (this->structServerRef, ev); } static test_SequenceServer TestFactory_getSequenceServer(PortableServer_Servant servant, CORBA_Environment *ev) { test_TestFactory_Servant *this = (test_TestFactory_Servant*) servant; return CORBA_Object_duplicate(this->sequenceServerRef,ev); } static test_UnionServer TestFactory_getUnionServer (PortableServer_Servant servant, CORBA_Environment *ev) { test_TestFactory_Servant *this = (test_TestFactory_Servant*) servant; return CORBA_Object_duplicate (this->unionServerRef, ev); } static test_ArrayServer TestFactory_getArrayServer (PortableServer_Servant servant, CORBA_Environment *ev) { test_TestFactory_Servant *this = (test_TestFactory_Servant*) servant; return CORBA_Object_duplicate (this->arrayServerRef, ev); } static test_AnyServer TestFactory_getAnyServer (PortableServer_Servant servant, CORBA_Environment *ev) { test_TestFactory_Servant *this = (test_TestFactory_Servant*) servant; return CORBA_Object_duplicate (this->anyServerRef, ev); } static test_ContextServer TestFactory_getContextServer (PortableServer_Servant servant, CORBA_Environment *ev) { test_TestFactory_Servant *this = (test_TestFactory_Servant*) servant; return CORBA_Object_duplicate (this->contextServerRef, ev); } static test_DerivedServer TestFactory_getDerivedServer (PortableServer_Servant servant, CORBA_Environment *ev) { test_TestFactory_Servant *this = (test_TestFactory_Servant*) servant; return CORBA_Object_duplicate (this->derivedServerRef, ev); } static test_PingPongServer TestFactory_createPingPongServer (PortableServer_Servant servant, CORBA_Environment *ev) { test_PingPongServer obj; obj = create_object ( global_poa, create_ping_pong_servant (), ev); if (servant) { test_TestFactory_Servant *this; this = (test_TestFactory_Servant*) servant; this->pingPongServerRefs = g_slist_prepend ( this->pingPongServerRefs, obj); } return CORBA_Object_duplicate (obj, ev); } static void TestFactory_noOp (PortableServer_Servant servant, CORBA_Environment *ev) { /* do nothing, fast */ } static test_DeadReferenceObj TestFactory_createDeadReferenceObj (PortableServer_Servant servant, CORBA_Environment *ev) { PortableServer_Current poa_current; PortableServer_POA poa; CORBA_Object obj; poa_current = (PortableServer_Current) CORBA_ORB_resolve_initial_references (global_orb, "POACurrent", ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); poa = PortableServer_Current_get_POA (poa_current, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); obj = create_object (poa, SIMPLE_SERVANT_NEW (DeadReferenceObj), ev); CORBA_Object_release ((CORBA_Object) poa, ev); CORBA_Object_release ((CORBA_Object) poa_current, ev); /* Note: Not duping - ORB will free it and reference * should dangle. */ return obj; } static test_LifeCycleServer TestFactory_createLifeCycleServer (PortableServer_Servant servant, CORBA_Environment *ev) { CORBA_Object obj = create_object (global_poa, SIMPLE_SERVANT_NEW (LifeCycleServer), ev); return obj; } static void TestFactory_segv (PortableServer_Servant servant, const CORBA_char *when, CORBA_Environment *ev) { #ifdef DO_HARDER_SEGV /* Emulate a SegV */ exit (0); #else CORBA_ORB_shutdown (global_orb, TRUE, ev); #endif } static void test_TestFactory__fini (PortableServer_Servant servant, CORBA_Environment *ev) { GSList *l; test_TestFactory_Servant *this; this = (test_TestFactory_Servant*) servant; CORBA_Object_release (this->basicServerRef, ev); CORBA_Object_release (this->structServerRef, ev); CORBA_Object_release (this->sequenceServerRef, ev); CORBA_Object_release (this->unionServerRef, ev); CORBA_Object_release (this->arrayServerRef, ev); CORBA_Object_release (this->anyServerRef, ev); CORBA_Object_release (this->contextServerRef, ev); CORBA_Object_release (this->derivedServerRef, ev); for (l = this->pingPongServerRefs; l; l = l->next) CORBA_Object_release (l->data, ev); g_slist_free (this->pingPongServerRefs); g_free (servant); } /* vtable */ static PortableServer_ServantBase__epv TestFactory_base_epv = { NULL, test_TestFactory__fini, NULL }; static POA_test_TestFactory__epv TestFactory_epv = { NULL, TestFactory_getBasicServer, TestFactory_getStructServer, TestFactory_getStructServerIOR, TestFactory_getSequenceServer, TestFactory_getUnionServer, TestFactory_getArrayServer, TestFactory_getAnyServer, TestFactory_getContextServer, TestFactory_segv, NULL, /* getBaseServer */ TestFactory_getDerivedServer, NULL, /* getDerivedServerAsBaseServer */ NULL, /* getDerivedServerAsB2 */ NULL, /* createTransientObj */ TestFactory_createDeadReferenceObj, TestFactory_createPingPongServer, TestFactory_createLifeCycleServer, TestFactory_noOp }; static POA_test_TestFactory__vepv TestFactory_vepv = { &TestFactory_base_epv, &TestFactory_epv }; static PortableServer_POA start_poa (CORBA_ORB orb, CORBA_Environment *ev) { PortableServer_POAManager mgr; PortableServer_POA the_poa; the_poa = (PortableServer_POA) CORBA_ORB_resolve_initial_references ( orb, "RootPOA", ev); mgr = PortableServer_POA__get_the_POAManager (the_poa, ev); PortableServer_POAManager_activate (mgr, ev); CORBA_Object_release ((CORBA_Object) mgr, ev); return the_poa; } CORBA_Object create_object (PortableServer_POA poa, gpointer servant, CORBA_Environment *ev) { CORBA_Object object; PortableServer_ObjectId *objid; objid = PortableServer_POA_activate_object ( poa, servant, ev); if (ev->_major != CORBA_NO_EXCEPTION) g_error ("activate_object failed: %d\n", ev->_major); object = PortableServer_POA_servant_to_reference ( poa, servant, ev); if (ev->_major != CORBA_NO_EXCEPTION) g_error ("servant_to_reference failed: %d\n", ev->_major); g_assert (ORBit_small_get_servant (object) == servant); g_assert (ORBIT_SERVANT_TO_CLASSINFO (servant) != NULL); CORBA_free (objid); return object; } /* constructor */ static void test_TestFactory__init (PortableServer_Servant servant, PortableServer_POA poa, CORBA_Environment *ev) { test_TestFactory_Servant *this = (test_TestFactory_Servant*)servant; this->baseServant._private = NULL; this->baseServant.vepv = &TestFactory_vepv; this->basicServerRef = create_object ( poa, SIMPLE_SERVANT_NEW (BasicServer), ev); this->structServerRef = create_object ( poa, SIMPLE_SERVANT_NEW (StructServer), ev); this->sequenceServerRef = create_object ( poa, SIMPLE_SERVANT_NEW (SequenceServer), ev); this->unionServerRef = create_object ( poa, SIMPLE_SERVANT_NEW (UnionServer), ev); this->arrayServerRef = create_object ( poa, SIMPLE_SERVANT_NEW (ArrayServer), ev); this->anyServerRef = create_object ( poa, SIMPLE_SERVANT_NEW (AnyServer), ev); this->contextServerRef = create_object ( poa, SIMPLE_SERVANT_NEW (ContextServer), ev); this->derivedServerRef = create_object ( poa, SIMPLE_SERVANT_NEW (DerivedServer), ev); this->pingPongServerRefs = NULL; POA_test_TestFactory__init ( (PortableServer_ServantBase *) servant, ev); } static test_TestFactory factory; test_TestFactory getFactoryInstance (CORBA_Environment *ev) { return CORBA_Object_duplicate (factory, ev); } #ifndef _IN_CLIENT_ static int dump_ior (CORBA_ORB orb, const char *fname, CORBA_Environment *ev) { FILE *outfile; CORBA_char *ior; outfile = fopen ("iorfile","wb"); g_return_val_if_fail (outfile != NULL, 1); g_return_val_if_fail (factory != CORBA_OBJECT_NIL, 1); ior = CORBA_ORB_object_to_string (orb, factory, ev); g_return_val_if_fail (ior != NULL, 1); fwrite (ior, strlen (ior), 1, outfile); fclose (outfile); CORBA_free (ior); return 0; } #endif static CORBA_Object create_TestFactory (PortableServer_POA poa, CORBA_Environment *ev) { CORBA_Object object; PortableServer_ObjectId *objid; test_TestFactory_Servant *servant = g_new0 (test_TestFactory_Servant, 1); g_assert (ev->_major == CORBA_NO_EXCEPTION); test_TestFactory__init (servant, poa, ev); if (ev->_major != CORBA_NO_EXCEPTION) g_error ("object__init failed: %d\n", ev->_major); g_assert (ORBIT_SERVANT_TO_CLASSINFO (servant) != NULL); objid = PortableServer_POA_activate_object ( poa, servant, ev); if (ev->_major != CORBA_NO_EXCEPTION) g_error ("activate_object failed: %d\n", ev->_major); object = PortableServer_POA_servant_to_reference ( poa, servant, ev); if (ev->_major != CORBA_NO_EXCEPTION) g_error ("servant_to_reference failed: %d\n", ev->_major); g_assert (ORBit_small_get_servant (object) == servant); g_assert (ORBIT_SERVANT_TO_CLASSINFO (servant) != NULL); CORBA_free (objid); return object; } static void init_iinterfaces (ORBit_IInterfaces *interfaces, CORBA_Environment *ev) { int i = 0; #define CLOBBER_SYM(a) G_STMT_START { \ g_assert (CORBA_TypeCode_equal ( \ interfaces->_buffer[i].tc, (a).tc, ev)); \ (a) = interfaces->_buffer [i]; \ i++; \ } G_STMT_END /* This order matches that in the IDL file */ CLOBBER_SYM (test_TestFactory__iinterface); CLOBBER_SYM (test_LifeCycleServer__iinterface); CLOBBER_SYM (test_DeadReferenceObj__iinterface); CLOBBER_SYM (test_TransientObj__iinterface); CLOBBER_SYM (test_SequenceServer__iinterface); CLOBBER_SYM (test_ArrayServer__iinterface); CLOBBER_SYM (test_BasicServer__iinterface); CLOBBER_SYM (test_StructServer__iinterface); CLOBBER_SYM (test_BaseServer__iinterface); CLOBBER_SYM (test_B1__iinterface); CLOBBER_SYM (test_B2__iinterface); CLOBBER_SYM (test_C1__iinterface); CLOBBER_SYM (test_DerivedServer__iinterface); CLOBBER_SYM (test_UnionServer__iinterface); CLOBBER_SYM (test_AnyServer__iinterface); CLOBBER_SYM (test_ContextServer__iinterface); CLOBBER_SYM (test_PingPongServer__iinterface); #undef CLOBBER_SYM } #ifndef _IN_CLIENT_ int main (int argc, char *argv []) #else static CORBA_Object get_server (CORBA_ORB orb, CORBA_Environment *ev) #endif { test_BasicServer objref; #ifndef _IN_CLIENT_ CORBA_Environment real_ev; CORBA_Environment *ev = &real_ev; ORBit_IInterfaces *interfaces = NULL; gboolean gen_imodule = FALSE; gboolean thread_safe = FALSE; gboolean thread_tests = FALSE; char *orb_name; int i; /* g_mem_set_vtable (glib_mem_profiler_table); */ free (malloc (8)); /* -lefence */ g_thread_init (NULL); CORBA_exception_init(&real_ev); for (i = 0; i < argc; i++) { if (!strcmp (argv [i], "--gen-imodule")) gen_imodule = TRUE; if (!strcmp (argv [i], "--thread-safe")) thread_safe = TRUE; if (!strcmp (argv [i], "--thread-tests")) { thread_safe = TRUE; thread_tests = TRUE; } } if (thread_safe) orb_name = "orbit-local-orb"; else orb_name = "orbit-local-non-threaded-orb"; global_orb = CORBA_ORB_init (&argc, argv, orb_name, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); if (thread_tests) link_set_io_thread (TRUE); if (gen_imodule) { interfaces = ORBit_iinterfaces_from_file (TEST_SRCDIR "/everything.idl", NULL, NULL); g_assert (interfaces != NULL); init_iinterfaces (interfaces, ev); } #endif global_poa = start_poa (global_orb, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); factory = create_TestFactory (global_poa, ev); g_assert (factory != CORBA_OBJECT_NIL); /* a quick local test */ objref = test_TestFactory_getBasicServer (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); g_assert (objref != CORBA_OBJECT_NIL); g_assert (CORBA_Object_is_a (objref, "IDL:orbit/test/BasicServer:1.0", ev)); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release (objref, ev); g_assert(ev->_major == CORBA_NO_EXCEPTION); fprintf (stderr, "Local server test passed\n"); #ifndef _IN_CLIENT_ if (!dump_ior (global_orb, "iorfile", ev)) CORBA_ORB_run (global_orb, ev); CORBA_Object_release ((CORBA_Object) global_poa, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release (factory, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); if (gen_imodule) CORBA_free (interfaces); CORBA_ORB_destroy (global_orb, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release ((CORBA_Object) global_orb, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_exception_free (ev); return 0; #else return factory; #endif } ORBit2-2.14.19/test/echo-srv.c0000644000175000001440000000673211334247617012537 00000000000000/* * CORBA echo test * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Elliot Lee */ #include #include #include #include #include "echo.h" #include "echo-share.h" /** This is used by echo-server.c and echo-local.c It uses echo-skels.c **/ static Echo the_echo_client; static CORBA_ORB the_orb; static PortableServer_POA the_poa; static PortableServer_ObjectId* the_objid; static CORBA_Object do_echoString(PortableServer_Servant servant, const CORBA_char *astring, CORBA_double *outnum, CORBA_Environment *ev) { if (!echo_opt_quiet) g_message ("[server] %s", astring); *outnum = rand() % 100; return CORBA_Object_duplicate (the_echo_client, ev); } static void do_doNothing (PortableServer_Servant servant, CORBA_Environment *ev) { } static PortableServer_ServantBase__epv base_epv = { NULL, NULL, NULL }; static POA_Echo__epv echo_epv = { NULL, do_echoString, do_doNothing, NULL }; static POA_Echo__vepv poa_echo_vepv = { &base_epv, &echo_epv }; static POA_Echo poa_echo_servant = { NULL, &poa_echo_vepv }; void echo_srv_start_poa (CORBA_ORB orb, CORBA_Environment *ev) { PortableServer_POAManager mgr; the_orb = orb; the_poa = (PortableServer_POA) CORBA_ORB_resolve_initial_references(the_orb, "RootPOA", ev); mgr = PortableServer_POA__get_the_POAManager(the_poa, ev); PortableServer_POAManager_activate(mgr, ev); CORBA_Object_release((CORBA_Object)mgr, ev); } CORBA_Object echo_srv_start_object(CORBA_Environment *ev) { POA_Echo__init(&poa_echo_servant, ev); if ( ev->_major ) { printf("object__init failed: %u\n", ev->_major); exit(1); } the_objid = PortableServer_POA_activate_object(the_poa, &poa_echo_servant, ev); if ( ev->_major ) { printf("activate_object failed: %u\n", ev->_major); exit(1); } the_echo_client = PortableServer_POA_servant_to_reference(the_poa, &poa_echo_servant, ev); if ( ev->_major ) { printf("servant_to_reference failed: %u\n", ev->_major); exit(1); } return the_echo_client; } void echo_srv_finish_object(CORBA_Environment *ev) { CORBA_Object_release(the_echo_client, ev); if ( ev->_major ) { printf("object_release failed: %u\n", ev->_major); exit(1); } the_echo_client = NULL; PortableServer_POA_deactivate_object(the_poa, the_objid, ev); if ( ev->_major ) { printf("deactivate_object failed: %u\n", ev->_major); exit(1); } CORBA_free(the_objid); the_objid = NULL; POA_Echo__fini(&poa_echo_servant, ev); if ( ev->_major ) { printf("object__fini failed: %u\n", ev->_major); exit(1); } } void echo_srv_finish_poa(CORBA_Environment *ev) { CORBA_Object_release((CORBA_Object)the_poa, ev); if ( ev->_major ) { printf("POA release failed: %u\n", ev->_major); exit(1); } the_poa = NULL; } ORBit2-2.14.19/test/test-giop-frag.h0000644000175000001440000002767511334247617013657 00000000000000 static const CORBA_unsigned_long giop_fragment_request_id = 0xbfffd8e0; static const guint8 giop_fragment_data[] = { /* Incoming IIOP header: */ 0x47,0x49,0x4f,0x50, 0x01,0x02,0x02,0x01, 0x00,0x00,0x03,0xf4, /* GIOP........**** */ /* Incoming IIOP body: */ 0xbf,0xff,0xd8,0xe0, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01, 0x4e,0x45,0x4f,0x00, /* ............NEO. */ 0x00,0x00,0x00,0x02, 0x00,0x0a,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x06,0x9f, /* ................ */ 0x41,0x4c,0x49,0x43, 0x45,0x27,0x53,0x20, 0x41,0x44,0x56,0x45, 0x4e,0x54,0x55,0x52, /* ALICE'S.ADVENTUR */ 0x45,0x53,0x20,0x49, 0x4e,0x20,0x57,0x4f, 0x4e,0x44,0x45,0x52, 0x4c,0x41,0x4e,0x44, /* ES.IN.WONDERLAND */ 0x0a,0x4c,0x65,0x77, 0x69,0x73,0x20,0x43, 0x61,0x72,0x72,0x6f, 0x6c,0x6c,0x0a,0x20, /* .Lewis.Carroll.. */ 0x0a,0x54,0x48,0x45, 0x20,0x4d,0x49,0x4c, 0x4c,0x45,0x4e,0x4e, 0x49,0x55,0x4d,0x20, /* .THE.MILLENNIUM. */ 0x46,0x55,0x4c,0x43, 0x52,0x55,0x4d,0x20, 0x45,0x44,0x49,0x54, 0x49,0x4f,0x4e,0x20, /* FULCRUM.EDITION. */ 0x33,0x2e,0x30,0x0a, 0x43,0x48,0x41,0x50, 0x54,0x45,0x52,0x20, 0x56,0x0a,0x41,0x64, /* 3.0.CHAPTER.V.Ad */ 0x76,0x69,0x63,0x65, 0x20,0x66,0x72,0x6f, 0x6d,0x20,0x61,0x20, 0x43,0x61,0x74,0x65, /* vice.from.a.Cate */ 0x72,0x70,0x69,0x6c, 0x6c,0x61,0x72,0x0a, 0x20,0x0a,0x54,0x68, 0x65,0x20,0x43,0x61, /* rpillar...The.Ca */ 0x74,0x65,0x72,0x70, 0x69,0x6c,0x6c,0x61, 0x72,0x20,0x61,0x6e, 0x64,0x20,0x41,0x6c, /* terpillar.and.Al */ 0x69,0x63,0x65,0x20, 0x6c,0x6f,0x6f,0x6b, 0x65,0x64,0x20,0x61, 0x74,0x20,0x65,0x61, /* ice.looked.at.ea */ 0x63,0x68,0x20,0x6f, 0x74,0x68,0x65,0x72, 0x20,0x66,0x6f,0x72, 0x20,0x73,0x6f,0x6d, /* ch.other.for.som */ 0x65,0x20,0x74,0x69, 0x6d,0x65,0x20,0x69, 0x6e,0x20,0x73,0x69, 0x6c,0x65,0x6e,0x63, /* e.time.in.silenc */ 0x65,0x3a,0x20,0x20, 0x61,0x74,0x20,0x6c, 0x61,0x73,0x74,0x20, 0x74,0x68,0x65,0x20, /* e:..at.last.the. */ 0x43,0x61,0x74,0x65, 0x72,0x70,0x69,0x6c, 0x6c,0x61,0x72,0x20, 0x74,0x6f,0x6f,0x6b, /* Caterpillar.took */ 0x20,0x74,0x68,0x65, 0x20,0x68,0x6f,0x6f, 0x6b,0x61,0x68,0x20, 0x6f,0x75,0x74,0x20, /* .the.hookah.out. */ 0x6f,0x66,0x20,0x69, 0x74,0x73,0x20,0x6d, 0x6f,0x75,0x74,0x68, 0x2c,0x20,0x61,0x6e, /* of.its.mouth,.an */ 0x64,0x20,0x61,0x64, 0x64,0x72,0x65,0x73, 0x73,0x65,0x64,0x20, 0x68,0x65,0x72,0x20, /* d.addressed.her. */ 0x69,0x6e,0x20,0x61, 0x20,0x6c,0x61,0x6e, 0x67,0x75,0x69,0x64, 0x2c,0x20,0x73,0x6c, /* in.a.languid,.sl */ 0x65,0x65,0x70,0x79, 0x20,0x76,0x6f,0x69, 0x63,0x65,0x2e,0x0a, 0x57,0x68,0x6f,0x20, /* eepy.voice..Who. */ 0x61,0x72,0x65,0x20, 0x59,0x4f,0x55,0x3f, 0x20,0x20,0x73,0x61, 0x69,0x64,0x20,0x74, /* are.YOU?..said.t */ 0x68,0x65,0x20,0x43, 0x61,0x74,0x65,0x72, 0x70,0x69,0x6c,0x6c, 0x61,0x72,0x2e,0x0a, /* he.Caterpillar.. */ 0x54,0x68,0x69,0x73, 0x20,0x77,0x61,0x73, 0x20,0x6e,0x6f,0x74, 0x20,0x61,0x6e,0x20, /* This.was.not.an. */ 0x65,0x6e,0x63,0x6f, 0x75,0x72,0x61,0x67, 0x69,0x6e,0x67,0x20, 0x6f,0x70,0x65,0x6e, /* encouraging.open */ 0x69,0x6e,0x67,0x20, 0x66,0x6f,0x72,0x20, 0x61,0x20,0x63,0x6f, 0x6e,0x76,0x65,0x72, /* ing.for.a.conver */ 0x73,0x61,0x74,0x69, 0x6f,0x6e,0x2e,0x20, 0x20,0x41,0x6c,0x69, 0x63,0x65,0x20,0x72, /* sation...Alice.r */ 0x65,0x70,0x6c,0x69, 0x65,0x64,0x2c,0x20, 0x72,0x61,0x74,0x68, 0x65,0x72,0x20,0x73, /* eplied,.rather.s */ 0x68,0x79,0x6c,0x79, 0x2c,0x20,0x49,0x2d, 0x2d,0x49,0x20,0x68, 0x61,0x72,0x64,0x6c, /* hyly,.I--I.hardl */ 0x79,0x20,0x6b,0x6e, 0x6f,0x77,0x2c,0x20, 0x73,0x69,0x72,0x2c, 0x20,0x6a,0x75,0x73, /* y.know,.sir,.jus */ 0x74,0x20,0x61,0x74, 0x20,0x70,0x72,0x65, 0x73,0x65,0x6e,0x74, 0x2d,0x2d,0x61,0x74, /* t.at.present--at */ 0x20,0x6c,0x65,0x61, 0x73,0x74,0x20,0x49, 0x20,0x6b,0x6e,0x6f, 0x77,0x20,0x77,0x68, /* .least.I.know.wh */ 0x6f,0x20,0x49,0x20, 0x57,0x41,0x53,0x20, 0x77,0x68,0x65,0x6e, 0x20,0x49,0x20,0x67, /* o.I.WAS.when.I.g */ 0x6f,0x74,0x20,0x75, 0x70,0x20,0x74,0x68, 0x69,0x73,0x20,0x6d, 0x6f,0x72,0x6e,0x69, /* ot.up.this.morni */ 0x6e,0x67,0x2c,0x20, 0x62,0x75,0x74,0x20, 0x49,0x20,0x74,0x68, 0x69,0x6e,0x6b,0x20, /* ng,.but.I.think. */ 0x49,0x20,0x6d,0x75, 0x73,0x74,0x20,0x68, 0x61,0x76,0x65,0x20, 0x62,0x65,0x65,0x6e, /* I.must.have.been */ 0x20,0x63,0x68,0x61, 0x6e,0x67,0x65,0x64, 0x20,0x73,0x65,0x76, 0x65,0x72,0x61,0x6c, /* .changed.several */ 0x20,0x74,0x69,0x6d, 0x65,0x73,0x20,0x73, 0x69,0x6e,0x63,0x65, 0x20,0x74,0x68,0x65, /* .times.since.the */ 0x6e,0x2e,0x20,0x0a, 0x20,0x0a,0x57,0x68, 0x61,0x74,0x20,0x64, 0x6f,0x20,0x79,0x6f, /* n.....What.do.yo */ 0x75,0x20,0x6d,0x65, 0x61,0x6e,0x20,0x62, 0x79,0x20,0x74,0x68, 0x61,0x74,0x3f,0x20, /* u.mean.by.that?. */ 0x20,0x73,0x61,0x69, 0x64,0x20,0x74,0x68, 0x65,0x20,0x43,0x61, 0x74,0x65,0x72,0x70, /* .said.the.Caterp */ 0x69,0x6c,0x6c,0x61, 0x72,0x20,0x73,0x74, 0x65,0x72,0x6e,0x6c, 0x79,0x2e,0x20,0x20, /* illar.sternly... */ 0x45,0x78,0x70,0x6c, 0x61,0x69,0x6e,0x20, 0x79,0x6f,0x75,0x72, 0x73,0x65,0x6c,0x66, /* Explain.yourself */ 0x21,0x0a,0x49,0x20, 0x63,0x61,0x6e,0x27, 0x74,0x20,0x65,0x78, 0x70,0x6c,0x61,0x69, /* ..I.can't.explai */ 0x6e,0x20,0x4d,0x59, 0x53,0x45,0x4c,0x46, 0x2c,0x20,0x49,0x27, 0x6d,0x20,0x61,0x66, /* n.MYSELF,.I'm.af */ 0x72,0x61,0x69,0x64, 0x2c,0x20,0x73,0x69, 0x72,0x20,0x73,0x61, 0x69,0x64,0x20,0x41, /* raid,.sir.said.A */ 0x6c,0x69,0x63,0x65, 0x2c,0x20,0x62,0x65, 0x63,0x61,0x75,0x73, 0x65,0x20,0x49,0x27, /* lice,.because.I' */ 0x6d,0x20,0x6e,0x6f, 0x74,0x20,0x6d,0x79, 0x73,0x65,0x6c,0x66, 0x2c,0x20,0x79,0x6f, /* m.not.myself,.yo */ 0x75,0x20,0x73,0x65, 0x65,0x2e,0x0a,0x49, 0x20,0x64,0x6f,0x6e, 0x27,0x74,0x20,0x73, /* u.see..I.don't.s */ 0x65,0x65,0x2c,0x20, 0x73,0x61,0x69,0x64, 0x20,0x74,0x68,0x65, 0x20,0x43,0x61,0x74, /* ee,.said.the.Cat */ 0x65,0x72,0x70,0x69, 0x6c,0x6c,0x61,0x72, 0x2e,0x0a,0x49,0x27, 0x6d,0x20,0x61,0x66, /* erpillar..I'm.af */ 0x72,0x61,0x69,0x64, 0x20,0x49,0x20,0x63, 0x61,0x6e,0x27,0x74, 0x20,0x70,0x75,0x74, /* raid.I.can't.put */ 0x20,0x69,0x74,0x20, 0x6d,0x6f,0x72,0x65, 0x20,0x63,0x6c,0x65, 0x61,0x72,0x6c,0x79, /* .it.more.clearly */ 0x2c,0x20,0x20,0x41, 0x6c,0x69,0x63,0x65, 0x20,0x72,0x65,0x70, 0x6c,0x69,0x65,0x64, /* ,..Alice.replied */ 0x20,0x76,0x65,0x72, 0x79,0x20,0x70,0x6f, 0x6c,0x69,0x74,0x65, 0x6c,0x79,0x2c,0x20, /* .very.politely,. */ 0x66,0x6f,0x72,0x20, 0x49,0x20,0x63,0x61, 0x6e,0x27,0x74,0x20, 0x75,0x6e,0x64,0x65, /* for.I.can't.unde */ 0x72,0x73,0x74,0x61, 0x6e,0x64,0x20,0x69, 0x74,0x20,0x6d,0x79, 0x73,0x65,0x6c,0x66, /* rstand.it.myself */ 0x20,0x74,0x6f,0x20, 0x62,0x65,0x67,0x69, 0x6e,0x20,0x77,0x69, 0x74,0x68,0x3b,0x20, /* .to.begin.with;. */ 0x61,0x6e,0x64,0x20, 0x62,0x65,0x69,0x6e, 0x67,0x20,0x73,0x6f, 0x20,0x6d,0x61,0x6e, /* and.being.so.man */ 0x79,0x20,0x64,0x69, 0x66,0x66,0x65,0x72, 0x65,0x6e,0x74,0x20, 0x73,0x69,0x7a,0x65, /* y.different.size */ 0x73,0x20,0x69,0x6e, 0x20,0x61,0x20,0x64, 0x61,0x79,0x20,0x69, 0x73,0x20,0x76,0x65, /* s.in.a.day.is.ve */ 0x72,0x79,0x20,0x63, 0x6f,0x6e,0x66,0x75, 0x73,0x69,0x6e,0x67, 0x2e,0x0a,0x49,0x74, /* ry.confusing..It */ 0x20,0x69,0x73,0x6e, 0x27,0x74,0x2c,0x20, 0x20,0x73,0x61,0x69, 0x64,0x20,0x74,0x68, /* .isn't,..said.th */ 0x65,0x20,0x43,0x61, /* e.Ca************ */ /* Incoming IIOP header: */ 0x47,0x49,0x4f,0x50, 0x01,0x02,0x00,0x07, 0x00,0x00,0x02,0xcf, /* GIOP........**** */ /* Incoming IIOP body: */ 0xbf,0xff,0xd8,0xe0, 0x74,0x65,0x72,0x70, 0x69,0x6c,0x6c,0x61, 0x72,0x2e,0x0a,0x57, /* ....terpillar..W */ 0x65,0x6c,0x6c,0x2c, 0x20,0x70,0x65,0x72, 0x68,0x61,0x70,0x73, 0x20,0x79,0x6f,0x75, /* ell,.perhaps.you */ 0x20,0x68,0x61,0x76, 0x65,0x6e,0x27,0x74, 0x20,0x66,0x6f,0x75, 0x6e,0x64,0x20,0x69, /* .haven't.found.i */ 0x74,0x20,0x73,0x6f, 0x20,0x79,0x65,0x74, 0x2c,0x20,0x73,0x61, 0x69,0x64,0x20,0x41, /* t.so.yet,.said.A */ 0x6c,0x69,0x63,0x65, 0x3b,0x20,0x62,0x75, 0x74,0x20,0x77,0x68, 0x65,0x6e,0x20,0x79, /* lice;.but.when.y */ 0x6f,0x75,0x20,0x68, 0x61,0x76,0x65,0x20, 0x74,0x6f,0x20,0x74, 0x75,0x72,0x6e,0x20, /* ou.have.to.turn. */ 0x69,0x6e,0x74,0x6f, 0x20,0x61,0x20,0x63, 0x68,0x72,0x79,0x73, 0x61,0x6c,0x69,0x73, /* into.a.chrysalis */ 0x2d,0x2d,0x79,0x6f, 0x75,0x20,0x77,0x69, 0x6c,0x6c,0x20,0x73, 0x6f,0x6d,0x65,0x20, /* --you.will.some. */ 0x64,0x61,0x79,0x2c, 0x20,0x79,0x6f,0x75, 0x20,0x6b,0x6e,0x6f, 0x77,0x2d,0x2d,0x61, /* day,.you.know--a */ 0x6e,0x64,0x20,0x74, 0x68,0x65,0x6e,0x20, 0x61,0x66,0x74,0x65, 0x72,0x20,0x74,0x68, /* nd.then.after.th */ 0x61,0x74,0x20,0x69, 0x6e,0x74,0x6f,0x20, 0x61,0x20,0x62,0x75, 0x74,0x74,0x65,0x72, /* at.into.a.butter */ 0x66,0x6c,0x79,0x2c, 0x20,0x49,0x20,0x73, 0x68,0x6f,0x75,0x6c, 0x64,0x20,0x74,0x68, /* fly,.I.should.th */ 0x69,0x6e,0x6b,0x20, 0x79,0x6f,0x75,0x27, 0x6c,0x6c,0x20,0x66, 0x65,0x65,0x6c,0x20, /* ink.you'll.feel. */ 0x69,0x74,0x20,0x61, 0x20,0x6c,0x69,0x74, 0x74,0x6c,0x65,0x20, 0x71,0x75,0x65,0x65, /* it.a.little.quee */ 0x72,0x2c,0x20,0x77, 0x6f,0x6e,0x27,0x74, 0x20,0x79,0x6f,0x75, 0x3f,0x0a,0x4e,0x6f, /* r,.won't.you?.No */ 0x74,0x20,0x61,0x20, 0x62,0x69,0x74,0x2c, 0x20,0x73,0x61,0x69, 0x64,0x20,0x74,0x68, /* t.a.bit,.said.th */ 0x65,0x20,0x43,0x61, 0x74,0x65,0x72,0x70, 0x69,0x6c,0x6c,0x61, 0x72,0x2e,0x0a,0x57, /* e.Caterpillar..W */ 0x65,0x6c,0x6c,0x2c, 0x20,0x70,0x65,0x72, 0x68,0x61,0x70,0x73, 0x20,0x79,0x6f,0x75, /* ell,.perhaps.you */ 0x72,0x20,0x66,0x65, 0x65,0x6c,0x69,0x6e, 0x67,0x73,0x20,0x6d, 0x61,0x79,0x20,0x62, /* r.feelings.may.b */ 0x65,0x20,0x64,0x69, 0x66,0x66,0x65,0x72, 0x65,0x6e,0x74,0x2c, 0x20,0x73,0x61,0x69, /* e.different,.sai */ 0x64,0x20,0x41,0x6c, 0x69,0x63,0x65,0x3b, 0x20,0x61,0x6c,0x6c, 0x20,0x49,0x20,0x6b, /* d.Alice;.all.I.k */ 0x6e,0x6f,0x77,0x20, 0x69,0x73,0x2c,0x20, 0x69,0x74,0x20,0x77, 0x6f,0x75,0x6c,0x64, /* now.is,.it.would */ 0x20,0x66,0x65,0x65, 0x6c,0x20,0x76,0x65, 0x72,0x79,0x20,0x71, 0x75,0x65,0x65,0x72, /* .feel.very.queer */ 0x20,0x74,0x6f,0x20, 0x4d,0x45,0x2e,0x0a, 0x59,0x6f,0x75,0x21, 0x20,0x73,0x61,0x69, /* .to.ME..You..sai */ 0x64,0x20,0x74,0x68, 0x65,0x20,0x43,0x61, 0x74,0x65,0x72,0x70, 0x69,0x6c,0x6c,0x61, /* d.the.Caterpilla */ 0x72,0x20,0x63,0x6f, 0x6e,0x74,0x65,0x6d, 0x70,0x74,0x75,0x6f, 0x75,0x73,0x6c,0x79, /* r.contemptuously */ 0x2e,0x20,0x20,0x57, 0x68,0x6f,0x20,0x61, 0x72,0x65,0x20,0x59, 0x4f,0x55,0x3f,0x0a, /* ...Who.are.YOU?. */ 0x57,0x68,0x69,0x63, 0x68,0x20,0x62,0x72, 0x6f,0x75,0x67,0x68, 0x74,0x20,0x74,0x68, /* Which.brought.th */ 0x65,0x6d,0x20,0x62, 0x61,0x63,0x6b,0x20, 0x61,0x67,0x61,0x69, 0x6e,0x20,0x74,0x6f, /* em.back.again.to */ 0x20,0x74,0x68,0x65, 0x20,0x62,0x65,0x67, 0x69,0x6e,0x6e,0x69, 0x6e,0x67,0x20,0x6f, /* .the.beginning.o */ 0x66,0x20,0x74,0x68, 0x65,0x20,0x63,0x6f, 0x6e,0x76,0x65,0x72, 0x73,0x61,0x74,0x69, /* f.the.conversati */ 0x6f,0x6e,0x2e,0x20, 0x20,0x41,0x6c,0x69, 0x63,0x65,0x20,0x66, 0x65,0x6c,0x74,0x20, /* on...Alice.felt. */ 0x61,0x20,0x6c,0x69, 0x74,0x74,0x6c,0x65, 0x20,0x69,0x72,0x72, 0x69,0x74,0x61,0x74, /* a.little.irritat */ 0x65,0x64,0x20,0x61, 0x74,0x20,0x74,0x68, 0x65,0x20,0x43,0x61, 0x74,0x65,0x72,0x70, /* ed.at.the.Caterp */ 0x69,0x6c,0x6c,0x61, 0x72,0x27,0x73,0x20, 0x6d,0x61,0x6b,0x69, 0x6e,0x67,0x20,0x73, /* illar's.making.s */ 0x75,0x63,0x68,0x20, 0x56,0x45,0x52,0x59, 0x20,0x73,0x68,0x6f, 0x72,0x74,0x20,0x72, /* uch.VERY.short.r */ 0x65,0x6d,0x61,0x72, 0x6b,0x73,0x2c,0x20, 0x61,0x6e,0x64,0x20, 0x73,0x68,0x65,0x20, /* emarks,.and.she. */ 0x64,0x72,0x65,0x77, 0x20,0x68,0x65,0x72, 0x73,0x65,0x6c,0x66, 0x20,0x75,0x70,0x20, /* drew.herself.up. */ 0x61,0x6e,0x64,0x20, 0x73,0x61,0x69,0x64, 0x2c,0x20,0x76,0x65, 0x72,0x79,0x20,0x67, /* and.said,.very.g */ 0x72,0x61,0x76,0x65, 0x6c,0x79,0x2c,0x20, 0x49,0x20,0x74,0x68, 0x69,0x6e,0x6b,0x2c, /* ravely,.I.think, 0x*/ 0x20,0x79,0x6f,0x75, 0x20,0x6f,0x75,0x67, 0x68,0x74,0x20,0x74, 0x6f,0x20,0x74,0x65, /* .you.ought.to.te */ 0x6c,0x6c,0x20,0x6d, 0x65,0x20,0x77,0x68, 0x6f,0x20,0x59,0x4f, 0x55,0x20,0x61,0x72, /* ll.me.who.YOU.ar */ 0x65,0x2c,0x20,0x66, 0x69,0x72,0x73,0x74, 0x2e,0x0a,0x57,0x68, 0x79,0x3f,0x20,0x20, /* e,.first..Why?.. */ 0x73,0x61,0x69,0x64, 0x20,0x74,0x68,0x65, 0x20,0x43,0x61,0x74, 0x65,0x72,0x70,0x69, /* said.the.Caterpi */ 0x6c,0x6c,0x61,0x72, 0x2e,0x0a,0x20,0x0a, 0x20,0x0a,0x20,0x0a, 0x20,0x0a,0x00 /* llar...........* */ }; ORBit2-2.14.19/test/test1.idl0000644000175000001440000000006111334247617012364 00000000000000interface Test { string op(in string astr); }; ORBit2-2.14.19/test/ior-decode.c0000644000175000001440000000733511334247617013023 00000000000000#include "config.h" #include #include #include #include #include "../src/orb/orb-core/iop-profiles.h" static void print_objkey (ORBit_ObjectKey *objkey) { int i; GString *str = g_string_sized_new (objkey->_length * 2 + 8); for (i = 0; i < objkey->_length; i++) g_string_append_printf (str, "%02x", objkey->_buffer [i]); printf ("(%u) '%s'", objkey->_length, str->str); g_string_free (str, TRUE); } static void print_components (CORBA_Object obj, GSList *components) { GSList *l; for (l = components; l; l = l->next) { IOP_Component_info *c = l->data; switch (c->component_type) { case IOP_TAG_COMPLETE_OBJECT_KEY: printf (" IOP_TAG_COMPLETE_OBJECT_KEY: object_key "); print_objkey (obj->object_key); printf ("\n"); break; case IOP_TAG_SSL_SEC_TRANS: { IOP_TAG_SSL_SEC_TRANS_info *sst = l->data; printf (" IOP_TAG_SSL_SEC_TRANS: %u:%u port %d\n", sst->target_supports, sst->target_requires, sst->port); break; } case IOP_TAG_GENERIC_SSL_SEC_TRANS: { IOP_TAG_GENERIC_SSL_SEC_TRANS_info *sst = l->data; printf (" IOP_TAG_GENERIC_SSL_SEC_TRANS: service %s\n", sst->service); break; } default: printf (" Unknown component %#x\n", c->component_type); break; } printf ("\n"); } } static void print_iiop_version (GIOPVersion ver) { switch (ver) { case GIOP_1_0: printf ("GIOP 1.0"); break; case GIOP_1_1: printf ("GIOP 1.1"); break; case GIOP_1_2: printf ("GIOP 1.2"); break; default: g_assert_not_reached (); break; } } int main (int argc, char *argv[]) { GSList *l; CORBA_ORB orb; const char *ior; const char *type_id; CORBA_Object obj; CORBA_Environment ev; CORBA_exception_init (&ev); orb = CORBA_ORB_init (&argc, argv, "orbit-local-orb", &ev); if (argc != 2) { fprintf (stderr, "Usage: ior-decode \n"); return 1; } ior = strstr (argv [1], "IOR:"); if (!ior) g_error ("Input doesn't look like an IOR\n"); obj = CORBA_ORB_string_to_object (orb, ior, &ev); if (ev._major) { g_error ("Couldn't do string_to_object on '%s': %s\n", ior, CORBA_exception_id (&ev)); return 2; } if (obj == CORBA_OBJECT_NIL) { fprintf (stderr, "Resolved to a NIL object reference\n"); return 3; } type_id = g_quark_to_string (obj->type_qid); printf ("Interface Repository ID: %s\n", type_id ? type_id : ""); for (l = obj->profile_list; l; l = l->next) { IOP_Profile_info *pi = l->data; switch (pi->profile_type) { case IOP_TAG_INTERNET_IOP: { IOP_TAG_INTERNET_IOP_info *iiop = l->data; printf ("IOP_TAG_INTERNET_IOP: "); print_iiop_version (iiop->iiop_version); printf (" %s:%d\n", iiop->host, iiop->port); printf (" object_key "); print_objkey (obj->object_key); printf ("\n"); print_components (obj, iiop->components); break; } case IOP_TAG_GENERIC_IOP: { IOP_TAG_GENERIC_IOP_info *giop = l->data; printf ("IOP_TAG_GENERIC_IOP: "); print_iiop_version (giop->iiop_version); printf ("[%s] %s:%s\n", giop->proto, giop->host, giop->service); print_components (obj, giop->components); break; } case IOP_TAG_MULTIPLE_COMPONENTS: { IOP_TAG_MULTIPLE_COMPONENTS_info *mci = l->data; printf ("IOP_TAG_MULTIPLE_COMPONENTS:\n"); print_components (obj, mci->components); break; } case IOP_TAG_ORBIT_SPECIFIC: { IOP_TAG_ORBIT_SPECIFIC_info *osi = l->data; printf ("IOP_TAG_ORBIT_SPECIFIC: usock %s IPv6 port %d\n", osi->unix_sock_path, osi->ipv6_port); printf (" object_key "); print_objkey (obj->object_key); printf ("\n"); break; } default: printf ("Unknown profile type %#x\n", pi->profile_type); break; } printf ("\n"); } return 0; } ORBit2-2.14.19/test/timeout_impl.c0000644000175000001440000000650111334247617013512 00000000000000/* This is a template file generated by command */ /* orbit-idl-2 --skeleton-impl timeout.idl */ /* User must edit this file, inserting servant */ /* specific code between markers. */ #include #include "timeout.h" /*** App-specific servant structures ***/ #if !defined(_typedef_impl_POA_Timeout_) #define _typedef_impl_POA_Timeout_ 1 typedef struct { POA_Timeout servant; PortableServer_POA poa; /* ------ add private attributes here ------ */ /* ------ ---------- end ------------ ------ */ } impl_POA_Timeout; #endif /*** Implementation stub prototypes ***/ #if !defined(_decl_impl_Timeout__destroy_) #define _decl_impl_Timeout__destroy_ 1 static void impl_Timeout__destroy(impl_POA_Timeout *servant, CORBA_Environment *ev); #endif #if !defined(_decl_impl_Timeout_ping_) #define _decl_impl_Timeout_ping_ 1 static void impl_Timeout_ping(impl_POA_Timeout *servant, const CORBA_unsigned_long delay_secs, CORBA_Environment *ev); #endif /*** epv structures ***/ #if !defined(_impl_Timeout_base_epv_) #define _impl_Timeout_base_epv_ 1 static PortableServer_ServantBase__epv impl_Timeout_base_epv = { NULL, /* _private data */ (gpointer) & impl_Timeout__destroy, /* finalize routine */ NULL, /* default_POA routine */ }; #endif #if !defined(_impl_Timeout_epv_) #define _impl_Timeout_epv_ 1 static POA_Timeout__epv impl_Timeout_epv = { NULL, /* _private */ (gpointer)&impl_Timeout_ping, }; #endif /*** vepv structures ***/ #if !defined(_impl_Timeout_vepv_) #define _impl_Timeout_vepv_ 1 static POA_Timeout__vepv impl_Timeout_vepv = { &impl_Timeout_base_epv, &impl_Timeout_epv, }; #endif /*** Stub implementations ***/ #if !defined(_impl_Timeout__create_) #define _impl_Timeout__create_ 1 static Timeout impl_Timeout__create(PortableServer_POA poa, CORBA_Environment *ev) { Timeout retval; impl_POA_Timeout *newservant; PortableServer_ObjectId *objid; newservant = g_new0(impl_POA_Timeout, 1); newservant->servant.vepv = &impl_Timeout_vepv; newservant->poa = (PortableServer_POA) CORBA_Object_duplicate((CORBA_Object)poa, ev); POA_Timeout__init((PortableServer_Servant)newservant, ev); /* Before servant is going to be activated all * private attributes must be initialized. */ /* ------ init private attributes here ------ */ /* ------ ---------- end ------------- ------ */ objid = PortableServer_POA_activate_object(poa, newservant, ev); CORBA_free(objid); retval = PortableServer_POA_servant_to_reference(poa, newservant, ev); return retval; } #endif #if !defined(_impl_Timeout__destroy_) #define _impl_Timeout__destroy_ 1 static void impl_Timeout__destroy(impl_POA_Timeout *servant, CORBA_Environment *ev) { CORBA_Object_release ((CORBA_Object) servant->poa, ev); /* No further remote method calls are delegated to * servant and you may free your private attributes. */ /* ------ free private attributes here ------ */ /* ------ ---------- end ------------- ------ */ POA_Timeout__fini((PortableServer_Servant)servant, ev); g_free (servant); } #endif #if !defined(_impl_Timeout_ping_) #define _impl_Timeout_ping_ 1 static void impl_Timeout_ping(impl_POA_Timeout *servant, const CORBA_unsigned_long delay_secs, CORBA_Environment *ev) { /* ------ insert method code here ------ */ g_usleep(delay_secs * 1000000); /* ------ ---------- end ------------ ------ */ } #endif ORBit2-2.14.19/test/empty-server.c0000644000175000001440000000515111334247617013445 00000000000000/* * CORBA empty test * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Elliot Lee */ #include #include #include #include #include "empty.h" static Empty empty_client = CORBA_OBJECT_NIL; static void do_Nothing(PortableServer_Servant servant, CORBA_Environment *ev); static PortableServer_ServantBase__epv base_epv = { NULL, NULL, NULL }; static POA_Empty__epv empty_epv = { NULL, do_Nothing }; static POA_Empty__vepv poa_empty_vepv = { &base_epv, &empty_epv }; static POA_Empty poa_empty_servant = { NULL, &poa_empty_vepv }; static void do_exit(int arg) { exit(2); } int main (int argc, char *argv[]) { FILE *iorfile; PortableServer_ObjectId objid = {0, sizeof("myFoo"), "myFoo"}; PortableServer_POA poa; CORBA_Environment ev; char *retval; CORBA_ORB orb; PortableServer_ObjectId *oid; signal(SIGINT, do_exit); signal(SIGTERM, do_exit); CORBA_exception_init(&ev); orb = CORBA_ORB_init(&argc, argv, "orbit-local-orb", &ev); POA_Empty__init(&poa_empty_servant, &ev); poa = (PortableServer_POA) CORBA_ORB_resolve_initial_references(orb, "RootPOA", &ev); PortableServer_POAManager_activate( PortableServer_POA__get_the_POAManager(poa, &ev), &ev); oid = PortableServer_POA_activate_object(poa, &poa_empty_servant, &ev); if(ev._major == CORBA_NO_EXCEPTION) CORBA_free(oid); empty_client = PortableServer_POA_servant_to_reference(poa, &poa_empty_servant, &ev); if (ev._major != CORBA_NO_EXCEPTION) { printf("Cannot get objref\n"); return 1; } retval = CORBA_ORB_object_to_string(orb, empty_client, &ev); iorfile = fopen ("empty-server.iorfile", "w"); fprintf(iorfile, "%s\n", retval); fclose(iorfile); g_print("%s\n", retval); fflush(stdout); CORBA_free(retval); CORBA_ORB_run(orb, &ev); PortableServer_POA_deactivate_object(poa, &objid, &ev); return 0; } static void do_Nothing(PortableServer_Servant servant, CORBA_Environment *ev) { } ORBit2-2.14.19/test/timeout-server.c0000644000175000001440000001154211334247617013776 00000000000000/* * CORBA GIOP timeout test * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Jules Colding */ #include #include #include #include #include "timeout_impl.c" /* * This method will return an ORB which is so initialized * as support IPv4 IORs * * orb_name : Name of return ORB or empty string * * Return value : Initialized ORB or CORBA::ORB::_nil() * */ static CORBA_ORB create_ipv4_orb(const char *orb_name, CORBA_Environment *ev) { CORBA_ORB orb = CORBA_OBJECT_NIL; int argc = 0; char **argv = NULL; // sanity checks if (!orb_name) return CORBA_OBJECT_NIL; argc = 5; argv = (char**)malloc (sizeof(char*) * argc); if (!argv) return CORBA_OBJECT_NIL; // dummy argument argv[0] = "timeout-server"; // IPv4 enabled argv[1] = "--ORBIIOPIPv4=1"; // IPv6 enabled argv[2] = "--ORBIIOPIPv6=1"; // explicitly force ORBit2 to be non-local argv[3] = "--ORBLocalOnly=0"; // do not use Unix domain sockets argv[4] = "--ORBIIOPUNIX=0"; // initialize the ORB orb = CORBA_ORB_init (&argc, argv, (char*)orb_name, ev); if (ev->_major != CORBA_NO_EXCEPTION) orb = CORBA_OBJECT_NIL; free (argv); return orb; } int main (int argc, char *argv[]) { PortableServer_ObjectId *objid = NULL; PortableServer_POAManager mgr; CORBA_Environment ev; CORBA_ORB orb = CORBA_OBJECT_NIL; PortableServer_POA poa = CORBA_OBJECT_NIL; Timeout servant = CORBA_OBJECT_NIL; FILE *iorfile; char *ior; int retv = EXIT_FAILURE; signal(SIGINT, exit); signal(SIGTERM, exit); g_thread_init (NULL); CORBA_exception_init (&ev); /* create IPv4 orb */ orb = create_ipv4_orb ("orb-name", &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_print ("create_ipv4_orb(): %s\n", CORBA_exception_id (&ev)); goto out; } /* get root poa */ poa = (PortableServer_POA)CORBA_ORB_resolve_initial_references (orb, "RootPOA", &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_print ("create_ipv4_orb(): %s\n", CORBA_exception_id (&ev)); goto out; } /* activate root poa */ mgr = PortableServer_POA__get_the_POAManager (poa, &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_print ("PortableServer_POA__get_the_POAManager(): %s\n", CORBA_exception_id (&ev)); goto out; } PortableServer_POAManager_activate (mgr, &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_print ("PortableServer_POAManager_activate(): %s\n", CORBA_exception_id (&ev)); goto out; } CORBA_Object_release ((CORBA_Object)mgr, &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_print ("CORBA_Object_release(): %s\n", CORBA_exception_id (&ev)); goto out; } /* get corba object */ servant = impl_Timeout__create (poa, &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_print ("CORBA_Object_release(): %s\n", CORBA_exception_id (&ev)); goto out; } ior = CORBA_ORB_object_to_string (orb, servant, &ev); iorfile = fopen ("timeout-server.iorfile", "w"); fprintf (iorfile, "%s", ior); fclose (iorfile); CORBA_free (ior); CORBA_ORB_run (orb, &ev); objid = PortableServer_POA_reference_to_id (poa, (CORBA_Object)servant, &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_print ("Exception caught from reference_to_id() - exiting"); if (objid) CORBA_free(objid); goto out; } PortableServer_POA_deactivate_object (poa, objid, &ev); CORBA_free(objid); if (ev._major != CORBA_NO_EXCEPTION) { g_print ("Exception caught from deactivate_object() - exiting"); goto out; } CORBA_Object_release ((CORBA_Object)servant, &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_print ("Exception caught from release() - exiting"); goto out; } PortableServer_POA_destroy (poa, TRUE, FALSE, &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_print ("Exception caught from destroy() - exiting"); goto out; } CORBA_Object_release ((CORBA_Object)poa, &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_print ("Exception caught from release() - exiting"); goto out; } CORBA_ORB_destroy (orb, &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_print ("Exception caught from destroy() - exiting"); goto out; } CORBA_Object_release ((CORBA_Object) orb, &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_print ("Exception caught from release() - exiting"); goto out; } retv = EXIT_SUCCESS; out: return retv; } ORBit2-2.14.19/test/echo-share.h0000644000175000001440000000214111334247617013022 00000000000000/* * CORBA echo tests * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: Elliot Lee */ /* * from main program */ extern gboolean echo_opt_quiet; /* * from echo-srv.c */ extern void echo_srv_start_poa(CORBA_ORB orb,CORBA_Environment *ev); extern CORBA_Object echo_srv_start_object(CORBA_Environment *ev); extern void echo_srv_finish_object(CORBA_Environment *ev); extern void echo_srv_finish_poa(CORBA_Environment *ev); ORBit2-2.14.19/test/test-any-client.c0000644000175000001440000000216711334247617014027 00000000000000#include #include "test-any.h" int main (int argc, char *argv[]) { CORBA_Environment ev; CORBA_ORB orb; TestAny obj; TestAnyStruct any_value, *retany_value; CORBA_any *retany, any; CORBA_exception_init(&ev); orb = CORBA_ORB_init(&argc, argv, "orbit-local-orb", &ev); if(argc < 2) { printf("Need a binding ID thing as argv[1]\n"); return 1; } obj = CORBA_ORB_string_to_object(orb, argv[1], &ev); if (!obj) { printf("Cannot bind to %s\n", argv[1]); return 1; } any_value.long_value = 42; any_value.string_value = "fourty two."; any._type = (CORBA_TypeCode)TC_TestAnyStruct; any._value = &any_value; CORBA_any_set_release(&any, CORBA_FALSE ); retany = TestAny_print (obj, &any, &ev); if(ev._major == CORBA_NO_EXCEPTION) { retany_value = retany->_value; if(retany_value) g_message("long %d string %s", retany_value->long_value, retany_value->string_value); CORBA_free(retany); } else { printf("we got exception %u from TestAny_print!\n", ev._major); return 1; } CORBA_Object_release(obj, &ev); CORBA_Object_release((CORBA_Object)orb, &ev); return 0; } ORBit2-2.14.19/test/test-performance.c0000644000175000001440000001241611334247617014263 00000000000000#include #include #include #include #include "test1.h" static CORBA_ORB orb; static GTimer *timer; static double bogomark = 0.0; static double elapsed_time; static void test_copy (void) { int i, j; #define ELEMS (sizeof (tc) / sizeof (tc[0])) CORBA_TypeCode tc[] = { TC_CORBA_octet, TC_CORBA_sequence_CORBA_octet, TC_CORBA_double, TC_CORBA_string, TC_CORBA_sequence_CORBA_string, TC_GIOP_TargetAddress }; gpointer data [ELEMS]; const char *test_string = "This is a sample string, for dupping"; fprintf (stderr, "Testing copy...\n"); for (i = 0; i < ELEMS; i++) { data [i] = ORBit_dynany_new_default (tc [i]); g_timer_reset (timer); for (j = 0; j < 1000; j++) { gpointer foo = ORBit_copy_value (data [i], tc [i]); CORBA_free (foo); } elapsed_time = g_timer_elapsed (timer, NULL); bogomark += elapsed_time; fprintf (stderr, " copy %20s : %g(ms)\n", tc[i]->repo_id == NULL ? "(null)" : tc[i]->repo_id, elapsed_time); } fprintf (stderr, "Testing strdup ...\n"); g_timer_reset (timer); for (i = 0; i < 10000; i++) { char *str = g_strdup (test_string); g_free (str); } elapsed_time = g_timer_elapsed (timer, NULL) / 10.0; bogomark += elapsed_time; fprintf (stderr, " g_strdup : %g(ns)\n", elapsed_time * 1000.0); g_timer_reset (timer); for (i = 0; i < 10000; i++) { char *str = CORBA_string_dup (test_string); CORBA_free (str); } elapsed_time = g_timer_elapsed (timer, NULL) / 10.0; bogomark += elapsed_time; fprintf (stderr, " CORBA_strdup : %g(ns)\n", elapsed_time * 1000.0); } static PortableServer_POA create_mult_id_poa (CORBA_Environment *ev) { PortableServer_POA rootpoa; PortableServer_POA retval; CORBA_PolicyList *policies; rootpoa = (PortableServer_POA) CORBA_ORB_resolve_initial_references (orb, "RootPOA", ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); policies = CORBA_PolicyList__alloc (); policies->_maximum = 1; policies->_length = 1; policies->_buffer = CORBA_PolicyList_allocbuf (1); CORBA_sequence_set_release (policies, CORBA_TRUE); policies->_buffer[0] = (CORBA_Policy) PortableServer_POA_create_id_uniqueness_policy ( rootpoa, PortableServer_MULTIPLE_ID, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); retval = PortableServer_POA_create_POA (rootpoa, "Multiple Id POA", NULL, policies, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Policy_destroy (policies->_buffer[0], ev); CORBA_free (policies); g_assert (ev->_major == CORBA_NO_EXCEPTION); CORBA_Object_release ((CORBA_Object) rootpoa, ev); g_assert (ev->_major == CORBA_NO_EXCEPTION); return retval; } static PortableServer_ServantBase__epv base_epv = { NULL, NULL, NULL }; static POA_Test__epv test_epv = { NULL, NULL }; static POA_Test__vepv test_vepv = { &base_epv, &test_epv }; static POA_Test test_servant = { NULL, &test_vepv }; static void test_activation (void) { CORBA_Environment env; PortableServer_POA poa; GSList *objids = NULL, *l; int i; fprintf (stderr, "Testing object activation...\n"); CORBA_exception_init (&env); POA_Test__init (&test_servant, &env); poa = create_mult_id_poa (&env); g_assert (env._major == CORBA_NO_EXCEPTION); g_timer_reset (timer); for (i = 0; i < 1000; i++) { PortableServer_ObjectId *objid; objid = PortableServer_POA_activate_object (poa, &test_servant, &env); g_assert (env._major == CORBA_NO_EXCEPTION); objids = g_slist_append (objids, objid); } elapsed_time = g_timer_elapsed (timer, NULL); bogomark += elapsed_time; fprintf (stderr, " activation : %g(ms)\n", elapsed_time); g_timer_reset (timer); for (l = objids; l; l = l->next) { PortableServer_POA_deactivate_object (poa, l->data, &env); g_assert (env._major == CORBA_NO_EXCEPTION); } elapsed_time = g_timer_elapsed (timer, NULL); bogomark += elapsed_time; fprintf (stderr, " de-activation : %g(ms)\n", elapsed_time); for (l = objids; l; l = l->next) CORBA_free (l->data); g_slist_free (objids); POA_Test__fini (&test_servant, &env); PortableServer_POA_destroy (poa, CORBA_FALSE, CORBA_FALSE, &env); g_assert (env._major == CORBA_NO_EXCEPTION); CORBA_Object_release ((CORBA_Object) poa, &env); g_assert (env._major == CORBA_NO_EXCEPTION); CORBA_exception_free (&env); } int main (int argc, char *argv[]) { CORBA_Environment ev; free (malloc (8)); g_thread_init (NULL); CORBA_exception_init (&ev); timer = g_timer_new (); g_timer_start (timer); g_timer_reset (timer); orb = CORBA_ORB_init (&argc, argv, "orbit-local-orb", &ev); g_assert (ev._major == CORBA_NO_EXCEPTION); fprintf (stderr, "ORB: init took %g(ms)\n", (elapsed_time = g_timer_elapsed (timer, NULL)) * 1000.0); bogomark += elapsed_time; test_copy (); test_activation (); g_timer_reset (timer); CORBA_ORB_destroy (orb, &ev); g_assert (ev._major == CORBA_NO_EXCEPTION); fprintf (stderr, "ORB: destroy took %g(ms)\n", (elapsed_time = g_timer_elapsed (timer, NULL)) * 1000.0); bogomark += elapsed_time; g_timer_reset (timer); CORBA_Object_release ((CORBA_Object) orb, &ev); g_assert (ev._major == CORBA_NO_EXCEPTION); g_timer_destroy (timer); fprintf (stderr, "Overall bogomark %g\n", 1000.0 / bogomark); return 0; } ORBit2-2.14.19/test/dynany.idl0000644000175000001440000000056511334247617012637 00000000000000interface Test { typedef double MyArray[100]; enum Fishy { KIPPER, BLOATER, HERRING }; typedef sequence OSeq; union English switch (unsigned long) { case 0: long tgw; case 1: double nut; case 2: string atl; case 3: Fishy rmt; case 4: OSeq ibid; }; struct Unions { long tgw; double nut; string atl; Fishy rmt; OSeq ibid; }; }; ORBit2-2.14.19/Makefile.am0000644000175000001440000000076511334247617011722 00000000000000DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc SUBDIRS=linc2 src include test docs bin_SCRIPTS=orbit2-config EXTRA_DIST = \ ORBit2.m4 \ ORBit.spec \ orbit2-zip.in \ HACKING \ MAINTAINERS \ README.win32 \ Makefile.shared \ gtk-doc.make \ ORBit2.doap rpms: distcheck rpm -ta $(top_builddir)/@PACKAGE@-@VERSION@.tar.gz m4datadir=$(datadir)/aclocal m4data_DATA=ORBit2.m4 pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = \ ORBit-2.0.pc \ ORBit-CosNaming-2.0.pc \ ORBit-imodule-2.0.pc ORBit2-2.14.19/install-sh0000755000175000001440000003253711450333732011665 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2009-04-28.21; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then trap '(exit $?); exit' 1 2 13 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names starting with `-'. case $src in -*) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # Protect names starting with `-'. case $dst in -*) dst=./$dst;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writeable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; -*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test -z "$d" && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: ORBit2-2.14.19/missing0000755000175000001440000002623311450333732011254 00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2009-04-28.21; # UTC # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, # 2008, 2009 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case $1 in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' autom4te touch the output file, or create a stub one automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and \`g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # normalize program name to check for. program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). This is about non-GNU programs, so use $1 not # $program. case $1 in lex*|yacc*) # Not GNU programs, they don't have --version. ;; tar*) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case $program in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case $f in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te*) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison*|yacc*) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi if test ! -f y.tab.h; then echo >y.tab.h fi if test ! -f y.tab.c; then echo 'main() { return 0; }' >y.tab.c fi ;; lex*|flex*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if test ! -f lex.yy.c; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit $? fi ;; makeinfo*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n ' /^@setfilename/{ s/.* \([^ ]*\) *$/\1/ p q }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; tar*) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case $firstarg in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case $firstarg in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: ORBit2-2.14.19/linc2/0000755000175000001440000000000011450334027010734 500000000000000ORBit2-2.14.19/linc2/include/0000755000175000001440000000000011450334027012357 500000000000000ORBit2-2.14.19/linc2/include/Makefile.am0000644000175000001440000000001511334247617014340 00000000000000SUBDIRS=linc ORBit2-2.14.19/linc2/include/linc/0000755000175000001440000000000011450334027013304 500000000000000ORBit2-2.14.19/linc2/include/linc/linc-types.h0000644000175000001440000000215011334247617015473 00000000000000/* * linc-types.h: This file is part of the linc library. * * Authors: * Elliot Lee (sopwith@redhat.com) * Michael Meeks (michael@ximian.com) * Mark McLouglin (mark@skynet.ie) & others * * Copyright 2001, Red Hat, Inc., Ximian, Inc., * Sun Microsystems, Inc. */ #ifndef _LINK_TYPES_H_ #define _LINK_TYPES_H_ #include #include G_BEGIN_DECLS typedef enum { LINK_CONNECTION_SSL = 1 << 0, LINK_CONNECTION_NONBLOCKING = 1 << 1, LINK_CONNECTION_BLOCK_SIGNAL = 1 << 2, LINK_CONNECTION_LOCAL_ONLY = 1 << 3 } LinkConnectionOptions; typedef struct _LinkWatch LinkWatch; typedef struct _LinkProtocolInfo LinkProtocolInfo; #ifdef G_THREADS_ENABLED # define LINK_MUTEX_LOCK(x) G_STMT_START { \ if (x) \ g_mutex_lock (x); \ } G_STMT_END # define LINK_MUTEX_UNLOCK(x) G_STMT_START { \ if (x) \ g_mutex_unlock (x); \ } G_STMT_END #else /* ! G_THREADS_ENABLED */ # define LINK_MUTEX_LOCK(x) # define LINK_MUTEX_UNLOCK(x) #endif /* G_THREADS_ENABLED */ GMutex *link_mutex_new (void); G_END_DECLS #endif /* _LINK_TYPES_H_ */ ORBit2-2.14.19/linc2/include/linc/linc-config.h0000644000175000001440000000011611450333744015570 00000000000000#ifndef _LINC_CONFIG_H_ #define _LINC_CONFIG_H_ #endif /* _LINC_CONFIG_H_ */ ORBit2-2.14.19/linc2/include/linc/linc-config.h.in0000644000175000001440000000011611334247617016201 00000000000000#ifndef _LINC_CONFIG_H_ #define _LINC_CONFIG_H_ #endif /* _LINC_CONFIG_H_ */ ORBit2-2.14.19/linc2/include/linc/Makefile.am0000644000175000001440000000040011334247617015263 00000000000000#lincincludedir=$(includedir)/linc-1.0/linc #lincinclude_HEADERS=$(headers) headers = \ linc-connection.h \ linc-protocol.h \ linc-server.h \ linc-source.h \ linc-types.h \ linc.h \ linc-config.h EXTRA_DIST=$(headers) BUILT_SOURCES=linc-config.h ORBit2-2.14.19/linc2/include/linc/Makefile.in0000644000175000001440000002676311450333733015312 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ #lincincludedir=$(includedir)/linc-1.0/linc #lincinclude_HEADERS=$(headers) VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = linc2/include/linc DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/linc-config.h.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = linc-config.h CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ headers = \ linc-connection.h \ linc-protocol.h \ linc-server.h \ linc-source.h \ linc-types.h \ linc.h \ linc-config.h EXTRA_DIST = $(headers) BUILT_SOURCES = linc-config.h all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu linc2/include/linc/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu linc2/include/linc/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): linc-config.h: $(top_builddir)/config.status $(srcdir)/linc-config.h.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile installdirs: install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: all check install install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/linc2/include/linc/linc-protocol.h0000644000175000001440000000567211334247617016204 00000000000000/* * linc-protocol.h: This file is part of the linc library. * * Authors: * Elliot Lee (sopwith@redhat.com) * Michael Meeks (michael@ximian.com) * Mark McLouglin (mark@skynet.ie) & others * * Copyright 2001, Red Hat, Inc., Ximian, Inc., * Sun Microsystems, Inc. */ #ifndef _LINK_PROTOCOL_H_ #define _LINK_PROTOCOL_H_ #include G_BEGIN_DECLS #include #include #ifdef G_OS_WIN32 # include # undef interface /* #defined as struct! */ #else # include # include #endif /* socklen_t seems rather un-portable */ typedef unsigned int LinkSockLen; typedef enum { LINK_PROTOCOL_SECURE = 1<<0, LINK_PROTOCOL_NEEDS_BIND = 1<<1 } LinkProtocolFlags; typedef void (*LinkProtocolSetupFunc) (int fd, LinkConnectionOptions cnx_flags); typedef void (*LinkProtocolDestroyFunc) (int fd, const char *host_info, const char *serv_info); typedef struct sockaddr *(*LinkProtocolGetSockAddrFunc) (const LinkProtocolInfo *proto, const char *hostname, const char *service, LinkSockLen *saddr_len); typedef gboolean (*LinkProtocolGetSockInfoFunc) (const LinkProtocolInfo *proto, const struct sockaddr *sockaddr, gchar **hostname, gchar **service); typedef void (*LinkProtocolPostCreateFunc) (int fd, struct sockaddr *sockaddr); typedef gboolean (*LinkProtocolIsLocal) (const LinkProtocolInfo *proto, const struct sockaddr *sockaddr, LinkSockLen saddr_len); struct _LinkProtocolInfo { const char *name; int family; int addr_len; int stream_proto_num; LinkProtocolFlags flags; LinkProtocolSetupFunc setup; LinkProtocolDestroyFunc destroy; LinkProtocolGetSockAddrFunc get_sockaddr; LinkProtocolGetSockInfoFunc get_sockinfo; LinkProtocolIsLocal is_local; LinkProtocolPostCreateFunc post_create; /* This structure is private and may be extended in future */ gpointer dummy[7]; }; typedef enum { LINK_NET_ID_IS_LOCAL, LINK_NET_ID_IS_SHORT_HOSTNAME, LINK_NET_ID_IS_FQDN, LINK_NET_ID_IS_IPADDR, LINK_NET_ID_IS_CUSTOM } LinkNetIdType; LinkProtocolInfo * link_protocol_find (const char *name); LinkProtocolInfo * link_protocol_find_num (const int family); LinkProtocolInfo * link_protocol_all (void); char *link_get_tmpdir (void); void link_set_tmpdir (const char *dir); void link_use_local_hostname (LinkNetIdType use); void link_set_local_hostname (const char *host_id); const char* link_get_local_hostname (void); G_END_DECLS #endif /* _LINK_PROTOCOL_H_ */ ORBit2-2.14.19/linc2/include/linc/linc.h0000644000175000001440000000300011334247617014324 00000000000000/* * linc.h: This file is part of the linc library. * * Authors: * Elliot Lee (sopwith@redhat.com) * Michael Meeks (michael@ximian.com) * Mark McLouglin (mark@skynet.ie) & others * * Copyright 2001, Red Hat, Inc., Ximian, Inc., * Sun Microsystems, Inc. */ #ifndef _LINK_H_ #define _LINK_H_ #include #include #include #include #include #include G_BEGIN_DECLS extern GMainLoop *link_loop; void link_init (gboolean thread_safe); void link_set_io_thread (gboolean io_in_thread); void link_shutdown (void); void link_main_iteration (gboolean block_for_reply); gboolean link_main_pending (void); void link_main_loop_run (void); GMainLoop *link_main_get_loop (void); guint link_main_idle_add (GSourceFunc function, gpointer data); void link_wait (void); void link_signal (void); gboolean link_thread_io (void); gboolean link_thread_safe (void); guint link_io_thread_add_timeout (guint interval, GSourceFunc function, gpointer data); void link_io_thread_remove_timeout (guint source_id); #ifdef G_OS_WIN32 void link_map_winsock_error_to_errno (void); #endif int link_pipe (int *handles); /* Creates a pipe on Unix, a TCP socket pair on Windows */ G_END_DECLS #endif /* _LINK_H_ */ ORBit2-2.14.19/linc2/include/linc/linc-source.h0000644000175000001440000000117311334247617015633 00000000000000/* * linc-source.h: This file is part of the linc library. * * Author: * Michael Meeks (michael@ximian.com) * * Copyright 2002, Ximian, Inc., */ #ifndef _LINK_SOURCE_H_ #define _LINK_SOURCE_H_ G_BEGIN_DECLS /* * A dead simple, raw source - with fast conditon change. */ GSource *link_source_create_watch (GMainContext *context, int fd, GIOChannel *opt_channel, GIOCondition condition, GIOFunc func, gpointer user_data); void link_source_set_condition (GSource *source, GIOCondition condition); G_END_DECLS #endif /* _LINK_SOURCE_H_ */ ORBit2-2.14.19/linc2/include/linc/linc-server.h0000644000175000001440000000355011334247617015642 00000000000000/* * linc-server.h: This file is part of the linc library. * * Authors: * Elliot Lee (sopwith@redhat.com) * Michael Meeks (michael@ximian.com) * Mark McLouglin (mark@skynet.ie) & others * * Copyright 2001, Red Hat, Inc., Ximian, Inc., * Sun Microsystems, Inc. */ #ifndef _LINK_SERVER_H_ #define _LINK_SERVER_H_ #include G_BEGIN_DECLS #include #include #define LINK_TYPE_SERVER (link_server_get_type()) #define LINK_TYPE_IS_SERVER(type) (G_TYPE_FUNDAMENTAL (type) == LINK_TYPE_SERVER) #define LINK_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LINK_TYPE_SERVER, LinkServer)) #define LINK_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LINK_TYPE_CONNETION, LinkServerClass)) #define LINK_IS_SERVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LINK_TYPE_SERVER)) #define LINK_IS_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LINK_TYPE_SERVER)) typedef struct _LinkServerPrivate LinkServerPrivate; typedef struct { GObject parent; const LinkProtocolInfo *proto; char *local_host_info; char *local_serv_info; /* Options that incoming connections are created with */ LinkConnectionOptions create_options; LinkServerPrivate *priv; } LinkServer; typedef struct { GObjectClass parent_class; LinkConnection *(* create_connection) (LinkServer *srv); void (* new_connection) (LinkServer *srv, LinkConnection *cnx); } LinkServerClass; GType link_server_get_type (void) G_GNUC_CONST; gboolean link_server_setup (LinkServer *srv, const char *proto_name, const char *local_host_info, const char *local_serv_info, LinkConnectionOptions create_options); G_END_DECLS #endif /* _LINK_SERVER_H_ */ ORBit2-2.14.19/linc2/include/linc/linc-connection.h0000644000175000001440000001336311334247617016476 00000000000000/* * linc-connection.h: This file is part of the linc library. * * Authors: * Elliot Lee (sopwith@redhat.com) * Michael Meeks (michael@ximian.com) * Mark McLouglin (mark@skynet.ie) & others * * Copyright 2001, Red Hat, Inc., Ximian, Inc., * Sun Microsystems, Inc. */ #ifndef _LINK_CONNECTION_H_ #define _LINK_CONNECTION_H_ #include G_BEGIN_DECLS #ifdef G_OS_WIN32 # include # undef interface /* #defined as struct! */ # define iovec _WSABUF # define iov_len len # define iov_base buf #else # include # include #endif #include #include #define LINK_TYPE_CONNECTION (link_connection_get_type()) #define LINK_TYPE_IS_CONNECTION(type) (G_TYPE_FUNDAMENTAL (type) == LINK_TYPE_CONNECTION) #define LINK_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LINK_TYPE_CONNECTION, LinkConnection)) #define LINK_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LINK_TYPE_CONNECTION, LinkConnectionClass)) #define LINK_IS_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LINK_TYPE_CONNECTION)) #define LINK_IS_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LINK_TYPE_CONNECTION)) typedef enum { LINK_CONNECTING, LINK_CONNECTED, LINK_DISCONNECTED, LINK_TIMEOUT } LinkConnectionStatus; typedef enum { LINK_TIMEOUT_UNKNOWN, LINK_TIMEOUT_YES, LINK_TIMEOUT_NO } LinkTimeoutStatus; typedef struct _LinkWriteOpts LinkWriteOpts; typedef struct _LinkConnectionPrivate LinkConnectionPrivate; typedef struct { GObject parent; const LinkProtocolInfo *proto; LinkConnectionStatus status; LinkConnectionOptions options; guint was_initiated : 1; guint is_auth : 1; guint inhibit_reconnect : 1; gchar *remote_host_info; gchar *remote_serv_info; LinkConnectionPrivate *priv; GSList *idle_broken_callbacks; GMutex *timeout_mutex; guint timeout_msec; guint timeout_source_id; // protected by timeout_mutex LinkTimeoutStatus timeout_status; // protected by timeout_mutex void *tdata; // "do not pollute the namespace"-hack (it's a GIOPThread*) } LinkConnection; typedef struct { GObjectClass parent_class; void (* state_changed) (LinkConnection *cnx, LinkConnectionStatus status); gboolean (* handle_input) (LinkConnection *cnx); /* signals */ void (* broken) (LinkConnection *cnx); /* * Emitted when the buffer is emptied, half full or * before disconnect */ void (* blocking) (LinkConnection *cnx, gulong buffer_size); } LinkConnectionClass; GType link_connection_get_type (void) G_GNUC_CONST; void link_connection_from_fd (LinkConnection *cnx, int fd, const LinkProtocolInfo *proto, gchar *remote_host_info, gchar *remote_serv_info, gboolean was_initiated, LinkConnectionStatus status, LinkConnectionOptions options); LinkConnection *link_connection_initiate (GType derived_type, const char *proto_name, const char *remote_host_info, const char *remote_serv_info, LinkConnectionOptions options, const char *first_property, ...); LinkConnectionStatus link_connection_try_reconnect (LinkConnection *cnx); LinkConnection *link_connection_ref (LinkConnection *cnx); void link_connection_unref (LinkConnection *cnx); typedef enum { LINK_IO_OK = 0, LINK_IO_FATAL_ERROR = -1, LINK_IO_QUEUED_DATA = -2 } LinkIOStatus; glong link_connection_read (LinkConnection *cnx, guchar *buf, int len, gboolean block_for_full_read); /* Return values from these functions are going to be "abnormal", since they make sure to write all the data out */ LinkIOStatus link_connection_write (LinkConnection *cnx, const guchar *buf, gulong len, const LinkWriteOpts *opt_write_opts); LinkIOStatus link_connection_writev (LinkConnection *cnx, struct iovec *vecs, int nvecs, const LinkWriteOpts *opt_write_opts); void link_connection_state_changed (LinkConnection *cnx, LinkConnectionStatus status); LinkConnectionStatus link_connection_get_status (LinkConnection *cnx); void link_connection_disconnect (LinkConnection *cnx); LinkConnectionStatus link_connection_wait_connected (LinkConnection *cnx); /* * Proposed new blocking API ... */ void link_connection_set_max_buffer (LinkConnection *cnx, gulong max_buffer_bytes); LinkWriteOpts *link_write_options_new (gboolean block_on_write); /* Space for future expansion: timeout, individual msg. buffering constraints etc. */ void link_write_options_free (LinkWriteOpts *write_opts); typedef void (*LinkBrokenCallback) (LinkConnection *, gpointer user_data); void link_connection_add_broken_cb (LinkConnection *cnx, LinkBrokenCallback fn, gpointer user_data); void link_connection_remove_broken_cb (LinkConnection *cnx, LinkBrokenCallback opt_fn, gpointer opt_user_data); void link_connections_close (void); /* set the link timeout in miliseconds */ extern void link_set_timeout (guint msec); G_END_DECLS #endif /* _LINK_CONNECTION_H */ ORBit2-2.14.19/linc2/include/Makefile.in0000644000175000001440000004370611450333733014361 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = linc2/include DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = linc all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu linc2/include/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu linc2/include/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/linc2/test/0000755000175000001440000000000011450334027011713 500000000000000ORBit2-2.14.19/linc2/test/Makefile.am0000644000175000001440000000051511334247617013701 00000000000000noinst_PROGRAMS = test-linc # -I$(top_srcdir)/include # -I$(top_builddir)/include INCLUDES = \ -I$(top_srcdir)/linc2/include \ -I$(top_builddir)/linc2/include \ -I$(top_srcdir)/linc2/src \ $(LINC_CFLAGS) \ $(WARN_CFLAGS) TESTS = test-linc test_linc_SOURCES = test-linc.c test_linc_LDADD = ../src/liblinc.la $(LINC_LIBS) ORBit2-2.14.19/linc2/test/Makefile.in0000644000175000001440000004465611450333733013722 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = test-linc$(EXEEXT) TESTS = test-linc$(EXEEXT) subdir = linc2/test DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am_test_linc_OBJECTS = test-linc.$(OBJEXT) test_linc_OBJECTS = $(am_test_linc_OBJECTS) am__DEPENDENCIES_1 = test_linc_DEPENDENCIES = ../src/liblinc.la $(am__DEPENDENCIES_1) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(test_linc_SOURCES) DIST_SOURCES = $(test_linc_SOURCES) ETAGS = etags CTAGS = ctags am__tty_colors = \ red=; grn=; lgn=; blu=; std= DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # -I$(top_srcdir)/include # -I$(top_builddir)/include INCLUDES = \ -I$(top_srcdir)/linc2/include \ -I$(top_builddir)/linc2/include \ -I$(top_srcdir)/linc2/src \ $(LINC_CFLAGS) \ $(WARN_CFLAGS) test_linc_SOURCES = test-linc.c test_linc_LDADD = ../src/liblinc.la $(LINC_LIBS) all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu linc2/test/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu linc2/test/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list test-linc$(EXEEXT): $(test_linc_OBJECTS) $(test_linc_DEPENDENCIES) @rm -f test-linc$(EXEEXT) $(LINK) $(test_linc_OBJECTS) $(test_linc_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-linc.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags check-TESTS: $(TESTS) @failed=0; all=0; xfail=0; xpass=0; skip=0; \ srcdir=$(srcdir); export srcdir; \ list=' $(TESTS) '; \ $(am__tty_colors); \ if test -n "$$list"; then \ for tst in $$list; do \ if test -f ./$$tst; then dir=./; \ elif test -f $$tst; then dir=; \ else dir="$(srcdir)/"; fi; \ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xpass=`expr $$xpass + 1`; \ failed=`expr $$failed + 1`; \ col=$$red; res=XPASS; \ ;; \ *) \ col=$$grn; res=PASS; \ ;; \ esac; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xfail=`expr $$xfail + 1`; \ col=$$lgn; res=XFAIL; \ ;; \ *) \ failed=`expr $$failed + 1`; \ col=$$red; res=FAIL; \ ;; \ esac; \ else \ skip=`expr $$skip + 1`; \ col=$$blu; res=SKIP; \ fi; \ echo "$${col}$$res$${std}: $$tst"; \ done; \ if test "$$all" -eq 1; then \ tests="test"; \ All=""; \ else \ tests="tests"; \ All="All "; \ fi; \ if test "$$failed" -eq 0; then \ if test "$$xfail" -eq 0; then \ banner="$$All$$all $$tests passed"; \ else \ if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ fi; \ else \ if test "$$xpass" -eq 0; then \ banner="$$failed of $$all $$tests failed"; \ else \ if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ fi; \ fi; \ dashes="$$banner"; \ skipped=""; \ if test "$$skip" -ne 0; then \ if test "$$skip" -eq 1; then \ skipped="($$skip test was not run)"; \ else \ skipped="($$skip tests were not run)"; \ fi; \ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$skipped"; \ fi; \ report=""; \ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ report="Please report to $(PACKAGE_BUGREPORT)"; \ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$report"; \ fi; \ dashes=`echo "$$dashes" | sed s/./=/g`; \ if test "$$failed" -eq 0; then \ echo "$$grn$$dashes"; \ else \ echo "$$red$$dashes"; \ fi; \ echo "$$banner"; \ test -z "$$skipped" || echo "$$skipped"; \ test -z "$$report" || echo "$$report"; \ echo "$$dashes$$std"; \ test "$$failed" -eq 0; \ else :; fi distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: check-am install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ clean-generic clean-libtool clean-noinstPROGRAMS ctags \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/linc2/test/test-linc.c0000644000175000001440000002754111334247617013723 00000000000000#include "config.h" #ifdef HAVE_SYS_WAIT_H # include #endif #include #include "linc-private.h" #include "linc-compat.h" #define SYS_SOCKET_BUFFER_MAX (512 * 1024) #define BUFFER_MAX 1024 static void test_protos (void) { LinkProtocolInfo *info; info = link_protocol_all (); fprintf (stderr, "Available protocols: {\n"); while (info && info->name) { fprintf (stderr, "\t'%8s': %2d, %3d, %2d, 0x%.4x [%c%c%c%c%c]\n", info->name, info->family, info->addr_len, info->stream_proto_num, info->flags, info->setup ? 's' : '-', info->destroy ? 'd' : '-', info->get_sockaddr ? 'a' : '-', info->get_sockinfo ? 'i' : '-', info->is_local ? 'l' : '-'); info++; } fprintf (stderr, " }\n"); } static void init_tmp (void) { char *dir; const char *user = g_get_user_name (); dir = g_build_filename (g_get_tmp_dir (), g_strconcat ("orbit-", user, NULL), NULL); link_set_tmpdir (dir); g_free (dir); } static GType test_server_cnx_type = 0; static GType test_client_cnx_type = 0; static gboolean connected = FALSE; static LinkConnection * test_server_create_connection (LinkServer *cnx) { GType t; t = test_server_cnx_type ? test_server_cnx_type : link_connection_get_type (); connected = TRUE; return g_object_new (t, NULL); } static void create_server (LinkServer **server) { LinkServerClass *klass; klass = g_type_class_ref (link_server_get_type ()); klass->create_connection = test_server_create_connection; *server = g_object_new (link_server_get_type (), NULL); #ifdef G_OS_WIN32 g_assert (link_server_setup (*server, "IPv4", NULL, "1234", LINK_CONNECTION_NONBLOCKING)); #else g_assert (link_server_setup (*server, "UNIX", NULL, NULL, LINK_CONNECTION_NONBLOCKING)); #endif g_object_add_weak_pointer (G_OBJECT (*server), (gpointer *) server); } static void create_client (LinkServer *server, LinkConnection **client) { *client = link_connection_initiate (test_client_cnx_type ? test_client_cnx_type : link_connection_get_type (), #ifdef G_OS_WIN32 "IPv4", #else "UNIX", #endif server->local_host_info, server->local_serv_info, LINK_CONNECTION_NONBLOCKING, NULL); g_assert (*client != NULL); g_object_add_weak_pointer (G_OBJECT (*client), (gpointer *) client); } #ifdef HAVE_SYS_WAIT_H static gboolean test_broken_cnx_handle_input (LinkConnection *cnx) { glong ret; guchar buffer; ret = link_connection_read (cnx, &buffer, 1, FALSE); g_assert (ret == LINK_IO_FATAL_ERROR); link_connection_state_changed (cnx, LINK_DISCONNECTED); return TRUE; } static void test_broken_cnx_class_init (LinkConnectionClass *klass) { klass->handle_input = test_broken_cnx_handle_input; } static GType test_get_broken_cnx_type (void) { static GType object_type = 0; if (!object_type) { static const GTypeInfo object_info = { sizeof (LinkConnectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) test_broken_cnx_class_init, NULL, /* class_finalize */ NULL, /* class_data */ sizeof (LinkConnection), 0, /* n_preallocs */ (GInstanceInitFunc) NULL }; object_type = g_type_register_static ( LINK_TYPE_CONNECTION, "TestConnection", &object_info, 0); } return object_type; } static void broken_cb (LinkConnection *cnx, gpointer user_data) { g_assert (user_data == NULL); exit (13); } static void test_broken (void) { LinkServer *server; LinkConnection *client; pid_t child; int status; fprintf (stderr, "Testing 'broken' ...\n"); create_server (&server); if ((child = fork ()) == 0) { /* child */ test_client_cnx_type = test_get_broken_cnx_type (); create_client (server, &client); test_client_cnx_type = 0; g_signal_connect (G_OBJECT (client), "broken", G_CALLBACK (broken_cb), NULL); g_object_unref (G_OBJECT (server)); g_assert (server == NULL); link_main_loop_run (); g_assert_not_reached (); } while (!connected) link_main_iteration (FALSE); connected = FALSE; g_object_unref (G_OBJECT (server)); g_assert (server == NULL); waitpid (child, &status, 0); g_assert (WIFEXITED (status) && WEXITSTATUS (status) == 13); } #endif static GIOCondition knobble_watch (LinkWatch *watch, GIOCondition new_cond) { GIOCondition old_cond; g_assert (watch != NULL); old_cond = ((LinkUnixWatch *) watch->link_source)->condition; g_assert (old_cond == ((LinkUnixWatch *) watch->main_source)->condition); link_watch_set_condition (watch, new_cond); return old_cond; } typedef struct { int status; GIOCondition old_cond; LinkConnection *s_cnx; } BlockingData; static void blocking_cb (LinkConnection *cnx, gulong buffer_size, gpointer user_data) { BlockingData *bd = user_data; if (bd->status < 3) fprintf (stderr, " buffer %ld\n", buffer_size); bd->status++; if (buffer_size == BUFFER_MAX) { knobble_watch (bd->s_cnx->priv->tag, bd->old_cond); /* flush the queue to other side */ while (cnx->priv->write_queue != NULL && cnx->status == LINK_CONNECTED) link_main_iteration (FALSE); g_assert (cnx->status == LINK_CONNECTED); } } static gboolean test_blocking_cnx_handle_input (LinkConnection *cnx) { static gulong idx = 0; glong size, i; guint32 buffer[1024]; size = link_connection_read (cnx, (guchar *) buffer, 512, TRUE); g_assert (size != -1); g_assert ((size & 0x3) == 0); g_assert (size <= 512); for (i = 0; i < (size >> 2); i++) g_assert (buffer [i] == idx++); return TRUE; } static void test_blocking_cnx_class_init (LinkConnectionClass *klass) { klass->handle_input = test_blocking_cnx_handle_input; } static GType test_get_blocking_cnx_type (void) { static GType object_type = 0; if (!object_type) { static const GTypeInfo object_info = { sizeof (LinkConnectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) test_blocking_cnx_class_init, NULL, /* class_finalize */ NULL, /* class_data */ sizeof (LinkConnection), 0, /* n_preallocs */ (GInstanceInitFunc) NULL }; object_type = g_type_register_static ( LINK_TYPE_CONNECTION, "TestConnection", &object_info, 0); } return object_type; } static void test_blocking (void) { BlockingData bd; LinkServer *server; LinkConnection *client; LinkWriteOpts *options; guint32 buffer[1024] = { 0 }; glong l; int i; fprintf (stderr, "Testing blocking code ...\n"); /* Create our own LinkConnection to verify input */ test_server_cnx_type = test_get_blocking_cnx_type (); create_server (&server); create_client (server, &client); link_main_iteration (FALSE); /* connect */ g_assert (server->priv->connections != NULL); bd.s_cnx = server->priv->connections->data; g_assert (bd.s_cnx != NULL); g_assert (bd.s_cnx->priv->tag != NULL); bd.old_cond = knobble_watch (bd.s_cnx->priv->tag, 0); /* stop it listening */ options = link_write_options_new (FALSE); link_connection_set_max_buffer (client, BUFFER_MAX); g_signal_connect (G_OBJECT (client), "blocking", G_CALLBACK (blocking_cb), &bd); client->options |= LINK_CONNECTION_BLOCK_SIGNAL; l = 0; bd.status = 0; for (i = 0; i < SYS_SOCKET_BUFFER_MAX; i+= 128) { int j; for (j = 0; j < 128/4; j++) buffer [j] = l++; link_connection_write ( client, (guchar *) buffer, 128, options); if (client->status != LINK_CONNECTED) break; } g_assert (client->status == LINK_CONNECTED); g_assert (bd.status >= 3); link_connection_unref (client); g_assert (client == NULL); link_main_iteration (FALSE); g_object_unref (G_OBJECT (server)); g_assert (server == NULL); test_server_cnx_type = 0; link_write_options_free (options); } static void test_local_ipv4 (void) { LinkSockLen saddr_len; LinkProtocolInfo *proto; struct sockaddr *saddr; struct sockaddr_in ipv4_addr = { 0 }; fprintf (stderr, " IPv4\n"); proto = link_protocol_find ("IPv4"); g_assert (proto != NULL); ipv4_addr.sin_family = AF_INET; ipv4_addr.sin_port = 1234; memset (&ipv4_addr.sin_addr.s_addr, 0xaa, 4); g_assert (!link_protocol_is_local ( proto, (struct sockaddr *)&ipv4_addr, sizeof (ipv4_addr))); saddr = link_protocol_get_sockaddr ( proto, link_get_local_hostname (), NULL, &saddr_len); g_assert (link_protocol_is_local (proto, saddr, saddr_len)); g_free (saddr); } static void test_local_ipv6 (void) { #ifdef AF_INET6 LinkProtocolInfo *proto; struct sockaddr_in6 ipv6_addr = { 0 }; fprintf (stderr, " IPv6\n"); proto = link_protocol_find ("IPv6"); g_assert (proto != NULL); g_assert (proto != NULL); ipv6_addr.sin6_family = AF_INET6; ipv6_addr.sin6_port = 1234; memset (&ipv6_addr.sin6_addr.s6_addr, 0xaa, 16); g_assert (!link_protocol_is_local ( proto, (struct sockaddr *)&ipv6_addr, sizeof (ipv6_addr))); #else g_assert (link_protocol_find ("IPv6") == NULL); #endif } static void test_local (void) { #ifndef G_OS_WIN32 LinkProtocolInfo *proto; #endif fprintf (stderr, "Testing is_local checking ...\n"); g_assert (!link_protocol_is_local (NULL, NULL, -1)); #ifndef G_OS_WIN32 fprintf (stderr, " UNIX\n"); proto = link_protocol_find ("UNIX"); g_assert (proto != NULL); g_assert (link_protocol_is_local (proto, NULL, -1)); #endif test_local_ipv4 (); test_local_ipv6 (); } static void verify_addr_is_loopback (guint8 *addr, int length) { int i; if (length == 4) i = 0; else if (length == 16) { for (i = 0; i < 10; i++) if (addr [i] != 0) return; if (addr [i++] != 0xff || addr [i++] != 0xff) return; } else { i = 0; g_assert_not_reached (); } if (addr [i + 0] == 127 && addr [i + 1] == 0 && addr [i + 2] == 0 && addr [i + 3] == 1) { g_warning (" --- The reverse lookup of your hostname " "is 127.0.0.1 you will not be able to " "do inter-machine comms. ---"); exit (0); } } static void test_hosts_lookup (void) { int i; struct hostent *hent; LinkProtocolInfo *proto; LinkSockLen saddr_len; struct sockaddr_in *addr; hent = gethostbyname (link_get_local_hostname ()); g_assert (hent != NULL); fprintf (stderr, " official name '%s' aliases: ", hent->h_name); for (i = 0; hent->h_aliases [i]; i++) fprintf (stderr, " '%s'", hent->h_aliases [i]); fprintf (stderr, "\n"); verify_addr_is_loopback (hent->h_addr_list [0], hent->h_length); proto = link_protocol_find ("IPv4"); addr = (struct sockaddr_in *)link_protocol_get_sockaddr ( proto, "127.0.0.1", "1047", &saddr_len); g_assert (addr != NULL); g_assert (saddr_len == sizeof (struct sockaddr_in)); verify_addr_is_loopback ((guint8 *) &addr->sin_addr.s_addr, saddr_len); } static void test_host (void) { char *portnum; char *hostname; LinkSockLen saddr_len; struct sockaddr *saddr; LinkProtocolInfo *proto; proto = link_protocol_find ("IPv4"); g_assert (proto != NULL); g_assert (proto->get_sockinfo != NULL); saddr = link_protocol_get_sockaddr ( proto, link_get_local_hostname (), NULL, &saddr_len); g_assert (saddr != NULL); g_assert (link_protocol_get_sockinfo ( proto, saddr, &hostname, &portnum)); g_free (saddr); fprintf (stderr, " '%s': '%s' \n", link_get_local_hostname (), hostname); g_free (hostname); g_free (portnum); test_hosts_lookup (); } static void test_connected (void) { LinkServer *server = NULL; LinkConnection *client = NULL; create_server (&server); g_assert (server != NULL); create_client (server, &client); g_assert (client != NULL); /* FIXME: this is horribly difficult to regression test properly: we fail */ g_assert (link_connection_wait_connected (client) == LINK_CONNECTED); g_object_unref (G_OBJECT (server)); link_connection_unref (client); } int main (int argc, char **argv) { link_init (TRUE); init_tmp (); test_protos (); test_connected (); #ifdef HAVE_SYS_WAIT_H test_broken (); #endif test_blocking (); test_local (); test_host (); fprintf (stderr, "All tests passed successfully\n"); return 0; } ORBit2-2.14.19/linc2/Makefile.am0000644000175000001440000000052411334247617012722 00000000000000SUBDIRS=include src test # m4datadir=$(datadir)/aclocal # m4data_DATA=linc.m4 # EXTRA_DIST = \ # linc.m4 \ # linc.spec \ # HACKING \ # MAINTAINERS # pkgconfigdir=$(libdir)/pkgconfig # pkgconfig_DATA=linc.pc # $(pkgconfig_DATA): config.status # bin_SCRIPTS = linc-config # DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc ORBit2-2.14.19/linc2/Makefile.in0000644000175000001440000004444311450333733012735 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = linc2 DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ AUTHORS COPYING ChangeLog NEWS TODO ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = include src test all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu linc2/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu linc2/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # m4datadir=$(datadir)/aclocal # m4data_DATA=linc.m4 # EXTRA_DIST = \ # linc.m4 \ # linc.spec \ # HACKING \ # MAINTAINERS # pkgconfigdir=$(libdir)/pkgconfig # pkgconfig_DATA=linc.pc # $(pkgconfig_DATA): config.status # bin_SCRIPTS = linc-config # DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/linc2/AUTHORS0000644000175000001440000000015011334247617011731 00000000000000Elliot Lee Michael Meeks Mark McLouglin ORBit2-2.14.19/linc2/TODO0000644000175000001440000000224411334247617011357 00000000000000 ** Idle I/O thread setup + Can we setup the I/O thread idly in either a) CORBA method dispatch from non-main thread or b) a servant binding with non-default policy. + This would solve our API/ABI compat issues (?) linc-connection.c + ** Emitted signals must do threadsafe object refs ** + cnx deref lock -> ref count lifecycle. + always disconnecting -> disconnected ? + on read/write also take lock ... + linc_connection_wait_state change (internal?) + [ - wait for disconnected / connected etc. ? ] + write can try to write (with lock) for a bit ** TODO: + push cnx_get_status method through ORBit2 + Need a linc test that certainly fills a socket buffer on write in threaded mode ... + global cross thread condition / task queue thing ? + shutdown + callback mechanism for 'broken' etc. ? ** Older thoughts: + create (linc_connection_initiate) [ take lock ] + linc_connection_state_changed [ take lock ] + assert happened in the I/O thread ... + During construction this bit hooks it into the polling loop - must be done in the main loop (!) [ or must it ? - special case for construction ? ] + signal the connections' condition ... ORBit2-2.14.19/linc2/README0000644000175000001440000000134511334247617011550 00000000000000linc is a library that eases the task of writing networked servers & clients. It takes care of connection initiation and maintainance, and the details of various transports. It is used by the new ORBit to handle message transmission/receipt. Currently supported transports: IPv4 (tested) UNIX domain sockets (tested) IPv6 IrDA The connections can optionally be encrypted using OpenSSL. zlib support is planned for compression. Subclassing LINCConnection/LINCServer for handling specific protocols (such as IIOP in ORBit's case) is currently a bit icky and needs to be fixed. Please read the HACKING file for information on where to send bug-reports or patches. Please, see http://www.gnome.org/projects/ORBit2 for more information. ORBit2-2.14.19/linc2/ChangeLog0000644000175000001440000023607211334247617012451 00000000000000============================= 2.14.17 ========================= 2009-01-05 Tor Lillqvist Bug 547885 - ORBit2 should not call g_thread_init() itself as it is usually too late * src/linc.c (link_init): Revert change below. Do call g_thread_init(). We don't care what the GLib documentation says. If this potentially late call of g_thread_init() causes problems on some non-Linux platforms, that is the problem of whoever is porting or writing code for that platform, and they need to make sure they call g_thread_init(NULL) very early. 2008-12-15 Tor Lillqvist Bug 547885 - ORBit2 should not call g_thread_init() itself as it is usually too late * src/linc.c (link_init): Don't call g_thread_init() here, it's way too late. g_thread_init() must be the first GLib function called in a program if it is called at all. Instead, if thread support is requested but g_thread_init() has not been called, print a warning and continue without threads. 2008-10-17 Cosimo Cecchi * include/linc/linc-connection.h: * include/linc/linc-protocol.h: * include/linc/linc-server.h: * include/linc/linc-types.h: Use single GLib includes. 2008-10-02 Tor Lillqvist * src/linc-protocols.c (link_protocol_is_local_ipv46): Do simple checks for loopback addresses first before doing any gethostbyname(). Avoids superfluous potential DNS lookups. 2008-10-02 Tor Lillqvist * src/linc-debug.h: Always turn on the debug printout possibility on Windows. * src/Makefile.am: Don't use -DGNU_SOURCE on Windows as it confuses newest mingw headers. ====================== 2.14.16 =================== 2008-09-16 Jules Colding * src/linc-protocols.c (link_protocol_get_sockinfo_ipv4) (link_protocol_get_sockinfo_ipv6): Do not fail if the hostname couldn't be determined. Instead rely on the link_get_local_hostname() provided hostname. This is expected to fix #538388 and #552323. ====================== 2.14.15 ================== 2008-08-26 Mike Gorse * src/linc-protocols.c (link_protocol_post_create_unix): use chown not fchown on the socket. 2008-08-11 Michael Meeks * src/linc-protocols.c (get_first_non_local_ipaddr): remove bogus return bits; re-order linc-protocols array to maintain binary compat. 2008-08-11 Mike Gorse * src/linc-protocols.c (link_protocol_post_create_unix), * src/linc-server.c (link_server_setup): add and call post_create method to allow root user to create sockets in ORBIT_SOCKETDIR, to allow user owned ATs to talk to a root owned app. 2008-06-21 Jules Colding * src/linc-protocols.c (get_netid): This function failed on Mac OS X for (ORBNetID == "ipaddr"). It is now fixed and simplified greatly by the use of the new function get_first_non_local_ipaddr(). (get_first_non_local_ipaddr): This function will correctly deduce the first non-loopback interface on the host. ============================== 2.14.13 =========================== 2008-05-25 Tor Lillqvist * src/linc-connection.c (link_connection_broken_idle): Don't print a parameter that is now gone in d_printf. 2008-05-22 Michael Meeks * src/linc-connection.c (link_connection_broken_idle), (add_idle_broken_for_cnx_T, link_connection_state_changed_T_R): don't add one idle handler per cnx; share a global idle handler. don't inhibit reconnection while emitting 'broken' if we are already emitting broken callbacks. bug #534351# 2008-05-20 Tor Lillqvist Bug 524056 - Patch: fix linc2 so it compiles with MSVC. * src/linc-connection.c * src/linc-source.c * src/linc-compat.h: Patch by Marcelo Vanzin. Add a few ifdefs. 2008-04-23 Tor Lillqvist Bug 514993 - Get rid of the "FIXME: guard from double entry" warning * src/linc.c (link_set_io_thread): Get rid of the warning. (link_exec_set_io_thread): Instead rearrange the locking and testing of flag here. 2008-04-15 Jeff Cai * src/linc-protocols.c: (link_get_local_hostname), (link_use_local_hostname), (link_protocol_is_local_ipv46): Bug #527128 Removed Li Yuan's Patch. Any incoming requests with "127.0.0.1" or "::1" in header field will be regarded as local request. 2008-04-10 Li Yuan * src/linc-protocols.c: (link_get_local_hostname), (link_use_local_hostname): Bug #527128. Refresh local_host when use_local_host is changed. =============================== 2.14.12 ======================== =============================== 2.14.11 ======================== 2008-01-23 Tor Lillqvist * src/linc-protocols.c (link_protocol_get_sockinfo_ipv4): Add accidentally removed closing brace. 2008-01-21 Tor Lillqvist Rework form of addresses used on Windows. Seems to fix the problems reported in bug #363648. See that bug for extensive even if occasionally misleading discussion. * src/linc-protocols.c [Win32]: Change the default value of the use_local_host variable to LINK_NET_ID_IS_IPADDR. This seems to in general be more useful than FQDNs especially for end-user machines with DNS randomness issues. Add some d_printf() calls to print debugging information when DNS lookups are being done. To see them, recompile with CONNECTION_DEBUG defined in src/linc-debug.h and set the LINK_CONNECTION_DEBUG environment variable. (get_netid) [Win32]: Return the numeric "127.0.0.1" in the LINK_NET_ID_IS_LOCAL case. (link_protocol_get_sockinfo_ipv4) [Win32]: always return the numeric IP address instead of doing any gethostbyaddr() etc lookups. 2007-10-29 Tor Lillqvist * include/linc/linc-connection.h * src/linc-connection.c * src/linc-server.c: Improve type safety: Change type of parameter of link_connection_ref() and link_connection_unref() from gpointer to LinkConnection*. ======================== 2.14.10 ========================== 2007-09-24 Jules Colding * include/linc/linc-protocol.h (enum): LinkNetIdType expanded with one more value. This value will request that ORBit2 is using a specific NIC when creating network visible objects. * src/linc-protocols.c (get_netid): Support more than 2 NICs. Implement the new LINK_NET_ID_IS_CUSTOM functionality. (link_set_local_hostname): Will set the requested NIC as the one that is chosen when an object is bound to an interface. 2007-09-22 Jules Colding * src/linc-connection.c (link_connection_finalize): Remove g_assert() on the non-presence of cnx in cnx_list. The cnx might not yet have gone. ======================== ORBit2-2.14.9 ==================== 2007-08-14 Jules Colding * src/linc-connection.c (link_connection_init): Initialize new data member in connection struct * include/linc/linc-connection.h (struct): Add void member to hold a GIOPThread* 2007-08-07 Tor Lillqvist * src/linc-connection.c (link_connection_from_fd_T): Ifdef AF_INET6. (#464094, Andreas Köhler) 2007-07-05 Jules Colding * src/linc-connection.c (link_connection_try_reconnect): Added LINK_TIMEOUT to valid reconnect states. 2007-06-19 Jules Colding * src/linc-connection.c (link_connection_init): Initialize timeout members in the LinkConnection structure. (link_set_timeout): New function to set the timeout value. 2007-06-18 Jules Colding * src/linc-connection.c (link_connection_from_fd_T): Initiate timeout members of the link connection iff: 1) The connection is IPv4 or IPv6 2) It is not a oneway 3) The timeout parameter is non-zero * include/linc/linc-connection.h (struct): 1) timeout mutex 2) timeout value in milliseconds 3) timeout status Furthermore declare link_set_timeout() ========================== ORBit2-2.14.8 ======================== 2007-02-27 Kjartan Maraas * src/linc-connection.c: (link_connection_get_type): * src/linc-server.c: (link_server_get_type): * test/test-linc.c: (test_get_broken_cnx_type), (test_get_blocking_cnx_type): Remove unneeded trailing commas. ========================== ORBit2-2.14.7 ======================== ========================== ORBit2-2.14.6 ======================== 2007-01-23 Kjartan Maraas * src/Makefile.am: Remove unneeded -version-info flag. Patch from dmacks at netspace org. Closes bug #399309. ========================== ORBit2-2.14.5 ======================== 2006-12-04 Jules Colding * src/linc.c (link_wait): Do not wait forever for the link condition to get signaled. 2006-11-22 Kjartan Maraas * src/Makefile.am: Remove SSL_LIBS and SSL_CFLAGS. * test/Makefile.am: Same here. This makes --enable-http work. 2006-09-09 Jules Colding * src/linc-connection.c (link_connection_do_initiate): Remove code that disabled any non-local IPv4 connection. 2006-06-23 Tor Lillqvist * src/linc-protocols.c (link_protocol_get_sockinfo_ipv4): In the Win32-only code snippet that verifies looking up the name works, don't bother looking up "localhost", as it will return a hostent containing the host name (and not "localhost"). Using the host name will then cause us to use a real interface anyway and not the loopback interface as the intention was. In the case of "localhost", actually even use the name "127.0.0.1" for extra safety. 2006-06-20 Tor Lillqvist * src/linc-compat.c (link_map_winsock_error_to_errno): Keep the return value from WSAGetLastError() in a variable so it's easier to look at in in the debugger... (link_pipe): Make the Win32 socket pair sockets non-inheritable, just for cleanliness, isn't actually required for it to work. 2006-06-19 Tor Lillqvist * src/linc-connection.c (link_connection_do_initiate) * src/linc-server.c (link_server_setup) (link_server_accept_connection): Make the sockets we create non-inheritable on Windows. In retrospect, it is rather embarrassing that it should take this long for me to notice how essential it is to do this... but the root cause of the ill effects was not immediately obvious. This corresponds to the FD_CLOEXEC that is used on Unix. Use LINK_CLOSE_SOCKET() instead of close(). 2006-06-16 Tor Lillqvist * src/linc-protocols.c (make_local_tmpdir): Don't do the utime() trick on Win32 here either, as we don't have any gstdio wrapper for utime() (so it won't work anyway if the username or temp folder path have non-ASCII characters), and the usefulness of it is questionable on Win32. But why is the utime() code snippet duplicated here and in giop_tmpdir_init()? 2006-06-02 Michael Meeks * src/linc.c (link_mainloop_handle_input, link_signal): use broadcast instead of signal - bug#341238 - many thanks to Jeff Cai for the fix. 2006-05-24 Michael Meeks * src/linc.c (link_mainloop_handle_input): fix race causing lockup of e-d-s at times. (link_exec_command): change magic char on pipe to 'L' to distinguish from glib's wakeup. 2006-02-03 Tor Lillqvist * src/linc-protocols.c [Win32] (get_netid): Guard against gethostbyname() failing. 2006-02-01 Tor Lillqvist * src/linc-protocols.c (get_netid): Use getaddrinfo() only if HAVE_GETADDRINFO, otherwise gethostbyname(). This means we won't use getaddrinfo() on Windows, as the configure test as currently written doesn't find it on Windows. (It is present only on XP anyway, so if we use it the ORBit2 DLL will not load on Windows 2000.) 2005-12-21 Jules Colding * src/linc-protocols.c (get_netid): Remove unnecessary casts (Bug #324686). The fix was created by Damien Carbery. 2005-11-11 Jens Granseuer * src/linc-protocols.c (get_netid): fix // comment. 2005-11-08 Anders Carlsson * src/linc-server.c (link_server_accept_connection): Listen to the "broken" signal on connections. (link_server_client_connection_broken): Remove the connection from the list and unref it. (link_server_dispose): Disconnect from the "broken" signal. 2005-10-13 Dmitry Maksyoma * src/linc-server.c (link_server_setup): fix potential socket leak, don't spin forever with a specified port. 2005-08-01 Jules Colding * src/linc-protocols.c (get_netid): Replace two silly ';;'s with ';'. 2005-07-28 Tor Lillqvist * src/linc-compat.h: Include also ws2tcpip.h on Win32. * src/linc-protocols.c: Drop unnecessary inclusion of . Don't include Unix-only headers on Win32. (get_netid): Add Win32 implementation of interface listing. (link_get_local_hostname): Drop the Win32-only code snippet that made sure looking up the hostname works. Will have to rethink whether it's necessary later, and add back inside the appropriate place in get_netid(). 2005-07-28 Jules Colding * src/linc-protocols.c: Change default use_local_host to LINK_NET_ID_IS_FQDN. (get_netid): Convert to C89-style. 2005-07-25 Jules Colding * src/linc-protocols.c (get_netid): New function get_netid(). This function will full a preallocated buffer with a string describing the name of the local host according to the value of use_local_host. link_get_local_hostname(): Modified to produce a resolvable hostname according to the value of use_local_host. This hostname will be used when composing IORs. use_local_host: Defaults now to LINK_NET_ID_IS_IPADDR fopr maximum resolvability. * include/linc/linc-protocol.h: Added new enum type "LinkNetIdType" to use as argument in link_use_local_hostname(). 2005-07-09 Sebastian Rittau * src/cleanup.c: (main): Use g_get_tmpdir() instead of hardcoding /tmp. 2005-05-10 Mark McLoughlin Use a 256k stack for the IO thread rather than the system default (10M on FC4). bug #303649 * src/linc.c: (link_exec_set_io_thread): Use a 256k stack. 2005-04-15 Tor Lillqvist * src/linc-private.h: On Win32, keep a pointer back to the embedding LinkWatch in the LinkUnixWatch. Also, keep a pointer to the last polled LinkUnixWatch in the LinkWatch. * src/linc-source.c (link_source_prepare): On Win32, if changing which of the two LinkUnixWatch GSources associated with a LinkWatch we are polling, we have to associate the corresponding event with the socket by calling WSAEventSelect(). (link_source_create_watch_for_watch): New helper function that calls link_source_create_watch() and then on Win32 associates a LinkWatch with the LinkUnixWatch(). (link_io_add_watch_fd, link_watch_move_io): Call the above. 2005-04-14 Arvind Samptur * include/linc/linc-protocol.h: Add link_get_local_hostname () * src/linc-private.h: Remove link_get_local_hostname () Patch approved by Michael Meeks 2005-04-13 Tor Lillqvist * src/linc.c * src/linc-protocols.c: Use gstdio wrappers for better localized filename support on Win32. * src/linc-compat.c (link_strerror): Use g_strerror() instead of strerror() to get UTF-8 messages. 2005-03-24 Tor Lillqvist * src/linc-source.c (link_source_check): One more iteration of the Win32 code. The code passes zero as the hEventObject parameter to WSAEnumNetworkEvents(). This meant that the event never got reset, and kept firing. Problem noticed with gconfd-2 and bonobo-activation-server, which kept busy-looping and consuming lots of CPU. Now we reset the event if it is set but WSAEnumNetworkEvents() has returned an empty network event mask. We then also WSAEventSelect() an empty network event mask, so that the next call to the prepare method will reselect for the appropriate network events. No need to handle FD_ACCEPT events specially any longer, the above takes care of it. * src/linc-debug.h (d_printf): Do a fflush(), too. * src/linc.c (link_init): Improve debug output facilities: If CONNECTION_DEBUG and CONNECTION_DEBUG_FLAG are #defined, check for environment variable LINK_PER_PROCESS_STDERR, and if set, redirect stderr to a per-process log file. 2005-03-11 Arvind Samptur * src/linc-server.c (link_server_setup): Fill the LinkServer proto with the info as soon as we find one. In case we cannot setup the connection the link_protocol_destroy_cnx () throws up a proto not found assertion which is not true. Patch reviewed by Micheal Meeks. 2005-03-10 Tor Lillqvist * src/linc-protocols.c (link_get_local_hostname): Make sure looking up the local hostname works on Win32. Try first dropping the domain suffix, and then using the NetBIOS name. (link_protocol_get_sockinfo_ipv4): Make sure looking up the hostname to be returned works. If not, use IP address instead. * test/test-linc.c (test_local): Ifdef out variable not used on Win32. 2005-02-23 Tor Lillqvist * src/linc-private.h * src/linc.c: Use consistent spelling, with a 'k', for the optional LINK_CONNECTION_DEBUG environment variable. * src/linc-source.c (link_source_check): If we get a FD_ACCEPT event on a socket, reset the selected event mask to zero, and reset the event. Otherwise the event keeps firing. Problem noticed in test-giop. 2005-02-18 Tor Lillqvist More hacking on linc2 for Windows. After the below changes, test_blocking() in test-linc finally works also on Windows. More importantly, the test programs in libbonobo also work. The semantics of the socket event functionality (WSAEventSelect(), WSAEnumNetworkEvents()) were less intuitive than I had thought. The event fires for writeability only once after connect() or accept(), and after that only once each time the socket becomes writeable again, after having been in the WSAEWOULDBLOCK state. The documentation for WSAEventSelect() does explain this, but it's very easy to miss. * src/linc-private.h (LinkUnixWatch): Add new flag for Win32: write_would_have_blocked, to be set to TRUE for watches when writing to the socket has errored with WSAEWOULDBLOCK. (LinkConnectionPrivate): Add counters of total number of bytes read and written if CONNECTION_DEBUG defined. * src/linc-source.c (link_source_check, link_source_dispatch): Move the call to WSAEnumNetworkEvents() to the check method from the dispatch method. Call WSAEnumNetworkEvents() always, as the WaitForMultipleObjects() in g_poll() fires just for one event at a time. If writes to the socket are not currently known to cause blocking, always set G_IO_OUT in revents. Don't reset the selected event mask each time. Reselect a new mask (in the prepare method) only if the condition has changed, as originally was the idea. The tests in ../test/everything still work. (link_win32_watch_set_write_wouldblock): New function, to set the write_would_have_blocked flag. * src/linc-connection.c: Initialize, increment and print the total counters if CONNECTION_DEBUG. (write_data_T): Call link_win32_watch_set_write_wouldblock(). * src/linc-debug.h: Enable making the debugging printout selectable at run-time through an environment variable. By default debugging printout code not compiled in, though. * test/test-linc.c: Do run test_blocking() also on Windows. 2005-02-13 Arvind Samptur * include/linc/linc-protocol.h: Add link_use_local_hostname () * src/linc-protocols.c (link_use_local_hostname): Set the global use_local_host. (link_get_local_hostname): Return "localhost" if use_local_host is set. Patch reviewed by Michael Meeks 2005-02-07 Tor Lillqvist * src/linc-debug.h: Don't define CONNECTION_DEBUG on Win32, done with the heavy debugging for now. * src/linc-source.c (link_source_dispatch): Unselect socket events, so that we have to re-select them with WSAEventSelect() in link_source_prepare(). Don't know why, but this prevents the test in ../test/everything from hanging after the async tests. 2005-02-02 Hans Petter Jansson * src/linc-compat.h: Include before the optional stuff. Some platforms don't pull it in automatically when needed. 2005-01-28 Tor Lillqvist * src/linc-compat.c: Rename link_socketpair() to link_pipe(), and make it cross-platform, just encapsulating pipe() on Unix. * src/linc.c: Change accordingly. * src/linc/linc-compat.h * include/linc/linc.h: Move declarations of link_map_winsock_error_to_errno() and link_pipe() to linc.h, as they are used also in GIOP. 2005-01-27 Tor Lillqvist * src/linc-compat.h: Include if that's where utime.h is. * src/linc-private.h (LinxUnixWatch): On Win32, the GPollFD::fd is actually a HANDLE, so keep also the original SOCKET around, and the desired socket event mask. (LINK_TEMP_FAILURE_RETRY): Split into separate macros for retrying "normal" system call API and socket API. They're different on Win32. (LINK_CLOSE_SOCKET): New macro. On Win32 uses closesocket(). * src/*.c: Adapt to above changes. Include linc-compat.h. Add more d_printf() debugging output (which normally expands to nothing). Add WinSock code. Bypass Unix-only stuff on Win32. * src/linc-debug.h: Always define CONNECTION_DEBUG on Win32 (for now while working on Win32 port). * src/linc-protocols.c: Use LINK_PROTOCOL_NEEDS_BIND for IPv4 on Win32. * src/linc-source.c: The core machinery for interfacing to the GLib main loop on Win32 is here. (link_source_prepare): Call WSAEventSelect() if the event mask (i.e., condition) has changed. (link_source_dispatch): Call WSAEnumNetworkEvents() to find out what socket event actually fired. (link_source_create_watch): Create an event to poll on in the GLib main loop. Store that in the GPollFD::fd. (link_watch_unlisten): Close the events. * src/linc.c: On Win32, instead of a pipe, use a connected TCP socket pair as the wakeup pipe. (link_init): Start WinSock. * test/test-linc.c (init_tmp): Use g_build_filename(). (create_server, create_client): On Win32 use IPv4 not UNIX sockets. (test_broken): Only if HAVE_SYS_WAIT_H. (knobble_watch): Don't use a pointer before asserting it's non-NULL. Don't g_assert() an expression with side-effects, g_assert expands to empty when compiled with G_DISABLE_ASSERT. (test_local): Don't test UNIX sockets on Win32. (test_blocking, main): For some reason the "blocking" test doesn't work on Win32, bypass for now. 2005-01-26 Gustavo J. A. M. Carneiro * src/linc-protocols.c: Add missing #include . 2005-01-26 Tor Lillqvist * include/linc/linc-connection.h * include/linc/linc-protocol.h: Restructure includes for Win32. * src/linc-compat.c: New file, Win32 portability functions. * src/linc-compat.h: Win32 additions, restructuring. * src/Makefile.am (bin_PROGRAMS): Don't build linc-cleanup-sockets on Win32, where there are no Unix domain sockets to clean up. Add linc-compat.c 2004-09-27 Michael Meeks * src/linc-connection.c (link_connection_try_reconnect): actually unset inhibit reconnect having emitted callbacks. 2004-09-16 Michael Meeks * src/linc-connection.c (dispatch_callbacks_drop_lock): split out. (link_connection_state_changed_T_R): upd. (link_connection_try_reconnect): dispatch callbacks immediately if we own the default mainloop, so we don't deadlock vs. the idle handler. 2004-05-26 Padraig O'Briain * src/linc-private.c (LINC_TEMP_FAILURE_RETRY): Change macro to not use __extension__ which does not build on Solaris when not using gcc. * src/linc-connection.c (linc_connection_do_initiiate, link_server_accept_connection, write_data_T): Update because of change to macro LINC_TEMP_FAILURE_RETRY. * src/linc-server.c (link_server_accept_connection): Update because of change to macro LINC_TEMP_FAILURE_RETRY. Fixes bug #143129. 2004-05-21 Frank Rehberger * src/linc-private.h (LINC_TEMP_FAILURE_RETRY): macro retries IO operation in case of EINTR IO-error. * src/linc-connection.c (link_connection_do_initiate, link_server_accept_connection): wrap IO read/write operations with LINC_TEMP_FAILURE_RETRY 2004-03-04 Michael Meeks * Version 2.10.0 2004-02-05 Michael Meeks * src/linc-connection.c (link_connections_close): fix - do dispose loop, don't unref things we don't own. (link_connection_finalize): add debug assertion. (link_connection_from_fd_T): dont' re-add the cnx to the list when re-trying the connect. 2004-02-04 Michael Meeks * Version 2.9.7 2004-02-02 Michael Meeks * src/linc-private.h: include linc-debug.h here, after the glib include, instead of all elsewhere. 2004-01-14 The Written Word * src/linc-debug.h: don't assume vararg macros. * src/linc.c: include config.h 2003-12-10 Michael Meeks * src/linc.c (link_set_io_thread): fix warning. 2003-12-08 Michael Meeks * src/linc-connection.c (link_connection_exec_cnx_unref): do yet more locking. 2003-11-14 Padraig O'Briain * linc2/src/linc-server.c (link_server_handle_io): Add comment about change of g_error to g_warning for bug #126209. 2003-11-13 Michael Meeks * Version 2.9.1 2003-11-11 Justin Schoeman * linc2/src/linc.c (link_set_io_thread): Fix command type for LINK_COMMAND_SET_IO_THREAD to use synchronous command structure. * linc2/src/linc-connection.c (link_connection_exec_cnx_unref) (link_connection_unref_unlock), linc2/src/linc-private.h, linc2/src/linc.c (cmd_is_sync) (link_dispatch_command): Move tail_unref of connection to the I/O thread to remove some shutdown races. 2003-10-24 Michael Meeks * src/linc.c (link_set_io_thread): don't allocate the cmd, for the synchronous command - just use the stack; thanks to Sebastian Rittau. 2003-10-10 Michael Meeks * src/linc-connection.c (link_connections_close): implement, and warn less. * src/linc.c (link_io_thread_fn): close connections on IO thread exit. 2003-10-09 Michael Meeks * src/linc.c (link_set_io_thread): only spew warning with debug enabled. 2003-08-22 Michael Meeks * src/cleanup.c (read_sockets): cope with opendir failure: from Debian patch. 2003-08-12 Michael Meeks * src/linc-source.c: staticize linc_source_watch_funcs. 2003-08-11 Michael Meeks * Version 2.7.6 2003-07-30 Michael Meeks * src/linc-protocols.c (link_protocol_get_sockinfo_irda) (link_protocol_get_sockaddr_irda): bin. (irda_getnameinfo, irda_getaddrinfo, irda_find_device): bin. 2003-07-29 Michael Meeks * src/linc.c (link_mutex_is_locked): substantially disable it except for GLIBC systems that have sensible pthreads impls. 2003-07-15 Michael Meeks * src/linc-connection.c (queue_free): re-order to fix warnings - thanks to Damien Carbery. 2003-07-15 Michael Meeks * Version 2.7.3 2003-07-14 Michael Meeks * src/linc-connection.c (link_connection_state_changed_T_R): free the write queue on disconnect. 2003-07-11 Michael Meeks * src/linc-connection.c (link_connection_wait_connected_T): split (link_connection_wait_connected): from here. (link_connection_try_reconnect): impl. (link_connection_from_fd_T): free previous values. (link_connection_broken_idle): unset inhibit_reconnect. (link_connection_state_changed_T_R): set inhibit_reconnect. 2003-07-10 George Lebl * src/linc-connection.c (link_connection_remove_broken_cb): fix leak. 2003-07-09 Michael Meeks * test/test-linc.c (test_connected): impl. * src/linc-connection.c (link_connection_wait_connected): use link_wait, and work for threading cases. * src/linc.c (link_wait, link_signal): impl. 2003-07-08 Michael Meeks * src/linc.c (link_set_io_thread): move set of (link_exec_set_io_thread): is_io_in_thread to here - so we can't race elsewhere. 2003-06-29 Dave Camp * src/linc-connection.c (link_connection_broken_idle): Pass bc->user_data to the callback rather than l->data. 2003-06-28 Dave Camp * src/linc-connection.c (link_connection_remove_broken_cb): Fixed the g_slist_delete_link() call. 2003-06-24 Michael Meeks * src/linc-connection.c (link_connection_add_broken_cb, link_connection_remove_broken_cb): impl. so we can emit 'broken' at idle. (link_connection_broken_idle): impl. (link_connection_finalize): upd. (link_connection_state_changed_T_R): upd. 2003-06-19 Gustavo J. A. M. Carneiro * include/linc/linc-config.h: Removed this file; it is generated from linc-config.h.in. 2003-06-09 Michael Meeks * src/linc-connection.c (link_connection_class_state_changed): fold this into (link_connection_state_changed_T): here, so we can call the sub-classed impl. without the lock held. (link_connection_class_init): upd. (link_connection_state_changed_T_R): rename & drop lock. 2003-06-04 Michael Meeks * src/linc-connection.c (link_connection_initiate): fix a truly stupid list traversal bug. 2003-06-04 Michael Meeks * src/linc-connection.c (link_connection_exec_set_condition): only take lock if not immediate. (link_connection_unref_T_): impl. (link_connection_exec_set_condition): use it in the immediate case. (link_connection_unref_unlock): split out from (link_connection_unref): here, and use all over. * src/linc.c (link_dispatch_command): add / propagate the immediate flag. * src/linc-source.c (link_io_add_watch_fd): always add to the main_source in non thread_io mode. (link_watch_unlisten): beef up. * src/linc-protocols.c, * test/test-linc.c: fix Linc->Link sanfu's - autotools dependency tracking gets progressively more wonderful. 2003-06-03 Michael Meeks * src/*.[ch]: update to get_thread_safe. * src/linc.c (link_get_threaded): bin it. (link_thread_io, link_thread_safe): replace with these. (link_mutex_new): bin link_mutex_new_called etc. (link_main_idle_add): bin - unused. (link_main_get_loop): bin it. * src/linc-connection.c (queue_flattened_T_R): only update the poll if we didn't have a queue already; remove assert. 2003-06-03 Michael Meeks * src/linc-source.c (link_watch_unlisten): split (link_io_remove_watch): from here. (link_watch_move_io): impl. * src/linc.c (linc_exec_set_io_thread): call the hooks. * src/linc-connection.c (link_connections_move_io_T): impl. * src/linc-server.c: s/cnx/srv/ for servers. (link_server_dispose, link_server_setup): manage server_list. (link_servers_move_io_T): impl. * src/linc-connection.c (link_connection_initiate_list): check was_initiated. Track all connections on cnx_list. (link_connection_from_fd_T): prepend to list here. (link_connection_initiate): and not here. 2003-06-03 Michael Meeks * src/linc-server.c (link_server_accept_connection): upd. * src/linc-connection.c (link_connection_initiate): internalize and rename to (link_connection_do_initiate). (link_connection_initiate): rename from initiate_list. * src/linc.c (link_init): upd. (link_lock, link_unlock): face reality - a global lock for everything. * src/linc-connection.c (_link_connection_thread_init): bin it. * src/linc.c (cmd_is_sync): impl. (link_exec_command): impl. sync methods. (link_init): create condition. (linc_exec_set_io_thread): stub. (link_set_io_thread): stub. 2003-06-02 Michael Meeks * test/test-linc.c (verify_addr_is_loopback): don't fail with loopback reverselookup. * src/linc-source.c (link_io_add_watch): bin / privatize, all done by fd now. (link_io_remove_watch): privatize. * src/linc.c: bin deprecated bits. (link_set_threaded): bin. 2003-05-31 Michael Meeks * src/Makefile.am (noinst_LTLIBRARIES): don't install the library (doh). 2003-05-23 Michael Meeks * src/linc-connection.c: add _R suffix to methods, assuming a reference is held. (linc_connection_from_fd_T): split from. (linc_connection_from_fd): here. (linc_connection_initiate): use it. (linc_connection_class_init): don't create locks here (_linc_connection_thread_init): do them here. * src/linc.c (linc_init): use it. * src/linc.c (linc_object_unref, linc_object_ref), (linc_object_get_mutex): deprecated (linc_idle_unref, linc_fast_unref): bin. * src/linc-connection.c (linc_connection_unref) (linc_connection_ref): handle weak refs nicely. (linc_connection_initiate_list): impl. 2003-05-22 Michael Meeks * src/linc-connection.c (queue_signal_T): drop lock over the signal emission. (linc_connection_class_state_changed): ditto. (linc_connection_exec_set_condition): actually use the passed in I/O condition. (thanks AlexL) 2003-05-21 Michael Meeks * src/linc-connection.c (linc_connection_io_handler): drop the lock over the handle_input emission. (linc_connection_state_changed_T): split out from (linc_connection_state_changed): here & upd. Add a _T suffix to lots of methods that assume the lock is held. (linc_connection_exec_disconnect): clean. (linc_connection_read): take / release the cnx. lock. * src/linc.c (linc_in_io_thread): fix horrors. (linc_object_unref): use it instead of the same hack; thanks to Alex L. 2003-05-12 Gustavo J. A. M. Carneiro * MAINTAINERS: Declare myself as documentation maintainer. 2003-05-03 Michael Meeks * Version 1.1.1 2003-04-29 Michael Meeks * src/linc.c (linc_io_thread_fn): hold lock over wake fd shutdown. (linc_exec_command): if the pipe is shut, then just exec the command in-line (server shutdown condition). 2003-04-28 Gustavo J. A. M. Carneiro * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Added --enable-gtk-doc. * docs/tmpl/linc-config.sgml: Added this file. Document LINC_SSL_SUPPORT. * docs/linc-docs.sgml: Replace header with the docbook-4.1.2/xml one. Removed the "linc" chapter, so that the section entries become toplevel instead. Added the linc-config section. * docs/linc-sections.txt: Removed LINCProtocolInfo from section linc-types, since it is already present in section linc-protocol. Made the macro LINC_SSL_SUPPORT, in the linc-config section, appear. * autogen.sh: Source system's gnome-autogen.sh instead of doing our own checks. * docs/Makefile.am: Replaced the boilerplate gtk-doc makefile section with include $(top_srcdir)/gtk-doc.make. (MKDB_OPTIONS): Added --sgml-mode --output-format=xml. * configure.in: Replace the gtk-doc check with the macro GTK_DOC_CHECK. 2003-04-24 Michael Meeks * src/linc-connection.c (linc_connection_wait_connected): impl. (linc_connection_writev): use it here. (linc_connection_io_handler): handle the just connected => start flush queued writes case. 2003-04-21 Michael Meeks * src/linc.c (linc_exec_command): handle EINTR. (linc_exec_command): dispatch commands immediately if not in threading mode. (linc_mainloop_handle_input): split out (linc_dispatch_command): the dispatch. 2003-04-19 Michael Meeks * src/linc-connection.c (linc_connection_exec_disconnect) (queue_flattened, linc_connection_exec_set_condition): impl. * src/linc.c (linc_io_thread_fn, linc_init): move the I/O thread instantiation in here. (linc_shutdown, linc_exec_command): impl. (linc_mainloop_handle_input): mux. commands. * src/linc-connection.c (linc_connection_read), assert locked on read, re-factor exit. (linc_connection_flush_write_queue): bin locking. (linc_connection_class_init): bin crack-pot complex locking schemes, and go for a big global lock. (linc_connection_finalize): bin lock init/destroy. (linc_connection_flush_write_queue_cb): bin it. (linc_connection_disconnect): impl. * src/linc-server.c (linc_server_init, linc_server_handle_io) (linc_server_dispose): bin curious mutex; all happens in I/O thread anyway. * src/linc.c (linc_mutex_is_locked): impl. for debug. 2003-04-18 Michael Meeks * src/linc-connection.c (linc_connection_io_handler) (queue_signal): use linc_object_ref/unref. (linc_connection_get_status): impl. (linc_connection_flush_write_queue_cb): lock/unlock cnx. (linc_connection_state_changed): assert unlocked, and in main thread. (linc_connection_from_fd): hold the lock while operating. * src/linc-server.c (linc_server_dispose): ditto. 2003-04-16 Masahiro Sakai * configure.in: call AC_PROG_CC earlier. because AM_PROG_LIBTOOL needs it on some platforms. * configure.in: call AC_LIBTOOL_WIN32_DLL and add check for arpa/nameser.h and resolv.h. * src/Makefile.am: add -no-undefined to liblinc_la_LDFLAGS. * src/linc-protocols.c, src/linc-compat.h: make them work even if arpa/nameser.h and resolv.h are not available. * src/linc-protocols.c (make_local_tmpdir): disable permission checking on Cygwin. * linc-1.1.0/test/test-linc.c (init_tmp): use g_get_user_name() instead of g_getenv("USER"). 2003-04-15 Michael Meeks * src/linc-protocols.c (linc_protocol_get_sockinfo_ipv6): consistantly use GETNAMEINFO don't mix GETADDRINFO. 2003-04-13 Masahiro Sakai * src/linc-protocols.c (linc_protocol_get_sockaddr_unix): fix to include path's terminating '\0' into *saddr_len count. 2003-04-10 Michael Meeks * Thanks to mmokrejs@natur.cuni.cz for the excellent report. * src/linc-protocols.c (linc_protocol_is_local_ipv46): explicitely cast h_addr_list[n] to a guint8 * to please OSF/1. (in6_addr): break the Mac OS/X brain-damage hack-around, this needs to be specific to Mac only - it was breaking OSF/1. * src/linc-connection.c (write_data): cast iovec->iov_base to guchar * for OSF/1 True64 Unix. * src/linc-debug.h: bin bogus ';' on static inline d_printf fallback. 2003-04-03 Michael Meeks * src/linc-connection.c (linc_connection_flush_write_queue): fix dofus like write locking leak of mine. 2003-04-01 Michael Meeks * src/linc-connection.c (linc_connection_finalize): free write lock here and not in dispose. 2003-03-31 Michael Meeks * src/linc-connection.c (linc_connection_flush_write_queue_cb): only try to flush the write queue if we're not still connecting. * src/linc-compat.h: if we don't have UNIX_PATH_MAX it is 100. * src/linc-protocols.c (linc_protocol_get_sockaddr_unix): use LINC_UNIX_PATH_MAX, not 64 for the static buffer size 2003-03-29 Michael Meeks * src/linc-connection.c (linc_connection_writev) (linc_connection_init, linc_connection_io_handler) (linc_connection_dispose): use the write_lock mutex to protect the write_queue. (queue_signal): drop it over signal emission (clearly) (linc_connection_flush_write_queue): split out of (linc_connection_io_handler): here. 2003-03-25 Michael Meeks * Version 1.1.0 2003-03-18 Shailesh Mittal * configure.in: Added checks for getaddrinfo() and getnameinfo(). * src/linc-connection.c (linc_connection_initiate): Modified so now it falls back to IPv4 if IPv6 address is not there. * src/linc-protocols.c (linc_protocol_is_local_ipv46):It has been modified in such a fashion that it works for IPv6 addresses as well. gethostbyname doesn't produce right results on all systems. (linc_protocol_get_sockaddr_ipv6):Also modified to work with IPv6 addresses. (linc_protocol_get_sockinfo_ipv46):Signature changed. Added const char *host in place of struct hostent *host as the gethostbyname has been called twice for the same operation. (linc_protocol_get_sockinfo_ipv4):char *hname is passed in place of struct hostent to call for get_sockinfo_ipv46. (linc_protocol_get_sockinfo_ipv6):Modified to support IPv6 addresses and char * is passed to linc_protocol_is_local_ipv46 in place of struct hostent *. 2002-10-30 Michael Meeks * src/linc-source.c (linc_io_add_watch_fd): don't add a watch to the main thread if running in threaded mode. * src/linc.c (linc_get_threaded): impl. (linc_set_threaded): spew deprecated warnings. * docs/linc-decl-list.txt: don't mention linc_set_threaded. 2002-10-31 Michael Meeks * include/linc/linc-source.h: add. * include/linc/Makefile.am: add linc-source.h * src/linc-source.c (linc_source_set_condition): upd. prototype. (linc_source_create_watch): upd & expose. (linc_io_remove_watch): upd. (linc_watch_set_condition): upd. 2002-11-29 Michael Meeks * src/linc-source.c (linc_io_add_watch): don't add a main watch if threaded. (linc_io_remove_watch): don't destroy a NULL main_source. * src/linc.c (linc_object_unref): do an idle unref (in the linc mainloop) if we're threaded, and it's the last ref. (linc_fast_unref): split. (linc_idle_unref): impl. 2002-10-24 Michael Meeks * src/linc.c (linc_object_unref): handle the last ref sanely, so we don't deadlock doing subsequent unrefs. 2003-01-21 Michael Meeks * src/linc-server.c (linc_server_setup): setup the listening socket as non-blocking [!] (linc_server_handle_io): quite why we emit a signal in this case is rather beyond me, hopefully that code-path is somewhat tested. 2003-01-09 Michael Meeks * configure.in: bump version to 1.1.0 * Branch for gnome-2-2 2002-12-28 Michael Meeks * Version 0.7.1 2002-12-09 Michael Meeks * src/linc-protocols.c (linc_protocol_get_sockaddr_unix): finally - scuppered by my own undefined test in gcc ;-) 2002-12-09 Laurent Vivier * src/linc-connection.c (LINC_IOV_MAX): re-order mess of compatibility evilness to move glibc's UIO_MAXIOV down, since this is something else on AIX (which has IOV_MAX). 2002-11-21 Dan Mills * configure.in: fix two typoes: pango -> linc, and change spaces to a tab in the IFS assignment. 2002-11-21 Dan Mills * configure.in: fix gtk-doc version check. 2002-11-02 Michael Meeks * test/test-linc.c (test_broken_cnx_handle_input): disconnect on fatal error. 2002-10-24 Michael Meeks * src/linc.c (linc_object_unref): handle the last ref sanely, so we don't deadlock doing subsequent unrefs. 2002-10-18 Michael Meeks * Version 0.7.0 2002-10-14 Marcus Brinkmann * src/linc-protocols.c (linc_set_tmpdir), (linc_protocol_get_sockaddr_unix), (linc_get_tmpdir): use dynamic allocation for linc_tmpdir to avoid PATH_MAX issues. 2002-09-24 Michael Meeks * configure.in: bump to 0.7.0 - odd, and bigger. * src/linc-connection.c (linc_connection_read): don't be daft, don't emit a signal on fatal IO error at 0 read EOF, or we'll get into locking hell elsewhere. 2002-08-23 Elliot Lee * src/linc-protocols.c (linc_protocol_get_sockaddr_ipv4): Don't turn on IPv6 name resolution when we are trying to resolve an IPv4 host name - instead, turn it off. Also try to make use of all addresses that gethostbyname returns, not just the first. (Fixes a bug with connecting to a host that has both IPv6 and IPv4 addresses.) 2002-08-23 Michael Meeks * Version 0.5.3 2002-08-18 Havoc Pennington * autogen.sh: hardcode aclocal-1.4/automake-1.4 so that users with both automake 1.6 and 1.4 installed get the right automake. Means compilation from CVS will now require the latest automake 1.4 release, or manually creating symlinks called "automake-1.4" and "aclocal-1.4" 2002-08-05 Laurent Vivier * include/linc/linc-connection.h: sanitize remote_info to gchar * 2002-08-05 Michael Meeks * Version 0.5.2 2002-07-31 jacob berkman * src/linc-connection.c (LINC_IOV_MAX): bump to 1024 on os x, as the macros isn't defined unless we are defining KERNEL, which we aren't 2002-07-31 Michael Meeks * test/test-linc.c (test_hosts_lookup): regression test. (verify_addr_is_loopback): split out. * configure.in: add inet_pton check. * src/linc-protocols.c (linc_protocol_get_sockaddr_ipv4): do a dotted quad type lookup first. (linc_protocol_get_sockaddr_ipv6): add inet_pton - raw IPv6 addr translation * src/linc-compat.h (INADDR_NONE): for broken systems. 2002-07-25 Yanko Kaneti * test/test-linc.c: include "linc-compat.h" for ehm.. compatibilty. 2002-07-24 Michael Meeks * Version 0.5.1 2002-06-19 Michael Meeks * test/test-linc.c (test_local_ipv4): upd. (test_hosts_lookup, test_host): impl * src/linc-protocols.c (linc_get_local_hostname): rename from get_local_hostname & make module public. * src/linc-server.c (linc_server_setup): upd. to use it. * src/linc-connection.c (linc_connection_initiate, linc_close_fd): handle EINTR on close. * src/linc-protocols.c (irda_find_device), (linc_protocol_destroy_addr), (linc_protocol_destroy_cnx): ditto. * src/linc-server.c (linc_server_dispose), (linc_server_accept_connection): ditto. * src/linc-protocols.c (irda_getaddrinfo): use g_strncpy not strcpy. 2002-06-18 Michael Meeks * test/test-linc.c (test_local_ipv4): beef up & (test_local_ipv6): split out of (test_local): here. * src/linc-protocols.c (linc_protocol_get_sockaddr_ipv4): upd. (ipv4_addr_from_addr): impl. (LINC_RESOLV_CLEAR_IPV6): kill - horrible, vile, out of spec. hack. (linc_protocol_get_sockinfo_ipv46): upd. (linc_protocol_is_local_ipv46): re-re-write. 2002-06-17 Michael Meeks * src/linc-protocols.c (linc_protocol_get_sockaddr_unix): beef up the length of the linc socket name slightly. (linc_protocol_is_local_ipv46): fix, so it works. (cleanup_sweep): remove. (linc_protocol_get_sockaddr_unix): hack cleanup out of here. 2002-06-12 Michael Meeks * configure.in: bump version to 0.5.1 * src/linc-connection.c (linc_connection_read): add paranoid assertion. 2002-06-12 Michael Meeks * src/linc-protocols.c (linc_get_tmpdir): implement new API in accordance with release team approval for use in bonobo-activation, for it's locking / IOR exchange mechanism. * src/linc-connection.c (linc_connection_writev): split out (linc_connection_should_block): this. 2002-06-06 James M. Cape * include/linc/linc-connection.h (LINC_CONNECTION_CLASS): fix typo in macro #84352 2002-05-27 Michael Meeks * Version 0.5.0 2002-05-24 Michael Meeks * src/linc.c (linc_init): do a plain g_type_init without adding the debug_flags, they're not helping us enough for the pain. 2002-05-21 Michael Meeks * src/cleanup.c: make it work for the simple cases for now. 2002-05-21 Michael Meeks * src/Makefile.am: add linc-cleanup-sockets. * src/cleanup.c: add. * src/linc-connection.c (linc_connection_writev): make status an int, so we return the enum more pleasantly. 2002-05-20 Michael Meeks * Version 0.1.22 2002-05-17 Jacob Berkman * src/linc-protocols.c: check for RES_USE_INET6 for OS/X. define in6addr_any for broken Mac OS/X's. 2002-05-09 Michael Meeks * src/linc-protocols.c: fix 'extern' static linc_protocols bug #80955 - thanks Jean-Pierre Dion 2002-04-18 Michael Meeks * src/Makefile.am: add G_DISABLE_DEPRECATED 2002-04-15 Michael Meeks * Version 0.1.21 2002-04-15 Michael Meeks * src/linc-private.h: fix prototypes, s/socklen_t/LincSockLen/ 2002-04-11 Michael Meeks * test/Makefile.am (test_linc_LDADD): add various libs. 2002-04-10 Michael Meeks * src/*, * docs/*: update 2002-04-09 Michael Meeks * src/linc-private.h: hoist SSL includes, (thanks to Colin Campbell). 2002-04-08 Michael Meeks * src/linc-protocols.[ch], * src/linc-server.c (linc_server_setup): use LincSockLen instead of socklen_t so that we can build on systems without it, (thanks to Garth Pearce). * src/linc-compat.h: hide the evil compat mess into here. * src/linc-server.c: include linc-hacks.h * test/test-linc.c (test_blocking_cnx_handle_input), (test_blocking_cnx_handle_input): use guint32 not glong. * configure.in: use --with-openssl #77962 2002-04-08 Michael Meeks * src/linc-protocols.c (cleanup_sweep): disable, it seems that this is a source of evil lockups; really we need to do this in a non-blocking way, and idly unlink things that look bad. 2002-04-02 Michael Meeks * src/linc-protocols.c (cleanup_sweep): impl to solve the leftover unix domain socket problem. (linc_protocol_get_sockaddr_unix): do the sweep. 2002-03-21 Michael Meeks * Version 0.1.20 2002-03-21 Michael Meeks * src/linc-server.c (linc_server_handle_io): fix warning spew. * src/linc-protocols.c (linc_protocol_destroy_addr): check family for AF_UNIX. 2002-03-20 Gregory Leblanc * configure.in: Adding missing AC_SUBST * linc.spec.in: rewrite 2002-03-20 Michael Meeks * src/linc-protocols.c (linc_protocol_destroy_cnx): impl. (linc_protocol_destroy_saddr): impl with nasty hacks for UDS. * src/linc-server.c (linc_server_dispose): use it. (linc_server_setup): on error unlink the UDS & fix fd leak. 2002-03-20 Michael Meeks * src/linc-server.c (linc_server_accept_connection): always initialize the connection - thanks again Havoc. * src/linc-connection.c (linc_connection_initiate): fix fd leak - thanks Havoc. 2002-03-04 Mark McLoughlin * configure.in: Version 0.1.19 2002-02-26 Michael Meeks * src/linc-connection.c (linc_connection_class_state_changed): only emit 'broken' when the state actually changes - ie. once. 2002-02-17 Michael Meeks * src/linc-server.c (linc_server_accept_connection): close the fd in case linc_connection_from_fd might fail some day. 2002-02-11 Mark McLoughlin * configure.in: Version 0.1.18 2002-02-11 Michael Meeks * configure.in: update OpenSSL check, and default to no OpenSSL checking - OpenSSL has a pants license, do not use it. 2002-02-11 Mark McLoughlin * configure.in: Version 0.1.17 2002-02-06 Michael Meeks * src/linc-protocols.c: define NI_MAXHOST to MAXHOSTNAMELEN if we just can't find it, include sys/param.h explicitely for that, define NI_MAXSERV to 64 in case we can't get that either. 2002-02-05 Sebastian Wilhelmi * src/linc-connection.c (write_data): Do not use WRITEV_IOVEC_LIMIT as the maximal iovec count, but determine it by some architecture dependent preprocessor constants. This prevents using the fallback implementation of writev. (if the count is too big, the kernel returns an error and libc might provide a fallback by alloca'ing the necessary mem, copying the iovec's content there and writing that out, which in turn might produce a segmentation fault for lots of data on a small stacks, like in multithreaded programs) * configure.in, acconfig.h: Removed the test for WRITEV_IOVEC_LIMIT form configure.in and WRITEV_IOVEC_LIMIT from acconfig.h. 2002-01-28 Mark McLoughlin * configure.in: Version 0.1.16 2002-01-21 Michael Meeks * src/linc-connection.c (write_data): don't signal and return the no. of bytes written. (linc_connection_writev): map to the return enum. (linc_connection_io_handler): move the queue signal here after we've updated the queue list. (write_data): stop running over the end of the array. 2002-01-18 Mark McLoughlin * src/linc-connection.c: (linc_connection_read): disconnect on receipt of EOF. * test/test-linc.c: (broken_cb), (test_server_create_connection), (create_client), (test_broken_cnx_handle_input), (test_broken_cnx_class_init), (test_get_broken_cnx_type), (test_broken), (test_blocking_cnx_handle_input), (test_blocking_cnx_class_init), (test_get_blocking_cnx_type), (test_blocking): re-jig the 'broken' test to test this code path. 2002-01-17 Michael Meeks * Version 0.1.15 * src/linc-protocols.c: remove debug. * Version 0.1.14 2002-01-17 Michael Meeks * configure.in: bump version to 0.1.14 for ORBit2 dependency / build reasons. * test/test-linc.c (test_protos): impl. (main): call it. 2002-01-16 Michael Meeks * src/linc-protocols.c (get_local_hostname): impl. so we can call it lots. (linc_protocol_get_sockinfo_ipv46): upd. (linc_protocol_get_sockinfo_unix): upd. (linc_protocol_is_local): impl. (linc_protocol_unix_is_local): impl. (linc_protocol_is_local_ipv46): impl. * src/linc-server.c (linc_server_accept_connection): check for remote connections - if in local only mode, using new is_local API. * include/linc/linc-protocol.h: add is_local. * include/linc/linc-types.h: add local only flag. 2002-01-17 Laszlo Peter * src/linc-connection.c (write_data): fix writev loop conditions when nvecs > WRITEV_IOVEC_LIMIT. 2002-01-10 Roland Juelich * src/linc-source.c (linc_io_add_watch): create our own LincWatch and pass the channel on to (linc_source_create_watch): here, store the channel for the callback. * src/linc-private.h: store GIOChannel in watch for use in source dispatcher. 2002-01-09 Michael Meeks * Version 0.1.13 2002-01-04 Dave Camp * src/linc-connection.c (linc_connection_class_init): Use the 'blocking' struct member for the blocking signal rather than the 'broken' member. 2002-01-04 Michael Meeks * src/linc-source.c (linc_io_remove_watch): clobber the source so we can't get any events on the source - even if glib does strange things. * src/linc-server.c (linc_server_dispose): re-order the watch removal process. * test/test-linc.c (test_blocking): release the write options. * src/linc-source.c (linc_source_finalize): impl. for debug. 2002-01-04 Michael Meeks * src/linc-connection.c (linc_connection_io_handler): allow handling both input and output in the same poll, to stop re-enterancy hell in the ORB. (queue_signal): special case a '0' byte max_buffer == no maximum, thanks to Dave Camp. 2002-01-03 Michael Meeks * Version 0.1.12 2002-01-03 Michael Meeks * src/linc-server.c (linc_server_setup): set FD_CLOEXEC - on the server's connection. 2002-01-03 Laszlo Peter * configure.in: add check for -lresolv 2001-12-31 Michael Meeks * src/linc-connection.c (linc_connection_io_handler): continue writing the queue if we didn't flush it all (doh). * test/test-linc.c (test_blocking), (blocking_cb, knobble_watch): impl. (test_server_create_connection): impl. (test_cnx_handle_input): impl. * src/linc-connection.c: (queue_signal): add ref. guards. & signal half full buffer as specified. * src/linc-server.c, src/linc-source.c, * src/linc-connection.c: move private struct defs into * src/linc-private.h: here. * test/Makefile.am: upd. include path. * test/test-linc.c (create_server), (create_client, test_broken): split out of (main). 2001-12-31 Michael Meeks * configure.in: bump version to 0.1.12 2001-12-28 Michael Meeks * src/linc-connection.c (calc_size): split out of (queue_flattened): here. * include/linc/linc-server.h, * include/linc/linc-connection.h (LINC_IS_CONNECTION): re-write macros, slower, but functional. * src/linc-connection.c (linc_connection_class_init): add the 'blocking' signal. (queue_signal): impl. (linc_connection_class_state_changed): free the queue on disconnect. (linc_connection_io_handler): do an unchecked class cast for speed. 2001-12-27 Michael Meeks * src/linc-connection.c (linc_connection_write): re-express in terms of writev - this should always have been so. (linc_connection_writev): fix iov_base arithemetic. merge in the SSL code from writev. (queue_flattened, queue_free): impl. (linc_connection_dispose): release the queue. (write_data): split this out of (linc_connection_writev): here & upd to handle queue. (linc_connection_connected): rename to (linc_connection_io_handler): this. (linc_source_add): upd. (queued_write_free): impl. (linc_connection_writev): don't belt round a non-blocking loop on EAGAIN even if we block. 2001-12-19 Michael Meeks * src/linc-server.c (linc_server_setup): upd. * src/linc-connection.c: kill wasteful GIOChannel. (linc_source_add): upd. (linc_connection_dispose): upd. (linc_connection_from_fd): upd. (linc_source_unwatch_out): kill. (linc_connection_connected): upd. (linc_connection_class_state_changed): upd. * src/linc-source.c: add. (linc_io_add_watch_fd): impl. (linc_watch_set_condition): impl. * src/linc.c (linc_io_add_watch): move this 2001-12-14 Roland Juelich * src/linc-server.c (linc_server_setup): if we are passed local_host_info, then use it instead. 2001-12-14 Michael Meeks * src/linc-protocols.c: include netdb.h if we're missing some NI_ defines. 2001-12-14 David Haverkamp * src/linc-protocols.c: include arpa/nameser.h before resolv.h for Solaris systems. 2001-12-11 Michael Meeks * Version 0.1.11 2001-12-08 Michael Meeks * src/linc-connection.c (linc_connection_write), (linc_connection_writev): handle the connection dying in mid-write, it seems EAGAIN gets fired to distinguish from a 0 length write == an error conditon (?) 2001-12-07 Michael Meeks * src/linc-connection.c (linc_connection_class_state_changed): change status early so we're consistant by the time 'broken' is emitted. 2001-12-06 Laszlo Peter * configure.in: Fix detection of WRITEV_IOVEC_LIMIT. 2001-12-05 Kristian Rietveld * src/linc-protocols.c: Move down resolve.h for better FreeBSD build. 2001-12-01 Theo van Klaveren * src/linc-protocols.c: Add to includes. Fixes build on FreeBSD. 2001-11-26 Michael Meeks * Version 0.1.10 2001-11-23 Michael Meeks * src/linc.c (linc_io_add_watch): fixup debugging. 2001-11-25 Havoc Pennington * src/Makefile.am (liblinc_la_SOURCES): add linc-debug.h 2001-11-22 Michael Meeks * src/linc.c (linc_io_add_watch): remove g_warning debug; doh. 2001-11-22 Michael Meeks * src/linc-connection.c (linc_source_unwatch_out): fix brainless not listening for input. * src/linc.c (linc_io_add_watch): beef up watch debug. * src/linc-connection.c (linc_source_add): impl. (linc_connection_class_state_changed), (linc_source_unwatch_out): use it. * src/linc-private.h (LINC_IN_CONDS, LINC_ERR_CONDS): move here. * src/linc-connection.c: update IO conditions. * src/linc-server.c (linc_server_handle_io): accept G_IO_PRI (linc_server_handle): kill, not used. (linc_server_setup): take note of G_IO_PRI * src/linc-protocols.c (linc_protocol_get_sockaddr_unix): make the UDS name more random; include the pid when debugging. * src/linc-connection.c: instrument more. * src/linc-server.c (linc_server_setup): convert to new debug framework. * src/linc-debug.h: add. 2001-11-22 Michael Meeks * src/linc-connection.c (linc_connection_connected): split out re-connect (linc_source_unwatch_out): this to clarify. add dprintf debugging throught. 2001-11-19 Michael Meeks * src/linc.c (linc_object_get_mutex): (linc_init): setup the lifecycle mutex. (linc_object_ref, linc_main_get_loop), (linc_object_unref): impl - sucky locking for now. * src/linc-server.c (linc_server_finalize), (linc_server_init): manage private structure. Privatize fd, mutex, tag, connections * src/linc-connection.c (linc_connection_finalize), (linc_connection_init): manage private structure. Privatize fd, tag, gioc, ssl. (linc_connection_initiate): upd. 2001-11-19 Michael Meeks * src/linc-server.c (linc_server_accept_connection): kill bogus get_sockinfo - we don't need this information whatsoever. * src/linc-connection.c (linc_connection_from_fd): this method has at least 2 totaly bogus arguments, host, service - the joys of frozen APIs. * src/linc-connection.c (linc_connection_dispose): split (linc_connection_finalize): impl. (linc_connection_class_init): upd. 2001-11-18 Miles Lane * include/linc/linc-types.h: replace include of gobject/gobject.h with glib-object.h, due to a change in gobject/gobject.h that forces an #error for all direct includes. This checkin was approved by Havoc. 2001-11-16 Michael Meeks * configure.in: bump ver to 0.1.9 * src/linc-server.c (linc_server_accept_connection): keep track of the connections we accept - hopefully if we re-use them, there won't be many. (linc_server_dispose): protect vs. double dispose & unref. connections. (linc_server_finalize): impl. (linc_server_class_init): hook up. * src/linc-connection.c (linc_source_remove): remove bogus self unref. (linc_connection_dispose), (linc_connection_class_state_changed): upd. 2001-11-15 Michael Meeks * src/linc-connection.c (linc_connection_from_fd): assign the protocol. * src/linc-server.c (linc_server_dispose): protect vs. double dispose's 2001-11-13 jacob berkman * docs/Makefile.am (dist-hook): depend on docs being built * docs/linc-sections.txt: * docs/linc.types: these files are needed to dist 2001-11-13 Michael Meeks * docs/Makefile.am (IGNORE_HFILES): add config.h, acconfig.h * src/linc-server.c (linc_server_handle): privatize, unused & redundant. * docs/tmpl/linc-types.sgml: document LINC_MUTEX_LOCK / UNLOCK. * src/linc-protocols.c (linc_set_tmpdir): fix docs. * src/linc.c (linc_io_add_watch, linc_io_remove_watch), (linc_main_iteration, linc_main_pending, linc_mutex_new), (linc_main_loop_run): document. 2001-11-13 Michael Meeks * docs/linc-sections.txt: remove config, acconfig, linc-config, linc-private sections. 2001-11-12 John Fleck * added docs/Makefile.am docs/linc-docs.sgml docs/tmpl/acconfig.sgml, linc-connection.sgml, linc-server.sgml, linc-unused.sgml, config.sgml, linc-private.sgml, linc.sgml, linc-config.sgml, linc-protocol.sgml, linc-types.sgml modified ./Makefile.am, configure.in add gtk-doc build system 2001-11-12 Michael Meeks * src/linc-server.c (linc_server_accept_connection): set O_NONBLOCK on connections we accept; also set FD_CLOEXEC - doh. 2001-11-12 Michael Meeks * src/linc-connection.c (linc_connection_read), (linc_connection_write, linc_connection_writev), catch and warn on EBADF. 2001-11-12 Michael Meeks * configure.in: bump version to 0.1.8 * src/linc-connection.c (linc_connection_read): set fatal error on 0 length reads, don't re-enter foolishly in various places, return bytes_read on EAGAIN, don't loop re-entering while waiting for connected. 2001-11-08 Michael Meeks * Version 0.1.7 2001-11-08 Michael Meeks * src/linc.c (linc_io_add_watch): setup sources as recursive sources - so we can recurse ! (linc_main_iteration, linc_io_remove_watch), (linc_io_add_watch): add conditional watch debugging. 2001-11-08 Michael Meeks * src/linc-connection.c (linc_connection_writev): remove 'register' optimization :-) fix SSL path, make the code legible, handle EINTR, don't skip partialy written iovecs in a totaly bogus way. (linc_connection_write): handle EINTR. (linc_connection_read): rename 'written' 'bytes_read' Document all methods. 2001-11-06 Michael Meeks * src/linc.c (linc_init): init with G_TYPE_DEBUG_OBJECTS. 2001-10-30 Mark McLoughlin * configure.in: version 0.1.6. 2001-10-29 Michael Meeks * configure.in: require glib >= 1.3.10 2001-10-26 Michael Meeks * src/linc.c (linc_mutex_new): flag that we have been called. (linc_set_threaded): add protection for people setting the threaded-ness late. 2001-10-24 Ross Golder * Makefile.am (EXTRA_DIST): Added spec file, and removed floating tab 2001-10-25 Michael Meeks * AUTHORS: update, * *.[ch]: Add copyright headers. 2001-10-24 Michael Meeks * src/linc-connection.c (linc_connection_class_init): fix ref counting on parent type. 2001-10-24 Michael Meeks * src/linc.c (linc_init): fix brainlessness. 2001-10-24 Michael Meeks * src/linc.c (linc_init): upd. (linc_set_threaded): impl. (linc_mutex_new): only return a mutex if linc_threaded is TRUE, _and_ g_thread_supported. 2001-10-18 Michael Meeks * src/linc-connection.c (linc_connection_connected): simplify flow, ignore handle_input's return value, always return TRUE, we remove ourself from both main contexts elsewhere. 2001-10-16 Mark McLoughlin * Makefile.am (EXTRA_DIST): kill linc-config.in, linc.pc.in, linc.spec and linc.spec.in. Add HACKING and MAINTAINERS. 2001-10-10 Abel Cheung * linc-config.in(cflags): move headers to subdir * linc.spec.in(%files): ditto, for spec file. 2001-10-09 Havoc Pennington * linc.pc.in (Cflags): headers in a subdir * include/linc/Makefile.am (lincincludedir): put headers in a subdir 2001-09-26 Mark McLoughlin * configure.in: add --enable-compile-warnings option. * src/Makefile.am: use $(WARN_CFLAGS) * src/linc-protocols.c (linc_protocol_get_sockinfo_ipv6): initialise host. include linc-private.h. 2001-09-25 Mark McLoughlin * Version 0.1.5. 2001-09-24 Mark McLoughlin * linc/configure.in: clean up libtool versioning. Use pkg-config to check for libs. Kill unused vprintf and alloca check. * linc.pc.in, linc.spec.in: update. * linc/src/Makefile.am: update and include libtool version-info. 2001-09-20 Mark McLoughlin Patch from Frank Belew . * src/linc-protocols.c (static_linc_protocols): don't use 'designated initializers' style of initialization. Allowed by C99, but Sun's Forte compiler does't allow it. 2001-09-20 Mark McLoughlin * src/linc-connection.c (linc_connection_real_state_changed): rename to... (linc_connection_class_state_changed): document and tidy. (linc_connection_from_fd): ditto. (linc_connection_initiate): ditto. (linc_connection_state_changed): ditto. (linc_connection_read): return 0 if passed 0 or if the connection has been closed. 2001-09-18 Jens Finke * linc.spec.in: New file. * Makefile.am (EXTRA_DIST): Added linc.spec and linc.spec.in. * configure.in (AC_OUTPUT): Create linc.spec. 2001-09-13 Michael Meeks * src/linc-protocols.c (linc_protocol_get_sockinfo_ipv46): use guint instead of in_port_t to fix the issue differently. * configure.in: remove bogus in_port_t define. 2001-09-12 Dirk-Jan C. Binnema * configure.in; compile fix: define in_port_t if it isn't 2001-09-11 Mark McLoughlin * src/linc-protocol.c: fix typo. 2001-09-11 Mark McLoughlin * include/linc/linc-protocol.h, src/linc-protocols.c (LINCProtocolGetAddrInfoFunc, LINCProtocolGetNameInfoFunc): killed. (LINCProtocolGetSockInfoFunc): added. (LINCProtocolInfo): added get_sockinfo. killed getaddrinfo and getnameinfo. (linc_getaddrinfo, linc_getnameinfo, sys_getaddrinfo, sys_getnameinfo): killed. (tcp_setup): renamed to linc_protocol_tcp_setup. (af_unix_destroy): renamed to linc_protocol_unix_destroy. (protocol_ents): renamed to static_linc_protocols. (linc_protocol_get_sockinfo_ipv46, linc_protocol_get_sockinfo_ipv4, linc_protocol_get_sockinfo_ipv6, linc_protocol_get_sockinfo_unix, linc_protocol_get_sockinfo_irda, linc_protocol_get_sockinfo): implemented. Finished documenting. NOTE: get_sockinfo_irda and get_sockaddr_irda are not working. * src/linc-private.h: added linc_protocol_get_sockinfo. * src/linc-server.c(linc_server_accept_connection): use get_sockinfo instead of getnameinfo. (linc_server_setup): ditto. * include/linc/linc-connection.h, src/linc-connection.c(linc_connection_from_fd): don't dup remote_host_info and remote_serv_info. 2001-09-10 Mark McLoughlin * linc/src/linc-protocols.c: (linc_protocol_get_sockaddr_ipv4): set resolver options. (linc_protocol_get_sockaddr_ipv6): impl. (linc_protocol_get_sockaddr_unix): kill silly saddr_len bug. (irda_getaddrinfo): use new IRDA_PREFIX_LEN define. Move protocol_ents definition to bottom and kill prototypes. Api-doc most functions. 2001-09-09 Michael Meeks * src/linc-server.c (linc_server_setup): remove bogus g_free (saddr) 2001-09-07 Mark McLoughlin * acconfig.h, configure.in: add check for sockaddr's sa_len member. * src/linc-protocols.c(linc_protocol_get_sockaddr, linc_protocol_get_sockaddr_ipv4, linc_protocol_get_sockaddr_ipv6, linc_protocol_get_sockaddr_unix, linc_protocol_get_sockaddr_irda): impl. get_sockaddr will replace getaddrinfo soon. getaddrinfo is a waste of time - we don't need most of the data it returns, and it is non-portable for unix sockets, ipv6 and irda. Indeed older unices don't even have an implementation for ipv4. *NOTE*: irda and ipv6 are not working with this yet. But I doubt anyone is actually using these... * src/linc-private.h: add linc_protocol_get_sockaddr. * src/linc-connection.c(linc_connection_initiate): use linc_protocol_get_sockaddr instead of linc_getaddrinfo. * src/linc-server.c(linc_server_setup): ditto. * include/linc/linc-types.h: moved LINCProtocolInfo here. * include/linc/linc-protocol.h (LINCProtocolInfo): added get_sockname. Impl typedefs for functions types. 2001-09-07 Mark McLoughlin * src/linc-protocols.c: Warning killers - include string.h and don't prototype IRDA functions if IRDA defines not available. 2001-08-31 Michael Meeks * src/linc-connection.c (ERR_CONDS): hack off G_IO_PRI (IN_CONDS): PRI|IN (linc_connection_connected), (linc_connection_real_state_changed): use it. 2001-08-27 Mark McLoughlin * linc.pc.in: require gobject and gthread. 2001-08-24 Mark McLoughlin * configure.in: remove unused --enable-linc-threadsafe option. Removed pthread.h check - we always want to link against gthread. 2001-08-23 Michael Meeks * Version 0.1.4 2001-08-21 Dirk-Jan C. Binnema * src/linc.c (main): ignore SIGPIPE, handle this here instead of in libbonobo 2001-08-20 Theo van Klaveren * include/linc/linc-protocol.h: Include to fix build on FreeBSD. 2001-08-18 Cody Russell * linc.pc.in: Added. * configure.in, Makefile.am: Build and install linc.pc 2001-08-18 Michael Meeks * configure.in: bump version to 0.1.3 * src/linc.c (linc_mutex_attrs): kill. (linc_init): kill pthread specific bits, take gboolean 'init_threads' (linc_mutex_new): impl. to hide conditional mess. * src/linc-server.c (linc_server_accept_connection): split out of (linc_server_handle_io): here & update locking. 2001-08-17 Michael Meeks * src/linc-server.c (linc_server_init): use g_thread stuff straight - no need for a recursive mutex - set to NULL if threads not initialized. * include/linc: homogenise header guard style, add G_BEGIN/END_DECLS * include/linc/linc-types.h: s/LINC_THREADSAFE/G_THREADS_ENABLED/ kill whacked out threading macro overload. (LINC_MUTEX_[UN]LOCK): don't inexplicably steal chunks of the O_ namespace. kill extreme strangeness with defining wierd system bits. * Revert Mark's patch. 2001-08-18 Mark McLoughlin * configure.in: added --enable-linc-threadsafe option. Defaults to yes. * include/linc/linc-config.h.in: added LINC_ENABLE_THREADSAFE def. * include/linc/linc-connection.h, include/linc/linc-server.h, include/linc/linc-server.h, include/linc/linc-types.h, include/linc/linc-threads.h, include/linc/linc.h: split out threaded stuff into linc-threads.h. Removed _GNU_SOURCE, _XOPEN_SOURCE and _REENTRANT defines. Cleaned up a little. * linc/include/linc/Makefile.am: added linc-threads.h. * src/Makefile.am: add -D_GNU_SOURCE for PTHREAD_MUTEX_RECURSIVE. 2001-08-16 Mark McLoughlin * configure.in: Cache ACLOCAL_FLAGS. 2001-08-16 Michael Meeks * configure.in: bump version to 0.1.2 * src/linc-connection.c (linc_connection_get_type): don't use the base_init - but the instance_init to set fd == -1 so we don't close (0), doh. (linc_connection_connected): update to call the handle_input virtual method on input. 2001-08-14 Michael Meeks * src/linc-protocols.c (irda_getaddrinfo): kill another heinous srand idiocy. 2001-08-13 Michael Meeks * src/linc-connection.c (linc_close_fd): split out. (linc_connection_dispose): use. (linc_connection_real_state_changed): ditto. 2001-08-13 Michael Meeks * src/linc-connection.c (linc_connection_init): impl, to init cnx->fd = -1. (linc_connection_get_type): upd. - thanks to Martin Baulig. 2001-08-10 Michael Meeks * src/linc-protocols.c (linc_set_tmpdir): kill gratuitous evil (make_local_tmpdir): copy from ORBit-stable. (linc_set_tmpdir): actualy ensure that we have a valid working directory. 2001-07-30 Michael Meeks * Version 0.1.1 2001-07-30 Michael Meeks * src/linc-connection.c (linc_connection_class_init): remove redundant static prototypes. (linc_connection_class_init): init 'broken' signal. (linc_connection_real_state_changed): emit the 'broken' signal. 2001-07-24 Michael Meeks * src/linc-connection.c (linc_connection_real_state_changed): make it unref the connection on disconnect ... 2001-07-18 Michael Meeks * src/linc-connection.c (linc_connection_writev): s/g_main_iteration/linc_main_iteration/. * src/linc.c (linc_main_iteration): impl. (linc_init): make the linc_loop run. (linc_main_pending): impl. (linc_main_loop_run): impl. * src/linc-server.c (linc_server_dispose): upd. (linc_server_setup): upd. (linc_server_get_type): re-order to kill redundant prototypes. * src/linc-connection.c (linc_source_remove): upd. (linc_connection_init): remove; redundant. (linc_connection_real_state_changed): upd. (linc_connection_connected): upd. * src/linc.c (linc_io_add_watch): impl. (linc_io_remove_watch): impl. * include/linc/linc-types.h: add LincWatch type. * src/*.c: s/g_io_add_watch/linc_io_add_watch/ 2001-07-16 Darin Adler * include/linc/linc-types.h: Fix order of includes to keep Linux happy -- the Solaris change let to a compile failure on Linux. * src/linc.c: (linc_init): Add a missing ifdef. 2001-07-16 Laszlo Peter * src/linc-protocols.c: set fakelen to 0 when fakehost is NULL to avoid core dump on Solaris. * include/linc/linc-types.h: include to keep Solaris happy. 2001-07-13 Darin Adler * configure.in: Remove duplicate macros, and fix one of the test invocations that was not using the x prefix technique correctly. 2001-07-13 Michael Meeks * src/linc-connection.c (linc_connection_initiate): add more error checking on fcntls. 2001-07-08 Seth Nickell * src/linc.c: (linc_init): Only call g_thread_init if the threading system hasn't already been activated. 2001-07-03 Michael Meeks * src/linc-protocols.c (linc_getaddrinfo): don't re-seed the random number generator with the time in seconds ! don't use "%d%d", rand (), rand () - it gains us nothing, add gettimeofday ^ instead. * src/linc-connection.c (linc_connection_dispose): s/shutdown/dispose. * src/linc.c (linc_init): fix g_type_init. 2001-07-02 Michael Meeks * src/linc-server.c (linc_server_setup): regenerate the UDS' name on EINVAL from bind. 2001-06-21 Martin Baulig * configure.in: Make this work if SSL is not installed. 2001-05-25 Michael Meeks * src/linc-connection.c (linc_source_remove): split from (linc_connection_shutdown): here, and release the self reference whilst watching. (linc_connection_real_state_changed): use linc_source_remove. (linc_connection_connected): hold a ref over the state_changed emissions. 2001-05-24 Michael Meeks * src/linc-connection.c (linc_connection_connected): unref the connection object on disconnection. * src/linc-server.c (linc_server_destroy): protect against multiple shutdowns, and rename to * src/linc-connection.c (linc_connection_destroy): protect against multiple shutdowns, and rename to (linc_connection_shutdown): this. (linc_connection_real_state_changed): add assertions on source removal. 2001-05-18 Michael Meeks * src/linc-connection.c (linc_connection_destroy): check the io channel is valid before the unref - happens in some error cases. 2001-05-18 Michael Meeks * src/linc-server.c (linc_server_class_init): actualy make the signal run. 2001-05-18 Michael Meeks * autogen.sh: update for libtool 1.4 * src/linc-connection.c (linc_connection_destroy): unref the IO channel on destroy - doh. 2000-10-27 Michael Meeks * src/linc-server.c (linc_server_get_type): type_register_static fix. * src/linc-connection.c (linc_connection_writev): use cnx->fd. (linc_connection_get_type): add '0' parameter for head glib. ORBit2-2.14.19/linc2/NEWS0000644000175000001440000000726511334247617011376 00000000000000Version 1.1.1 * much improved threading (Michael) * much improved docs (Gustavo Carneiro) * cygwin support (Masahiro Sakai) * Unix socket length fix (Masahiro) * OSF/1 True64 support (mmokrejs) Version 1.0.1 * fixes + nasty blocking accept call (Michael) Version 0.7.1 * fixes + don't use undefined arithmetic (Michael) + AIX IOV_MAX bits (Laurent Vivier) + build cleans / fixes (Dan Mills) + test disconnect on fatal error (Michael) + last linc object ref locking update (Michael) Version 0.7.0 * fixes + PATH_MAX for HP/UX (Marcus Brinkmann) + kill dodgy locking path on EOF (Michael) + IPv6 name resolution (Elliot) Version 0.5.3 * fixes + autoconf versioning (Havoc Pennington) + remote_info sanity (Laurent Vivier) Version 0.5.2 * fixes + MacOS X writev issue (Jacob Berkman) + allow IPv[46] numeric addrs (Michael) Version 0.5.1 * fixes + connection macro typo (James M. Cape) + horrible IPv6 mess (Michael) * featurelets (Michael) + linc_get_tmpdir for b-a-s + re-write IPv6 code + security audit for local only case Version 0.5.0 * fixes + add linc-cleanup-sockets to clean stale sockets from /tmp/orbit-$USER + g_type_init doesn't turn debug on Version 0.1.22 * fixes + port to OS/X (Jacob) + fix extern mis-use (Michael) Version 0.1.21 * fixes + kill socklen_t (Michael, Garth Pearce) + 64 bit test fixage (Michael) + fixup test linkage (Michael) + update docs (Michael) + fixup SSL build (Colin Cambell) Version 0.1.20 * fixes (Michael) + another fd leak + warning spew + UDS file leakage * new spec file (Gregory Leblanc) Version 0.1.19 * Only emit the 'broken' signal once (Michael) * Fix potential fd leak (Michael) Version 0.1.18 * default to not use OpenSSL (Michael) Version 0.1.17 * NI_MAXHOST not defined problem (Michael) * writev iovec limit handling re-write (Sebastien) Version 0.1.16 * 'broken' signal on Solaris fix (Mark) * writev queueing fixage (Michael) * regression tests improvements (Mark) Version 0.1.15 * writev loop fix (Laszlo Peter) * IO channel watch fixes (Roland Juelich) * local only connection feature (Michael) Version 0.1.13 * Bug fixes + blocking signal daftness (Dave Camp) + disconnection mahem (Dave, Michael) + more tests (Michael) + improve IO handling efficiency (Michael) Version 0.1.12 * Features (Michael) + fully non-blocking write mode, builtin queueing + configurable notification of buffer filling + IO code simplification + our own GSource: smaller and faster * Bug fixes + problem with missing FD_CLOEXEC & forking (Michael) + -lresolv check (Laszlo Peter) + use local host information sensibly (Roland Juelich) + portability fixage (David Haverkamp) Version 0.1.11 * Bug fixes + handle connection death in mid write (Michael) + setup state before emitting 'broken' (Michael) + fix IOVEC_LIMIT calculation (Laszlo Peter) + FreeBSD build fixes (Kristian Rietveld, Theo Van Klaveren Version 0.1.7 -> 0.1.10 * Featurelets (Michael) + API for thread safe object referencing + privatised all connection / server innards + nice internal debugging framework + servers track and clean child connections + method documentation (John Fleck, Michael) * Bug fixes (Michael) + handle EINPROGRESS on connect correctly + always use G_IO_PRI|G_IO_IN + make UDS name more random; with pid. + gobject updates (Miles Lane) + double dispose protection all over + set O_NONBLOCK on accepted connections + flag fatal errors on polled 0 length reads. + build fixage (Havoc, Jacob) Version 0.1.7 * Featurelets + Init glib with object debugging * Bug fixes + Make our GSource recursive (Michael) + Handle EINTR (Michael) ORBit2-2.14.19/linc2/COPYING0000644000175000001440000006131311334247617011724 00000000000000 GNU LIBRARY GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the library GPL. It is numbered 2 because it goes with version 2 of the ordinary GPL.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Library General Public License, applies to some specially designated Free Software Foundation software, and to any other libraries whose authors decide to use it. You can use it for your libraries, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library, or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link a program with the library, you must provide complete object files to the recipients so that they can relink them with the library, after making changes to the library and recompiling it. And you must show them these terms so they know their rights. Our method of protecting your rights has two steps: (1) copyright the library, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the library. Also, for each distributor's protection, we want to make certain that everyone understands that there is no warranty for this free library. If the library is modified by someone else and passed on, we want its recipients to know that what they have is not the original version, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that companies distributing free software will individually obtain patent licenses, thus in effect transforming the program into proprietary software. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License, which was designed for utility programs. This license, the GNU Library General Public License, applies to certain designated libraries. This license is quite different from the ordinary one; be sure to read it in full, and don't assume that anything in it is the same as in the ordinary license. The reason we have a separate public license for some libraries is that they blur the distinction we usually make between modifying or adding to a program and simply using it. Linking a program with a library, without changing the library, is in some sense simply using the library, and is analogous to running a utility program or application program. However, in a textual and legal sense, the linked executable is a combined work, a derivative of the original library, and the ordinary General Public License treats it as such. Because of this blurred distinction, using the ordinary General Public License for libraries did not effectively promote software sharing, because most developers did not use the libraries. We concluded that weaker conditions might promote sharing better. However, unrestricted linking of non-free programs would deprive the users of those programs of all benefit from the free status of the libraries themselves. This Library General Public License is intended to permit developers of non-free programs to use free libraries, while preserving your freedom as a user of such programs to change the free libraries that are incorporated in them. (We have not seen how to achieve this as regards changes in header files, but we have achieved it as regards changes in the actual functions of the Library.) The hope is that this will lead to faster development of free libraries. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, while the latter only works together with the library. Note that it is possible for a library to be covered by the ordinary General Public License rather than by this special one. GNU LIBRARY GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Library General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also compile or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. c) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. d) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Library General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! ORBit2-2.14.19/linc2/src/0000755000175000001440000000000011450334027011523 500000000000000ORBit2-2.14.19/linc2/src/linc-debug.h0000644000175000001440000000234411334247617013641 00000000000000#ifndef _LINK_DEBUG_H #define _LINK_DEBUG_H /* Enables debug printout for the socket / connection */ #undef CONNECTION_DEBUG /* Always turn on the possibility to get debug printout on Windows as * it is much more often needed there. */ #ifdef _WIN32 #define CONNECTION_DEBUG #endif /* If CONNECTION_DEBUG is defined, define this to make it selectable * at runtime by setting the LINK_CONNECTION_DEBUG env var. */ #define CONNECTION_DEBUG_FLAG #ifndef CONNECTION_DEBUG # ifdef G_HAVE_ISO_VARARGS # define d_printf(...) # elif defined(G_HAVE_GNUC_VARARGS) # define d_printf(args...) # else static inline void d_printf (const char *format, ...) { } # endif # define STATE_NAME(s) "" #else # include # define STATE_NAME(s) (((s) == LINK_CONNECTED) ? "Connected" : \ ((s) == LINK_CONNECTING) ? "Connecting" : \ ((s) == LINK_DISCONNECTED) ? "Disconnected" : \ ((s) == LINK_TIMEOUT) ? "Timeout" : \ "Invalid state") # ifdef CONNECTION_DEBUG_FLAG extern gboolean link_connection_debug_flag; # define d_printf(format...) (link_connection_debug_flag ? (fprintf (stderr, format), fflush (stderr)) : 0) # else # define d_printf(format...) fprintf (stderr, format) # endif #endif #endif /* _LINK_DEBUG_H */ ORBit2-2.14.19/linc2/src/Makefile.am0000644000175000001440000000142111334247617013506 00000000000000noinst_LTLIBRARIES=liblinc.la #lib_LTLIBRARIES=liblinc.la if OS_WIN32 else bin_PROGRAMS = linc-cleanup-sockets endif # -I$(top_builddir)/include # -I$(top_srcdir)/include INCLUDES = \ -I$(top_builddir)/linc2/include \ -I$(top_srcdir)/linc2/include \ $(LINC_CFLAGS) \ $(WARN_CFLAGS) \ -DG_DISABLE_DEPRECATED if OS_WIN32 else INCLUDES += -D_GNU_SOURCE endif liblinc_la_SOURCES = \ linc.c \ linc-connection.c \ linc-debug.h \ linc-compat.h \ linc-compat.c \ linc-private.h \ linc-protocols.c \ linc-server.c \ linc-source.c liblinc_la_LDFLAGS = \ $(LINC_LIBS) \ -no-undefined linc_cleanup_sockets_SOURCES = \ cleanup.c linc_cleanup_sockets_LDFLAGS = \ $(LINC_LIBS) ORBit2-2.14.19/linc2/src/linc-connection.c0000644000175000001440000011454411334247617014713 00000000000000/* * linc-connection.c: This file is part of the linc library. * * Authors: * Elliot Lee (sopwith@redhat.com) * Michael Meeks (michael@ximian.com) * Mark McLouglin (mark@skynet.ie) & others * * Copyright 2001, Red Hat, Inc., Ximian, Inc., * Sun Microsystems, Inc. */ #include #include #include #include #include #include #include #ifdef LINK_SSL_SUPPORT # include #endif #include "linc-private.h" #include "linc-compat.h" #include #include static GObjectClass *parent_class = NULL; static guint _link_timeout = 0; enum { BROKEN, BLOCKING, LAST_SIGNAL }; static guint signals [LAST_SIGNAL]; static GList *cnx_list = NULL; #define CNX_LOCK(cnx) G_STMT_START { link_lock(); } G_STMT_END #define CNX_UNLOCK(cnx) G_STMT_START { link_unlock(); } G_STMT_END #define CNX_LIST_LOCK() CNX_LOCK(0); /* for now */ #define CNX_LIST_UNLOCK() CNX_UNLOCK(0); /* for now */ #define CNX_AND_LIST_LOCK(cnx) CNX_LOCK(cnx); /* for now */ #define CNX_AND_LIST_UNLOCK(cnx) CNX_UNLOCK(cnx); /* for now */ #define CNX_IS_LOCKED(cnx) link_is_locked() static gboolean link_connection_io_handler (GIOChannel *gioc, GIOCondition condition, gpointer data); static inline LinkConnection* link_connection_ref_T (LinkConnection *cnx) { return LINK_CONNECTION (g_object_ref (G_OBJECT (cnx))); } LinkConnection * link_connection_ref (LinkConnection *cnx) { CNX_AND_LIST_LOCK (cnx); g_object_ref (G_OBJECT (cnx)); CNX_AND_LIST_UNLOCK (cnx); return cnx; } /* Only call if we are _certain_ that we don't hold the last ref */ static void link_connection_unref_T_ (LinkConnection *cnx) { g_assert (((GObject *)cnx)->ref_count > 1); g_object_unref (G_OBJECT (cnx)); } static void link_connection_unref_unlock (LinkConnection *cnx) { gboolean tail_unref = FALSE; if (((GObject *)cnx)->ref_count > 1) g_object_unref (G_OBJECT (cnx)); else { cnx_list = g_list_remove (cnx_list, cnx); tail_unref = TRUE; } CNX_AND_LIST_UNLOCK (cnx); if (tail_unref) { LinkCommandCnxUnref cmd[1]; cmd->cmd.cmd.type = LINK_COMMAND_CNX_UNREF; cmd->cmd.complete = FALSE; cmd->cnx = cnx; link_exec_command ((LinkCommand *) cmd); } } void link_connection_exec_cnx_unref (LinkCommandCnxUnref *cmd, gboolean immediate) { d_printf ("Exec defered unref on %p\n", cmd->cnx); if (immediate) /* In I/O thread - with just 1 ref left */ g_object_unref (G_OBJECT (cmd->cnx)); else { CNX_AND_LIST_LOCK (cmd->cnx); link_connection_unref_unlock (cmd->cnx); } } void link_connection_unref (LinkConnection *cnx) { g_return_if_fail (cnx != NULL); CNX_AND_LIST_LOCK (cnx); link_connection_unref_unlock (cnx); } static void link_close_fd (LinkConnection *cnx) { if (cnx->priv->fd >= 0) { d_printf ("link_close_fd: closing %d\n", cnx->priv->fd); LINK_CLOSE_SOCKET (cnx->priv->fd); } cnx->priv->fd = -1; } typedef struct { LinkBrokenCallback fn; gpointer user_data; } BrokenCallback; static void link_connection_emit_broken (LinkConnection *cnx, GSList *callbacks) { GSList *l; for (l = callbacks; l; l = l->next) { BrokenCallback *bc = l->data; bc->fn (cnx, bc->user_data); g_free (bc); } g_slist_free (callbacks); } /* * Unfortunate to have a global list, but we need to know * if this is being processed in the main thread & if so * simply append to it. */ static GSList *idle_broken_cnxs = NULL; static gboolean link_connection_broken_idle (gpointer dummy) { GSList *callbacks; LinkConnection *cnx; d_printf ("Connection broken idle ...\n"); do { link_lock(); cnx = NULL; if (idle_broken_cnxs != NULL) { cnx = idle_broken_cnxs->data; idle_broken_cnxs = g_slist_delete_link (idle_broken_cnxs, idle_broken_cnxs); } if (cnx) { callbacks = cnx->idle_broken_callbacks; cnx->idle_broken_callbacks = NULL; cnx->inhibit_reconnect = FALSE; link_signal (); } link_unlock (); if (cnx) { link_connection_emit_broken (cnx, callbacks); link_connection_unref (cnx); } } while (cnx != NULL); return FALSE; } static void add_idle_broken_for_cnx_T (LinkConnection *cnx) { if (idle_broken_cnxs != NULL) { fprintf (stderr, "Deadlock potential - avoiding evil bug!\n"); /* * just append ourself & exit - we don't want to * inhibit re-connection because of the horrendous * deadlock possible, cf. g#534351# */ if (g_slist_find (idle_broken_cnxs, cnx) != NULL) return; } else { /* inhibit reconnect while we emit 'broken' */ cnx->inhibit_reconnect = TRUE; g_idle_add (link_connection_broken_idle, NULL); } link_connection_ref_T (cnx); idle_broken_cnxs = g_slist_prepend (idle_broken_cnxs, cnx); } static void link_source_remove (LinkConnection *cnx) { if (cnx->priv->tag) { LinkWatch *thewatch = cnx->priv->tag; cnx->priv->tag = NULL; link_io_remove_watch (thewatch); d_printf ("Removed watch on %d\n", cnx->priv->fd); } } static void link_source_add (LinkConnection *cnx, GIOCondition condition) { g_assert (cnx->priv->tag == NULL); cnx->priv->tag = link_io_add_watch_fd ( cnx->priv->fd, condition, link_connection_io_handler, cnx); d_printf ("Added watch on %d (0x%x)\n", cnx->priv->fd, condition); } typedef struct { guchar *data; struct iovec *vecs; int nvecs; struct iovec single_vec; } QueuedWrite; static void queued_write_free (QueuedWrite *qw) { g_free (qw->data); g_free (qw); } static void queue_free (LinkConnection *cnx) { GList *l; for (l = cnx->priv->write_queue; l; l = l->next) queued_write_free (l->data); g_list_free (cnx->priv->write_queue); cnx->priv->write_queue = NULL; } static void dispatch_callbacks_drop_lock (LinkConnection *cnx) { GSList *callbacks; callbacks = cnx->idle_broken_callbacks; cnx->idle_broken_callbacks = NULL; CNX_UNLOCK (cnx); link_connection_emit_broken (cnx, callbacks); CNX_LOCK (cnx); } /* * link_connection_class_state_changed: * @cnx: a #LinkConnection * @status: a #LinkConnectionStatus value. * * Set up linc's #GSources if the connection is in the #LINK_CONNECTED * or #LINK_CONNECTING state. * * Remove the #GSources if the state has channged to #LINK_DISCONNECTED, * close the socket and a gobject broken signal which may be caught by * the application. * * Also perform SSL specific operations if the connection has move into * the #LINK_CONNECTED state. */ static void link_connection_state_changed_T_R (LinkConnection *cnx, LinkConnectionStatus status) { gboolean changed; LinkConnectionClass *klass; g_assert (CNX_IS_LOCKED (cnx)); d_printf ("State changing from '%s' to '%s' on fd %d\n", STATE_NAME (cnx->status), STATE_NAME (status), cnx->priv->fd); changed = cnx->status != status; cnx->status = status; switch (status) { case LINK_CONNECTED: #ifdef LINK_SSL_SUPPORT if (cnx->options & LINK_CONNECTION_SSL) { if (cnx->was_initiated) SSL_connect (cnx->priv->ssl); else SSL_accept (cnx->priv->ssl); } #endif if (!cnx->priv->tag) link_source_add (cnx, LINK_ERR_CONDS | LINK_IN_CONDS); break; case LINK_CONNECTING: if (cnx->priv->tag) /* re-connecting */ link_watch_set_condition ( cnx->priv->tag, G_IO_OUT | LINK_ERR_CONDS); else link_source_add (cnx, G_IO_OUT | LINK_ERR_CONDS); break; case LINK_DISCONNECTED: case LINK_TIMEOUT: link_source_remove (cnx); link_close_fd (cnx); queue_free (cnx); /* don't free pending queue - we could get re-connected */ if (changed) { if (!cnx->priv->was_disconnected) { d_printf ("Emitting the broken signal on %p\n", cnx); CNX_UNLOCK (cnx); g_signal_emit (cnx, signals [BROKEN], 0); CNX_LOCK (cnx); } if (cnx->idle_broken_callbacks) { if (!link_thread_io ()) { d_printf ("Immediate broken callbacks at immediately\n"); dispatch_callbacks_drop_lock (cnx); } else { d_printf ("Queuing broken callbacks at idle\n"); add_idle_broken_for_cnx_T (cnx); } } } break; } klass = (LinkConnectionClass *)G_OBJECT_GET_CLASS (cnx); if (klass->state_changed) { link_signal (); CNX_UNLOCK (cnx); klass->state_changed (cnx, status); CNX_LOCK (cnx); } } static void queue_signal_T_R (LinkConnection *cnx, glong delta) { gulong old_size; gulong new_size; d_printf ("Queue signal %ld bytes, delta %ld, max %ld\n", cnx->priv->write_queue_bytes, delta, cnx->priv->max_buffer_bytes); old_size = cnx->priv->write_queue_bytes; cnx->priv->write_queue_bytes += delta; new_size = cnx->priv->write_queue_bytes; if (cnx->options & LINK_CONNECTION_BLOCK_SIGNAL) { if (new_size == 0 || (old_size < (cnx->priv->max_buffer_bytes >> 1) && new_size >= (cnx->priv->max_buffer_bytes >> 1)) || new_size >= cnx->priv->max_buffer_bytes) { CNX_UNLOCK (cnx); g_signal_emit (cnx, signals [BLOCKING], 0, new_size); CNX_LOCK (cnx); } } if (cnx->priv->max_buffer_bytes && cnx->priv->write_queue_bytes >= cnx->priv->max_buffer_bytes) link_connection_state_changed_T_R (cnx, LINK_DISCONNECTED); } static gulong calc_size (struct iovec *src_vecs, int nvecs) { int i; gulong total_size = 0; for (i = 0; i < nvecs; i++) total_size += src_vecs [i].iov_len; return total_size; } static void queue_flattened_T_R (LinkConnection *cnx, struct iovec *src_vecs, int nvecs, gboolean update_poll) { int i; guchar *p; gulong total_size; gboolean new_queue; QueuedWrite *qw = g_new (QueuedWrite, 1); total_size = calc_size (src_vecs, nvecs); p = g_malloc (total_size); qw->data = p; qw->vecs = &qw->single_vec; qw->nvecs = 1; qw->vecs->iov_base = p; qw->vecs->iov_len = total_size; for (i = 0; i < nvecs; i++) { memcpy (p, src_vecs [i].iov_base, src_vecs [i].iov_len); p += src_vecs [i].iov_len; } g_assert (p == (qw->data + total_size)); d_printf ("Queueing write of %ld bytes on fd %d\n", total_size, cnx->priv->fd); new_queue = cnx->priv->write_queue == NULL; cnx->priv->write_queue = g_list_append (cnx->priv->write_queue, qw); queue_signal_T_R (cnx, total_size); if (update_poll && new_queue) { LinkCommandSetCondition *cmd; cmd = g_new (LinkCommandSetCondition, 1); cmd->cmd.type = LINK_COMMAND_SET_CONDITION; cmd->cnx = link_connection_ref_T (cnx); cmd->condition = (LINK_ERR_CONDS | LINK_IN_CONDS | G_IO_OUT); link_exec_command (&cmd->cmd); } } static void link_connection_from_fd_T (LinkConnection *cnx, int fd, const LinkProtocolInfo *proto, gchar *remote_host_info, gchar *remote_serv_info, gboolean was_initiated, LinkConnectionStatus status, LinkConnectionOptions options) { cnx->was_initiated = was_initiated; cnx->is_auth = (proto->flags & LINK_PROTOCOL_SECURE); cnx->proto = proto; cnx->options = options; cnx->priv->fd = fd; g_free (cnx->remote_host_info); cnx->remote_host_info = remote_host_info; g_free (cnx->remote_serv_info); cnx->remote_serv_info = remote_serv_info; switch (cnx->proto->family) { case AF_INET: #ifdef AF_INET6 case AF_INET6: #endif if (_link_timeout && !cnx->timeout_msec) /* this should'nt happen twice but I'm always paranoid... */ cnx->timeout_msec = _link_timeout; break; default: break; } d_printf ("Cnx from fd (%d) '%s', '%s', '%s'\n", fd, proto->name, remote_host_info ? remote_host_info : "", remote_serv_info ? remote_serv_info : ""); if (proto->setup) proto->setup (fd, options); #ifdef LINK_SSL_SUPPORT if (options & LINK_CONNECTION_SSL) { cnx->priv->ssl = SSL_new (link_ssl_ctx); SSL_set_fd (cnx->priv->ssl, fd); } #endif g_assert (CNX_IS_LOCKED (0)); link_connection_state_changed_T_R (cnx, status); if (!g_list_find (cnx_list, cnx)) cnx_list = g_list_prepend (cnx_list, cnx); } /* * link_connection_from_fd: * @cnx: a #LinkConnection. * @fd: a connected/connecting file descriptor. * @proto: a #LinkProtocolInfo. * @remote_host_info: protocol dependant host information; gallocation swallowed * @remote_serv_info: protocol dependant service information(e.g. port number). gallocation swallowed * @was_initiated: #TRUE if the connection was initiated by us. * @status: a #LinkConnectionStatus value. * @options: combination of #LinkConnectionOptions. * * Fill in @cnx, call protocol specific initialisation methonds and then * call link_connection_state_changed. * * Return Value: #TRUE if the function succeeds, #FALSE otherwise. */ void link_connection_from_fd (LinkConnection *cnx, int fd, const LinkProtocolInfo *proto, gchar *remote_host_info, gchar *remote_serv_info, gboolean was_initiated, LinkConnectionStatus status, LinkConnectionOptions options) { CNX_LOCK (cnx); link_connection_from_fd_T (cnx, fd, proto, remote_serv_info, remote_serv_info, was_initiated, status, options); CNX_UNLOCK (cnx); } #ifndef G_OS_WIN32 static void fix_permissions (const char *filename) { char *tmp_dir = g_strdup (filename); char *p; struct stat stat_buf; if (!tmp_dir) return; p = strrchr (tmp_dir, '/'); if (p) { *p = '\0'; stat (tmp_dir, &stat_buf); chown (filename, stat_buf.st_uid, -1); } } #endif static gboolean link_connection_do_initiate (LinkConnection *cnx, const char *proto_name, const char *host, const char *service, LinkConnectionOptions options) { const LinkProtocolInfo *proto; int rv; int fd; gboolean retval = FALSE; struct sockaddr *saddr; LinkSockLen saddr_len; proto = link_protocol_find (proto_name); if (!proto) return FALSE; saddr = link_protocol_get_sockaddr ( proto, host, service, &saddr_len); if (!saddr && (strcmp (proto_name, "IPv6") ==0)) {/* Falling back to IPv4 */ proto = link_protocol_find ("IPv4"); saddr = link_protocol_get_sockaddr ( proto, host, service, &saddr_len); } if (!saddr) return FALSE; fd = socket (proto->family, SOCK_STREAM, proto->stream_proto_num); #ifdef HAVE_WINSOCK2_H if (fd == INVALID_SOCKET) { fd = -1; link_map_winsock_error_to_errno (); } #endif if (fd < 0) { d_printf ("socket() failed: %s\n", link_strerror (errno)); goto out; } if (options & LINK_CONNECTION_NONBLOCKING) { #ifdef HAVE_WINSOCK2_H u_long yes = 1; if (ioctlsocket (fd, FIONBIO, &yes) == SOCKET_ERROR) { link_map_winsock_error_to_errno (); d_printf ("ioctlsocket(FIONBIO) failed: %s\n", link_strerror (errno)); goto out; } #else if (fcntl (fd, F_SETFL, O_NONBLOCK) < 0) goto out; #endif } #if defined (F_SETFD) && defined (FD_CLOEXEC) if (fcntl (fd, F_SETFD, FD_CLOEXEC) < 0) goto out; #endif #ifdef HAVE_WINSOCK2_H { SOCKET newfd; if (!DuplicateHandle (GetCurrentProcess (), (HANDLE) fd, GetCurrentProcess (), (LPHANDLE) &newfd, 0, FALSE, DUPLICATE_SAME_ACCESS | DUPLICATE_CLOSE_SOURCE)) { d_printf ("DuplicateHandle failed: %s\n", link_strerror (WSAGetLastError ())); return FALSE; } fd = newfd; } #endif #ifndef G_OS_WIN32 if (!strcmp (proto_name, "UNIX") && getuid() == 0) { fix_permissions (service); } #endif LINK_TEMP_FAILURE_RETRY_SOCKET (connect (fd, saddr, saddr_len), rv); #ifdef HAVE_WINSOCK2_H if (rv == SOCKET_ERROR) { if ((options & LINK_CONNECTION_NONBLOCKING) && WSAGetLastError () == WSAEWOULDBLOCK) { /* connect() for nonblocking sockets always * fails with WSAEWOULDBLOCK. We have to * select() to wait for actual status. */ fd_set write_fds, except_fds; FD_ZERO (&write_fds); FD_SET (fd, &write_fds); FD_ZERO (&except_fds); FD_SET (fd, &except_fds); rv = select (1, NULL, &write_fds, &except_fds, NULL); if (rv == SOCKET_ERROR) { rv = -1; link_map_winsock_error_to_errno (); } else if (FD_ISSET (fd, &write_fds)) { rv = 0; } else if (FD_ISSET (fd, &except_fds)) { rv = -1; errno = WSAECONNREFUSED; } } else { rv = -1; link_map_winsock_error_to_errno (); } } #endif if (rv && errno != EINPROGRESS) goto out; d_printf ("initiate 'connect' on new fd %d\n", fd); g_assert (CNX_IS_LOCKED (0)); link_connection_from_fd_T (cnx, fd, proto, g_strdup (host), g_strdup (service), TRUE, rv ? LINK_CONNECTING : LINK_CONNECTED, options); retval = TRUE; out: if (!retval && fd >= 0) { d_printf ("initiation failed: %s\n", link_strerror (errno)); d_printf ("closing %d\n", fd); LINK_CLOSE_SOCKET (fd); } g_free (saddr); return retval; } static LinkConnectionStatus link_connection_wait_connected_T (LinkConnection *cnx) { while (cnx && cnx->status == LINK_CONNECTING) link_wait (); return cnx ? cnx->status : LINK_DISCONNECTED; } LinkConnectionStatus link_connection_try_reconnect (LinkConnection *cnx) { LinkConnectionStatus status; g_return_val_if_fail (LINK_IS_CONNECTION (cnx), LINK_DISCONNECTED); CNX_LOCK (cnx); d_printf ("Try for reconnection on %p: %d\n", cnx, cnx->inhibit_reconnect); while (cnx->inhibit_reconnect) { if (g_main_context_acquire (NULL)) { d_printf ("Dispatch callbacks in 'main' (mainloop owning) thread\n"); cnx->inhibit_reconnect = FALSE; dispatch_callbacks_drop_lock (cnx); g_main_context_release (NULL); } else link_wait (); } switch (cnx->status) { case LINK_DISCONNECTED : case LINK_TIMEOUT : link_connection_do_initiate (cnx, cnx->proto->name, cnx->remote_host_info, cnx->remote_serv_info, cnx->options); break; default : g_warning ("trying to re-connect connected cnx."); break; } cnx->priv->was_disconnected = TRUE; status = link_connection_wait_connected_T (cnx); cnx->priv->was_disconnected = FALSE; CNX_UNLOCK (cnx); return status; } /** * link_connection_initiate_list: * @derived_type: a #LinkConnection derived type * @proto_name: the name of the protocol to use. * @host: protocol dependant host information. * @service: protocol dependant service information(e.g. port number). * @options: combination of #LinkConnectionOptions. * @opt_construct_fn: optional constructor fn for new cnx's or NULL * @user_data: optional user data for constructor * * Looks up a connection in our cnx. list to see if we already * have a matching connection; if so returns it, otherwise * constructs a new cnx. and retursn that * * Return value: an incremented cnx ref. **/ LinkConnection * link_connection_initiate (GType derived_type, const char *proto_name, const char *remote_host_info, const char *remote_serv_info, LinkConnectionOptions options, const char *first_property, ...) { va_list args; GList *l; gboolean initiated = TRUE; LinkConnection *cnx = NULL; const LinkProtocolInfo *proto; va_start (args, first_property); proto = link_protocol_find (proto_name); CNX_LIST_LOCK(); /* FIXME: hash this if it's slow */ for (l = cnx_list; l; l = l->next) { cnx = l->data; if (cnx->was_initiated && cnx->proto == proto && cnx->status != LINK_DISCONNECTED && ((cnx->options & LINK_CONNECTION_SSL) == (options & LINK_CONNECTION_SSL)) && !strcmp (remote_host_info, cnx->remote_host_info) && !strcmp (remote_serv_info, cnx->remote_serv_info)) { cnx = link_connection_ref_T (cnx); break; } } cnx = l ? l->data : NULL; if (!cnx) { cnx = LINK_CONNECTION (g_object_new_valist (derived_type, first_property, args)); initiated = link_connection_do_initiate (cnx, proto_name, remote_host_info, remote_serv_info, options); } CNX_LIST_UNLOCK(); if (!initiated) { link_connection_unref (cnx); cnx = NULL; } va_end (args); return cnx; } /* * link_connection_state_changed: * @cnx: a #LinkConnection. * @status: a #LinkConnectionStatus. * * A wrapper for the #LinkConnectionClass's state change method. */ void link_connection_state_changed (LinkConnection *cnx, LinkConnectionStatus status) { CNX_LOCK (cnx); link_connection_state_changed_T_R (cnx, status); CNX_UNLOCK (cnx); } /** * link_connection_read: * @cnx: the connection to write to * @buf: a pointer to the start of an array of bytes to read data into * @len: the length of the array in bytes to read ingo * @block_for_full_read: whether to block for a full read * * Warning, block_for_full_read is of limited usefullness. * * Return value: number of bytes written on success; negative on error. **/ glong link_connection_read (LinkConnection *cnx, guchar *buf, int len, gboolean block_for_full_read) { int bytes_read = 0; d_printf ("Read up to %d bytes from fd %d\n", len, cnx->priv->fd); if (!len) return 0; CNX_LOCK (cnx); if (cnx->status != LINK_CONNECTED) goto fatal_error; do { int n; #ifdef LINK_SSL_SUPPORT if (cnx->options & LINK_CONNECTION_SSL) n = SSL_read (cnx->priv->ssl, buf, len); else #endif #ifdef HAVE_WINSOCK2_H if ((n = recv (cnx->priv->fd, buf, len, 0)) == SOCKET_ERROR) { n = -1; link_map_winsock_error_to_errno (); d_printf ("recv failed: %s\n", link_strerror (errno)); } #else LINK_TEMP_FAILURE_RETRY_SYSCALL (read (cnx->priv->fd, buf, len), n); #endif g_assert (n <= len); if (n < 0) { #ifdef LINK_SSL_SUPPORT if (cnx->options & LINK_CONNECTION_SSL) { gulong rv; rv = SSL_get_error (cnx->priv->ssl, n); if ((rv == SSL_ERROR_WANT_READ || rv == SSL_ERROR_WANT_WRITE) && (cnx->options & LINK_CONNECTION_NONBLOCKING)) goto out; else goto fatal_error; } else #endif { if (errno == EINTR) continue; else if (errno == EAGAIN && (cnx->options & LINK_CONNECTION_NONBLOCKING)) goto out; else if (errno == EBADF) { g_warning ("Serious fd usage error %d", cnx->priv->fd); goto fatal_error; } else goto fatal_error; } } else if (n == 0) { d_printf ("we got EOF on fd %d\n", cnx->priv->fd); bytes_read = LINK_IO_FATAL_ERROR; goto out; } else { buf += n; len -= n; bytes_read += n; #ifdef CONNECTION_DEBUG cnx->priv->total_read_bytes += n; #endif } } while (len > 0 && block_for_full_read); #ifdef CONNECTION_DEBUG d_printf ("we read %d bytes (total %"G_GUINT64_FORMAT")\n", bytes_read, cnx->priv->total_read_bytes); #endif out: CNX_UNLOCK (cnx); return bytes_read; fatal_error: CNX_UNLOCK (cnx); return LINK_IO_FATAL_ERROR; } /* Determine the maximum size of the iovec vector */ #if defined (MAXIOV) /* HPUX */ # define LINK_IOV_MAX (MAXIOV) #elif defined (IOV_MAX) /* AIX */ # define LINK_IOV_MAX (IOV_MAX) #elif defined (_SC_IOV_MAX) /* SGI */ # define LINK_IOV_MAX_INIT (sysconf (_SC_IOV_MAX)) #elif defined (__APPLE__) /* Even though the write(2) man page mentions it, UIO_MAXIOV is only * available if KERNEL is defined on MacOS X 10.1 */ # define LINK_IOV_MAX 1024 #elif defined (UIO_MAXIOV) /* Glibc */ # define LINK_IOV_MAX (UIO_MAXIOV) #else /* Safe Guess */ # define LINK_IOV_MAX 16 #endif /* If the value requires initialization, define the function here */ #if defined (LINK_IOV_MAX_INIT) # define LINK_IOV_MAX link_iov_max static guint link_iov_max = 0; static inline void link_iov_max_init () { if (link_iov_max == 0) { gint max; G_LOCK_DEFINE_STATIC (link_iov_max); G_LOCK (link_iov_max); if (link_iov_max == 0) { max = LINK_IOV_MAX_INIT; if (max <= 0) max = 16; link_iov_max = max; } G_UNLOCK (link_iov_max); } } #else # define link_iov_max_init() #endif static glong write_data_T (LinkConnection *cnx, QueuedWrite *qw) { glong bytes_written = 0; g_return_val_if_fail (cnx->status == LINK_CONNECTED, LINK_IO_FATAL_ERROR); link_iov_max_init (); while ((qw->nvecs > 0) && (qw->vecs->iov_len > 0)) { int n; d_printf ("write_data %ld bytes to fd %d - ", calc_size (qw->vecs, qw->nvecs), cnx->priv->fd); #ifdef LINK_SSL_SUPPORT if (cnx->options & LINK_CONNECTION_SSL) n = SSL_write (cnx->priv->ssl, qw->vecs->iov_base, qw->vecs->iov_len); else #endif #ifdef HAVE_WINSOCK2_H { if (WSASend (cnx->priv->fd, qw->vecs, MIN (qw->nvecs, LINK_IOV_MAX), (LPDWORD) &n, 0, NULL, NULL) == SOCKET_ERROR) { if (WSAGetLastError () == WSAEWOULDBLOCK) link_win32_watch_set_write_wouldblock (cnx->priv->tag, TRUE); n = -1; link_map_winsock_error_to_errno (); d_printf ("WSASend failed: %s\n", link_strerror (errno)); } else { link_win32_watch_set_write_wouldblock (cnx->priv->tag, FALSE); } } #else LINK_TEMP_FAILURE_RETRY_SOCKET (writev (cnx->priv->fd, qw->vecs, MIN (qw->nvecs, LINK_IOV_MAX)), n); #endif #ifdef CONNECTION_DEBUG d_printf ("wrote %d bytes (total %"G_GUINT64_FORMAT")\n", n, (cnx->priv->total_written_bytes += ((n > 0) ? n : 0), cnx->priv->total_written_bytes)); #endif if (n < 0) { #ifdef LINK_SSL_SUPPORT if (cnx->options & LINK_CONNECTION_SSL) { gulong rv; rv = SSL_get_error (cnx->priv->ssl, n); if ((rv == SSL_ERROR_WANT_READ || rv == SSL_ERROR_WANT_WRITE) && cnx->options & LINK_CONNECTION_NONBLOCKING) return LINK_IO_QUEUED_DATA; else return LINK_IO_FATAL_ERROR; } else #endif { if (errno == EINTR) continue; else if (errno == EAGAIN && (cnx->options & LINK_CONNECTION_NONBLOCKING)) return LINK_IO_QUEUED_DATA; else if (errno == EBADF) g_warning ("Serious fd usage error %d", cnx->priv->fd); return LINK_IO_FATAL_ERROR; /* Unhandlable error */ } } else if (n == 0) /* CHECK: is this really an error condition */ return LINK_IO_FATAL_ERROR; else { bytes_written += n; while (qw->nvecs > 0 && n >= qw->vecs->iov_len) { n -= qw->vecs->iov_len; qw->nvecs--; qw->vecs++; } if (n) { qw->vecs->iov_len -= n; qw->vecs->iov_base = (guchar *)qw->vecs->iov_base + n; } } } return bytes_written; } static gboolean link_connection_should_block (LinkConnection *cnx, const LinkWriteOpts *opt_write_opts) { if (!opt_write_opts) return TRUE; if (opt_write_opts->block_on_write) return TRUE; return FALSE; } /* Always called in the I/O thread */ static void link_connection_flush_write_queue_T_R (LinkConnection *cnx) { gboolean done_writes = TRUE; if (cnx->priv->write_queue) { glong status; QueuedWrite *qw = cnx->priv->write_queue->data; status = write_data_T (cnx, qw); d_printf ("Wrote queue %ld on fd %d\n", status, cnx->priv->fd); if (status >= LINK_IO_OK) { cnx->priv->write_queue = g_list_delete_link (cnx->priv->write_queue, cnx->priv->write_queue); queued_write_free (qw); queue_signal_T_R (cnx, -status); done_writes = (cnx->priv->write_queue == NULL); } else { if (status == LINK_IO_FATAL_ERROR) { d_printf ("Fatal error on queued write\n"); link_connection_state_changed_T_R (cnx, LINK_DISCONNECTED); } else { d_printf ("Write blocked\n"); done_writes = FALSE; } } } d_printf ("Blocked write queue %s\n", done_writes ? "flushed & empty" : "still active"); if (done_writes) /* drop G_IO_OUT */ link_watch_set_condition (cnx->priv->tag, LINK_ERR_CONDS | LINK_IN_CONDS); else link_watch_set_condition (cnx->priv->tag, LINK_ERR_CONDS | LINK_IN_CONDS | G_IO_OUT); } void link_connection_exec_set_condition (LinkCommandSetCondition *cmd, gboolean immediate) { d_printf ("Exec defered set condition on %p -> 0x%x\n", cmd->cnx, cmd->condition); if (!immediate) CNX_LOCK (cmd->cnx); link_watch_set_condition (cmd->cnx->priv->tag, cmd->condition); if (!immediate) link_connection_unref_unlock (cmd->cnx); else /* special */ link_connection_unref_T_ (cmd->cnx); g_free (cmd); } /** * link_connection_writev: * @cnx: the connection to write to * @vecs: a structure of iovecs to write - this is altered. * @nvecs: the number of populated iovecs * @opt_write_opts: optional write options, or NULL * * This routine writes data to the abstract connection. * FIXME: it allows re-enterancy via link_connection_iterate * in certain cases. * FIXME: on this basis, the connection can die underneath * our feet. * * Return value: 0 on success, non 0 on error. **/ LinkIOStatus link_connection_writev (LinkConnection *cnx, struct iovec *vecs, int nvecs, const LinkWriteOpts *opt_write_opts) { QueuedWrite qw; int status; CNX_LOCK (cnx); link_connection_ref_T (cnx); if (link_thread_safe ()) { d_printf ("Thread safe writev\n"); if (cnx->status == LINK_CONNECTING) { queue_flattened_T_R (cnx, vecs, nvecs, TRUE); link_connection_unref_unlock (cnx); return LINK_IO_QUEUED_DATA; } } else if (cnx->options & LINK_CONNECTION_NONBLOCKING) link_connection_wait_connected (cnx); if (cnx->status == LINK_DISCONNECTED) { link_connection_unref_unlock (cnx); return LINK_IO_FATAL_ERROR; } if (cnx->priv->write_queue) { /* FIXME: we should really retry the write here, but we'll * get a POLLOUT for this lot at some stage anyway */ queue_flattened_T_R (cnx, vecs, nvecs, FALSE); link_connection_unref_unlock (cnx); return LINK_IO_QUEUED_DATA; } qw.vecs = vecs; qw.nvecs = nvecs; continue_write: status = write_data_T (cnx, &qw); if (status == LINK_IO_QUEUED_DATA) { if (link_thread_safe ()) { queue_flattened_T_R (cnx, qw.vecs, qw.nvecs, TRUE); link_connection_unref_unlock (cnx); return LINK_IO_QUEUED_DATA; } /* Queue data & listen for buffer space */ link_watch_set_condition (cnx->priv->tag, LINK_ERR_CONDS | LINK_IN_CONDS | G_IO_OUT); if (!link_connection_should_block (cnx, opt_write_opts)) { queue_flattened_T_R (cnx, qw.vecs, qw.nvecs, FALSE); link_connection_unref_unlock (cnx); return LINK_IO_QUEUED_DATA; } else { link_main_iteration (TRUE); goto continue_write; } } else if (status >= LINK_IO_OK) status = LINK_IO_OK; link_connection_unref_unlock (cnx); return status; } /** * link_connection_write: * @cnx: the connection to write to * @buf: a pointer to the start of an array of bytes * @len: the length of the array in bytes * @opt_write_opts: optional write options, or NULL * * Writes a contiguous block of data to the abstract connection. * * FIXME: it allows re-enterancy via link_connection_iterate * in certain cases. * FIXME: on this basis, the connection can die underneath * our feet eg. between the main_iteration and the * g_return_if_fail. * * Return value: 0 on success, non 0 on error. **/ LinkIOStatus link_connection_write (LinkConnection *cnx, const guchar *buf, gulong len, const LinkWriteOpts *opt_write_opts) { struct iovec vec; vec.iov_base = (guchar *) buf; vec.iov_len = len; return link_connection_writev (cnx, &vec, 1, opt_write_opts); } static void link_connection_dispose (GObject *obj) { LinkConnection *cnx = (LinkConnection *)obj; d_printf ("dispose connection %p\n", obj); link_source_remove (cnx); queue_free (cnx); parent_class->dispose (obj); } static void link_connection_finalize (GObject *obj) { GSList *l; LinkConnection *cnx = (LinkConnection *)obj; link_close_fd (cnx); for (l = cnx->idle_broken_callbacks; l; l = l->next) g_free (l->data); g_slist_free (cnx->idle_broken_callbacks); g_free (cnx->remote_host_info); g_free (cnx->remote_serv_info); g_free (cnx->priv); if (cnx->timeout_mutex) g_mutex_free (cnx->timeout_mutex); if (cnx->timeout_source_id) link_io_thread_remove_timeout (cnx->timeout_source_id); parent_class->finalize (obj); } static void link_connection_init (LinkConnection *cnx) { d_printf ("create new connection %p\n", cnx); cnx->priv = g_new0 (LinkConnectionPrivate, 1); cnx->priv->fd = -1; cnx->priv->was_disconnected = FALSE; cnx->timeout_mutex = NULL; cnx->timeout_msec = 0; cnx->timeout_source_id = 0; cnx->timeout_status = LINK_TIMEOUT_UNKNOWN; cnx->tdata = NULL; #ifdef CONNECTION_DEBUG cnx->priv->total_read_bytes = 0; cnx->priv->total_written_bytes = 0; #endif } static void link_connection_class_init (LinkConnectionClass *klass) { GObjectClass *object_class = (GObjectClass *) klass; object_class->dispose = link_connection_dispose; object_class->finalize = link_connection_finalize; signals [BROKEN] = g_signal_new ("broken", G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LinkConnectionClass, broken), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); signals [BLOCKING] = g_signal_new ("blocking", G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LinkConnectionClass, blocking), NULL, NULL, g_cclosure_marshal_VOID__ULONG, G_TYPE_NONE, 1, G_TYPE_ULONG); parent_class = g_type_class_peek_parent (klass); } GType link_connection_get_type (void) { static GType object_type = 0; if (!object_type) { static const GTypeInfo object_info = { sizeof (LinkConnectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) link_connection_class_init, NULL, /* class_finalize */ NULL, /* class_data */ sizeof (LinkConnection), 0, /* n_preallocs */ (GInstanceInitFunc) link_connection_init }; object_type = g_type_register_static (G_TYPE_OBJECT, "LinkConnection", &object_info, 0); } return object_type; } LinkWriteOpts * link_write_options_new (gboolean block_on_write) { LinkWriteOpts *write_opts = g_new0 (LinkWriteOpts, 1); write_opts->block_on_write = block_on_write; return write_opts; } void link_write_options_free (LinkWriteOpts *write_opts) { g_free (write_opts); } void link_connection_set_max_buffer (LinkConnection *cnx, gulong max_buffer_bytes) { g_return_if_fail (cnx != NULL); CNX_LOCK (cnx); /* FIXME: we might want to check the current buffer size */ cnx->priv->max_buffer_bytes = max_buffer_bytes; CNX_UNLOCK (cnx); } static gboolean link_connection_io_handler (GIOChannel *gioc, GIOCondition condition, gpointer data) { LinkConnection *cnx = data; LinkConnectionClass *klass; d_printf ("link_connection_io_handler fd %d, 0x%x\n", cnx->priv->fd, condition); CNX_LOCK (cnx); link_connection_ref_T (cnx); klass = (LinkConnectionClass *) G_TYPE_INSTANCE_GET_CLASS ( data, LINK_TYPE_CONNECTION, LinkConnection); if (cnx->status == LINK_CONNECTED && condition & LINK_IN_CONDS && klass->handle_input) { d_printf ("Handle input on fd %d\n", cnx->priv->fd); CNX_UNLOCK (cnx); klass->handle_input (cnx); CNX_LOCK (cnx); } if (cnx->status == LINK_CONNECTED && condition & G_IO_OUT) { d_printf ("IO Out - buffer space free ...\n"); link_connection_flush_write_queue_T_R (cnx); } if (condition & (LINK_ERR_CONDS | G_IO_OUT)) { int rv, n; LinkSockLen n_size = sizeof (n); switch (cnx->status) { case LINK_CONNECTING: n = 0; rv = getsockopt (cnx->priv->fd, SOL_SOCKET, SO_ERROR, (char *) &n, &n_size); if (!rv && !n && condition == G_IO_OUT) { d_printf ("State changed to connected on %d\n", cnx->priv->fd); link_watch_set_condition ( cnx->priv->tag, LINK_ERR_CONDS | LINK_IN_CONDS); link_connection_state_changed_T_R (cnx, LINK_CONNECTED); if (cnx->priv->write_queue) { d_printf ("Connected, with queued writes, start flush ...\n"); link_connection_flush_write_queue_T_R (cnx); } } else { d_printf ("Error connecting %d %d %d on fd %d\n", rv, n, errno, cnx->priv->fd); link_connection_state_changed_T_R (cnx, LINK_DISCONNECTED); } break; case LINK_CONNECTED: { if (condition & LINK_ERR_CONDS) { d_printf ("Disconnect on err: %d\n", cnx->priv->fd); link_connection_state_changed_T_R (cnx, LINK_DISCONNECTED); } break; } default: break; } } link_connection_unref_unlock (cnx); return TRUE; } LinkConnectionStatus link_connection_get_status (LinkConnection *cnx) { LinkConnectionStatus status; CNX_LOCK (cnx); status = cnx->status; CNX_UNLOCK (cnx); d_printf ("Get status on %p = %d\n", cnx, status); return status; } void link_connection_exec_disconnect (LinkCommandDisconnect *cmd, gboolean immediate) { d_printf ("Exec defered disconnect on %p\n", cmd->cnx); link_connection_state_changed (cmd->cnx, LINK_DISCONNECTED); link_connection_unref (cmd->cnx); g_free (cmd); } void link_connection_disconnect (LinkConnection *cnx) { LinkCommandDisconnect *cmd; cmd = g_new (LinkCommandDisconnect, 1); cmd->cmd.type = LINK_COMMAND_DISCONNECT; cmd->cnx = link_connection_ref (cnx); link_exec_command ((LinkCommand *) cmd); } LinkConnectionStatus link_connection_wait_connected (LinkConnection *cnx) { LinkConnectionStatus status; CNX_LOCK (cnx); status = link_connection_wait_connected_T (cnx); CNX_UNLOCK (cnx); return status; } void link_connections_move_io_T (gboolean to_io_thread) { GList *l; for (l = cnx_list; l; l = l->next) { LinkConnection *cnx = l->data; link_watch_move_io (cnx->priv->tag, to_io_thread); } } void link_connection_add_broken_cb (LinkConnection *cnx, LinkBrokenCallback fn, gpointer user_data) { BrokenCallback *bc = g_new0 (BrokenCallback, 1); g_return_if_fail (fn != NULL); bc->fn = fn; bc->user_data = user_data; cnx->idle_broken_callbacks = g_slist_prepend (cnx->idle_broken_callbacks, bc); } static gboolean broken_callback_match (BrokenCallback *bc, LinkBrokenCallback fn, gpointer user_data) { return ( (!fn || bc->fn == fn) && (!user_data || bc->user_data == user_data) ); } void link_connection_remove_broken_cb (LinkConnection *cnx, LinkBrokenCallback opt_fn, gpointer opt_user_data) { GSList *l, *next; CNX_LOCK (cnx); for (l = cnx->idle_broken_callbacks; l; l = next) { next = l->next; if (broken_callback_match (l->data, opt_fn, opt_user_data)) { g_free (l->data); cnx->idle_broken_callbacks = g_slist_delete_link (cnx->idle_broken_callbacks, l); } } CNX_UNLOCK (cnx); } void link_connections_close (void) { GList *cnx, *l; if (!link_in_io_thread ()) return; CNX_LIST_LOCK(); cnx = cnx_list; cnx_list = NULL; CNX_LIST_UNLOCK(); if (!cnx) return; /* FIXME: Need to shutdown linc connections ... */ for (l = cnx; l; l = l->next) g_object_run_dispose (l->data); g_list_free (cnx); } void link_set_timeout (guint msec) { _link_timeout = msec; } ORBit2-2.14.19/linc2/src/Makefile.in0000644000175000001440000004654111450333733013525 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @OS_WIN32_FALSE@bin_PROGRAMS = linc-cleanup-sockets$(EXEEXT) @OS_WIN32_FALSE@am__append_1 = -D_GNU_SOURCE subdir = linc2/src DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) liblinc_la_LIBADD = am_liblinc_la_OBJECTS = linc.lo linc-connection.lo linc-compat.lo \ linc-protocols.lo linc-server.lo linc-source.lo liblinc_la_OBJECTS = $(am_liblinc_la_OBJECTS) liblinc_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(liblinc_la_LDFLAGS) $(LDFLAGS) -o $@ am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_linc_cleanup_sockets_OBJECTS = cleanup.$(OBJEXT) linc_cleanup_sockets_OBJECTS = $(am_linc_cleanup_sockets_OBJECTS) linc_cleanup_sockets_LDADD = $(LDADD) linc_cleanup_sockets_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(linc_cleanup_sockets_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(liblinc_la_SOURCES) $(linc_cleanup_sockets_SOURCES) DIST_SOURCES = $(liblinc_la_SOURCES) $(linc_cleanup_sockets_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_LTLIBRARIES = liblinc.la # -I$(top_builddir)/include # -I$(top_srcdir)/include INCLUDES = -I$(top_builddir)/linc2/include \ -I$(top_srcdir)/linc2/include $(LINC_CFLAGS) $(WARN_CFLAGS) \ -DG_DISABLE_DEPRECATED $(am__append_1) liblinc_la_SOURCES = \ linc.c \ linc-connection.c \ linc-debug.h \ linc-compat.h \ linc-compat.c \ linc-private.h \ linc-protocols.c \ linc-server.c \ linc-source.c liblinc_la_LDFLAGS = \ $(LINC_LIBS) \ -no-undefined linc_cleanup_sockets_SOURCES = \ cleanup.c linc_cleanup_sockets_LDFLAGS = \ $(LINC_LIBS) all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu linc2/src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu linc2/src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done liblinc.la: $(liblinc_la_OBJECTS) $(liblinc_la_DEPENDENCIES) $(liblinc_la_LINK) $(liblinc_la_OBJECTS) $(liblinc_la_LIBADD) $(LIBS) install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list linc-cleanup-sockets$(EXEEXT): $(linc_cleanup_sockets_OBJECTS) $(linc_cleanup_sockets_DEPENDENCIES) @rm -f linc-cleanup-sockets$(EXEEXT) $(linc_cleanup_sockets_LINK) $(linc_cleanup_sockets_OBJECTS) $(linc_cleanup_sockets_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cleanup.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linc-compat.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linc-connection.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linc-protocols.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linc-server.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linc-source.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linc.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool \ clean-noinstLTLIBRARIES mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool clean-noinstLTLIBRARIES ctags \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-binPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/linc2/src/linc-source.c0000644000175000001440000002242511334247617014050 00000000000000/* * linc-source.c: This file is part of the linc library. * * Authors: * Owen Taylor (owen@redhat.com) * Michael Meeks (michael@ximian.com) * Tor Lillqvist (tml@novell.com) * * Copyright 1998, 2001, 2005, Red Hat, Inc., Ximian, Inc., Novell, Inc. */ #include #include #include #include #ifdef HAVE_UNISTD_H # include #endif #include #include #include #include #include "linc-compat.h" #include "linc-private.h" #if defined (G_OS_WIN32) && defined (CONNECTION_DEBUG) static char * fd_mask (int mask) { static char buf[100]; int checked_bits = 0; char *bufp = buf; if (mask == 0) return ""; #define BIT(n) checked_bits |= FD_##n; if (mask & FD_##n) bufp += sprintf (bufp, "%s" #n, (bufp>buf ? "|" : "")) BIT (READ); BIT (WRITE); BIT (OOB); BIT (ACCEPT); BIT (CONNECT); BIT (CLOSE); BIT (QOS); BIT (GROUP_QOS); BIT (ROUTING_INTERFACE_CHANGE); BIT (ADDRESS_LIST_CHANGE); #undef BIT if ((mask & ~checked_bits) != 0) bufp += sprintf (bufp, "|%#x", mask & ~checked_bits); return buf; } #endif static gboolean link_source_prepare (GSource *source, gint *timeout) { #ifdef G_OS_WIN32 LinkUnixWatch *watch = (LinkUnixWatch *) source; int event_mask = 0; if (watch->condition & G_IO_IN) event_mask |= (FD_READ | FD_ACCEPT); if (watch->condition & G_IO_OUT) event_mask |= (FD_WRITE | FD_CONNECT); if (watch->condition & G_IO_HUP) event_mask |= FD_CLOSE; if (watch->link_watch != NULL && watch->link_watch->last_polled_source != watch) { watch->link_watch->last_polled_source = watch; watch->event_mask = 0; } if (watch->event_mask != event_mask) { #ifdef CONNECTION_DEBUG d_printf ("prepare: WSAEventSelect(%d, %#x, {%s})\n", watch->socket, watch->pollfd.fd, fd_mask (event_mask)); #endif if (WSAEventSelect (watch->socket, (HANDLE) watch->pollfd.fd, event_mask) == SOCKET_ERROR) d_printf ("WSAEventSelect() failed: %s\n", link_strerror (WSAGetLastError ())); else watch->event_mask = event_mask; } #endif *timeout = -1; return FALSE; } static gboolean link_source_check (GSource *source) { LinkUnixWatch *watch = (LinkUnixWatch *)source; #ifdef G_OS_WIN32 WSANETWORKEVENTS events; d_printf ("check: sock=%d handle=%#x revents=%x condition=%x ", watch->socket, watch->pollfd.fd, watch->pollfd.revents, watch->condition); if (WSAEnumNetworkEvents (watch->socket, /* (HANDLE) watch->pollfd.fd, */ 0, &events) == SOCKET_ERROR) d_printf ("\nWSAEnumNetworkEvents failed: %s\n", link_strerror (WSAGetLastError ())); else { #ifdef CONNECTION_DEBUG d_printf ("events={%s}\n", fd_mask (events.lNetworkEvents)); #endif if (watch->pollfd.revents != 0 && events.lNetworkEvents == 0) { watch->event_mask = 0; d_printf ("check: WSAEventSelect(%d, %#x, {})\n", watch->socket, watch->pollfd.fd); WSAEventSelect (watch->socket, (HANDLE) watch->pollfd.fd, 0); d_printf ("check: ResetEvent(%#x)\n", watch->pollfd.fd); ResetEvent ((HANDLE) watch->pollfd.fd); } watch->pollfd.revents = 0; if (events.lNetworkEvents & (FD_READ | FD_ACCEPT)) watch->pollfd.revents |= G_IO_IN; if (events.lNetworkEvents & (FD_WRITE | FD_CONNECT)) watch->pollfd.revents |= G_IO_OUT; if (events.lNetworkEvents & (FD_CLOSE)) watch->pollfd.revents |= G_IO_HUP; } if (!watch->write_would_have_blocked && (watch->event_mask & FD_WRITE)) watch->pollfd.revents |= G_IO_OUT; /* This sucks but... */ #endif return watch->pollfd.revents & watch->condition; } static gboolean link_source_dispatch (GSource *source, GSourceFunc callback, gpointer user_data) { GIOFunc func; LinkUnixWatch *watch = (LinkUnixWatch *) source; if (!callback) g_error ("No callback"); func = (GIOFunc) callback; return (*func) (watch->channel, watch->pollfd.revents & watch->condition, user_data); } static void link_source_finalize (GSource *source) { d_printf ("Finalize source %p\n", source); } static GSourceFuncs link_source_watch_funcs = { link_source_prepare, link_source_check, link_source_dispatch, link_source_finalize }; /** * link_source_set_condition: * @source: a source created with #link_source_create_watch * @condition: a new condition. * * This sets a new IO condition on an existing * source very rapidly. **/ void link_source_set_condition (GSource *source, GIOCondition condition) { LinkUnixWatch *watch = (LinkUnixWatch *) source; if (watch) { watch->pollfd.events = condition; watch->condition = condition; } } /** * link_source_create_watch: * @context: context to add to (or NULL for default) * @fd: file descriptor to poll on * @opt_channel: channel, handed to the callback (can be NULL) * @condition: IO condition eg. G_IO_IN|G_IO_PRI * @func: callback when condition is met * @user_data: callback closure. * * This adds a new source to the specified context. * * Return value: the source handle so you can remove it later. **/ GSource * link_source_create_watch (GMainContext *context, int fd, GIOChannel *opt_channel, GIOCondition condition, GIOFunc func, gpointer user_data) { GSource *source; LinkUnixWatch *watch; source = g_source_new (&link_source_watch_funcs, sizeof (LinkUnixWatch)); watch = (LinkUnixWatch *) source; #ifdef G_OS_WIN32 watch->pollfd.fd = (int) WSACreateEvent (); d_printf ("WSACreateEvent(): for socket %d: %#x\n", fd, watch->pollfd.fd); watch->link_watch = NULL; watch->socket = fd; watch->event_mask = 0; watch->write_would_have_blocked = FALSE; #else watch->pollfd.fd = fd; #endif watch->channel = opt_channel; watch->condition = condition; watch->callback = func; watch->user_data = user_data; link_source_set_condition (source, condition); g_source_set_can_recurse (source, TRUE); g_source_add_poll (source, &watch->pollfd); g_source_set_callback (source, (GSourceFunc) func, user_data, NULL); g_source_attach (source, context); return source; } static GSource * link_source_create_watch_for_watch (LinkWatch *watch, GMainContext *context, int fd, GIOChannel *opt_channel, GIOCondition condition, GIOFunc func, gpointer user_data) { GSource *retval = link_source_create_watch (context, fd, opt_channel, condition, func, user_data); #ifdef G_OS_WIN32 ((LinkUnixWatch *) retval)->link_watch = watch; #endif return retval; } #ifdef G_OS_WIN32 void link_win32_watch_set_write_wouldblock (LinkWatch *w, gboolean flag) { if (w->link_source) ((LinkUnixWatch *)w->link_source)->write_would_have_blocked = flag; if (w->main_source) ((LinkUnixWatch *)w->main_source)->write_would_have_blocked = flag; } #endif LinkWatch * link_io_add_watch_fd (int fd, GIOCondition condition, GIOFunc func, gpointer user_data) { LinkWatch *w; GMainContext *thread_ctx; w = g_new0 (LinkWatch, 1); if ((thread_ctx = link_thread_io_context ())) { /* Have a dedicated I/O worker thread */ w->link_source = link_source_create_watch_for_watch (w, thread_ctx, fd, NULL, condition, func, user_data); } else { /* Have an inferior and hook into the glib context */ /* Link loop */ w->link_source = link_source_create_watch_for_watch (w, link_main_get_context (), fd, NULL, condition, func, user_data); w->main_source = link_source_create_watch_for_watch (w, NULL, fd, NULL, condition, func, user_data); } return w; } static void link_watch_unlisten (LinkWatch *w) { if (w->main_source) { link_source_set_condition (w->main_source, 0); #ifdef G_OS_WIN32 d_printf ("CloseHandle(%#x)\n", ((LinkUnixWatch *) w->main_source)->pollfd.fd); if (!CloseHandle ((HANDLE) ((LinkUnixWatch *) w->main_source)->pollfd.fd)) d_printf ("CloseHandle failed: %ld\n", GetLastError ()); #endif g_source_destroy (w->main_source); g_source_unref (w->main_source); w->main_source = NULL; } if (w->link_source) { link_source_set_condition (w->link_source, 0); #ifdef G_OS_WIN32 d_printf ("CloseHandle(%#x)\n", ((LinkUnixWatch *) w->link_source)->pollfd.fd); if (!CloseHandle ((HANDLE) ((LinkUnixWatch *) w->link_source)->pollfd.fd)) d_printf ("CloseHandle failed: %ld\n", GetLastError ()); #endif g_source_destroy (w->link_source); g_source_unref (w->link_source); w->link_source = NULL; } #ifdef G_OS_WIN32 w->last_polled_source = NULL; #endif } void link_io_remove_watch (LinkWatch *w) { if (!w) return; link_watch_unlisten (w); g_free (w); } void link_watch_set_condition (LinkWatch *w, GIOCondition condition) { if (w) { link_source_set_condition ( w->link_source, condition); link_source_set_condition ( w->main_source, condition); } } /* * Migrates the source to/from the main thread. */ void link_watch_move_io (LinkWatch *w, gboolean to_io_thread) { LinkUnixWatch w_cpy; if (!w) return; g_assert (to_io_thread); /* FIXME */ w_cpy = *(LinkUnixWatch *)w->link_source; link_watch_unlisten (w); w->link_source = link_source_create_watch_for_watch (w, link_thread_io_context (), #ifdef G_OS_WIN32 w_cpy.socket, #else w_cpy.pollfd.fd, #endif w_cpy.channel, w_cpy.condition, w_cpy.callback, w_cpy.user_data); } ORBit2-2.14.19/linc2/src/cleanup.c0000644000175000001440000001000511334247617013243 00000000000000#include #include #include #include #include #include /* * Two timeouts - waiting while there are other * ( in ms ) handles to be checked. * - waiting after all other handles have * been checked. */ #define SHORT_TIMEOUT 10 #define LONG_TIMEOUT 1000 static int total_count = 0; static int cleaned_count = 0; #include #ifdef AF_UNIX typedef struct { char *name; int fd; } SocketEntry; static SocketEntry * new_socket_entry (const char *dir, const char *fname) { SocketEntry *se = g_new0 (SocketEntry, 1); se->name = g_build_filename (dir, fname, NULL); se->fd = -1; return se; } static void free_socket_entry (SocketEntry *se) { g_free (se->name); if (se->fd >= 0) close (se->fd); g_free (se); } static GList * read_sockets (const char *dir) { DIR *dirh; GList *files = NULL; struct dirent *dent; dirh = opendir (dir); if (!dirh) return NULL; while ((dent = readdir (dirh))) { if (strncmp (dent->d_name, "linc-", 5)) continue; files = g_list_prepend ( files, new_socket_entry ( dir, dent->d_name)); } closedir (dirh); return files; } typedef enum { SOCKET_DEAD_NOW, SOCKET_PENDING, SOCKET_AGAIN, SOCKET_ALIVE } SocketStatus; static SocketStatus open_socket (SocketEntry *se) { int saddr_len, ret; struct sockaddr_un saddr; g_return_val_if_fail (se != NULL, SOCKET_DEAD_NOW); g_return_val_if_fail (se->fd == -1, SOCKET_DEAD_NOW); g_return_val_if_fail (se->name != NULL, SOCKET_DEAD_NOW); saddr.sun_family = AF_UNIX; g_snprintf (saddr.sun_path, sizeof (saddr.sun_path), "%s", se->name); se->fd = socket (AF_UNIX, SOCK_STREAM, 0); g_assert (se->fd >= 0); if (fcntl (se->fd, F_SETFL, O_NONBLOCK) < 0) g_error ("Failed to set fd non-blocking"); saddr_len = sizeof (struct sockaddr_un) - sizeof (saddr.sun_path) + strlen (saddr.sun_path); do { ret = connect (se->fd, &saddr, saddr_len); } while (ret < 0 && errno == EINTR); if (ret >= 0) return SOCKET_ALIVE; else { switch (errno) { case EINPROGRESS: return SOCKET_PENDING; case ECONNREFUSED: return SOCKET_DEAD_NOW; case EAGAIN: return SOCKET_AGAIN; case EBADF: g_error ("Bad bug fd %d", se->fd); break; default: g_warning ("Error '%s' on socket %d", g_strerror (errno), se->fd); break; } } return SOCKET_DEAD_NOW; } static GList * poll_open (GList *files, int *pending, int timeout) { if (!files) return NULL; g_print ("FIXME: should poll unknown descriptors for a bit"); /* FIXME: we should really do something clever here, * poll for a while, wait for nice connected / bad * signals on the sockets, etc - but what we have * works well for now */ while (files && *pending > 0) { free_socket_entry (files->data); files = g_list_delete_link (files, files); (*pending)--; } return files; } static void clean_dir (const char *dir) { int open_max; int pending = 0; GList *files, *l, *next; open_max = sysconf (_SC_OPEN_MAX); files = read_sockets (dir); for (l = files; l; l = next) { SocketEntry *se = l->data; SocketStatus status; next = l->next; status = open_socket (se); switch (status) { case SOCKET_DEAD_NOW: cleaned_count++; unlink (se->name); /* drop through */ case SOCKET_ALIVE: files = g_list_delete_link (files, l); free_socket_entry (se); total_count++; break; case SOCKET_AGAIN: case SOCKET_PENDING: pending++; break; } while (pending >= open_max) files = poll_open ( files, &pending, SHORT_TIMEOUT); } files = poll_open (files, &pending, LONG_TIMEOUT); while (files) { free_socket_entry (files->data); files = g_list_delete_link (files, files); } } #endif /* AF_UNIX */ int main (int argc, char **argv) { char *dir; dir = g_strdup_printf ("%s/orbit-%s", g_get_tmp_dir (), g_get_user_name ()); #ifdef AF_UNIX clean_dir (dir); #endif /* AF_UNIX */ g_free (dir); printf ("Cleaned %d files %d still live\n", cleaned_count, total_count - cleaned_count); return 0; } ORBit2-2.14.19/linc2/src/linc-compat.c0000644000175000001440000001322011334247617014024 00000000000000/* * linc-compat.c: This file is part of the linc library. * * Authors: * Tor Lillqvist (tml@novell.com) * * Copyright 2005, Novell, Inc. */ #include "config.h" #include #include "linc-compat.h" #include "linc-debug.h" #ifdef G_OS_WIN32 /* Map some WinSock error codes to errno values. Only those that * correspond to real errno values that the linc2 source code checks * for are mapped. They should obviously not include those errno * values that don't exist in the Microsoft C library, and which are * defined as the corresponding WSAE* value in linc-compat.h */ void link_map_winsock_error_to_errno (void) { int wsa_error = WSAGetLastError (); d_printf ("WSAGetLastError: %d\n", wsa_error); errno = wsa_error; switch (errno) { case WSAEBADF: errno = EBADF; break; case WSAEWOULDBLOCK: errno = EAGAIN; break; } } #endif int link_pipe (int *handles) { #ifndef G_OS_WIN32 return pipe (handles); #else SOCKET temp, temp2, socket1 = -1, socket2 = -1; struct sockaddr_in saddr; int len; u_long arg; fd_set read_set, write_set; struct timeval tv; temp = socket (AF_INET, SOCK_STREAM, 0); if (temp == INVALID_SOCKET) { link_map_winsock_error_to_errno (); goto out0; } arg = 1; if (ioctlsocket (temp, FIONBIO, &arg) == SOCKET_ERROR) { link_map_winsock_error_to_errno (); goto out0; } memset (&saddr, 0, sizeof (saddr)); saddr.sin_family = AF_INET; saddr.sin_port = 0; saddr.sin_addr.s_addr = htonl (INADDR_LOOPBACK); if (bind (temp, (struct sockaddr *)&saddr, sizeof (saddr))) { link_map_winsock_error_to_errno (); goto out0; } if (listen (temp, 1) == SOCKET_ERROR) { link_map_winsock_error_to_errno (); goto out0; } len = sizeof (saddr); if (getsockname (temp, (struct sockaddr *)&saddr, &len)) { link_map_winsock_error_to_errno (); goto out0; } socket1 = socket (AF_INET, SOCK_STREAM, 0); if (socket1 == INVALID_SOCKET) { link_map_winsock_error_to_errno (); goto out0; } if (!DuplicateHandle (GetCurrentProcess (), (HANDLE) socket1, GetCurrentProcess (), (LPHANDLE) &temp2, 0, FALSE, DUPLICATE_SAME_ACCESS | DUPLICATE_CLOSE_SOURCE)) { goto out1; } socket1 = temp2; arg = 1; if (ioctlsocket (socket1, FIONBIO, &arg) == SOCKET_ERROR) { link_map_winsock_error_to_errno (); goto out1; } if (connect (socket1, (struct sockaddr *)&saddr, len) != SOCKET_ERROR || WSAGetLastError () != WSAEWOULDBLOCK) { link_map_winsock_error_to_errno (); goto out1; } FD_ZERO (&read_set); FD_SET (temp, &read_set); tv.tv_sec = 0; tv.tv_usec = 0; if (select (0, &read_set, NULL, NULL, NULL) == SOCKET_ERROR) { link_map_winsock_error_to_errno (); goto out1; } if (!FD_ISSET (temp, &read_set)) { errno = WSAECONNREFUSED; /* Oh well, whatever */ goto out1; } socket2 = accept (temp, (struct sockaddr *) &saddr, &len); if (socket2 == INVALID_SOCKET) { link_map_winsock_error_to_errno (); goto out1; } FD_ZERO (&write_set); FD_SET (socket1, &write_set); tv.tv_sec = 0; tv.tv_usec = 0; if (select (0, NULL, &write_set, NULL, NULL) == SOCKET_ERROR) { link_map_winsock_error_to_errno (); goto out2; } if (!FD_ISSET (socket1, &write_set)) { errno = WSAECONNREFUSED; goto out2; } if (!DuplicateHandle (GetCurrentProcess (), (HANDLE) socket2, GetCurrentProcess (), (LPHANDLE) &temp2, 0, FALSE, DUPLICATE_SAME_ACCESS | DUPLICATE_CLOSE_SOURCE)) { goto out2; } socket2 = temp2; arg = 0; if (ioctlsocket (socket1, FIONBIO, &arg) == SOCKET_ERROR) { link_map_winsock_error_to_errno (); goto out2; } arg = 0; if (ioctlsocket (socket2, FIONBIO, &arg) == SOCKET_ERROR) { link_map_winsock_error_to_errno (); goto out2; } handles[0] = socket1; handles[1] = socket2; d_printf ("socketpair %d <-> %d\n", socket1, socket2); closesocket (temp); return 0; out2: closesocket (socket2); out1: closesocket (socket1); out0: closesocket (temp); return -1; #endif } const char * link_strerror (int number) { switch (number) { #ifdef HAVE_WINSOCK2_H case WSAEOPNOTSUPP: return "Operation not supported on transport endpoint"; case WSAEPFNOSUPPORT: return "Protocol family not supported"; case WSAECONNRESET: return "Connection reset by peer"; case WSAENOBUFS: return "No buffer space available"; case WSAEAFNOSUPPORT: return "Address family not supported by protocol family"; case WSAENOTSOCK: return "Socket operation on non-socket"; case WSAENOPROTOOPT: return "Protocol not available"; case WSAESHUTDOWN: return "Can't send after socket shutdown"; case WSAECONNREFUSED: return "Connection refused"; case WSAEADDRINUSE: return "Address already in use"; case WSAECONNABORTED: return "Connection aborted"; case WSAENETUNREACH: return "Network is unreachable"; case WSAENETDOWN: return "Network interface is not configured"; case WSAETIMEDOUT: return "Connection timed out"; case WSAEHOSTDOWN: return "Host is down"; case WSAEHOSTUNREACH: return "Host is unreachable"; case WSAEINPROGRESS: return "Connection already in progress"; case WSAEALREADY: return "Socket already connected"; case WSAEPROTONOSUPPORT: return "Unknown protocol"; case WSAESOCKTNOSUPPORT: return "Socket type not supported"; case WSAEADDRNOTAVAIL: return "Address not available"; case WSAEISCONN: return "Socket is already connected"; case WSAENOTCONN: return "Socket is not connected"; #endif default: return g_strerror (number); } } ORBit2-2.14.19/linc2/src/linc-server.c0000644000175000001440000003224611334247617014060 00000000000000/* * linc-server.c: This file is part of the linc library. * * Authors: * Elliot Lee (sopwith@redhat.com) * Michael Meeks (michael@ximian.com) * Mark McLouglin (mark@skynet.ie) & others * * Copyright 2001, Red Hat, Inc., Ximian, Inc., * Sun Microsystems, Inc. */ #include #include #include #include #include #include #include #include #include "linc-private.h" #include "linc-compat.h" enum { NEW_CONNECTION, LAST_SIGNAL }; static guint server_signals [LAST_SIGNAL] = { 0 }; static GList *server_list = NULL; static GObjectClass *parent_class = NULL; static void my_cclosure_marshal_VOID__OBJECT (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data) { typedef void (*GSignalFunc_VOID__OBJECT) (gpointer data1, GObject *arg_1, gpointer data2); register GSignalFunc_VOID__OBJECT callback; register GCClosure *cc = (GCClosure*) closure; register gpointer data1, data2; g_return_if_fail (n_param_values >= 2); if (G_CCLOSURE_SWAP_DATA (closure)) { data1 = closure->data; data2 = g_value_peek_pointer (param_values + 0); } else { data1 = g_value_peek_pointer (param_values + 0); data2 = closure->data; } callback = (GSignalFunc_VOID__OBJECT) ( marshal_data ? marshal_data : cc->callback); callback (data1, g_value_peek_pointer (param_values + 1), data2); } static void link_server_init (LinkServer *srv) { srv->priv = g_new0 (LinkServerPrivate, 1); srv->priv->fd = -1; } static void link_server_client_connection_broken (LinkConnection *connection, gpointer user_data) { LinkServer *server = user_data; server->priv->connections = g_slist_remove (server->priv->connections, connection); link_connection_unref (connection); } static void link_server_dispose (GObject *obj) { GSList *l; LinkServer *srv = (LinkServer *) obj; server_list = g_list_remove (server_list, srv); d_printf ("Dispose / close server fd %d\n", srv->priv->fd); if (srv->priv->tag) { LinkWatch *thewatch = srv->priv->tag; srv->priv->tag = NULL; link_io_remove_watch (thewatch); } link_protocol_destroy_cnx (srv->proto, srv->priv->fd, srv->local_host_info, srv->local_serv_info); srv->priv->fd = -1; while ((l = srv->priv->connections)) { GObject *o = l->data; g_signal_handlers_disconnect_by_func (o, link_server_client_connection_broken, srv); srv->priv->connections = l->next; g_slist_free_1 (l); link_connection_unref (LINK_CONNECTION (o)); } parent_class->dispose (obj); } static void link_server_finalize (GObject *obj) { LinkServer *srv = (LinkServer *)obj; g_free (srv->local_host_info); g_free (srv->local_serv_info); g_free (srv->priv); parent_class->finalize (obj); } static LinkConnection * link_server_create_connection (LinkServer *srv) { return g_object_new (link_connection_get_type (), NULL); } static gboolean link_server_accept_connection (LinkServer *server, LinkConnection **connection) { LinkServerClass *klass; struct sockaddr *saddr; int addrlen, fd; g_return_val_if_fail (connection != NULL, FALSE); *connection = NULL; addrlen = server->proto->addr_len; saddr = g_alloca (addrlen); LINK_TEMP_FAILURE_RETRY_SOCKET (accept (server->priv->fd, saddr, &addrlen), fd); #ifdef HAVE_WINSOCK2_H if (fd == INVALID_SOCKET) { fd = -1; link_map_winsock_error_to_errno (); } #endif if (fd < 0) { d_printf ("accept on %d failed: %s\n", server->priv->fd, link_strerror (errno)); return FALSE; } if (server->create_options & LINK_CONNECTION_LOCAL_ONLY && !link_protocol_is_local (server->proto, saddr, addrlen)) { d_printf ("link_server_accept_connection: not local, closing %d\n", fd); LINK_CLOSE_SOCKET (fd); return FALSE; } if (server->create_options & LINK_CONNECTION_NONBLOCKING) { #ifdef HAVE_WINSOCK2_H u_long yes = 1; if (ioctlsocket (fd, FIONBIO, &yes) == SOCKET_ERROR) { link_map_winsock_error_to_errno (); d_printf ("failed to set FIONBIO on %d: %s\n", fd, link_strerror (errno)); d_printf ("closing %d\n", fd); LINK_CLOSE_SOCKET (fd); return FALSE; } #else if (fcntl (fd, F_SETFL, O_NONBLOCK) < 0) { d_printf ("failed to set O_NONBLOCK on %d: %s\n", fd, link_strerror (errno)); d_printf ("closing %d\n", fd); LINK_CLOSE_SOCKET (fd); return FALSE; } #endif } #if defined (F_SETFD) && defined (FD_CLOEXEC) if (fcntl (fd, F_SETFD, FD_CLOEXEC) < 0) { d_printf ("failed to set cloexec on %d: %s\n", fd, link_strerror (errno)); d_printf ("closing %d\n", fd); LINK_CLOSE_SOCKET (fd); return FALSE; } #endif #ifdef HAVE_WINSOCK2_H { SOCKET newfd; if (!DuplicateHandle (GetCurrentProcess (), (HANDLE) fd, GetCurrentProcess (), (LPHANDLE) &newfd, 0, FALSE, DUPLICATE_SAME_ACCESS | DUPLICATE_CLOSE_SOURCE)) { d_printf ("DuplicateHandle failed: %s\n", link_strerror (WSAGetLastError ())); return FALSE; } fd = newfd; } #endif klass = (LinkServerClass *) G_OBJECT_GET_CLASS (server); g_assert (klass->create_connection); *connection = klass->create_connection (server); g_return_val_if_fail (*connection != NULL, FALSE); d_printf ("accepted a new connection (%d) on server %d\n", fd, server->priv->fd); link_connection_from_fd (*connection, fd, server->proto, NULL, NULL, FALSE, LINK_CONNECTED, server->create_options); g_signal_connect (*connection, "broken", G_CALLBACK (link_server_client_connection_broken), server); server->priv->connections = g_slist_prepend ( server->priv->connections, *connection); return TRUE; } static gboolean link_server_handle_io (GIOChannel *gioc, GIOCondition condition, gpointer data) { gboolean accepted; LinkServer *server = data; LinkConnection *connection = NULL; if (!(condition & LINK_IN_CONDS)) { /* * This call to g_warning was changed from g_error to avoid * a program crash. See bug #126209. */ d_printf ("error condition on server fd is %#x\n", condition); return TRUE; } accepted = link_server_accept_connection (server, &connection); if (!accepted) { GValue parms[2]; memset (parms, 0, sizeof (parms)); g_value_init (parms, G_OBJECT_TYPE (server)); g_value_set_object (parms, G_OBJECT (server)); g_value_init (parms + 1, G_TYPE_OBJECT); /* FIXME: this connection is always NULL */ g_value_set_object (parms + 1, (GObject *) connection); d_printf ("p %d, Non-accepted input on fd %d\n", getpid (), server->priv->fd); g_signal_emitv (parms, server_signals [NEW_CONNECTION], 0, NULL); g_value_unset (parms); g_value_unset (parms + 1); } return TRUE; } /** * link_server_setup: * @srv: the connection to setup * @proto_name: the protocol to use * @local_host_info: the local hsot * @local_serv_info: remote server info * @create_options: various create options * * Setup the server object. You should create a server object * via g_object_new and then set it up, using this method. * * Return value: the initialized server **/ gboolean link_server_setup (LinkServer *srv, const char *proto_name, const char *local_host_info, const char *local_serv_info, LinkConnectionOptions create_options) { const LinkProtocolInfo *proto; int fd, n; struct sockaddr *saddr; LinkSockLen saddr_len; const char *local_host; char *service, *hostname; #ifndef LINK_SSL_SUPPORT if (create_options & LINK_CONNECTION_SSL) return FALSE; #endif proto = link_protocol_find (proto_name); if (!proto) { d_printf ("Can't find proto '%s'\n", proto_name); return FALSE; } srv->proto = proto; if (local_host_info) local_host = local_host_info; else local_host = link_get_local_hostname (); address_in_use: saddr = link_protocol_get_sockaddr ( proto, local_host, local_serv_info, &saddr_len); if (!saddr) { d_printf ("Can't get_sockaddr proto '%s' '%s'\n", local_host, local_serv_info ? local_serv_info : "(null)"); return FALSE; } fd = socket (proto->family, SOCK_STREAM, proto->stream_proto_num); #ifdef HAVE_WINSOCK2_H if (fd == INVALID_SOCKET) { fd = -1; link_map_winsock_error_to_errno (); } #endif if (fd < 0) { g_free (saddr); d_printf ("socket (%d, SOCK_STREAM, %d) failed: %s\n", proto->family, proto->stream_proto_num, link_strerror (errno)); return FALSE; } #ifdef HAVE_WINSOCK2_H { SOCKET newfd; if (!DuplicateHandle (GetCurrentProcess (), (HANDLE) fd, GetCurrentProcess (), (LPHANDLE) &newfd, 0, FALSE, DUPLICATE_SAME_ACCESS | DUPLICATE_CLOSE_SOURCE)) { d_printf ("DuplicateHandle failed: %s\n", link_strerror (WSAGetLastError ())); return FALSE; } fd = newfd; } #endif { static const int oneval = 1; setsockopt (fd, SOL_SOCKET, SO_REUSEADDR, (const char *) &oneval, sizeof (oneval)); } n = 0; errno = 0; if ((proto->flags & LINK_PROTOCOL_NEEDS_BIND) || local_serv_info) n = bind (fd, saddr, saddr_len); if (proto->post_create) (*proto->post_create) (fd, saddr); #ifdef HAVE_WINSOCK2_H if (n == SOCKET_ERROR) { n = -1; link_map_winsock_error_to_errno (); } #endif if (n && errno == EADDRINUSE) { LINK_CLOSE_SOCKET(fd); if (!local_serv_info) { d_printf ("bind failed; retrying\n"); goto address_in_use; } } if (n) d_printf ("bind failed: %s\n", link_strerror (errno)); if (!n) { n = listen (fd, 10); #ifdef HAVE_WINSOCK2_H if (n == SOCKET_ERROR) { n = -1; link_map_winsock_error_to_errno (); } #endif if (n) d_printf ("listen failed: %s\n", link_strerror (errno)); } if (!n && create_options & LINK_CONNECTION_NONBLOCKING) { #ifdef HAVE_WINSOCK2_H u_long yes = 1; if (ioctlsocket (fd, FIONBIO, &yes) == SOCKET_ERROR) { n = -1; link_map_winsock_error_to_errno (); } #else n = fcntl (fd, F_SETFL, O_NONBLOCK); #endif if (n) d_printf ("failed to set nonblock on %d: %s\n", fd, link_strerror (errno)); } #if defined (F_SETFD) && defined (FD_CLOEXEC) if (!n) { n = fcntl (fd, F_SETFD, FD_CLOEXEC); if (n) d_printf ("failed to set cloexec on %d: %s", fd, link_strerror (errno)); } #endif if (!n) { n = getsockname (fd, saddr, &saddr_len); #ifdef HAVE_WINSOCK2_H if (n == SOCKET_ERROR) { n = -1; link_map_winsock_error_to_errno (); } #endif if (n) { link_protocol_destroy_addr (proto, fd, saddr); d_printf ("getsockname failed: %s\n", link_strerror (errno)); return FALSE; } } if (!link_protocol_get_sockinfo (proto, saddr, &hostname, &service)) { link_protocol_destroy_addr (proto, fd, saddr); d_printf ("link_getsockinfo failed.\n"); return FALSE; } g_free (saddr); srv->priv->fd = fd; if (create_options & LINK_CONNECTION_NONBLOCKING) { g_assert (srv->priv->tag == NULL); srv->priv->tag = link_io_add_watch_fd ( fd, LINK_IN_CONDS | LINK_ERR_CONDS, link_server_handle_io, srv); } srv->create_options = create_options; if (local_host_info) { g_free (hostname); srv->local_host_info = g_strdup (local_host_info); } else srv->local_host_info = hostname; srv->local_serv_info = service; server_list = g_list_prepend (server_list, srv); d_printf ("Created a new server fd (%d) '%s', '%s', '%s'\n", fd, proto->name, hostname ? hostname : "", service ? service : ""); return TRUE; } static void link_server_class_init (LinkServerClass *klass) { GType ptype; GClosure *closure; GObjectClass *object_class = (GObjectClass *) klass; object_class->dispose = link_server_dispose; object_class->finalize = link_server_finalize; klass->create_connection = link_server_create_connection; parent_class = g_type_class_peek_parent (klass); closure = g_signal_type_cclosure_new ( G_OBJECT_CLASS_TYPE (klass), G_STRUCT_OFFSET (LinkServerClass, new_connection)); ptype = G_TYPE_OBJECT; server_signals [NEW_CONNECTION] = g_signal_newv ( "new_connection", G_OBJECT_CLASS_TYPE (klass), G_SIGNAL_RUN_LAST, closure, NULL, NULL, my_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, &ptype); } GType link_server_get_type (void) { static GType object_type = 0; if (!object_type) { static const GTypeInfo object_info = { sizeof (LinkServerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) link_server_class_init, NULL, /* class_finalize */ NULL, /* class_data */ sizeof (LinkServer), 0, /* n_preallocs */ (GInstanceInitFunc) link_server_init }; object_type = g_type_register_static ( G_TYPE_OBJECT, "LinkServer", &object_info, 0); } return object_type; } void link_servers_move_io_T (gboolean to_io_thread) { GList *l; for (l = server_list; l; l = l->next) { LinkServer *srv = l->data; link_watch_move_io (srv->priv->tag, to_io_thread); } } ORBit2-2.14.19/linc2/src/linc-protocols.c0000644000175000001440000010357611334247617014603 00000000000000/* * linc-protocols.c: This file is part of the linc library. * * Authors: * Elliot Lee (sopwith@redhat.com) * Michael Meeks (michael@ximian.com) * Mark McLouglin (mark@skynet.ie) & others * * Copyright 2001, Red Hat, Inc., Ximian, Inc., * Sun Microsystems, Inc. */ #include #include "linc-compat.h" #include #include #include "linc-private.h" #include #ifdef HAVE_SYS_SOCKIO_H #include #endif #ifndef G_OS_WIN32 #include #include #endif #undef LOCAL_DEBUG static char *link_tmpdir = NULL; #ifdef G_OS_WIN32 static LinkNetIdType use_local_host = LINK_NET_ID_IS_IPADDR; #else static LinkNetIdType use_local_host = LINK_NET_ID_IS_FQDN; #endif static const char *fixed_host_net_id = NULL; /* * make_local_tmpdir: * @dirname: directory name. * * Create a directory with the name in @dirname. Also, clear the * access and modification times of @dirname. * * If the directory already exists and is not owned by the current * user, or is not solely readable by the current user, then linc * will error out. */ static void make_local_tmpdir (const char *dirname) { struct stat statbuf; if (g_mkdir (dirname, 0700) != 0) { int e = errno; switch (e) { case 0: case EEXIST: if (g_stat (dirname, &statbuf) != 0) g_error ("Can not stat %s\n", dirname); #if !defined (__CYGWIN__) && !defined(_WIN32) if (getuid() != 0 && statbuf.st_uid != getuid ()) g_error ("Owner of %s is not the current user\n", dirname); if ((statbuf.st_mode & (S_IRWXG|S_IRWXO)) || !S_ISDIR (statbuf.st_mode)) g_error ("Wrong permissions for %s\n", dirname); #endif break; default: g_error("Unknown error on directory creation of %s (%s)\n", dirname, g_strerror (e)); } } #if (defined (HAVE_UTIME_H) || defined (HAVE_SYS_UTIME_H)) && !defined (G_OS_WIN32) { /* Hide some information ( apparently ) */ struct utimbuf utb; memset (&utb, 0, sizeof (utb)); utime (dirname, &utb); } #endif } /** * link_set_tmpdir: * @dir: directory name. * * Set the temporary directory used by linc to @dir. * * This directory is used for the creation of UNIX sockets. * @dir must have the correct permissions, 0700, user owned * otherwise this method will g_error. **/ void link_set_tmpdir (const char *dir) { g_free (link_tmpdir); link_tmpdir = g_strdup (dir); make_local_tmpdir (link_tmpdir); } /** * link_get_tmpdir: * @void: * * Fetches the directory name used by linc to whack * Unix Domain sockets into. * * Return value: the g_allocated socket name. **/ char * link_get_tmpdir (void) { return g_strdup (link_tmpdir ? link_tmpdir : ""); } #ifdef HAVE_SOCKADDR_SA_LEN #define LINK_SET_SOCKADDR_LEN(saddr, len) \ ((struct sockaddr *)(saddr))->sa_len = (len) #else #define LINK_SET_SOCKADDR_LEN(saddr, len) #endif #if defined(HAVE_RESOLV_H) && defined(AF_INET6) && defined(RES_USE_INET6) #define LINK_RESOLV_SET_IPV6 _res.options |= RES_USE_INET6 #define LINK_RESOLV_UNSET_IPV6 _res.options &= ~RES_USE_INET6 #else #define LINK_RESOLV_SET_IPV6 #define LINK_RESOLV_UNSET_IPV6 #endif #if defined(AF_INET) || defined(AF_INET6) || defined (AF_UNIX) #ifndef G_OS_WIN32 static void get_first_non_local_ipaddr(char *buf, size_t len) { int sock; const char *retv; struct if_nameindex *ifname_idx_array; struct if_nameindex *ifname_idx; struct sockaddr_in sin; struct ifreq ifr; *buf = '\0'; sock = socket(AF_INET, SOCK_DGRAM, 0); if (-1 == sock) return; ifname_idx_array = if_nameindex(); for (ifname_idx = ifname_idx_array; ifname_idx && ifname_idx->if_name && ifname_idx->if_name[0]; ifname_idx++) { strncpy(ifr.ifr_name, ifname_idx->if_name, IFNAMSIZ); if (ioctl(sock, SIOCGIFADDR, &ifr)) continue; memcpy(&sin, &(ifr.ifr_addr), sizeof(struct sockaddr_in)); retv = (const char*)inet_ntoa(sin.sin_addr); retv = strcmp("127.0.0.1", retv) ? retv : NULL; if (retv) { strncpy(buf, (const char*)inet_ntoa(sin.sin_addr), len); break; } } if (ifname_idx_array) if_freenameindex(ifname_idx_array); if (-1 != sock) close(sock); } #endif static char * get_netid(LinkNetIdType which, char *buf, size_t len) { if (LINK_NET_ID_IS_LOCAL == which) { #ifndef G_OS_WIN32 return strncpy(buf, "localhost", len); #else return strncpy(buf, "127.0.0.1", len); #endif } if ((LINK_NET_ID_IS_IPADDR == which) || (LINK_NET_ID_IS_CUSTOM == which)) { #ifndef G_OS_WIN32 if (fixed_host_net_id) strncpy(buf, fixed_host_net_id, len); else get_first_non_local_ipaddr(buf, len); if ('\0' == *buf) strncpy(buf, "127.0.0.1", len); return buf; #else SOCKET sock; DWORD nbytes; /* Let's hope 20 interfaces is enough. There doesn't * seem to be any way to get information about how * many interfaces there are. */ INTERFACE_INFO interfaces[20]; int i; sock = socket (AF_INET, SOCK_DGRAM, IPPROTO_UDP); if (sock == INVALID_SOCKET) goto out; if (WSAIoctl (sock, SIO_GET_INTERFACE_LIST, NULL, 0, interfaces, sizeof (interfaces), &nbytes, NULL, NULL) == SOCKET_ERROR || nbytes == 0 || (nbytes % sizeof (INTERFACE_INFO)) != 0) { closesocket (sock); goto out; } closesocket (sock); /* First look for a non-loopback IPv4 address */ for (i = 0; i < nbytes / sizeof (INTERFACE_INFO); i++) { if ((interfaces[i].iiFlags & IFF_UP) && !(interfaces[i].iiFlags & IFF_LOOPBACK) && interfaces[i].iiAddress.Address.sa_family == AF_INET) { d_printf("%s:%s:%d: returning %s\n", __FILE__, __FUNCTION__, __LINE__, inet_ntoa(interfaces[i].iiAddress.AddressIn.sin_addr)); return strncpy(buf, inet_ntoa(interfaces[i].iiAddress.AddressIn.sin_addr), len); } } /* Next look for a loopback IPv4 address */ for (i = 0; i < nbytes / sizeof (INTERFACE_INFO); i++) { if ((interfaces[i].iiFlags & IFF_UP) && (interfaces[i].iiFlags & IFF_LOOPBACK) && interfaces[i].iiAddress.Address.sa_family == AF_INET) return strncpy(buf, inet_ntoa(interfaces[i].iiAddress.AddressIn.sin_addr), len); } /* Fail */ goto out; #endif } if ((LINK_NET_ID_IS_SHORT_HOSTNAME == which) || (LINK_NET_ID_IS_FQDN == which)) { d_printf("%s:%s:%d:gethostname()\n", __FILE__, __FUNCTION__, __LINE__); if (gethostname(buf, len)) goto out; #ifndef G_OS_WIN32 if (errno == EINVAL) goto out; #endif if (LINK_NET_ID_IS_SHORT_HOSTNAME == which) { char *retv = buf; while (*buf) { if ('.' == *buf) *buf = '\0'; buf++; } return retv; } } if (LINK_NET_ID_IS_FQDN == which) { #ifdef HAVE_GETADDRINFO struct addrinfo *result, hints; memset(&hints, 0, sizeof(struct addrinfo)); hints.ai_flags = AI_CANONNAME; if (!getaddrinfo(buf, NULL, &hints, &result)) { strncpy(buf, result->ai_canonname, len); freeaddrinfo(result); } else goto out; #else struct hostent *he; /* gethostbyname() is MT-safe on Windows, btw */ d_printf("%s:%s:%d:gethostbyname(%s)\n", __FILE__, __FUNCTION__, __LINE__, buf); he = gethostbyname(buf); if (!he) goto out; strncpy(buf, he->h_name, len); #endif return buf; } out: return NULL; } const char * link_get_local_hostname (void) { static char local_host[NI_MAXHOST] = { 0 }; if (local_host[0]) return local_host; get_netid(use_local_host, local_host, NI_MAXHOST); return local_host; } void link_use_local_hostname (LinkNetIdType use) { use_local_host = use; } void link_set_local_hostname (const char *host_id) { if (!host_id || !strlen(host_id)) return; fixed_host_net_id = host_id; use_local_host = LINK_NET_ID_IS_CUSTOM; } /* * True if succeeded in mapping, else false. */ static gboolean ipv4_addr_from_addr (struct in_addr *dest_addr, guint8 *src_addr, int src_length) { if (src_length == 4) memcpy (dest_addr, src_addr, 4); else if (src_length == 16) { int i; #ifdef LOCAL_DEBUG g_warning ("Doing conversion ..."); #endif /* An ipv6 address, might be an IPv4 mapped though */ for (i = 0; i < 10; i++) if (src_addr [i] != 0) return FALSE; if (src_addr [10] != 0xff || src_addr [11] != 0xff) return FALSE; memcpy (dest_addr, &src_addr[12], 4); } else return FALSE; return TRUE; } static gboolean link_protocol_is_local_ipv46 (const LinkProtocolInfo *proto, const struct sockaddr *saddr, LinkSockLen saddr_len) { static int warned = 0; #if defined (AF_INET6) && defined (HAVE_GETADDRINFO) struct addrinfo hints, *result = NULL; static struct addrinfo *local_addr = NULL; #else int i; static struct hostent *local_hostent; #endif g_assert (saddr->sa_family == proto->family); #if defined (AF_INET6) && defined (HAVE_GETADDRINFO) if (!local_addr) { memset(&hints, 0, sizeof(hints)); hints.ai_socktype = SOCK_STREAM; hints.ai_flags = AI_CANONNAME; if (getaddrinfo(link_get_local_hostname(), NULL, &hints, &local_addr) != 0) { if (!warned++) g_warning ("can't getaddrinfo on '%s'", link_get_local_hostname ()); return FALSE; } } if (!local_addr->ai_addr) g_error ("No address for local host"); if (proto->family != AF_INET) { if (proto->family == AF_INET6 && local_addr->ai_family != AF_INET6) return FALSE; /* can connect via IPv4 */ if (proto->family == AF_INET6) return FALSE; } for (result = local_addr; result; result = result->ai_next) { int af = result->ai_family; if ((af != AF_INET6) && (af != AF_INET)) continue; /* * We set the local_addr port number to the same value as * in the incoming_addr since the port number does not * affect testing whether the IP address is local or not. * On some machines, access() fills in the port value so * saddr will have a non-zero port value, and calling * getaddrinfo() on "localhost" will have 0 for the port * value. So doing this ensures the test will not fail * if the port numbers are different. Note that this code * is protected by the I/O thread so this is handled * synchronously, so it is safe to modify the static * local_addr value. */ if (proto->family == AF_INET) { if (af == AF_INET) { struct in_addr ipv4_def_addr; struct sockaddr_in * localaddr; struct sockaddr_in * incomingaddr; inet_aton ("127.0.0.1", &ipv4_def_addr); localaddr = (struct sockaddr_in *)result->ai_addr; incomingaddr = (struct sockaddr_in *)saddr; localaddr->sin_port = incomingaddr->sin_port; if (ipv4_def_addr.s_addr == incomingaddr->sin_addr.s_addr || !memcmp (localaddr, incomingaddr, result->ai_addrlen)) { #ifdef LOCAL_DEBUG g_warning ("local ipv4 address"); #endif return TRUE; } } } else { if (af == AF_INET6) { struct in6_addr ipv6_def_addr; struct sockaddr_in6 * localaddr; struct sockaddr_in6 * incomingaddr; inet_pton (AF_INET6, "::1", (void *)&ipv6_def_addr); localaddr = (struct sockaddr_in6 *)result->ai_addr; incomingaddr = (struct sockaddr_in6 *)saddr; localaddr->sin6_port = incomingaddr->sin6_port; if (!memcmp (&ipv6_def_addr, &incomingaddr->sin6_addr, sizeof(ipv6_def_addr)) || !memcmp (localaddr, incomingaddr, result->ai_addrlen)) { #ifdef LOCAL_DEBUG g_warning ("local ipv6 address"); #endif return TRUE; } } } } #ifdef LOCAL_DEBUG g_warning ("No match over all"); #endif return FALSE; #else /*HAVE_GETADDRINFO*/ /* Do simple check for INADDR_LOOPBACK first */ if (saddr->sa_family == AF_INET && ((struct sockaddr_in *)saddr)->sin_addr.s_addr == htonl (INADDR_LOOPBACK)) { #ifdef LOCAL_DEBUG /* I don't understand why g_warning() is used here, * but as the existing code does this if LOCAL_DEBUG * is defined and we are going to return TRUE, keep * doing it like that then... Not that I know if * anybody is using the LOCAL_DEBUG possibility? */ g_warning ("local ipv4 address"); #endif return TRUE; } #ifdef AF_INET6 /* Then simple check for IPv6 loopback address */ if (saddr->sa_family == AF_INET6 && IN6_IS_ADDR_LOOPBACK (saddr)) { #ifdef LOCAL_DEBUG g_warning ("local ipv6 address"); #endif return TRUE; } #endif if (!local_hostent) { LINK_RESOLV_SET_IPV6; d_printf("%s:%s:%d:gethostbyname(%s)\n", __FILE__, __FUNCTION__, __LINE__, link_get_local_hostname ()); local_hostent = gethostbyname (link_get_local_hostname ()); } if (!local_hostent) { if (!warned++) g_warning ("can't gethostbyname on '%s'", link_get_local_hostname ()); return FALSE; } if (!local_hostent->h_addr_list) g_error ("No address for local host"); if (proto->family != AF_INET) { #ifdef AF_INET6 if (proto->family == AF_INET6 && local_hostent->h_addrtype != AF_INET6) return FALSE; /* can connect via IPv4 */ if (proto->family != AF_INET6) return FALSE; #else return FALSE; #endif } for (i = 0; local_hostent->h_addr_list [i]; i++) { if (proto->family == AF_INET) { struct in_addr ipv4_addr; if (!ipv4_addr_from_addr (&ipv4_addr, (guint8 *)local_hostent->h_addr_list [i], local_hostent->h_length)) continue; if (!memcmp (&ipv4_addr, &((struct sockaddr_in *)saddr)->sin_addr.s_addr, 4)) { #ifdef LOCAL_DEBUG g_warning ("local ipv4 address"); #endif return TRUE; } } #ifdef AF_INET6 else if (!memcmp (local_hostent->h_addr_list [i], &((struct sockaddr_in6 *)saddr)->sin6_addr.s6_addr, local_hostent->h_length)) { #ifdef LOCAL_DEBUG g_warning ("local ipv6 address"); #endif return TRUE; } #endif } #ifdef LOCAL_DEBUG g_warning ("No match over all"); #endif return FALSE; #endif /*HAVE_GETADDRINFO*/ } #endif /* * link_protocol_get_sockaddr_ipv4: * @proto: the #LinkProtocolInfo structure for the IPv4 protocol. * @hostname: the hostname. * @portnum: the port number. * @saddr_len: location in which to store the returned structure's length. * * Allocates and fills a #sockaddr_in with with the IPv4 address * information. * * Return Value: a pointer to a valid #sockaddr_in structure if the call * succeeds, NULL otherwise. */ #ifdef AF_INET static struct sockaddr * link_protocol_get_sockaddr_ipv4 (const LinkProtocolInfo *proto, const char *hostname, const char *portnum, LinkSockLen *saddr_len) { struct sockaddr_in *saddr; struct hostent *host; g_assert (proto->family == AF_INET); g_assert (hostname); if (!portnum) portnum = "0"; saddr = g_new0 (struct sockaddr_in, 1); *saddr_len = sizeof (struct sockaddr_in); LINK_SET_SOCKADDR_LEN (saddr, sizeof (struct sockaddr_in)); saddr->sin_family = AF_INET; saddr->sin_port = htons (atoi (portnum)); if ((saddr->sin_addr.s_addr = inet_addr (hostname)) == INADDR_NONE) { int i; LINK_RESOLV_UNSET_IPV6; #ifdef HAVE_RESOLV_H if (!(_res.options & RES_INIT)) res_init(); #endif d_printf("%s:%s:%d:gethostbyname(%s)\n", __FILE__, __FUNCTION__, __LINE__, hostname); host = gethostbyname (hostname); if (!host) { g_free (saddr); return NULL; } for(i = 0; host->h_addr_list[i]; i++) if(ipv4_addr_from_addr (&saddr->sin_addr, (guint8 *)host->h_addr_list [i], host->h_length)) break; if(!host->h_addr_list[i]) { g_free (saddr); return NULL; } } return (struct sockaddr *) saddr; } #endif /* AF_INET */ /* * link_protocol_get_sockaddr_ipv6: * @proto: the #LinkProtocolInfo structure for the IPv6 protocol. * @hostname: the hostname. * @portnum: the port number * @saddr_len: location in which to store the returned structure's length. * * Allocates and fills a #sockaddr_in6 with with the IPv6 address * information. * * NOTE: This function is untested. * * Return Value: a pointer to a valid #sockaddr_in6 structure if the call * succeeds, NULL otherwise. */ #ifdef AF_INET6 static struct sockaddr * link_protocol_get_sockaddr_ipv6 (const LinkProtocolInfo *proto, const char *hostname, const char *portnum, LinkSockLen *saddr_len) { struct sockaddr_in6 *saddr; #ifdef HAVE_GETADDRINFO struct addrinfo *host, hints, *result = NULL; #else struct hostent *host; #endif g_assert (proto->family == AF_INET6); g_assert (hostname); if (!portnum) portnum = "0"; saddr = g_new0 (struct sockaddr_in6, 1); *saddr_len = sizeof (struct sockaddr_in6); LINK_SET_SOCKADDR_LEN (saddr, sizeof (struct sockaddr_in6)); saddr->sin6_family = AF_INET6; saddr->sin6_port = htons (atoi (portnum)); #ifdef HAVE_INET_PTON if (inet_pton (AF_INET6, hostname, &saddr->sin6_addr) > 0) return (struct sockaddr *)saddr; #endif #ifdef HAVE_GETADDRINFO memset (&hints, 0, sizeof(hints)); hints.ai_socktype = SOCK_STREAM; if (getaddrinfo (hostname, NULL, &hints, &result)) return NULL; for (host = result; host; host = host->ai_next) { if (host->ai_family == AF_INET6) break; } if (!host) { g_free (saddr); freeaddrinfo (result); return NULL; } memcpy (&saddr->sin6_addr, &((struct sockaddr_in6 *)host->ai_addr)->sin6_addr, sizeof (struct in6_addr)); freeaddrinfo (result); return (struct sockaddr *)saddr; #else #ifdef HAVE_RESOLV_H if (!(_res.options & RES_INIT)) res_init(); #endif LINK_RESOLV_SET_IPV6; d_printf("%s:%s:%d:gethostbyname(%s)\n", __FILE__, __FUNCTION__, __LINE__, hostname); host = gethostbyname (hostname); if (!host || host->h_addrtype != AF_INET6) { g_free (saddr); return NULL; } memcpy (&saddr->sin6_addr, host->h_addr_list[0], sizeof (struct in6_addr)); return (struct sockaddr *)saddr; #endif /* HAVE_GETADDRINFO */ } #endif /* AF_INET6 */ #ifdef AF_UNIX /* * link_protocol_get_sockaddr_unix: * @proto: the #LinkProtocolInfo structure for the UNIX sockets protocol. * @dummy: not used. * @path: the path name of the UNIX socket. * @saddr_len: location in which to store the returned structure's length. * * Allocates and fills a #sockaddr_un with with the UNIX socket address * information. * * If @path is NULL, a new, unique path name will be generated. * * Return Value: a pointer to a valid #sockaddr_un structure if the call * succeeds, NULL otherwise. */ static struct sockaddr * link_protocol_get_sockaddr_unix (const LinkProtocolInfo *proto, const char *dummy, const char *path, LinkSockLen *saddr_len) { struct sockaddr_un *saddr; int pathlen; char buf[LINK_UNIX_PATH_MAX], *actual_path; g_assert (proto->family == AF_UNIX); if (!path) { struct timeval t; static guint pid = 0, idx = 0; if (!pid) pid = getpid (); gettimeofday (&t, NULL); g_snprintf (buf, sizeof (buf), "%s/linc-%x-%x-%x%x", link_tmpdir ? link_tmpdir : "", pid, idx, (guint) (rand() ^ t.tv_sec), (guint) (idx ^ t.tv_usec)); idx++; #ifdef CONNECTION_DEBUG if (g_file_test (buf, G_FILE_TEST_EXISTS)) g_warning ("'%s' already exists !", buf); #endif actual_path = buf; } else actual_path = (char *)path; pathlen = strlen (actual_path) + 1; if (pathlen > sizeof (saddr->sun_path)) return NULL; saddr = g_new0 (struct sockaddr_un, 1); *saddr_len = sizeof (struct sockaddr_un) - sizeof (saddr->sun_path) + pathlen; LINK_SET_SOCKADDR_LEN (saddr, *saddr_len); saddr->sun_family = AF_UNIX; strncpy (saddr->sun_path, actual_path, sizeof (saddr->sun_path) - 1); saddr->sun_path[sizeof (saddr->sun_path) - 1] = '\0'; return (struct sockaddr *)saddr; } #endif /* AF_UNIX */ /* * link_protocol_get_sockaddr: * @proto: a #LinkProtocolInfo structure. * @hostname: protocol dependant host information. * @service: protocol dependant service information. * @saddr_len: location in which to store the returned structure's length. * * Allocates, fills in and returns the #sockaddr structure appropriate * for the supplied protocol, @proto. * * Return Value: a pointer to a valid #sockaddr structure if the call * succeeds, NULL otherwise. */ struct sockaddr * link_protocol_get_sockaddr (const LinkProtocolInfo *proto, const char *hostname, const char *service, LinkSockLen *saddr_len) { if (proto && proto->get_sockaddr) return proto->get_sockaddr (proto, hostname, service, saddr_len); return NULL; } /* * link_protocol_get_sockinfo_ipv46: * @host: char pointer describing the hostname. * @port: the portnumber. * @hostname: pointer by which the hostname string is returned. * @portnum: pointer by which the port number string is returned. * * Generates two strings, returned through @hostname and @portnum, corresponding * to @host and @port. On return @hostname should contain the canonical hostname * of the host and @portnum should contain the port number string. * * If @host is NULL, the local host name is used. * * Note: both @hostname and @service are allocated on the heap and should be * freed using g_free(). * * Return Value: #TRUE if the function succeeds, #FALSE otherwise. */ static gboolean link_protocol_get_sockinfo_ipv46 (const char *host, guint port, gchar **hostname, char **portnum) { if (!host) if (!(host = link_get_local_hostname ())) return FALSE; if (hostname) *hostname = g_strdup (host); if (portnum) { gchar tmpport[NI_MAXSERV]; g_snprintf (tmpport, sizeof (tmpport), "%d", ntohs (port)); *portnum = g_strdup (tmpport); } return TRUE; } /* * link_protocol_get_sockinfo_ipv4: * @proto: the #LinkProtocolInfo structure for the IPv4 protocol. * @sockaddr: a #sockaddr_in structure desribing the socket. * @hostname: pointer by which the hostname string is returned. * @portnum: pointer by which the port number string is returned. * * Generates two strings, returned through @hostname and @portnum, describing * the socket address, @sockaddr. On return @hostname should contain the * canonical hostname of the host described in @sockaddr and @portnum should * contain the port number of the socket described in @sockaddr. * * Note: both @hostname and @service are allocated on the heap and should be * freed using g_free(). * * Return Value: #TRUE if the function succeeds, #FALSE otherwise. */ #ifdef AF_INET static gboolean link_protocol_get_sockinfo_ipv4 (const LinkProtocolInfo *proto, const struct sockaddr *saddr, gchar **hostname, gchar **portnum) { struct sockaddr_in *sa_in = (struct sockaddr_in *)saddr; struct hostent *host = NULL; char *hname = NULL; g_assert (proto && saddr && saddr->sa_family == AF_INET); #ifdef G_OS_WIN32 hname = inet_ntoa(sa_in->sin_addr); #else if (ntohl (sa_in->sin_addr.s_addr) != INADDR_ANY) { host = gethostbyaddr ((char *)&sa_in->sin_addr, sizeof (struct in_addr), AF_INET); if (host) hname = host->h_name; } #endif return link_protocol_get_sockinfo_ipv46 (hname, sa_in->sin_port, hostname, portnum); } #endif /* AF_INET */ /* * link_protocol_get_sockinfo_ipv6: * @proto: the #LinkProtocolInfo structure for the IPv6 protocol. * @sockaddr: a #sockaddr_in structure desribing the socket. * @hostname: pointer by which the hostname string is returned. * @portnum: pointer by which the port number string is returned. * * Generates two strings, returned through @hostname and @portnum, describing * the socket address, @sockaddr. On return @hostname should contain the * canonical hostname of the host described in @sockaddr and @portnum should * contain the port number of the socket described in @sockaddr. * * Note: both @hostname and @service are allocated on the heap and should be * freed using g_free(). * * Return Value: #TRUE if the function succeeds, #FALSE otherwise. */ #ifdef AF_INET6 /* * We need some explicit check for Macs here - OSF1 does this * right, and does not use a #define; so the Mac gets to break for * now, until someone sends me a patch. */ #ifdef MAC_OS_X_IS_SO_BROKEN /* FIXME: is IN6ADDR_ANY_INIT exported on Mac OS X ? */ /* on Mac OS X 10.1 inaddr6_any isn't exported by libc */ # ifndef in6addr_any static const struct in6_addr in6addr_any = { { { 0 } } }; # endif #endif static gboolean link_protocol_get_sockinfo_ipv6 (const LinkProtocolInfo *proto, const struct sockaddr *saddr, gchar **hostname, gchar **portnum) { struct sockaddr_in6 *sa_in6 = (struct sockaddr_in6 *)saddr; #ifdef HAVE_GETNAMEINFO char hbuf[NI_MAXHOST]; #else struct hostent *host = NULL; #endif char *hname = NULL; g_assert (proto && saddr && saddr->sa_family == AF_INET6); if (memcmp (&sa_in6->sin6_addr, &in6addr_any, sizeof (struct in6_addr))) { #ifdef HAVE_GETNAMEINFO if (!getnameinfo((struct sockaddr *)sa_in6, sizeof(*sa_in6), hbuf, sizeof(hbuf), NULL, 0, NI_NAMEREQD)) hname = hbuf; } #else host = gethostbyaddr ((char *)&sa_in6->sin6_addr, sizeof (struct in6_addr), AF_INET6); if (host) hname = host->h_name; } #endif /* HAVE_GETNAMEINFO */ return link_protocol_get_sockinfo_ipv46 (hname, sa_in6->sin6_port, hostname, portnum); } #endif /* AF_INET6 */ /* * link_protocol_get_sockinfo_unix: * @proto: a #LinkProtocolInfo structure. * @sockaddr: a #sockaddr_un structure desribing the socket. * @hostname: pointer by which the hostname string is returned. * @service: pointer by which the sockets pathname string is returned. * * Generates two strings, returned through @hostname and @sock_path, describing * the socket address, @sockaddr. On return @hostname should contain the * canonical hostname of the local host and @sock_path should contain the * path name of the unix socket described in @sockaddr. * * Note: both @hostname and @sock_path are allocated on the heap and should * be freed using g_free(). * * Return Value: #TRUE if the function succeeds, #FALSE otherwise. */ #ifdef AF_UNIX static gboolean link_protocol_get_sockinfo_unix (const LinkProtocolInfo *proto, const struct sockaddr *saddr, gchar **hostname, gchar **sock_path) { struct sockaddr_un *sa_un = (struct sockaddr_un *)saddr; g_assert (proto && saddr && saddr->sa_family == AF_UNIX); if (hostname) { const char *local_host; if (!(local_host = link_get_local_hostname ())) return FALSE; *hostname = g_strdup (local_host); } if (sock_path) *sock_path = g_strdup (sa_un->sun_path); return TRUE; } /* * link_protocol_post_create_unix: * @fd: the file descriptor. * @sockaddr: a #sockaddr_un structure describing the socket. * * For a user running a program as root, set the owner of the socket to * the original user. */ static void link_protocol_post_create_unix (int fd, struct sockaddr *saddr) { #ifndef G_OS_WIN32 struct sockaddr_un *saddr_un = (struct sockaddr_un *)saddr; if (getuid() == 0) { struct stat stat_buf; if (!stat (link_tmpdir, &stat_buf)) chown (saddr_un->sun_path, stat_buf.st_uid, -1); } #endif } #endif /* AF_UNIX */ /* * link_protocol_get_sockinfo: * @proto: a #LinkProtocolInfo structure. * @sockaddr: a #sockadrr structure desribing the socket. * @hostname: pointer by which the hostname string is returned. * @service: pointer by which the service string is returned. * * Generates two strings, returned through @hostname and @service, describing * the socket address, @sockaddr. On return @hostname should contain the * canonical hostname of the host described in @sockaddr and @service should * contain the service descriptor(e.g. port number) of the socket described in * @sockaddr * * Note: both @hostname and @service are allocated on the heap and should be * freed using g_free(). * * Return Value: #TRUE if the function succeeds, #FALSE otherwise. */ gboolean link_protocol_get_sockinfo (const LinkProtocolInfo *proto, const struct sockaddr *saddr, gchar **hostname, gchar **service) { if (proto && proto->get_sockinfo) return proto->get_sockinfo (proto, saddr, hostname, service); return FALSE; } /** * link_protocol_is_local: * @proto: the protocol * @saddr: the socket address of a connecting client. * * This method determines if the client is from the same * machine or not - per protocol. * * Return value: TRUE if the connection is local, else FALSE **/ gboolean link_protocol_is_local (const LinkProtocolInfo *proto, const struct sockaddr *saddr, LinkSockLen saddr_len) { if (proto && proto->is_local) return proto->is_local (proto, saddr, saddr_len); return FALSE; } /* * af_unix_destroy: * @fd: file descriptor of the socket. * @dummy: not used. * @pathname: path name of the UNIX socket * * Removes the UNIX socket file. */ #ifdef AF_UNIX static void link_protocol_unix_destroy (int fd, const char *dummy, const char *pathname) { g_unlink (pathname); } static gboolean link_protocol_unix_is_local (const LinkProtocolInfo *proto, const struct sockaddr *saddr, LinkSockLen saddr_len) { return TRUE; } #endif /* AF_UNIX */ /* * link_protocol_tcp_setup: * @fd: file descriptor of the socket. * @cnx_flags: a #LinkConnectionOptions value. * * Sets the TCP_NODELAY option on the TCP socket. * * Note: this is not applied to SSL TCP sockets. */ #if defined(AF_INET) || defined(AF_INET6) static void link_protocol_tcp_setup (int fd, LinkConnectionOptions cnx_flags) { #ifdef TCP_NODELAY if (!(cnx_flags & LINK_CONNECTION_SSL)) { struct protoent *proto; int on = 1; proto = getprotobyname ("tcp"); if (!proto) return; setsockopt (fd, proto->p_proto, TCP_NODELAY, (const char *) &on, sizeof (on)); } #endif } #endif /* defined(AF_INET) || defined(AF_INET6) */ /* * Comments from bug #422908. * Since version 2.14.9 we now always set the flag * LINK_PROTOCOL_NEEDS_BIND for IPv4 and IPv6. This was * changed because on Solaris this bind is needed to open * the ports securely when ORBLocalOnly is being used. The * maintainers decided it would be best to simply turn the * flag on for all platforms rather than support complicated * ifdefs. We believe this will not cause any issues. * However, if there is a need to revert, please make sure * that this flag continues to be set for the following * platforms at minimum: * * IPv4: #if defined (G_OS_WIN32) || defined (__sun) * IPv6: #if defined (__sun) */ static LinkProtocolInfo static_link_protocols[] = { #if defined(AF_INET) { "IPv4", /* name */ AF_INET, /* family */ sizeof (struct sockaddr_in), /* addr_len */ IPPROTO_TCP, /* stream_proto_num */ LINK_PROTOCOL_NEEDS_BIND, /* flags */ link_protocol_tcp_setup, /* setup */ NULL, /* destroy */ link_protocol_get_sockaddr_ipv4,/* get_sockaddr */ link_protocol_get_sockinfo_ipv4,/* get_sockinfo */ link_protocol_is_local_ipv46, /* is_local */ NULL /* post_create */ }, #endif #if defined(AF_INET6) { "IPv6", /* name */ AF_INET6, /* family */ sizeof (struct sockaddr_in6), /* addr_len */ IPPROTO_TCP, /* stream_proto_num */ LINK_PROTOCOL_NEEDS_BIND, /* flags */ link_protocol_tcp_setup, /* setup */ NULL, /* destroy */ link_protocol_get_sockaddr_ipv6,/* get_sockaddr */ link_protocol_get_sockinfo_ipv6,/* get_sockinfo */ link_protocol_is_local_ipv46, /* is_local */ NULL /* post_create */ }, #endif #ifdef AF_UNIX { "UNIX", /* name */ AF_UNIX, /* family */ sizeof (struct sockaddr_un), /* addr_len */ 0, /* stream_proto_num */ LINK_PROTOCOL_SECURE|LINK_PROTOCOL_NEEDS_BIND, /* flags */ NULL, /* setup */ link_protocol_unix_destroy, /* destroy */ link_protocol_get_sockaddr_unix, /* get_sockaddr */ link_protocol_get_sockinfo_unix, /* get_sockinfo */ link_protocol_unix_is_local, /* is_local */ link_protocol_post_create_unix /* post_create */ }, #endif { NULL /* name */ } }; void link_protocol_destroy_cnx (const LinkProtocolInfo *proto, int fd, const char *host, const char *service) { g_return_if_fail (proto != NULL); if (fd >= 0) { if (proto->destroy) proto->destroy (fd, host, service); d_printf ("link_protocol_destroy_cnx: closing %d\n", fd); LINK_CLOSE_SOCKET (fd); } } void link_protocol_destroy_addr (const LinkProtocolInfo *proto, int fd, struct sockaddr *saddr) { g_return_if_fail (proto != NULL); if (fd >= 0) { #ifdef AF_UNIX if (proto->family == AF_UNIX && proto->destroy) { /* We are AF_UNIX - we need the path to unlink */ struct sockaddr_un *addr_un = (struct sockaddr_un *) saddr; proto->destroy (fd, NULL, addr_un->sun_path); } #endif d_printf ("link_protocol_destroy_addr: closing %d\n", fd); LINK_CLOSE_SOCKET (fd); g_free (saddr); } } /* * link_protocol_all: * * Returns a list of protocols supported by linc. * * Note: the list is terminated by a #LinkProtocolInfo with a * NULL name pointer. * * Return Value: an array of #LinkProtocolInfo structures. */ LinkProtocolInfo * link_protocol_all (void) { return static_link_protocols; } /* * link_protocol_find: * @name: name of the protocol. * * Find a protocol identified by @name. * * Return Value: a pointer to a valid #LinkProtocolInfo structure if * the protocol is supported by linc, NULL otherwise. */ LinkProtocolInfo * link_protocol_find (const char *name) { int i; for (i = 0; static_link_protocols [i].name; i++) { if (!strcmp (name, static_link_protocols [i].name)) return &static_link_protocols [i]; } return NULL; } /* * link_protocol_find_num: * @family: the family identifier of the protocol - i.e. AF_* * * Find a protocol identified by @family. * * Return Value: a pointer to a valid #LinkProtocolInfo structure if * the protocol is supported by linc, NULL otherwise. */ LinkProtocolInfo * link_protocol_find_num (const int family) { int i; for (i = 0; static_link_protocols [i].name; i++) { if (family == static_link_protocols [i].family) return &static_link_protocols [i]; } return NULL; } ORBit2-2.14.19/linc2/src/linc-compat.h0000644000175000001440000000507111334247617014036 00000000000000/* * Herein lies a set of private ugly portability * hacks for the mind-numbingly broken Unix like * things that exist out there. */ #ifndef LINK_HACKS_H #define LINK_HACKS_H #include #ifdef HAVE_WINSOCK2_H # include # include #else # ifdef HAVE_SYS_SOCKET_H # include # endif # ifdef HAVE_NETINET_IN_H # include # endif # ifdef HAVE_NETDB_H # include # endif # ifdef HAVE_NETINET_TCP_H # include # endif # ifdef HAVE_SYS_UN_H # include # endif # ifdef HAVE_ARPA_INET_H # include # endif # ifdef HAVE_ARPA_NAMESER_H # include # endif # ifdef HAVE_RESOLV_H # include # endif #endif #include #ifdef HAVE_SYS_TIME_H # include #endif #ifdef HAVE_UNISTD_H # include #endif #include #include #include #include #ifdef HAVE_UTIME_H # include #else # ifdef HAVE_SYS_UTIME_H # include # endif #endif #include #include #ifdef HAVE_LINUX_IRDA_H # include # include #endif #ifndef MAXHOSTNAMELEN # define MAXHOSTNAMELEN 255 #endif #ifdef HAVE_WINSOCK2_H /* Define fake errno values for socket stuff. These aren't defined * in the Microsoft C library. Use the WSAE* error codes as such, * as they don't overlap with errno values. Define only those that * actually are used by the linc2 code. */ # ifndef ECONNREFUSED # define ECONNREFUSED WSAECONNREFUSED # endif # ifndef EADDRINUSE # define EADDRINUSE WSAEADDRINUSE # endif # ifndef EINPROGRESS # define EINPROGRESS WSAEINPROGRESS # endif /* Undefine address families that aren't really present, as the * linc code checks for these macros being defined when it * determines whether they are supported. (It would be more correct * to check at run-time.) */ # undef AF_UNIX /* No Unix domain sockets */ # undef AF_INET6 /* Doesn't have sockaddr_in6 */ #endif #if !defined (NI_MAXSERV) || !defined (NI_MAXHOST) # include #endif #if !defined (NI_MAXHOST) # define NI_MAXHOST MAXHOSTNAMELEN #endif #if !defined (NI_MAXSERV) # define NI_MAXSERV 64 #endif #if !defined (INADDR_NONE) # define INADDR_NONE (-1) #endif #if !defined (UNIX_PATH_MAX) /* UNP: 14.2 - Posix.1g at least 100 bytes */ # define LINK_UNIX_PATH_MAX 100 #else # define LINK_UNIX_PATH_MAX UNIX_PATH_MAX #endif const char *link_strerror (int); #endif /* LINK_HACKS_H */ ORBit2-2.14.19/linc2/src/linc.c0000644000175000001440000003154411334247617012554 00000000000000/* * linc.c: This file is part of the linc library. * * Authors: * Elliot Lee (sopwith@redhat.com) * Michael Meeks (michael@ximian.com) * Mark McLouglin (mark@skynet.ie) & others * * Copyright 2001, Red Hat, Inc., Ximian, Inc., * Sun Microsystems, Inc. */ #include #include #include #ifdef HAVE_UNISTD_H # include #endif #include #include #include "linc-private.h" #include "linc-compat.h" #include /* whether we do locking or not */ static gboolean link_is_thread_safe = TRUE; /* an inferior loop/context for std. processing */ GMainLoop *link_loop = NULL; static GMainContext *link_context = NULL; /* an inferior context for the I/O thread */ static GThread *link_io_thread = NULL; static GMainLoop *link_thread_loop = NULL; static GMainContext *link_thread_context = NULL; static gboolean link_is_io_in_thread = FALSE; /* a big global lock for link */ static GMutex *link_main_lock; static GCond *link_main_cond; /* command dispatch to the I/O loop */ static GMutex *link_cmd_queue_lock = NULL; static GCond *link_cmd_queue_cond = NULL; static GList *link_cmd_queue = NULL; static int link_wakeup_fds[2] = { -1, -1 }; #define LINK_WAKEUP_POLL link_wakeup_fds [0] #define LINK_WAKEUP_WRITE link_wakeup_fds [1] static GSource *link_main_source = NULL; #ifdef LINK_SSL_SUPPORT SSL_METHOD *link_ssl_method; SSL_CTX *link_ssl_ctx; #endif static void link_dispatch_command (gpointer data, gboolean immediate); gboolean link_thread_io (void) { gboolean result; /* FIXME: re-factor this to avoid locking */ result = link_io_thread != NULL; return result; } gboolean link_thread_safe (void) { return link_is_thread_safe; } static gboolean cmd_is_sync (LinkCommand *cmd) { return (cmd->type == LINK_COMMAND_SET_IO_THREAD) || (cmd->type == LINK_COMMAND_CNX_UNREF); } static gboolean link_mainloop_handle_input (GIOChannel *source, GIOCondition condition, gpointer data) { char c; GList *l, *queue; g_mutex_lock (link_cmd_queue_lock); #ifdef HAVE_WINSOCK2_H recv (LINK_WAKEUP_POLL, &c, sizeof (c), 0); #else read (LINK_WAKEUP_POLL, &c, sizeof (c)); #endif queue = link_cmd_queue; link_cmd_queue = NULL; g_mutex_unlock (link_cmd_queue_lock); for (l = queue; l; l = l->next) { gboolean sync; sync = cmd_is_sync (l->data); link_dispatch_command (l->data, FALSE); if (sync) { g_mutex_lock (link_cmd_queue_lock); ((LinkSyncCommand *)l->data)->complete = TRUE; g_cond_broadcast (link_cmd_queue_cond); g_mutex_unlock (link_cmd_queue_lock); } } g_list_free (queue); return TRUE; } void link_exec_command (LinkCommand *cmd) { int res = 0; if (link_in_io_thread ()) { link_dispatch_command (cmd, TRUE); return; } LINK_MUTEX_LOCK (link_cmd_queue_lock); if (LINK_WAKEUP_WRITE == -1) { /* shutdown main loop */ LINK_MUTEX_UNLOCK (link_cmd_queue_lock); link_dispatch_command (cmd, TRUE); return; } if (!link_cmd_queue) { char c = 'L'; /* magic */ #ifdef HAVE_WINSOCK2_H while ((res = send (LINK_WAKEUP_WRITE, &c, sizeof (c), 0)) == SOCKET_ERROR && (WSAGetLastError () == WSAEWOULDBLOCK)); #else while ((res = write (LINK_WAKEUP_WRITE, &c, sizeof (c))) < 0 && (errno == EAGAIN || errno == EINTR)); #endif } link_cmd_queue = g_list_append (link_cmd_queue, cmd); if (cmd_is_sync (cmd)) while (!((LinkSyncCommand *)cmd)->complete) g_cond_wait (link_cmd_queue_cond, link_cmd_queue_lock); LINK_MUTEX_UNLOCK (link_cmd_queue_lock); if (res < 0) g_error ("Failed to write to linc wakeup socket %d 0x%x(%d) (%d)", res, errno, errno, LINK_WAKEUP_WRITE); } #if defined (CONNECTION_DEBUG) && defined (CONNECTION_DEBUG_FLAG) gboolean link_connection_debug_flag = FALSE; #endif /** * link_init: * @thread_safe: if we want thread safety enabled. * * Initialize linc. **/ void link_init (gboolean thread_safe) { #if defined (CONNECTION_DEBUG) && defined (CONNECTION_DEBUG_FLAG) if (getenv ("LINK_CONNECTION_DEBUG")) link_connection_debug_flag = TRUE; if (link_connection_debug_flag && getenv ("LINK_PER_PROCESS_STDERR") && fileno (stderr) >= 0) { char *stderr_file = g_build_filename (g_get_tmp_dir (), g_strdup_printf ("link_debug.%d", getpid ()), NULL); int fd; fd = g_open (stderr_file, O_WRONLY|O_CREAT, 0666); if (fd >= 0) { char *prgname = g_get_prgname (); d_printf ("Redirecting stderr of %s to %s\n", (prgname ? prgname : "this process"), stderr_file); dup2 (fd, fileno (stderr)); close (fd); } d_printf ("stderr redirected here\n"); } #endif if (thread_safe && !g_thread_supported ()) g_thread_init (NULL); link_is_thread_safe = (thread_safe && g_thread_supported()); g_type_init (); #ifdef SIGPIPE /* * Link's raison d'etre is for ORBit2 and Bonobo * * In Bonobo, components and containers must not crash if the * remote end crashes. If a remote server crashes and then we * try to make a CORBA call on it, we may get a SIGPIPE. So, * for lack of a better solution, we ignore SIGPIPE here. This * is open for reconsideration in the future. * * When SIGPIPE is ignored, write() calls which would * ordinarily trigger a signal will instead return -1 and set * errno to EPIPE. So linc will be able to catch these * errors instead of letting them kill the component. * * Possibilities are the MSG_PEEK trick, where you test if the * connection is dead right before doing the writev(). That * approach has two problems: * * 1. There is the possibility of a race condition, where * the remote end calls right after the test, and right * before the writev(). * * 2. An extra system call per write might be regarded by * some as a performance hit. * * Another possibility is to surround the call to writev() in * link_connection_writev (linc-connection.c) with something like * this: * * link_ignore_sigpipe = 1; * * result = writev ( ... ); * * link_ignore_sigpipe = 0; * * The SIGPIPE signal handler will check the global * link_ignore_sigpipe variable and ignore the signal if it * is 1. If it is 0, it can proxy to the user's original * signal handler. This is a real possibility. */ signal (SIGPIPE, SIG_IGN); #endif link_context = g_main_context_new (); link_loop = g_main_loop_new (link_context, TRUE); #ifdef LINK_SSL_SUPPORT SSLeay_add_ssl_algorithms (); link_ssl_method = SSLv23_method (); link_ssl_ctx = SSL_CTX_new (link_ssl_method); #endif link_main_lock = link_mutex_new (); link_cmd_queue_lock = link_mutex_new (); if (link_is_thread_safe) { link_main_cond = g_cond_new (); link_cmd_queue_cond = g_cond_new (); } #ifdef HAVE_WINSOCK2_H { WSADATA wsadata; if (WSAStartup (MAKEWORD (2, 0), &wsadata) != 0) g_error ("Windows Sockets could not be initialized"); } #endif } /** * link_main_iteration: * @block_for_reply: whether we should wait for a reply * * This routine iterates the linc mainloop, which has * only the linc sources registered against it. **/ void link_main_iteration (gboolean block_for_reply) { g_main_context_iteration ( link_context, block_for_reply); } /** * link_main_pending: * * determines if the linc mainloop has any pending work to process. * * Return value: TRUE if the linc mainloop has any pending work to process. **/ gboolean link_main_pending (void) { return g_main_context_pending (link_context); } /** * link_main_loop_run: * * Runs the linc mainloop; blocking until the loop is exited. **/ void link_main_loop_run (void) { g_main_loop_run (link_loop); } /** * link_mutex_new: * * Creates a mutex, iff threads are supported, initialized etc. * * Return value: a new GMutex, or NULL if one is not required. **/ GMutex * link_mutex_new (void) { if (link_is_thread_safe) return g_mutex_new (); else return NULL; } gboolean link_in_io_thread (void) { return (!link_io_thread || g_thread_self() == link_io_thread); } GMainContext * link_main_get_context (void) { return link_context; } /* * This method is unreliable, and for use * only for debugging. */ gboolean link_mutex_is_locked (GMutex *lock) { #ifdef __GLIBC__ gboolean result = TRUE; if (lock && g_mutex_trylock (lock)) { result = FALSE; g_mutex_unlock (lock); } return result; #else /* * On at least Solaris & BSD if we link our * app without -lthread, and pull in ORBit2 * with threading enabled, we get NOP pthread * operations. This is fine mostly, but we get * bogus return values from trylock which screws * our debugging. */ d_printf ("hosed system is_lock-ing\n"); return TRUE; #endif } void link_shutdown (void) { if (link_loop) /* break into the linc loop */ g_main_loop_quit (link_loop); if (link_thread_loop) g_main_loop_quit (link_thread_loop); if (link_io_thread) { g_thread_join (link_io_thread); link_io_thread = NULL; } } GMainContext * link_thread_io_context (void) { return link_thread_context; } static gpointer link_io_thread_fn (gpointer data) { g_main_loop_run (link_thread_loop); /* FIXME: need to be able to quit without waiting ... */ /* Asked to quit - so ... * a) stop accepting inputs [ kill servers ] * b) flush outgoing queued data etc. (oneways) * c) unref all leakable resources. */ link_connections_close (); /* A tad of shutdown */ LINK_MUTEX_LOCK (link_cmd_queue_lock); if (LINK_WAKEUP_WRITE >= 0) { #ifdef HAVE_WINSOCK2_H closesocket (LINK_WAKEUP_WRITE); closesocket (LINK_WAKEUP_POLL); #else close (LINK_WAKEUP_WRITE); close (LINK_WAKEUP_POLL); #endif LINK_WAKEUP_WRITE = -1; LINK_WAKEUP_POLL = -1; } LINK_MUTEX_UNLOCK (link_cmd_queue_lock); if (link_main_source) { g_source_destroy (link_main_source); g_source_unref (link_main_source); link_main_source = NULL; } return NULL; } static void link_exec_set_io_thread (gpointer data, gboolean immediate) { GError *error = NULL; gboolean to_io_thread = TRUE; link_lock (); if (link_is_io_in_thread) { link_unlock (); return; } g_mutex_lock (link_cmd_queue_lock); link_is_io_in_thread = TRUE; link_thread_context = g_main_context_new (); link_thread_loop = g_main_loop_new (link_thread_context, TRUE); link_connections_move_io_T (to_io_thread); link_servers_move_io_T (to_io_thread); if (link_pipe (link_wakeup_fds) < 0) g_error ("Can't create CORBA main-thread wakeup pipe"); link_main_source = link_source_create_watch (link_thread_context, LINK_WAKEUP_POLL, NULL, (G_IO_IN | G_IO_PRI), link_mainloop_handle_input, NULL); link_io_thread = g_thread_create_full (link_io_thread_fn, NULL, 256 * 1024, TRUE, FALSE, G_THREAD_PRIORITY_NORMAL, &error); if (!link_io_thread || error) g_error ("Failed to create linc worker thread"); g_main_loop_quit (link_loop); g_mutex_unlock (link_cmd_queue_lock); link_unlock (); } void link_set_io_thread (gboolean io_in_thread) { LinkSyncCommand cmd = { { 0 }, 0 }; cmd.cmd.type = LINK_COMMAND_SET_IO_THREAD; link_exec_command (&cmd.cmd); } static void link_dispatch_command (gpointer data, gboolean immediate) { LinkCommand *cmd = data; switch (cmd->type) { case LINK_COMMAND_SET_CONDITION: link_connection_exec_set_condition (data, immediate); break; case LINK_COMMAND_DISCONNECT: link_connection_exec_disconnect (data, immediate); break; case LINK_COMMAND_SET_IO_THREAD: link_exec_set_io_thread (data, immediate); break; case LINK_COMMAND_CNX_UNREF: link_connection_exec_cnx_unref (data, immediate); break; default: g_error ("Unimplemented (%d)", cmd->type); break; } } void link_lock (void) { if (link_main_lock) g_mutex_lock (link_main_lock); } void link_unlock (void) { if (link_main_lock) g_mutex_unlock (link_main_lock); } void link_signal (void) { if (link_is_thread_safe && link_is_io_in_thread) { g_assert (link_main_cond != NULL); g_assert (link_is_locked ()); g_cond_broadcast (link_main_cond); } } void link_wait (void) { if (!(link_is_thread_safe && link_is_io_in_thread)) { link_unlock (); link_main_iteration (TRUE); link_lock (); } else { g_assert (link_main_cond != NULL); g_cond_wait (link_main_cond, link_main_lock); } } gboolean link_is_locked (void) { return link_mutex_is_locked (link_main_lock); } /* Hack */ guint link_io_thread_add_timeout (guint interval, GSourceFunc function, gpointer data) { guint id; GSource *tsrc; if (!link_thread_safe()) return 0; tsrc = g_timeout_source_new (interval); g_source_set_priority (tsrc, G_PRIORITY_HIGH_IDLE); g_source_set_callback (tsrc, function, data, NULL); g_source_set_can_recurse (tsrc, TRUE); id = g_source_attach (tsrc, link_thread_context); g_source_unref (tsrc); return id; } void link_io_thread_remove_timeout (guint source_id) { GSource *tsrc; if (!source_id) return; tsrc = g_main_context_find_source_by_id (link_thread_context, source_id); g_source_destroy (tsrc); } ORBit2-2.14.19/linc2/src/linc-private.h0000644000175000001440000001426211334247617014227 00000000000000/* * linc-private.h: This file is part of the linc library. * * Authors: * Elliot Lee (sopwith@redhat.com) * Michael Meeks (michael@ximian.com) * Mark McLouglin (mark@skynet.ie) & others * * Copyright 2001, Red Hat, Inc., Ximian, Inc., * Sun Microsystems, Inc. */ #ifndef _LINK_PRIVATE_H_ #define _LINK_PRIVATE_H_ #include "config.h" #include #include "linc-debug.h" #ifdef LINK_SSL_SUPPORT #include #include extern SSL_METHOD *link_ssl_method; extern SSL_CTX *link_ssl_ctx; #endif /* LINK_SSL_SUPPORT */ typedef struct { enum { LINK_COMMAND_DISCONNECT, LINK_COMMAND_SET_CONDITION, LINK_COMMAND_SET_IO_THREAD, LINK_COMMAND_CNX_UNREF } type; } LinkCommand; typedef struct { LinkCommand cmd; gboolean complete; } LinkSyncCommand; typedef struct { LinkCommand cmd; LinkConnection *cnx; GIOCondition condition; } LinkCommandSetCondition; typedef struct { LinkCommand cmd; LinkConnection *cnx; } LinkCommandDisconnect; typedef struct { LinkSyncCommand cmd; LinkConnection *cnx; } LinkCommandCnxUnref; void link_exec_command (LinkCommand *cmd); void link_connection_exec_disconnect (LinkCommandDisconnect *cmd, gboolean immediate); void link_connection_exec_set_condition (LinkCommandSetCondition *cmd, gboolean immediate); void link_connection_exec_cnx_unref (LinkCommandCnxUnref *cmd, gboolean immediate); /* * Really raw internals, exported for the tests */ struct _LinkServerPrivate { int fd; LinkWatch *tag; GSList *connections; }; struct _LinkWriteOpts { gboolean block_on_write; }; struct _LinkConnectionPrivate { #ifdef LINK_SSL_SUPPORT SSL *ssl; #endif LinkWatch *tag; int fd; gulong max_buffer_bytes; gulong write_queue_bytes; GList *write_queue; /* * This flag is used after a LincConnection is disconnected when * an attempt to made to retry the connection. If the attempt returns * EINPROGRESS and subsequently is reported as disconnected we want * to avoid emitting another "broken" signal. */ gboolean was_disconnected; #ifdef CONNECTION_DEBUG guint64 total_read_bytes; guint64 total_written_bytes; #endif }; typedef struct { GSource source; GIOChannel *channel; GPollFD pollfd; #ifdef G_OS_WIN32 LinkWatch *link_watch; SOCKET socket; int event_mask; gboolean write_would_have_blocked; #endif GIOCondition condition; GIOFunc callback; gpointer user_data; } LinkUnixWatch; struct _LinkWatch { GSource *main_source; GSource *link_source; #ifdef G_OS_WIN32 LinkUnixWatch *last_polled_source; #endif }; #define LINK_ERR_CONDS (G_IO_ERR|G_IO_HUP|G_IO_NVAL) #define LINK_IN_CONDS (G_IO_PRI|G_IO_IN) #ifdef G_OS_WIN32 /* The functions in the Microsoft C library that correspond to * system calls in Unix don't have any EINTR failure mode. */ #define LINK_TEMP_FAILURE_RETRY_SYSCALL(expression, val) \ { val = (int) (expression); } #else /* taken from glibc */ #define LINK_TEMP_FAILURE_RETRY_SYSCALL(expression, val) \ { long int __result; \ do __result = (long int) (expression); \ while (__result == -1L && errno == EINTR); \ val = __result; } #endif #ifdef HAVE_WINSOCK2_H /* In WinSock2 WSAEINTR can't happen according to the docs, but * it doesn't hurt to check anyway, does it? */ #define LINK_TEMP_FAILURE_RETRY_SOCKET(expression, val) \ { int __result; \ do __result = (int) (expression); \ while (__result == SOCKET_ERROR && WSAGetLastError() == WSAEINTR); \ val = __result; } #define LINK_CLOSE_SOCKET(fd) while (closesocket (fd) == SOCKET_ERROR && WSAGetLastError() == WSAEINTR) #else /* On Unix socket API calls are no different from normal system calls */ #define LINK_TEMP_FAILURE_RETRY_SOCKET(expression, val) \ LINK_TEMP_FAILURE_RETRY_SYSCALL(expression, val) #define LINK_CLOSE_SOCKET(fd) while (close (fd) < 0 && errno == EINTR) #endif struct sockaddr *link_protocol_get_sockaddr (const LinkProtocolInfo *proto, const char *hostname, const char *service, LinkSockLen *saddr_len); gboolean link_protocol_get_sockinfo (const LinkProtocolInfo *proto, const struct sockaddr *saddr, gchar **hostname, gchar **service); gboolean link_protocol_is_local (const LinkProtocolInfo *proto, const struct sockaddr *saddr, LinkSockLen saddr_len); void link_protocol_destroy_cnx (const LinkProtocolInfo *proto, int fd, const char *host, const char *service); void link_protocol_destroy_addr (const LinkProtocolInfo *proto, int fd, struct sockaddr *saddr); LinkWatch *link_io_add_watch_fd (int fd, GIOCondition condition, GIOFunc func, gpointer user_data); void link_io_remove_watch (LinkWatch *w); void link_watch_set_condition (LinkWatch *w, GIOCondition condition); void link_watch_move_io (LinkWatch *w, gboolean to_io_thread); GMainContext *link_main_get_context (void); GMainContext *link_thread_io_context (void); gboolean link_in_io_thread (void); gboolean link_mutex_is_locked (GMutex *lock); void link_lock (void); void link_unlock (void); gboolean link_is_locked (void); void link_servers_move_io_T (gboolean to_io_thread); void link_connections_move_io_T (gboolean to_io_thread); #ifdef G_OS_WIN32 void link_win32_watch_set_write_wouldblock (LinkWatch *watch, gboolean flag); #endif #endif /* _LINK_PRIVATE_H */ ORBit2-2.14.19/Makefile.in0000644000175000001440000007422711450333735011733 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/ORBit-2.0-uninstalled.pc.in \ $(srcdir)/ORBit-2.0.pc.in \ $(srcdir)/ORBit-CosNaming-2.0-uninstalled.pc.in \ $(srcdir)/ORBit-CosNaming-2.0.pc.in \ $(srcdir)/ORBit-imodule-2.0-uninstalled.pc.in \ $(srcdir)/ORBit-imodule-2.0.pc.in $(srcdir)/ORBit.spec.in \ $(srcdir)/config.h.in $(srcdir)/orbit2-config.in \ $(srcdir)/orbit2-zip.in $(top_srcdir)/configure AUTHORS \ COPYING COPYING.LIB ChangeLog INSTALL NEWS TODO config.guess \ config.sub depcomp install-sh ltmain.sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = orbit2-config ORBit-2.0.pc \ ORBit-2.0-uninstalled.pc ORBit-CosNaming-2.0.pc \ ORBit-CosNaming-2.0-uninstalled.pc ORBit-imodule-2.0.pc \ ORBit-imodule-2.0-uninstalled.pc ORBit.spec orbit2-zip CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(m4datadir)" \ "$(DESTDIR)$(pkgconfigdir)" SCRIPTS = $(bin_SCRIPTS) SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive DATA = $(m4data_DATA) $(pkgconfig_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d "$(distdir)" \ || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr "$(distdir)"; }; } am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" GZIP_ENV = --best DIST_ARCHIVES = $(distdir).tar.bz2 distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc SUBDIRS = linc2 src include test docs bin_SCRIPTS = orbit2-config EXTRA_DIST = \ ORBit2.m4 \ ORBit.spec \ orbit2-zip.in \ HACKING \ MAINTAINERS \ README.win32 \ Makefile.shared \ gtk-doc.make \ ORBit2.doap m4datadir = $(datadir)/aclocal m4data_DATA = ORBit2.m4 pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = \ ORBit-2.0.pc \ ORBit-CosNaming-2.0.pc \ ORBit-imodule-2.0.pc all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 orbit2-config: $(top_builddir)/config.status $(srcdir)/orbit2-config.in cd $(top_builddir) && $(SHELL) ./config.status $@ ORBit-2.0.pc: $(top_builddir)/config.status $(srcdir)/ORBit-2.0.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ ORBit-2.0-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/ORBit-2.0-uninstalled.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ ORBit-CosNaming-2.0.pc: $(top_builddir)/config.status $(srcdir)/ORBit-CosNaming-2.0.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ ORBit-CosNaming-2.0-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/ORBit-CosNaming-2.0-uninstalled.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ ORBit-imodule-2.0.pc: $(top_builddir)/config.status $(srcdir)/ORBit-imodule-2.0.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ ORBit-imodule-2.0-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/ORBit-imodule-2.0-uninstalled.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ ORBit.spec: $(top_builddir)/config.status $(srcdir)/ORBit.spec.in cd $(top_builddir) && $(SHELL) ./config.status $@ orbit2-zip: $(top_builddir)/config.status $(srcdir)/orbit2-zip.in cd $(top_builddir) && $(SHELL) ./config.status $@ install-binSCRIPTS: $(bin_SCRIPTS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt install-m4dataDATA: $(m4data_DATA) @$(NORMAL_INSTALL) test -z "$(m4datadir)" || $(MKDIR_P) "$(DESTDIR)$(m4datadir)" @list='$(m4data_DATA)'; test -n "$(m4datadir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(m4datadir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(m4datadir)" || exit $$?; \ done uninstall-m4dataDATA: @$(NORMAL_UNINSTALL) @list='$(m4data_DATA)'; test -n "$(m4datadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(m4datadir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(m4datadir)" && rm -f $$files install-pkgconfigDATA: $(pkgconfig_DATA) @$(NORMAL_INSTALL) test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ done uninstall-pkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-lzma: distdir tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma $(am__remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @$(am__cd) '$(distuninstallcheck_dir)' \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(SCRIPTS) $(DATA) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(m4datadir)" "$(DESTDIR)$(pkgconfigdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-m4dataDATA install-pkgconfigDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-binSCRIPTS install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binSCRIPTS uninstall-m4dataDATA \ uninstall-pkgconfigDATA .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ ctags-recursive install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \ distcheck distclean distclean-generic distclean-hdr \ distclean-libtool distclean-tags distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am info info-am \ install install-am install-binSCRIPTS install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-m4dataDATA install-man install-pdf \ install-pdf-am install-pkgconfigDATA install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-binSCRIPTS uninstall-m4dataDATA \ uninstall-pkgconfigDATA rpms: distcheck rpm -ta $(top_builddir)/@PACKAGE@-@VERSION@.tar.gz # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/configure0000755000175000001440000166171211450333731011573 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.67 for ORBit2 2.14.19. # # Report bugs to . # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software # Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org and $0: http://bugzilla.gnome.org/enter_bug.cgi?product=ORBit2 $0: about your system, including any error possibly output $0: before this message. Then install a modern shell, or $0: manually run the script under such a shell if you do $0: have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$lt_ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` ;; esac ECHO=${lt_ECHO-echo} if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then # Yippee, $ECHO works! : else # Restart under the correct shell. exec $SHELL "$0" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat <<_LT_EOF $* _LT_EOF exit 0 fi # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test -z "$lt_ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if { echo_test_string=`eval $cmd`; } 2>/dev/null && { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null then break fi done fi if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$ECHO" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. ECHO='print -r' elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} else # Try using printf. ECHO='printf %s\n' if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL ECHO="$CONFIG_SHELL $0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$CONFIG_SHELL $0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "$0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} else # Oops. We lost completely, so just stick with echo. ECHO=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. lt_ECHO=$ECHO if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" fi test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='ORBit2' PACKAGE_TARNAME='ORBit2' PACKAGE_VERSION='2.14.19' PACKAGE_STRING='ORBit2 2.14.19' PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=ORBit2' PACKAGE_URL='' # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS GTK_DOC_USE_REBASE_FALSE GTK_DOC_USE_REBASE_TRUE GTK_DOC_USE_LIBTOOL_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_BUILD_PDF_FALSE GTK_DOC_BUILD_PDF_TRUE GTK_DOC_BUILD_HTML_FALSE GTK_DOC_BUILD_HTML_TRUE ENABLE_GTK_DOC_FALSE ENABLE_GTK_DOC_TRUE HTML_DIR GTKDOC_MKPDF GTKDOC_REBASE GTKDOC_CHECK LINC_LIBS LINC_CFLAGS DISABLE_DEPRECATED_CFLAGS pkglibdir WARN_CFLAGS ORBIT_ALIGNOF_CORBA_POINTER ORBIT_ALIGNOF_CORBA_STRUCT ORBIT_ALIGNOF_CORBA_LONG_DOUBLE ORBIT_ALIGNOF_CORBA_DOUBLE ORBIT_ALIGNOF_CORBA_FLOAT ORBIT_ALIGNOF_CORBA_LONG_LONG ORBIT_ALIGNOF_CORBA_LONG ORBIT_ALIGNOF_CORBA_SHORT ORBIT_ALIGNOF_CORBA_WCHAR ORBIT_ALIGNOF_CORBA_CHAR ORBIT_ALIGNOF_CORBA_BOOLEAN ORBIT_ALIGNOF_CORBA_OCTET ORBIT_NAME_LIBS ORBIT_NAME_CFLAGS ORBIT_IDL_LIBS ORBIT_IDL_CFLAGS ORBIT_LIBS ORBIT_CFLAGS LOCAL_LINC_CFLAGS LOCAL_LINC_LIBS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG LIBIDL_REQUIRED GLIB_REQUIRED IDL_COMPILER ENABLE_HTTP_FALSE ENABLE_HTTP_TRUE MAINT MAINTAINER_MODE_FALSE MAINTAINER_MODE_TRUE CPP OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL lt_ECHO RANLIB AR LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP EGREP GREP SED LIBTOOL OBJDUMP DLLTOOL AS am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC MINGW_LDFLAGS LIBM OS_WIN32_FALSE OS_WIN32_TRUE host_os host_vendor host_cpu host build_os build_vendor build_cpu build am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM ORBIT_SERIAL ORBIT_VERSION ORBIT_MICRO_VERSION ORBIT_MINOR_VERSION ORBIT_MAJOR_VERSION LT_VERSION target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_dependency_tracking enable_shared enable_static with_pic enable_fast_install with_gnu_ld enable_libtool_lock enable_maintainer_mode enable_http enable_compile_warnings enable_debug enable_purify with_idl_compiler with_html_dir enable_gtk_doc enable_gtk_doc_html enable_gtk_doc_pdf ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR ORBIT_CFLAGS ORBIT_LIBS ORBIT_IDL_CFLAGS ORBIT_IDL_LIBS ORBIT_NAME_CFLAGS ORBIT_NAME_LIBS LINC_CFLAGS LINC_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used" >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures ORBit2 2.14.19 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/ORBit2] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of ORBit2 2.14.19:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer --enable-http enables http connections --enable-compile-warnings=no/yes Turn on compiler warnings. --enable-debug=no/yes turn on debugging default=no --enable-purify be clean for memory debuggers --enable-gtk-doc use gtk-doc to build documentation [[default=no]] --enable-gtk-doc-html build documentation in html format [[default=yes]] --enable-gtk-doc-pdf build documentation in pdf format [[default=no]] Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-idl-compiler use specific idl compiler (useful when crosscompiling) --with-html-dir=PATH path to installed docs Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path ORBIT_CFLAGS C compiler flags for ORBIT, overriding pkg-config ORBIT_LIBS linker flags for ORBIT, overriding pkg-config ORBIT_IDL_CFLAGS C compiler flags for ORBIT_IDL, overriding pkg-config ORBIT_IDL_LIBS linker flags for ORBIT_IDL, overriding pkg-config ORBIT_NAME_CFLAGS C compiler flags for ORBIT_NAME, overriding pkg-config ORBIT_NAME_LIBS linker flags for ORBIT_NAME, overriding pkg-config LINC_CFLAGS C compiler flags for LINC, overriding pkg-config LINC_LIBS linker flags for LINC, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF ORBit2 configure 2.14.19 generated by GNU Autoconf 2.67 Copyright (C) 2010 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval "test \"\${$3+set}\"" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} } # ac_fn_c_check_header_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval "test \"\${$3+set}\"" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} } # ac_fn_c_check_func # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval "test \"\${$3+set}\"" = set; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval "test \"\${$3+set}\"" = set; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ( $as_echo "## --------------------------------------------------------------------- ## ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=ORBit2 ## ## --------------------------------------------------------------------- ##" ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval "test \"\${$3+set}\"" = set; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} } # ac_fn_c_check_header_mongrel # ac_fn_c_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache # variable VAR accordingly. ac_fn_c_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval "test \"\${$3+set}\"" = set; then : $as_echo_n "(cached) " >&6 else eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof ($2)) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else eval "$3=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} } # ac_fn_c_check_type cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by ORBit2 $as_me 2.14.19, which was generated by GNU Autoconf 2.67. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Process this file with autoconf to produce a configure script. # require autoconf 2.54 # Before making a release, the LT_VERSION string should be modified. # The string is of the form C:R:A. # - If interfaces have been changed or added, but binary compatibility has # been preserved, change to C+1:0:A+1 # - If binary compatibility has been broken (eg removed or changed interfaces) # change to C+1:0:0 # - If the interface is the same as the previous version, change to C:R+1:A LT_VERSION=1:0:1 ORBIT_MAJOR_VERSION=2 ORBIT_MINOR_VERSION=14 ORBIT_MICRO_VERSION=19 ORBIT_VERSION=2.14.19 # Increment this every time a feature is added in the .idl compiler # that needs help from the main libraries. ORBIT_SERIAL=20 # For automake. ac_config_headers="$ac_config_headers config.h" am__api_version='1.11' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if test "${ac_cv_path_mkdir+set}" = set; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AWK+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='ORBit2' VERSION='2.14.19' # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if test "${ac_cv_build+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if test "${ac_cv_host+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32" >&5 $as_echo_n "checking for Win32... " >&6; } case "$host" in *-*-mingw*) os_win32=yes LIBM= MINGW_LDFLAGS="-Wl,--enable-runtime-pseudo-reloc" ;; *) os_win32=no LIBM=-lm MINGW_LDFLAGS= ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5 $as_echo "$os_win32" >&6; } if test "$os_win32" = "yes"; then OS_WIN32_TRUE= OS_WIN32_FALSE='#' else OS_WIN32_TRUE='#' OS_WIN32_FALSE= fi LDFLAGS="$MINGW_LDFLAGS $LDFLAGS" if test "$os_win32" = "yes"; then if test x$enable_static = xyes -o x$enable_static = x; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling static library build, must build as DLL on Windows." >&5 $as_echo "$as_me: WARNING: Disabling static library build, must build as DLL on Windows." >&2;} enable_static=no fi if test x$enable_shared = xno; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling shared library build, must build as DLL on Windows." >&5 $as_echo "$as_me: WARNING: Enabling shared library build, must build as DLL on Windows." >&2;} fi enable_shared=yes fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if test "${ac_cv_objext+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi enable_dlopen=yes enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. set dummy ${ac_tool_prefix}as; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AS+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$AS"; then ac_cv_prog_AS="$AS" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AS="${ac_tool_prefix}as" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AS=$ac_cv_prog_AS if test -n "$AS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 $as_echo "$AS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_AS"; then ac_ct_AS=$AS # Extract the first word of "as", so it can be a program name with args. set dummy as; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AS"; then ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_AS="as" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AS=$ac_cv_prog_ac_ct_AS if test -n "$ac_ct_AS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 $as_echo "$ac_ct_AS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_AS" = x; then AS="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AS=$ac_ct_AS fi else AS="$ac_cv_prog_AS" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_DLLTOOL+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 $as_echo "$DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 $as_echo "$ac_ct_DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_OBJDUMP+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi ;; esac test -z "$AS" && AS=as test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$OBJDUMP" && OBJDUMP=objdump case `pwd` in *\ * | *\ *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.2.6b' macro_revision='1.3017' ltmain="$ac_aux_dir/ltmain.sh" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } if test "${ac_cv_path_SED+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 $as_echo "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if test "${ac_cv_path_GREP+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if test "${ac_cv_path_EGREP+set}" = set; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 $as_echo_n "checking for fgrep... " >&6; } if test "${ac_cv_path_FGREP+set}" = set; then : $as_echo_n "(cached) " >&6 else if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else if test -z "$FGREP"; then ac_path_FGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in fgrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP case `"$ac_path_FGREP" --version 2>&1` in *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_FGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_FGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_FGREP"; then as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_FGREP=$FGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 $as_echo "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if test "${lt_cv_path_LD+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if test "${lt_cv_path_NM+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 $as_echo "$lt_cv_path_NM" >&6; } if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$ac_tool_prefix"; then for ac_prog in "dumpbin -symbols" "link -dump -symbols" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_DUMPBIN+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 $as_echo "$DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$DUMPBIN" && break done fi if test -z "$DUMPBIN"; then ac_ct_DUMPBIN=$DUMPBIN for ac_prog in "dumpbin -symbols" "link -dump -symbols" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 $as_echo "$ac_ct_DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_DUMPBIN" && break done if test "x$ac_ct_DUMPBIN" = x; then DUMPBIN=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN fi fi if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 $as_echo_n "checking the name lister ($NM) interface... " >&6; } if test "${lt_cv_nm_interface+set}" = set; then : $as_echo_n "(cached) " >&6 else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:5016: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:5019: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:5022: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 $as_echo "$lt_cv_nm_interface" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi # find the maximum length of command line arguments { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 $as_echo_n "checking the maximum length of command line arguments... " >&6; } if test "${lt_cv_sys_max_cmd_len+set}" = set; then : $as_echo_n "(cached) " >&6 else i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ = "XX$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n $lt_cv_sys_max_cmd_len ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 $as_echo "$xsi_shell" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } lt_shell_append=no ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 $as_echo "$lt_shell_append" >&6; } if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_reload_flag='-r' fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 $as_echo "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_OBJDUMP+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi test -z "$OBJDUMP" && OBJDUMP=objdump { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 $as_echo_n "checking how to recognize dependent libraries... " >&6; } if test "${lt_cv_deplibs_check_method+set}" = set; then : $as_echo_n "(cached) " >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux* | k*bsd*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AR+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AR="${ac_tool_prefix}ar" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_AR="ar" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi else AR="$ac_cv_prog_AR" fi test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi test -z "$STRIP" && STRIP=: if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_RANLIB+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi test -z "$RANLIB" && RANLIB=: # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : $as_echo_n "(cached) " >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ const struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 $as_echo "failed" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } fi # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '#line 6225 "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } if test "${lt_cv_cc_needs_belf+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_cc_needs_belf=yes else lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 $as_echo "$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 $as_echo "$DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 $as_echo "$ac_ct_DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_NMEDIT+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 $as_echo "$NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_NMEDIT="nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 $as_echo "$ac_ct_NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_LIPO+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 $as_echo "$LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_LIPO="lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 $as_echo "$ac_ct_LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO fi else LIPO="$ac_cv_prog_LIPO" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_OTOOL+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 $as_echo "$OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_OTOOL="otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 $as_echo "$ac_ct_OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL fi else OTOOL="$ac_cv_prog_OTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_OTOOL64+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 $as_echo "$OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_OTOOL64="otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 $as_echo "$ac_ct_OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 $as_echo_n "checking for -single_module linker flag... " >&6; } if test "${lt_cv_apple_cc_single_mod+set}" = set; then : $as_echo_n "(cached) " >&6 else lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&5 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_ld_exported_symbols_list=yes else lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[91]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[012]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if test "${ac_cv_header_stdc+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do : ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " if test "x$ac_cv_header_dlfcn_h" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_H 1 _ACEOF fi done # Set options # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else enable_static=yes fi # Check whether --with-pic was given. if test "${with_pic+set}" = set; then : withval=$with_pic; pic_mode="$withval" else pic_mode=default fi test -z "$pic_mode" && pic_mode=default # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac else enable_fast_install=yes fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 $as_echo_n "checking for objdir... " >&6; } if test "${lt_cv_objdir+set}" = set; then : $as_echo_n "(cached) " >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 $as_echo "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir cat >>confdefs.h <<_ACEOF #define LT_OBJDIR "$lt_cv_objdir/" _ACEOF case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 $as_echo_n "checking for file... " >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag=' -fno-builtin' { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:7746: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:7750: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; xl*) # IBM XL C 8.0/Fortran 10.1 on PPC lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 $as_echo "$lt_prog_compiler_pic" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:8085: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:8089: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } if test x"$lt_cv_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if test "${lt_cv_prog_compiler_static_works+set}" = set; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } if test x"$lt_cv_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test "${lt_cv_prog_compiler_c_o+set}" = set; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:8190: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:8194: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test "${lt_cv_prog_compiler_c_o+set}" = set; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:8245: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:8249: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test "$hard_links" = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= always_export_symbols=no archive_cmds= archive_expsym_cmds= compiler_needs_object=no enable_shared_with_static_runtimes=no export_dynamic_flag_spec= export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic=no hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no link_all_deplibs=unknown module_cmds= module_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= thread_safe_flag_spec= whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag= tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld='-rpath $libdir' archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi export_dynamic_flag_spec='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes=yes ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported whole_archive_flag_spec='' link_all_deplibs=yes allow_undefined_flag="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=echo archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; freebsd1*) ld_shlibs=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec_ld='+b $libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(void) {} _ACEOF if ac_fn_c_try_link "$LINENO"; then : archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='${wl}-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='${wl}-z,text' allow_undefined_flag='${wl}-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='${wl}-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then archive_cmds_need_lc=no else archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 $as_echo "$archive_cmds_need_lc" >&6; } ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` else lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[4-9]*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[3-9]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || test "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 $as_echo "$hardcode_action" >&6; } if test "$hardcode_action" = relink || test "$inherit_rpath" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = x""yes; then : lt_cv_dlopen="shl_load" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if test "${ac_cv_lib_dld_shl_load+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_shl_load=yes else ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = x""yes; then : lt_cv_dlopen="dlopen" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if test "${ac_cv_lib_svld_dlopen+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if test "${ac_cv_lib_dld_dld_link+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 $as_echo_n "checking whether a program can dlopen itself... " >&6; } if test "${lt_cv_dlopen_self+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line 10612 "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 $as_echo "$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } if test "${lt_cv_dlopen_self_static+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line 10708 "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 $as_echo "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi striplib= old_striplib= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ;; esac fi # Report which library types will actually be built { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" ac_config_commands="$ac_config_commands libtool" # Only expand once: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } # Check whether --enable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then : enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval else USE_MAINTAINER_MODE=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 $as_echo "$USE_MAINTAINER_MODE" >&6; } if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' else MAINTAINER_MODE_TRUE='#' MAINTAINER_MODE_FALSE= fi MAINT=$MAINTAINER_MODE_TRUE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aclocal flags" >&5 $as_echo_n "checking for aclocal flags... " >&6; } if test "${ac_cv_orbit_aclocal_flags+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_cv_orbit_aclocal_flags="$ACLOCAL_FLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_orbit_aclocal_flags" >&5 $as_echo "$ac_cv_orbit_aclocal_flags" >&6; } ACLOCAL="$ACLOCAL $ac_cv_orbit_aclocal_flags" # Check whether --enable-http was given. if test "${enable_http+set}" = set; then : enableval=$enable_http; else enable_http=no fi if test x"$enable_http" = xyes; then ENABLE_HTTP_TRUE= ENABLE_HTTP_FALSE='#' else ENABLE_HTTP_TRUE='#' ENABLE_HTTP_FALSE= fi if test x"$enable_http" = xyes ; then $as_echo "#define ENABLE_HTTP 1" >>confdefs.h fi # Check whether --enable-compile-warnings was given. if test "${enable_compile_warnings+set}" = set; then : enableval=$enable_compile_warnings; enable_compile_warnings="$enableval" else enable_compile_warnings="yes" fi # Check whether --enable-debug was given. if test "${enable_debug+set}" = set; then : enableval=$enable_debug; else enable_debug=minimum fi if test "x$enable_debug" = "xyes"; then ORBIT_DEBUG_CFLAGS="-ggdb -O0 -DG_ENABLE_DEBUG" else if test "x$enable_debug" = "xno"; then ORBIT_DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS" else ORBIT_DEBUG_CFLAGS="" fi fi # Check whether --enable-purify was given. if test "${enable_purify+set}" = set; then : enableval=$enable_purify; enable_purify=yes else enable_purify=no fi if test z$enable_purify = zyes; then $as_echo "#define ORBIT_PURIFY 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking which idl compiler to use" >&5 $as_echo_n "checking which idl compiler to use... " >&6; } IDL_COMPILER="\$(top_builddir)/src/idl-compiler/orbit-idl-2\$(EXEEXT)" # Check whether --with-idl-compiler was given. if test "${with_idl_compiler+set}" = set; then : withval=$with_idl_compiler; if test "x$withval" != x; then if test -f "$withval"; then IDL_COMPILER=$withval fi fi fi if test x$IDL_COMPILER == x"\$(top_builddir)/src/idl-compiler/orbit-idl-2\$(EXEEXT)"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5 $as_echo "internal" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: external ($IDL_COMPILER)" >&5 $as_echo "external ($IDL_COMPILER)" >&6; } fi for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AWK+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done GLIB_REQUIRED=2.8.0 LIBIDL_REQUIRED=0.8.2 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.18 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi LOCAL_LINC_LIBS='$(top_builddir)/linc2/src/liblinc.la' LOCAL_LINC_CFLAGS='-I$(top_srcdir)/linc2/include -I$(top_builddir)/linc2/include' pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ORBIT" >&5 $as_echo_n "checking for ORBIT... " >&6; } if test -n "$ORBIT_CFLAGS"; then pkg_cv_ORBIT_CFLAGS="$ORBIT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\\ glib-2.0 >= \$GLIB_REQUIRED \\ gobject-2.0 >= \$GLIB_REQUIRED \\ gthread-2.0 >= \$GLIB_REQUIRED \\ gmodule-2.0 >= \$GLIB_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "\ glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gthread-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ORBIT_CFLAGS=`$PKG_CONFIG --cflags "\ glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gthread-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ORBIT_LIBS"; then pkg_cv_ORBIT_LIBS="$ORBIT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\\ glib-2.0 >= \$GLIB_REQUIRED \\ gobject-2.0 >= \$GLIB_REQUIRED \\ gthread-2.0 >= \$GLIB_REQUIRED \\ gmodule-2.0 >= \$GLIB_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "\ glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gthread-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ORBIT_LIBS=`$PKG_CONFIG --libs "\ glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gthread-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then ORBIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "\ glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gthread-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED" 2>&1` else ORBIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "\ glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gthread-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ORBIT_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (\ glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gthread-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED) were not met: $ORBIT_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables ORBIT_CFLAGS and ORBIT_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables ORBIT_CFLAGS and ORBIT_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else ORBIT_CFLAGS=$pkg_cv_ORBIT_CFLAGS ORBIT_LIBS=$pkg_cv_ORBIT_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ORBIT_IDL" >&5 $as_echo_n "checking for ORBIT_IDL... " >&6; } if test -n "$ORBIT_IDL_CFLAGS"; then pkg_cv_ORBIT_IDL_CFLAGS="$ORBIT_IDL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\\ libIDL-2.0 >= \$LIBIDL_REQUIRED \\ glib-2.0 >= \$GLIB_REQUIRED \\ gobject-2.0 >= \$GLIB_REQUIRED \\ gmodule-2.0 >= \$GLIB_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "\ libIDL-2.0 >= $LIBIDL_REQUIRED \ glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ORBIT_IDL_CFLAGS=`$PKG_CONFIG --cflags "\ libIDL-2.0 >= $LIBIDL_REQUIRED \ glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ORBIT_IDL_LIBS"; then pkg_cv_ORBIT_IDL_LIBS="$ORBIT_IDL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\\ libIDL-2.0 >= \$LIBIDL_REQUIRED \\ glib-2.0 >= \$GLIB_REQUIRED \\ gobject-2.0 >= \$GLIB_REQUIRED \\ gmodule-2.0 >= \$GLIB_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "\ libIDL-2.0 >= $LIBIDL_REQUIRED \ glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ORBIT_IDL_LIBS=`$PKG_CONFIG --libs "\ libIDL-2.0 >= $LIBIDL_REQUIRED \ glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then ORBIT_IDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "\ libIDL-2.0 >= $LIBIDL_REQUIRED \ glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED" 2>&1` else ORBIT_IDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "\ libIDL-2.0 >= $LIBIDL_REQUIRED \ glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ORBIT_IDL_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (\ libIDL-2.0 >= $LIBIDL_REQUIRED \ glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED) were not met: $ORBIT_IDL_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables ORBIT_IDL_CFLAGS and ORBIT_IDL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables ORBIT_IDL_CFLAGS and ORBIT_IDL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else ORBIT_IDL_CFLAGS=$pkg_cv_ORBIT_IDL_CFLAGS ORBIT_IDL_LIBS=$pkg_cv_ORBIT_IDL_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ORBIT_NAME" >&5 $as_echo_n "checking for ORBIT_NAME... " >&6; } if test -n "$ORBIT_NAME_CFLAGS"; then pkg_cv_ORBIT_NAME_CFLAGS="$ORBIT_NAME_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED \\ gobject-2.0 >= \$GLIB_REQUIRED \\ gthread-2.0 >= \$GLIB_REQUIRED \\ gmodule-2.0 >= \$GLIB_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gthread-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ORBIT_NAME_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gthread-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ORBIT_NAME_LIBS"; then pkg_cv_ORBIT_NAME_LIBS="$ORBIT_NAME_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED \\ gobject-2.0 >= \$GLIB_REQUIRED \\ gthread-2.0 >= \$GLIB_REQUIRED \\ gmodule-2.0 >= \$GLIB_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gthread-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ORBIT_NAME_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gthread-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then ORBIT_NAME_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gthread-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED" 2>&1` else ORBIT_NAME_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gthread-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ORBIT_NAME_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (glib-2.0 >= $GLIB_REQUIRED \ gobject-2.0 >= $GLIB_REQUIRED \ gthread-2.0 >= $GLIB_REQUIRED \ gmodule-2.0 >= $GLIB_REQUIRED) were not met: $ORBIT_NAME_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables ORBIT_NAME_CFLAGS and ORBIT_NAME_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables ORBIT_NAME_CFLAGS and ORBIT_NAME_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else ORBIT_NAME_CFLAGS=$pkg_cv_ORBIT_NAME_CFLAGS ORBIT_NAME_LIBS=$pkg_cv_ORBIT_NAME_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if test "${ac_cv_header_stdc+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi for ac_header in fcntl.h unistd.h sys/endian.h endian.h machine/endian.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in sys/machine.h sys/isa_defs.h sys/poll.h sys/select.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in sys/time.h netinet/in.h sys/socket.h arpa/inet.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in stddef.h wchar.h wcstr.h wctype.h machine/types.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in sys/un.h sys/uio.h syslog.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in sys/wait.h netdb.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in utime.h sys/utime.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in linux/socket.h do : ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default" if test "x$ac_cv_header_linux_socket_h" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LINUX_SOCKET_H 1 _ACEOF fi done for ac_header in sys/sockio.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" if test "x$ac_cv_header_sys_sockio_h" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_SOCKIO_H 1 _ACEOF fi done if test "$os_win32" = "yes"; then for ac_header in winsock2.h do : ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" if test "x$ac_cv_header_winsock2_h" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_WINSOCK2_H 1 _ACEOF fi done if test $ac_cv_header_winsock2_h = yes; then LIBS="-lws2_32 $LIBS" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } if test "${ac_cv_c_const+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { /* FIXME: Include the comments suggested by Paul. */ #ifndef __cplusplus /* Ultrix mips cc rejects this. */ typedef int charset[2]; const charset cs; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this. */ char *t; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; }; struct s *b; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes else ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 $as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then $as_echo "#define const /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 $as_echo_n "checking for inline... " >&6; } if test "${ac_cv_c_inline+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; static $ac_kw foo_t static_foo () {return 0; } $ac_kw foo_t foo () {return 0; } #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_inline=$ac_kw fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext test "$ac_cv_c_inline" != no && break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 $as_echo "$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; *) case $ac_cv_c_inline in no) ac_val=;; *) ac_val=$ac_cv_c_inline;; esac cat >>confdefs.h <<_ACEOF #ifndef __cplusplus #define inline $ac_val #endif _ACEOF ;; esac ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" if test "x$ac_cv_type_size_t" = x""yes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi for ac_func in vprintf do : ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" if test "x$ac_cv_func_vprintf" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_VPRINTF 1 _ACEOF ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" if test "x$ac_cv_func__doprnt" = x""yes; then : $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h fi fi done ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" if test "x$ac_cv_func_socket" = x""yes; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 $as_echo_n "checking for socket in -lsocket... " >&6; } if test "${ac_cv_lib_socket_socket+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char socket (); int main () { return socket (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_socket_socket=yes else ac_cv_lib_socket_socket=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 $as_echo "$ac_cv_lib_socket_socket" >&6; } if test "x$ac_cv_lib_socket_socket" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBSOCKET 1 _ACEOF LIBS="-lsocket $LIBS" fi fi ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" if test "x$ac_cv_func_gethostbyname" = x""yes; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_nsl_gethostbyname=yes else ac_cv_lib_nsl_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBNSL 1 _ACEOF LIBS="-lnsl $LIBS" fi fi ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" if test "x$ac_cv_func_sigaction" = x""yes; then : fi ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog" if test "x$ac_cv_func_syslog" = x""yes; then : fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } if test "${ac_cv_c_bigendian+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __APPLE_CC__ not a universal capable compiler #endif typedef int dummy; _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # Check for potential -arch flags. It is not universal unless # there are at least two -arch flags with different values. ac_arch= ac_prev= for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do if test -n "$ac_prev"; then case $ac_word in i?86 | x86_64 | ppc | ppc64) if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then ac_arch=$ac_word else ac_cv_c_bigendian=universal break fi ;; esac ac_prev= elif test "x$ac_word" = "x-arch"; then ac_prev=arch fi done fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_c_bigendian = unknown; then # See if sys/param.h defines the BYTE_ORDER macro. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ && LITTLE_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to _BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef _BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # Compile a test program. if test "$cross_compiling" = yes; then : # Try to guess by grepping values from an object file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; int use_ascii (int i) { return ascii_mm[i] + ascii_ii[i]; } short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; int use_ebcdic (int i) { return ebcdic_mm[i] + ebcdic_ii[i]; } extern int foo; int main () { return use_ascii (foo) == use_ebcdic (foo); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then ac_cv_c_bigendian=yes fi if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else # finding both strings is unlikely to happen, but who knows? ac_cv_c_bigendian=unknown fi fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { /* Are we little or big endian? From Harbison&Steele. */ union { long int l; char c[sizeof (long int)]; } u; u.l = 1; return u.c[sizeof (long int) - 1] == 1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_bigendian=no else ac_cv_c_bigendian=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 $as_echo "$ac_cv_c_bigendian" >&6; } case $ac_cv_c_bigendian in #( yes) $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h ;; #( no) ;; #( universal) $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h ;; #( *) as_fn_error $? "unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; esac dofus_save_libs="$LIBS" LIBS="$ORBIT_LIBS $LIBS" if test "$cross_compiling" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not check for borked linking while cross-compiling" >&5 $as_echo "$as_me: WARNING: Could not check for borked linking while cross-compiling" >&2;} else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include main () { return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else as_fn_error $? " Linking is badly borked on your system. Please ensure your library path is correct Check config.log for details - check near the end of the log above 'failed program was' Alternatively ensure that your /etc/ld.so.conf (and/or LD_LIBRARY_PATH) includes the prefix you're compiling on: '${prefix}' " "$LINENO" 5 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi LIBS="$dofus_save_libs" orig_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $ORBIT_CFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of CORBA_octet" >&5 $as_echo_n "checking alignment of CORBA_octet... " >&6; } align_save_libs="$LIBS" LIBS="$ORBIT_LIBS $LIBS" if test "${ac_cv_alignof_CORBA_octet+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_alignof_CORBA_octet=0 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include "$srcdir/include/orbit/util/basic_types.h" typedef struct {char s1;} CORBA_struct; typedef void *CORBA_pointer; struct test {char s1; CORBA_octet s2;}; main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", &(((struct test*)0)->s2)); exit(0); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_alignof_CORBA_octet=`cat conftestval` else ac_cv_alignof_CORBA_octet=0 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_CORBA_octet" >&5 $as_echo "$ac_cv_alignof_CORBA_octet" >&6; } if test "$ac_cv_alignof_CORBA_octet" = "0" ; then as_fn_error $? "Failed to find alignment. Check config.log for details." "$LINENO" 5 fi LIBS="$align_save_libs" ORBIT_ALIGNOF_CORBA_OCTET=$ac_cv_alignof_CORBA_octet { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of CORBA_boolean" >&5 $as_echo_n "checking alignment of CORBA_boolean... " >&6; } align_save_libs="$LIBS" LIBS="$ORBIT_LIBS $LIBS" if test "${ac_cv_alignof_CORBA_boolean+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_alignof_CORBA_boolean=0 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include "$srcdir/include/orbit/util/basic_types.h" typedef struct {char s1;} CORBA_struct; typedef void *CORBA_pointer; struct test {char s1; CORBA_boolean s2;}; main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", &(((struct test*)0)->s2)); exit(0); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_alignof_CORBA_boolean=`cat conftestval` else ac_cv_alignof_CORBA_boolean=0 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_CORBA_boolean" >&5 $as_echo "$ac_cv_alignof_CORBA_boolean" >&6; } if test "$ac_cv_alignof_CORBA_boolean" = "0" ; then as_fn_error $? "Failed to find alignment. Check config.log for details." "$LINENO" 5 fi LIBS="$align_save_libs" ORBIT_ALIGNOF_CORBA_BOOLEAN=$ac_cv_alignof_CORBA_boolean { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of CORBA_char" >&5 $as_echo_n "checking alignment of CORBA_char... " >&6; } align_save_libs="$LIBS" LIBS="$ORBIT_LIBS $LIBS" if test "${ac_cv_alignof_CORBA_char+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_alignof_CORBA_char=0 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include "$srcdir/include/orbit/util/basic_types.h" typedef struct {char s1;} CORBA_struct; typedef void *CORBA_pointer; struct test {char s1; CORBA_char s2;}; main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", &(((struct test*)0)->s2)); exit(0); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_alignof_CORBA_char=`cat conftestval` else ac_cv_alignof_CORBA_char=0 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_CORBA_char" >&5 $as_echo "$ac_cv_alignof_CORBA_char" >&6; } if test "$ac_cv_alignof_CORBA_char" = "0" ; then as_fn_error $? "Failed to find alignment. Check config.log for details." "$LINENO" 5 fi LIBS="$align_save_libs" ORBIT_ALIGNOF_CORBA_CHAR=$ac_cv_alignof_CORBA_char { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of CORBA_wchar" >&5 $as_echo_n "checking alignment of CORBA_wchar... " >&6; } align_save_libs="$LIBS" LIBS="$ORBIT_LIBS $LIBS" if test "${ac_cv_alignof_CORBA_wchar+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_alignof_CORBA_wchar=0 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include "$srcdir/include/orbit/util/basic_types.h" typedef struct {char s1;} CORBA_struct; typedef void *CORBA_pointer; struct test {char s1; CORBA_wchar s2;}; main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", &(((struct test*)0)->s2)); exit(0); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_alignof_CORBA_wchar=`cat conftestval` else ac_cv_alignof_CORBA_wchar=0 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_CORBA_wchar" >&5 $as_echo "$ac_cv_alignof_CORBA_wchar" >&6; } if test "$ac_cv_alignof_CORBA_wchar" = "0" ; then as_fn_error $? "Failed to find alignment. Check config.log for details." "$LINENO" 5 fi LIBS="$align_save_libs" ORBIT_ALIGNOF_CORBA_WCHAR=$ac_cv_alignof_CORBA_wchar { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of CORBA_short" >&5 $as_echo_n "checking alignment of CORBA_short... " >&6; } align_save_libs="$LIBS" LIBS="$ORBIT_LIBS $LIBS" if test "${ac_cv_alignof_CORBA_short+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_alignof_CORBA_short=0 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include "$srcdir/include/orbit/util/basic_types.h" typedef struct {char s1;} CORBA_struct; typedef void *CORBA_pointer; struct test {char s1; CORBA_short s2;}; main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", &(((struct test*)0)->s2)); exit(0); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_alignof_CORBA_short=`cat conftestval` else ac_cv_alignof_CORBA_short=0 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_CORBA_short" >&5 $as_echo "$ac_cv_alignof_CORBA_short" >&6; } if test "$ac_cv_alignof_CORBA_short" = "0" ; then as_fn_error $? "Failed to find alignment. Check config.log for details." "$LINENO" 5 fi LIBS="$align_save_libs" ORBIT_ALIGNOF_CORBA_SHORT=$ac_cv_alignof_CORBA_short { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of CORBA_long" >&5 $as_echo_n "checking alignment of CORBA_long... " >&6; } align_save_libs="$LIBS" LIBS="$ORBIT_LIBS $LIBS" if test "${ac_cv_alignof_CORBA_long+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_alignof_CORBA_long=0 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include "$srcdir/include/orbit/util/basic_types.h" typedef struct {char s1;} CORBA_struct; typedef void *CORBA_pointer; struct test {char s1; CORBA_long s2;}; main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", &(((struct test*)0)->s2)); exit(0); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_alignof_CORBA_long=`cat conftestval` else ac_cv_alignof_CORBA_long=0 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_CORBA_long" >&5 $as_echo "$ac_cv_alignof_CORBA_long" >&6; } if test "$ac_cv_alignof_CORBA_long" = "0" ; then as_fn_error $? "Failed to find alignment. Check config.log for details." "$LINENO" 5 fi LIBS="$align_save_libs" ORBIT_ALIGNOF_CORBA_LONG=$ac_cv_alignof_CORBA_long { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of CORBA_long_long" >&5 $as_echo_n "checking alignment of CORBA_long_long... " >&6; } align_save_libs="$LIBS" LIBS="$ORBIT_LIBS $LIBS" if test "${ac_cv_alignof_CORBA_long_long+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_alignof_CORBA_long_long=0 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include "$srcdir/include/orbit/util/basic_types.h" typedef struct {char s1;} CORBA_struct; typedef void *CORBA_pointer; struct test {char s1; CORBA_long_long s2;}; main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", &(((struct test*)0)->s2)); exit(0); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_alignof_CORBA_long_long=`cat conftestval` else ac_cv_alignof_CORBA_long_long=0 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_CORBA_long_long" >&5 $as_echo "$ac_cv_alignof_CORBA_long_long" >&6; } if test "$ac_cv_alignof_CORBA_long_long" = "0" ; then as_fn_error $? "Failed to find alignment. Check config.log for details." "$LINENO" 5 fi LIBS="$align_save_libs" ORBIT_ALIGNOF_CORBA_LONG_LONG=$ac_cv_alignof_CORBA_long_long { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of CORBA_float" >&5 $as_echo_n "checking alignment of CORBA_float... " >&6; } align_save_libs="$LIBS" LIBS="$ORBIT_LIBS $LIBS" if test "${ac_cv_alignof_CORBA_float+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_alignof_CORBA_float=0 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include "$srcdir/include/orbit/util/basic_types.h" typedef struct {char s1;} CORBA_struct; typedef void *CORBA_pointer; struct test {char s1; CORBA_float s2;}; main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", &(((struct test*)0)->s2)); exit(0); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_alignof_CORBA_float=`cat conftestval` else ac_cv_alignof_CORBA_float=0 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_CORBA_float" >&5 $as_echo "$ac_cv_alignof_CORBA_float" >&6; } if test "$ac_cv_alignof_CORBA_float" = "0" ; then as_fn_error $? "Failed to find alignment. Check config.log for details." "$LINENO" 5 fi LIBS="$align_save_libs" ORBIT_ALIGNOF_CORBA_FLOAT=$ac_cv_alignof_CORBA_float { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of CORBA_double" >&5 $as_echo_n "checking alignment of CORBA_double... " >&6; } align_save_libs="$LIBS" LIBS="$ORBIT_LIBS $LIBS" if test "${ac_cv_alignof_CORBA_double+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_alignof_CORBA_double=0 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include "$srcdir/include/orbit/util/basic_types.h" typedef struct {char s1;} CORBA_struct; typedef void *CORBA_pointer; struct test {char s1; CORBA_double s2;}; main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", &(((struct test*)0)->s2)); exit(0); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_alignof_CORBA_double=`cat conftestval` else ac_cv_alignof_CORBA_double=0 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_CORBA_double" >&5 $as_echo "$ac_cv_alignof_CORBA_double" >&6; } if test "$ac_cv_alignof_CORBA_double" = "0" ; then as_fn_error $? "Failed to find alignment. Check config.log for details." "$LINENO" 5 fi LIBS="$align_save_libs" ORBIT_ALIGNOF_CORBA_DOUBLE=$ac_cv_alignof_CORBA_double { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of CORBA_long_double" >&5 $as_echo_n "checking alignment of CORBA_long_double... " >&6; } align_save_libs="$LIBS" LIBS="$ORBIT_LIBS $LIBS" if test "${ac_cv_alignof_CORBA_long_double+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_alignof_CORBA_long_double=0 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include "$srcdir/include/orbit/util/basic_types.h" typedef struct {char s1;} CORBA_struct; typedef void *CORBA_pointer; struct test {char s1; CORBA_long_double s2;}; main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", &(((struct test*)0)->s2)); exit(0); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_alignof_CORBA_long_double=`cat conftestval` else ac_cv_alignof_CORBA_long_double=0 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_CORBA_long_double" >&5 $as_echo "$ac_cv_alignof_CORBA_long_double" >&6; } if test "$ac_cv_alignof_CORBA_long_double" = "0" ; then as_fn_error $? "Failed to find alignment. Check config.log for details." "$LINENO" 5 fi LIBS="$align_save_libs" ORBIT_ALIGNOF_CORBA_LONG_DOUBLE=$ac_cv_alignof_CORBA_long_double { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of CORBA_struct" >&5 $as_echo_n "checking alignment of CORBA_struct... " >&6; } align_save_libs="$LIBS" LIBS="$ORBIT_LIBS $LIBS" if test "${ac_cv_alignof_CORBA_struct+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_alignof_CORBA_struct=0 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include "$srcdir/include/orbit/util/basic_types.h" typedef struct {char s1;} CORBA_struct; typedef void *CORBA_pointer; struct test {char s1; CORBA_struct s2;}; main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", &(((struct test*)0)->s2)); exit(0); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_alignof_CORBA_struct=`cat conftestval` else ac_cv_alignof_CORBA_struct=0 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_CORBA_struct" >&5 $as_echo "$ac_cv_alignof_CORBA_struct" >&6; } if test "$ac_cv_alignof_CORBA_struct" = "0" ; then as_fn_error $? "Failed to find alignment. Check config.log for details." "$LINENO" 5 fi LIBS="$align_save_libs" ORBIT_ALIGNOF_CORBA_STRUCT=$ac_cv_alignof_CORBA_struct { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of CORBA_pointer" >&5 $as_echo_n "checking alignment of CORBA_pointer... " >&6; } align_save_libs="$LIBS" LIBS="$ORBIT_LIBS $LIBS" if test "${ac_cv_alignof_CORBA_pointer+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_alignof_CORBA_pointer=0 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include "$srcdir/include/orbit/util/basic_types.h" typedef struct {char s1;} CORBA_struct; typedef void *CORBA_pointer; struct test {char s1; CORBA_pointer s2;}; main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", &(((struct test*)0)->s2)); exit(0); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_alignof_CORBA_pointer=`cat conftestval` else ac_cv_alignof_CORBA_pointer=0 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_CORBA_pointer" >&5 $as_echo "$ac_cv_alignof_CORBA_pointer" >&6; } if test "$ac_cv_alignof_CORBA_pointer" = "0" ; then as_fn_error $? "Failed to find alignment. Check config.log for details." "$LINENO" 5 fi LIBS="$align_save_libs" ORBIT_ALIGNOF_CORBA_POINTER=$ac_cv_alignof_CORBA_pointer CPPFLAGS=$orig_CPPFLAGS if test "x$GCC" = "xyes" -a "x$enable_compile_warnings" != "xno"; then WARN_CFLAGS="-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations" else WARN_CFLAGS= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WARN_CFLAGS" >&5 $as_echo "$WARN_CFLAGS" >&6; } if test "$enable_maintainer_mode" = "yes"; then DISABLE_DEPRECATED_CFLAGS=" \ -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LINC" >&5 $as_echo_n "checking for LINC... " >&6; } if test -n "$LINC_CFLAGS"; then pkg_cv_LINC_CFLAGS="$LINC_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gobject-2.0 >= \$GLIB_REQUIRED gthread-2.0 >= \$GLIB_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LINC_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$LINC_LIBS"; then pkg_cv_LINC_LIBS="$LINC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gobject-2.0 >= \$GLIB_REQUIRED gthread-2.0 >= \$GLIB_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LINC_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then LINC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED" 2>&1` else LINC_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$LINC_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED) were not met: $LINC_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables LINC_CFLAGS and LINC_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables LINC_CFLAGS and LINC_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else LINC_CFLAGS=$pkg_cv_LINC_CFLAGS LINC_LIBS=$pkg_cv_LINC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if test "${ac_cv_header_stdc+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi for ac_header in fcntl.h unistd.h sys/endian.h endian.h machine/endian.h sys/machine.h sys/isa_defs.h sys/poll.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in stddef.h wchar.h wcstr.h wctype.h machine/types.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in netinet/in.h netinet/tcp.h sys/un.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in arpa/nameser.h resolv.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in poll basename do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init" if test "x$ac_cv_func_res_init" = x""yes; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init in -lresolv" >&5 $as_echo_n "checking for res_init in -lresolv... " >&6; } if test "${ac_cv_lib_resolv_res_init+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lresolv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char res_init (); int main () { return res_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_resolv_res_init=yes else ac_cv_lib_resolv_res_init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_init" >&5 $as_echo "$ac_cv_lib_resolv_res_init" >&6; } if test "x$ac_cv_lib_resolv_res_init" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBRESOLV 1 _ACEOF LIBS="-lresolv $LIBS" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_9_init in -lresolv" >&5 $as_echo_n "checking for res_9_init in -lresolv... " >&6; } if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lresolv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char res_9_init (); int main () { return res_9_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_resolv_res_9_init=yes else ac_cv_lib_resolv_res_9_init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_9_init" >&5 $as_echo "$ac_cv_lib_resolv_res_9_init" >&6; } if test "x$ac_cv_lib_resolv_res_9_init" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBRESOLV 1 _ACEOF LIBS="-lresolv $LIBS" fi ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" if test "x$ac_cv_func_socket" = x""yes; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 $as_echo_n "checking for socket in -lsocket... " >&6; } if test "${ac_cv_lib_socket_socket+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char socket (); int main () { return socket (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_socket_socket=yes else ac_cv_lib_socket_socket=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 $as_echo "$ac_cv_lib_socket_socket" >&6; } if test "x$ac_cv_lib_socket_socket" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBSOCKET 1 _ACEOF LIBS="-lsocket $LIBS" fi fi ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" if test "x$ac_cv_func_gethostbyname" = x""yes; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_nsl_gethostbyname=yes else ac_cv_lib_nsl_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBNSL 1 _ACEOF LIBS="-lnsl $LIBS" fi fi ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" if test "x$ac_cv_func_getaddrinfo" = x""yes; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lnsl" >&5 $as_echo_n "checking for getaddrinfo in -lnsl... " >&6; } if test "${ac_cv_lib_nsl_getaddrinfo+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char getaddrinfo (); int main () { return getaddrinfo (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_nsl_getaddrinfo=yes else ac_cv_lib_nsl_getaddrinfo=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_getaddrinfo" >&5 $as_echo "$ac_cv_lib_nsl_getaddrinfo" >&6; } if test "x$ac_cv_lib_nsl_getaddrinfo" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBNSL 1 _ACEOF LIBS="-lnsl $LIBS" fi fi if test x"$ac_cv_func_getaddrinfo" = "xyes" ; then $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" if test "x$ac_cv_func_getnameinfo" = x""yes; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -lnsl" >&5 $as_echo_n "checking for getnameinfo in -lnsl... " >&6; } if test "${ac_cv_lib_nsl_getnameinfo+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char getnameinfo (); int main () { return getnameinfo (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_nsl_getnameinfo=yes else ac_cv_lib_nsl_getnameinfo=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_getnameinfo" >&5 $as_echo "$ac_cv_lib_nsl_getnameinfo" >&6; } if test "x$ac_cv_lib_nsl_getnameinfo" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBNSL 1 _ACEOF LIBS="-lnsl $LIBS" fi fi if test x"$ac_cv_func_getnameinfo" = "xyes" ; then $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h fi have_inet_pton=no ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" if test "x$ac_cv_func_inet_pton" = x""yes; then : fi if test x"$ac_cv_func_inet_pton" = "xyes" ; then have_inet_pton=yes $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h fi # AC_CHECK_TYPE doesn't work here. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 $as_echo_n "checking for socklen_t... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef _WIN32 #include #else #include #include #endif int main () { socklen_t len; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else $as_echo "#define socklen_t size_t" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Blatantly stolen from configure.in in the sample code from # "UNIX Network Programming, Volume 1" by W. Richard Stevens { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 $as_echo_n "checking if sockaddr has sa_len member... " >&6; } if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ # include # include int main () { unsigned int i = sizeof(((struct sockaddr *)0)->sa_len) ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sockaddr_has_sa_len=yes else ac_cv_sockaddr_has_sa_len=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_has_sa_len" >&5 $as_echo "$ac_cv_sockaddr_has_sa_len" >&6; } if test x"$ac_cv_sockaddr_has_sa_len" = "xyes" ; then $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Werror-implicit-function-declaration" >&5 $as_echo_n "checking CFLAGS for gcc -Werror-implicit-function-declaration... " >&6; } if test "${ac_cv_cflags_gcc_option__Werror_implicit_function_declaration+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_cv_cflags_gcc_option__Werror_implicit_function_declaration="no, unknown" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_save_CFLAGS="$CFLAGS" for ac_arg in "-pedantic % -Werror-implicit-function-declaration" # do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_cflags_gcc_option__Werror_implicit_function_declaration=`echo $ac_arg | sed -e 's,.*% *,,'` ; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done CFLAGS="$ac_save_CFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration" >&5 $as_echo "$ac_cv_cflags_gcc_option__Werror_implicit_function_declaration" >&6; } case ".$ac_cv_cflags_gcc_option__Werror_implicit_function_declaration" in .ok|.ok,*) ;; .|.no|.no,*) ;; *) if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration " 2>&1 >/dev/null then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Werror_implicit_function_declaration"; } >&5 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Werror_implicit_function_declaration\""; } >&5 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration" fi ;; esac CFLAGS="$CFLAGS $ORBIT_DEBUG_CFLAGS" # Extract the first word of "gtkdoc-check", so it can be a program name with args. set dummy gtkdoc-check; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then : $as_echo_n "(cached) " >&6 else case $GTKDOC_CHECK in [\\/]* | ?:[\\/]*) ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK if test -n "$GTKDOC_CHECK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5 $as_echo "$GTKDOC_CHECK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi for ac_prog in gtkdoc-rebase do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_GTKDOC_REBASE+set}" = set; then : $as_echo_n "(cached) " >&6 else case $GTKDOC_REBASE in [\\/]* | ?:[\\/]*) ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE if test -n "$GTKDOC_REBASE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5 $as_echo "$GTKDOC_REBASE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$GTKDOC_REBASE" && break done test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true" # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args. set dummy gtkdoc-mkpdf; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_GTKDOC_MKPDF+set}" = set; then : $as_echo_n "(cached) " >&6 else case $GTKDOC_MKPDF in [\\/]* | ?:[\\/]*) ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF if test -n "$GTKDOC_MKPDF"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5 $as_echo "$GTKDOC_MKPDF" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Check whether --with-html-dir was given. if test "${with_html_dir+set}" = set; then : withval=$with_html_dir; else with_html_dir='${datadir}/gtk-doc/html' fi HTML_DIR="$with_html_dir" # Check whether --enable-gtk-doc was given. if test "${enable_gtk_doc+set}" = set; then : enableval=$enable_gtk_doc; else enable_gtk_doc=no fi if test x$enable_gtk_doc = xyes; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : else as_fn_error $? "You need to have gtk-doc >= 1.0 installed to build $PACKAGE_NAME" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5 $as_echo "$enable_gtk_doc" >&6; } # Check whether --enable-gtk-doc-html was given. if test "${enable_gtk_doc_html+set}" = set; then : enableval=$enable_gtk_doc_html; else enable_gtk_doc_html=yes fi # Check whether --enable-gtk-doc-pdf was given. if test "${enable_gtk_doc_pdf+set}" = set; then : enableval=$enable_gtk_doc_pdf; else enable_gtk_doc_pdf=no fi if test -z "$GTKDOC_MKPDF"; then enable_gtk_doc_pdf=no fi if test x$enable_gtk_doc = xyes; then ENABLE_GTK_DOC_TRUE= ENABLE_GTK_DOC_FALSE='#' else ENABLE_GTK_DOC_TRUE='#' ENABLE_GTK_DOC_FALSE= fi if test x$enable_gtk_doc_html = xyes; then GTK_DOC_BUILD_HTML_TRUE= GTK_DOC_BUILD_HTML_FALSE='#' else GTK_DOC_BUILD_HTML_TRUE='#' GTK_DOC_BUILD_HTML_FALSE= fi if test x$enable_gtk_doc_pdf = xyes; then GTK_DOC_BUILD_PDF_TRUE= GTK_DOC_BUILD_PDF_FALSE='#' else GTK_DOC_BUILD_PDF_TRUE='#' GTK_DOC_BUILD_PDF_FALSE= fi if test -n "$LIBTOOL"; then GTK_DOC_USE_LIBTOOL_TRUE= GTK_DOC_USE_LIBTOOL_FALSE='#' else GTK_DOC_USE_LIBTOOL_TRUE='#' GTK_DOC_USE_LIBTOOL_FALSE= fi if test -n "$GTKDOC_REBASE"; then GTK_DOC_USE_REBASE_TRUE= GTK_DOC_USE_REBASE_FALSE='#' else GTK_DOC_USE_REBASE_TRUE='#' GTK_DOC_USE_REBASE_FALSE= fi ac_config_files="$ac_config_files Makefile orbit2-config ORBit-2.0.pc ORBit-2.0-uninstalled.pc ORBit-CosNaming-2.0.pc ORBit-CosNaming-2.0-uninstalled.pc ORBit-imodule-2.0.pc ORBit-imodule-2.0-uninstalled.pc ORBit.spec orbit2-zip src/Makefile src/idl-compiler/Makefile src/idl-compiler/ORBit-idl-2.0.pc src/idl/Makefile src/idl/CORBA/Makefile src/idl/CORBA_PIDL/Makefile src/idl/interop/Makefile src/idl/misc/Makefile src/orb/Makefile src/orb/include/Makefile src/orb/util/Makefile src/orb/GIOP/Makefile src/orb/orb-core/Makefile src/orb/dynamic/Makefile src/orb/poa/Makefile src/services/Makefile src/services/name/Makefile src/services/imodule/Makefile include/Makefile include/orbit/Makefile include/orbit/orbit-config.h include/orbit/GIOP/Makefile include/orbit/util/Makefile include/orbit/orb-core/Makefile include/orbit/poa/Makefile include/orbit/dynamic/Makefile test/Makefile test/everything/Makefile test/inhibit/Makefile test/poa/Makefile docs/Makefile docs/devel/Makefile docs/internals/Makefile docs/api/Makefile linc2/Makefile linc2/src/Makefile linc2/test/Makefile linc2/include/Makefile linc2/include/linc/Makefile linc2/include/linc/linc-config.h" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then as_fn_error $? "conditional \"OS_WIN32\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_HTTP_TRUE}" && test -z "${ENABLE_HTTP_FALSE}"; then as_fn_error $? "conditional \"ENABLE_HTTP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : ${CONFIG_STATUS=./config.status} ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by ORBit2 $as_me 2.14.19, which was generated by GNU Autoconf 2.67. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ ORBit2 config.status 2.14.19 configured by $0, generated by GNU Autoconf 2.67, with options \\"\$ac_cs_config\\" Copyright (C) 2010 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # Quote evaled strings. for var in SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ deplibs_check_method \ file_magic_cmd \ AR \ AR_FLAGS \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ SHELL \ ECHO \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_wl \ lt_prog_compiler_pic \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ fix_srcfile_path \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ finish_eval \ old_striplib \ striplib; do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ sys_lib_dlsearch_path_spec; do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Fix-up fallback echo if it was mangled by the above quoting rules. case \$lt_ECHO in *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` ;; esac ac_aux_dir='$ac_aux_dir' xsi_shell='$xsi_shell' lt_shell_append='$lt_shell_append' # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "orbit2-config") CONFIG_FILES="$CONFIG_FILES orbit2-config" ;; "ORBit-2.0.pc") CONFIG_FILES="$CONFIG_FILES ORBit-2.0.pc" ;; "ORBit-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ORBit-2.0-uninstalled.pc" ;; "ORBit-CosNaming-2.0.pc") CONFIG_FILES="$CONFIG_FILES ORBit-CosNaming-2.0.pc" ;; "ORBit-CosNaming-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ORBit-CosNaming-2.0-uninstalled.pc" ;; "ORBit-imodule-2.0.pc") CONFIG_FILES="$CONFIG_FILES ORBit-imodule-2.0.pc" ;; "ORBit-imodule-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ORBit-imodule-2.0-uninstalled.pc" ;; "ORBit.spec") CONFIG_FILES="$CONFIG_FILES ORBit.spec" ;; "orbit2-zip") CONFIG_FILES="$CONFIG_FILES orbit2-zip" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "src/idl-compiler/Makefile") CONFIG_FILES="$CONFIG_FILES src/idl-compiler/Makefile" ;; "src/idl-compiler/ORBit-idl-2.0.pc") CONFIG_FILES="$CONFIG_FILES src/idl-compiler/ORBit-idl-2.0.pc" ;; "src/idl/Makefile") CONFIG_FILES="$CONFIG_FILES src/idl/Makefile" ;; "src/idl/CORBA/Makefile") CONFIG_FILES="$CONFIG_FILES src/idl/CORBA/Makefile" ;; "src/idl/CORBA_PIDL/Makefile") CONFIG_FILES="$CONFIG_FILES src/idl/CORBA_PIDL/Makefile" ;; "src/idl/interop/Makefile") CONFIG_FILES="$CONFIG_FILES src/idl/interop/Makefile" ;; "src/idl/misc/Makefile") CONFIG_FILES="$CONFIG_FILES src/idl/misc/Makefile" ;; "src/orb/Makefile") CONFIG_FILES="$CONFIG_FILES src/orb/Makefile" ;; "src/orb/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/orb/include/Makefile" ;; "src/orb/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/orb/util/Makefile" ;; "src/orb/GIOP/Makefile") CONFIG_FILES="$CONFIG_FILES src/orb/GIOP/Makefile" ;; "src/orb/orb-core/Makefile") CONFIG_FILES="$CONFIG_FILES src/orb/orb-core/Makefile" ;; "src/orb/dynamic/Makefile") CONFIG_FILES="$CONFIG_FILES src/orb/dynamic/Makefile" ;; "src/orb/poa/Makefile") CONFIG_FILES="$CONFIG_FILES src/orb/poa/Makefile" ;; "src/services/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/Makefile" ;; "src/services/name/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/name/Makefile" ;; "src/services/imodule/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/imodule/Makefile" ;; "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; "include/orbit/Makefile") CONFIG_FILES="$CONFIG_FILES include/orbit/Makefile" ;; "include/orbit/orbit-config.h") CONFIG_FILES="$CONFIG_FILES include/orbit/orbit-config.h" ;; "include/orbit/GIOP/Makefile") CONFIG_FILES="$CONFIG_FILES include/orbit/GIOP/Makefile" ;; "include/orbit/util/Makefile") CONFIG_FILES="$CONFIG_FILES include/orbit/util/Makefile" ;; "include/orbit/orb-core/Makefile") CONFIG_FILES="$CONFIG_FILES include/orbit/orb-core/Makefile" ;; "include/orbit/poa/Makefile") CONFIG_FILES="$CONFIG_FILES include/orbit/poa/Makefile" ;; "include/orbit/dynamic/Makefile") CONFIG_FILES="$CONFIG_FILES include/orbit/dynamic/Makefile" ;; "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; "test/everything/Makefile") CONFIG_FILES="$CONFIG_FILES test/everything/Makefile" ;; "test/inhibit/Makefile") CONFIG_FILES="$CONFIG_FILES test/inhibit/Makefile" ;; "test/poa/Makefile") CONFIG_FILES="$CONFIG_FILES test/poa/Makefile" ;; "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; "docs/devel/Makefile") CONFIG_FILES="$CONFIG_FILES docs/devel/Makefile" ;; "docs/internals/Makefile") CONFIG_FILES="$CONFIG_FILES docs/internals/Makefile" ;; "docs/api/Makefile") CONFIG_FILES="$CONFIG_FILES docs/api/Makefile" ;; "linc2/Makefile") CONFIG_FILES="$CONFIG_FILES linc2/Makefile" ;; "linc2/src/Makefile") CONFIG_FILES="$CONFIG_FILES linc2/src/Makefile" ;; "linc2/test/Makefile") CONFIG_FILES="$CONFIG_FILES linc2/test/Makefile" ;; "linc2/include/Makefile") CONFIG_FILES="$CONFIG_FILES linc2/include/Makefile" ;; "linc2/include/linc/Makefile") CONFIG_FILES="$CONFIG_FILES linc2/include/linc/Makefile" ;; "linc2/include/linc/linc-config.h") CONFIG_FILES="$CONFIG_FILES linc2/include/linc/linc-config.h" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_t=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_t"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out" && rm -f "$tmp/out";; *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" } >"$tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; "libtool":C) # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # The names of the tagged configurations supported by this script. available_tags="" # ### BEGIN LIBTOOL CONFIG # Assembler program. AS=$AS # DLL creation program. DLLTOOL=$DLLTOOL # Object dumper program. OBJDUMP=$OBJDUMP # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == "file_magic". file_magic_cmd=$lt_file_magic_cmd # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # The name of the directory that contains temporary libtool files. objdir=$objdir # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that does not interpret backslashes. ECHO=$lt_ECHO # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # If ld is used when linking, flag to hardcode \$libdir into a binary # during linking. This must work even if \$libdir does not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \${shlibpath_var} if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain="$ac_aux_dir/ltmain.sh" # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) case $xsi_shell in yes) cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac } # func_basename file func_basename () { func_basename_result="${1##*/}" } # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac func_basename_result="${1##*/}" } # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). func_stripname () { # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary parameter first. func_stripname_result=${3} func_stripname_result=${func_stripname_result#"${1}"} func_stripname_result=${func_stripname_result%"${2}"} } # func_opt_split func_opt_split () { func_opt_split_opt=${1%%=*} func_opt_split_arg=${1#*=} } # func_lo2o object func_lo2o () { case ${1} in *.lo) func_lo2o_result=${1%.lo}.${objext} ;; *) func_lo2o_result=${1} ;; esac } # func_xform libobj-or-source func_xform () { func_xform_result=${1%.*}.lo } # func_arith arithmetic-term... func_arith () { func_arith_result=$(( $* )) } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=${#1} } _LT_EOF ;; *) # Bourne compatible functions. cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi } # func_basename file func_basename () { func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` } # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # func_strip_suffix prefix name func_stripname () { case ${2} in .*) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; esac } # sed scripts: my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' my_sed_long_arg='1s/^-[^=]*=//' # func_opt_split func_opt_split () { func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` } # func_lo2o object func_lo2o () { func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` } # func_xform libobj-or-source func_xform () { func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` } # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "$@"` } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` } _LT_EOF esac case $lt_shell_append in yes) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$1+=\$2" } _LT_EOF ;; *) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$1=\$$1\$2" } _LT_EOF ;; esac sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi echo "ORBit configuration: Source code location: ${srcdir} Compiler: ${CC} Purify cleanliness: ${enable_purify} " ORBit2-2.14.19/ORBit.spec0000644000175000001440000001467511450333743011521 00000000000000%define __libtoolize /bin/true %define __spec_install_post /usr/lib/rpm/brp-compress Summary: A high-performance CORBA Object Request Broker. Name: ORBit2 Version: 2.14.19 Release: 1 Source: %{name}-%{version}.tar.gz Group: System Environment/Daemons License: LGPL/GPL BuildRoot: %{_tmppath}/%{name}-%{version}-root Prereq: /sbin/install-info URL: http://www.labs.redhat.com/orbit/ BuildRequires: pkgconfig >= 0.8 Requires: glib2 >= 2.8.0 Requires: libIDL >= 0.8.2 BuildRequires: glib2-devel >= 2.8.0 BuildRequires: libIDL-devel >= 0.8.2 %description ORBit is a high-performance CORBA (Common Object Request Broker Architecture) ORB (object request broker). It allows programs to send requests and receive replies from other programs, regardless of the locations of the two programs. CORBA is an architecture that enables communication between program objects, regardless of the programming language they're written in or the operating system they run on. You will need to install this package and ORBit-devel if you want to write programs that use CORBA technology. %package devel Summary: Development libraries, header files and utilities for ORBit. Group: Development/Libraries Requires: %name = %{version} Requires: indent Requires: pkgconfig >= 0.8 Requires: glib2 >= 2.8.0 Requires: glib2-devel >= 2.8.0 Requires: libIDL >= 0.8.2 Requires: libIDL-devel >= 0.8.2 %description devel ORBit is a high-performance CORBA (Common Object Request Broker Architecture) ORB (object request broker) with support for the C language. This package contains the header files, libraries and utilities necessary to write programs that use CORBA technology. If you want to write such programs, you'll also need to install the ORBIT package. %prep %setup -q mv ltmain.sh ltmain.sh.orig sed s/relink=yes/relink=no/ ltmain.sh.orig > ltmain.sh %build %configure make #%{?_smp_mflags} %install rm -rf %{buildroot} %makeinstall %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post devel %preun devel %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README TODO %{_libdir}/*.so.* %dir %{_libdir}/orbit-2.0/ %{_bindir}/linc-cleanup-sockets %files devel %defattr(-,root,root) %doc /usr/share/gtk-doc/html/ORBit2/ %{_bindir}/orbit-idl-2 %{_bindir}/typelib-dump %{_bindir}/orbit2-config %{_bindir}/ior-decode-2 %{_libdir}/*a %{_libdir}/*.so %{_libdir}/orbit-2.0/*.so %{_libdir}/orbit-2.0/*a %{_libdir}/pkgconfig/* %{_includedir}/* %{_datadir}/aclocal/* %{_datadir}/idl/orbit-2.0/* %changelog * Tue Mar 05 2002 Chris Chabot - Cleaned up formatting - made into .spec.in - expanded deps * Fri Feb 01 2002 Roy-Magne Mo - Added deps * Tue Jan 22 2002 Gregory Leblanc - removed Conflicts line - cleaned up %files section - removed duplicate glib-devel requires line * Sat Jan 19 2002 Chris Chabot - Imported spec into gnome 2.0 alpha - Bumped version to 2.3.102 - Changed requires accordingly - Minor cleanups * Wed Jan 09 2002 Tim Powers - automated rebuild * Wed Jan 2 2002 Havoc Pennington - build system somehow built against libglib-1.3.so.11 even though pkg-config found 1.3.12? wtf? trying again * Wed Jan 2 2002 Havoc Pennington - 2.3.100.90 snap * Mon Nov 26 2001 Havoc Pennington - 2.3.99 * Sun Nov 25 2001 Havoc Pennington - new snap 2.3.97.90, rebuild for glib 1.3.11 * Fri Oct 26 2001 Havoc Pennington - new snap, glib 1.3.10 rebuild * Tue Oct 9 2001 Havoc Pennington - check rebuild against new linc with headers moved - remove epoch, that was a screwup * Thu Oct 4 2001 Havoc Pennington - cvs snap - require specific glib2 * Thu Sep 27 2001 Havoc Pennington - 2.3.95 tarball - depend on new standalone libIDL, remove all libIDL stuff from file list * Fri Sep 21 2001 Havoc Pennington - require specific linc version, unrequire specific glib version since we get that via linc * Mon Sep 17 2001 Havoc Pennington - newer orbit2 from CVS * Thu Sep 13 2001 Havoc Pennington - conflict with old orbit with headers not moved * Wed Sep 12 2001 Havoc Pennington - renaming more things - remove smp flags, doesn't work atm - fix .pc file, trying to get bonobo-activation to build * Tue Sep 11 2001 Havoc Pennington - kill all file conflicts with ORBit1 * Mon Sep 10 2001 Havoc Pennington - convert to ORBit2 spec file (from ORBit original) * Tue Jul 24 2001 Alexander Larsson - Added glib-devel BuildRequires * Thu Jun 21 2001 Elliot Lee 0.5.8-2 - Use _smp_mflags if possible. * Mon May 14 2001 Jonathan Blandford - bumped version * Thu Mar 01 2001 Owen Taylor - Rebuild for GTK+-1.2.9 * Tue Jan 30 2001 Elliot Lee - 0.5.7 for real * Thu Jan 18 2001 Elliot Lee - 0.5.7 * Tue Dec 19 2000 Elliot Lee - 0.5.6 * Thu Nov 30 2000 Elliot Lee - 0.5.5 * Fri Aug 11 2000 Jonathan Blandford - Up Epoch and release * Tue Jul 25 2000 Elliot Lee - 0.5.3 * Wed Jul 19 2000 Jonathan Blandford - fixed to work with new cpp. * Wed Jul 12 2000 Prospector - automatic rebuild * Tue Jul 11 2000 Jonathan Blandford - Upgraded to 0.5.2 - a bug fix release. * Tue Jun 27 2000 Havoc Pennington - Trying to build the package for Preston and the build system wants a new changelog entry * Sat Jun 24 2000 Preston Brown - defattr the devel pkg - FHS paths * Fri May 19 2000 Jonathan Blandford - Upgraded to 0.5.1 * Tue Feb 3 2000 Elliot Lee 0.5.0-3 - Strip shared libraries * Mon Aug 30 1999 Elliot Lee 0.4.94-1 - Spec file fixes from RHL 6.0. * Wed Jun 2 1999 Jose Mercado - Fixed configure.in so spec.in could be used. * Mon Nov 23 1998 Pablo Saratxaga - improved %files section, and added use of %{prefix} and install-info (well,... no. The info file has not dir info inside, commented out) ORBit2-2.14.19/docs/0000755000175000001440000000000011450334031010650 500000000000000ORBit2-2.14.19/docs/Makefile.am0000644000175000001440000000003411334247617012637 00000000000000SUBDIRS=devel internals api ORBit2-2.14.19/docs/Makefile.in0000644000175000001440000004370111450333732012651 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = docs DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = devel internals api all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu docs/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/docs/api/0000755000175000001440000000000011450334031011421 500000000000000ORBit2-2.14.19/docs/api/Makefile.am0000644000175000001440000000312211334247617013411 00000000000000## Process this file with automake to produce Makefile.in AUTOMAKE_OPTIONS = 1.6 # The name of the module DOC_MODULE=ORBit2 # The top-level SGML file. DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sgml # The directory containing the source code. Relative to $(srcdir). # gtk-doc will search all .c & .h files beneath here for inline comments # documenting functions and macros. DOC_SOURCE_DIR=$(top_srcdir)/src/orb/orb-core EXTRA_HFILES=\ $(top_srcdir)/include/orbit/orb-core/allocators.h\ $(top_srcdir)/include/orbit/orb-core/orbit-small.h # Extra options to supply to gtkdoc-scan. SCAN_OPTIONS=--deprecated-guards="ORBIT2_DISABLE_DEPRECATED" # Extra options to supply to gtkdoc-mkdb. MKDB_OPTIONS=--sgml-mode --output-format=xml # Extra options to supply to gtkdoc-fixref. FIXXREF_OPTIONS= # Used for dependencies. HFILE_GLOB= CFILE_GLOB= # Header files to ignore when scanning. IGNORE_HFILES= corba-ops.h \ iop-profiles.h \ orb-core-export.h \ orb-core-private.h \ orbhttp.h \ $orbit-debug.h \ orbit-policy.h # Images to copy into HTML directory. HTML_IMAGES = # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE). content_files = # Other files to distribute. extra_files = # CFLAGS and LDFLAGS for compiling scan program. Only needed # if $(DOC_MODULE).types is non-empty. GTKDOC_CFLAGS = GTKDOC_LIBS = # If you need to override some of the declarations, place them in the # $(DOC_MODULE)-overrides.txt file and uncomment the second line here. DOC_OVERRIDES = #DOC_OVERRIDES = $(DOC_MODULE)-overrides.txt # include common portion ... include $(top_srcdir)/gtk-doc.make ORBit2-2.14.19/docs/api/Makefile.in0000644000175000001440000004777111450333732013435 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- mode: makefile -*- #################################### # Everything below here is generic # #################################### VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/gtk-doc.make subdir = docs/api ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.6 # The name of the module DOC_MODULE = ORBit2 # The top-level SGML file. DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.sgml # The directory containing the source code. Relative to $(srcdir). # gtk-doc will search all .c & .h files beneath here for inline comments # documenting functions and macros. DOC_SOURCE_DIR = $(top_srcdir)/src/orb/orb-core EXTRA_HFILES = \ $(top_srcdir)/include/orbit/orb-core/allocators.h\ $(top_srcdir)/include/orbit/orb-core/orbit-small.h # Extra options to supply to gtkdoc-scan. SCAN_OPTIONS = --deprecated-guards="ORBIT2_DISABLE_DEPRECATED" # Extra options to supply to gtkdoc-mkdb. MKDB_OPTIONS = --sgml-mode --output-format=xml # Extra options to supply to gtkdoc-fixref. FIXXREF_OPTIONS = # Used for dependencies. HFILE_GLOB = CFILE_GLOB = # Header files to ignore when scanning. IGNORE_HFILES = corba-ops.h \ iop-profiles.h \ orb-core-export.h \ orb-core-private.h \ orbhttp.h \ $orbit-debug.h \ orbit-policy.h # Images to copy into HTML directory. HTML_IMAGES = # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE). content_files = # Other files to distribute. extra_files = # CFLAGS and LDFLAGS for compiling scan program. Only needed # if $(DOC_MODULE).types is non-empty. GTKDOC_CFLAGS = GTKDOC_LIBS = # If you need to override some of the declarations, place them in the # $(DOC_MODULE)-overrides.txt file and uncomment the second line here. DOC_OVERRIDES = @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_CC = $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_CC = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_LD = $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_LD = $(LIBTOOL) --tag=CC --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_RUN = @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_RUN = $(LIBTOOL) --mode=execute # We set GPATH here; this gives us semantics for GNU make # which are more like other make's VPATH, when it comes to # whether a source that is a target of one rule is then # searched for in VPATH/GPATH. # GPATH = $(srcdir) TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE) EXTRA_DIST = \ $(content_files) \ $(HTML_IMAGES) \ $(DOC_MAIN_SGML_FILE) \ $(DOC_MODULE)-sections.txt \ $(DOC_MODULE)-overrides.txt DOC_STAMPS = scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp \ pdf-build.stamp \ $(srcdir)/tmpl.stamp $(srcdir)/sgml.stamp $(srcdir)/html.stamp \ $(srcdir)/pdf.stamp SCANOBJ_FILES = \ $(DOC_MODULE).args \ $(DOC_MODULE).hierarchy \ $(DOC_MODULE).interfaces \ $(DOC_MODULE).prerequisites \ $(DOC_MODULE).signals REPORT_FILES = \ $(DOC_MODULE)-undocumented.txt \ $(DOC_MODULE)-undeclared.txt \ $(DOC_MODULE)-unused.txt CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS) @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_HTML_FALSE@HTML_BUILD_STAMP = @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_HTML_TRUE@HTML_BUILD_STAMP = html-build.stamp @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_PDF_FALSE@PDF_BUILD_STAMP = @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_PDF_TRUE@PDF_BUILD_STAMP = pdf-build.stamp all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/gtk-doc.make $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/api/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu docs/api/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook check-am: all-am check: check-am all-am: Makefile all-local installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-local mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-local dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-data-local install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic \ maintainer-clean-local mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-local .MAKE: install-am install-strip .PHONY: all all-am all-local check check-am clean clean-generic \ clean-libtool clean-local dist-hook distclean \ distclean-generic distclean-libtool distclean-local distdir \ dvi dvi-am html html-am info info-am install install-am \ install-data install-data-am install-data-local install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic \ maintainer-clean-local mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ uninstall-local @ENABLE_GTK_DOC_TRUE@all-local: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) @ENABLE_GTK_DOC_FALSE@all-local: docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) $(REPORT_FILES): sgml-build.stamp #### scan #### scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB) @echo 'gtk-doc: Scanning header files' @-chmod -R u+w $(srcdir) @_source_dir='' ; for i in $(DOC_SOURCE_DIR) ; do \ _source_dir="$${_source_dir} --source-dir=$$i" ; \ done ; \ cd $(srcdir) && \ gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES) @if grep -l '^..*$$' $(srcdir)/$(DOC_MODULE).types > /dev/null 2>&1 ; then \ CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) --output-dir=$(srcdir) ; \ else \ cd $(srcdir) ; \ for i in $(SCANOBJ_FILES) ; do \ test -f $$i || touch $$i ; \ done \ fi @touch scan-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp @true #### templates #### tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt @echo 'gtk-doc: Rebuilding template files' @-chmod -R u+w $(srcdir) @cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS) @touch tmpl-build.stamp tmpl.stamp: tmpl-build.stamp @true $(srcdir)/tmpl/*.sgml: @true #### xml #### sgml-build.stamp: tmpl.stamp $(DOC_MODULE)-sections.txt $(srcdir)/tmpl/*.sgml $(expand_content_files) @echo 'gtk-doc: Building XML' @-chmod -R u+w $(srcdir) @_source_dir='' ; for i in $(DOC_SOURCE_DIR) ; do \ _source_dir="$${_source_dir} --source-dir=$$i" ; \ done ; \ cd $(srcdir) && \ gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS) @touch sgml-build.stamp sgml.stamp: sgml-build.stamp @true #### html #### html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) @echo 'gtk-doc: Building HTML' @-chmod -R u+w $(srcdir) @rm -rf $(srcdir)/html @mkdir $(srcdir)/html @mkhtml_options=""; \ gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \ if test "$(?)" = "0"; then \ mkhtml_options=--path="$(srcdir)"; \ fi; \ cd $(srcdir)/html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) @test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html ) @echo 'gtk-doc: Fixing cross-references' @cd $(srcdir) && gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) @touch html-build.stamp #### pdf #### pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) @echo 'gtk-doc: Building PDF' @-chmod -R u+w $(srcdir) @rm -rf $(srcdir)/$(DOC_MODULE).pdf @mkpdf_imgdirs=""; \ if test "x$(HTML_IMAGES)" != "x"; then \ for img in $(HTML_IMAGES); do \ part=`dirname $$img`; \ echo $$mkpdf_imgdirs | grep >/dev/null "\-\-imgdir=$$part "; \ if test $$? != 0; then \ mkpdf_imgdirs="$$mkpdf_imgdirs --imgdir=$$part"; \ fi; \ done; \ fi; \ cd $(srcdir) && gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_imgdirs $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS) @touch pdf-build.stamp ############## clean-local: rm -f *~ *.bak rm -rf .libs distclean-local: cd $(srcdir) && \ rm -rf xml $(REPORT_FILES) $(DOC_MODULE).pdf \ $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt maintainer-clean-local: clean cd $(srcdir) && rm -rf xml html install-data-local: @installfiles=`echo $(srcdir)/html/*`; \ if test "$$installfiles" = '$(srcdir)/html/*'; \ then echo '-- Nothing to install' ; \ else \ if test -n "$(DOC_MODULE_VERSION)"; then \ installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ else \ installdir="$(DESTDIR)$(TARGET_DIR)"; \ fi; \ $(mkinstalldirs) $${installdir} ; \ for i in $$installfiles; do \ echo '-- Installing '$$i ; \ $(INSTALL_DATA) $$i $${installdir}; \ done; \ if test -n "$(DOC_MODULE_VERSION)"; then \ mv -f $${installdir}/$(DOC_MODULE).devhelp2 \ $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \ mv -f $${installdir}/$(DOC_MODULE).devhelp \ $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp; \ fi; \ $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir}; \ fi uninstall-local: @if test -n "$(DOC_MODULE_VERSION)"; then \ installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ else \ installdir="$(DESTDIR)$(TARGET_DIR)"; \ fi; \ rm -rf $${installdir} # # Require gtk-doc when making dist # @ENABLE_GTK_DOC_TRUE@dist-check-gtkdoc: @ENABLE_GTK_DOC_FALSE@dist-check-gtkdoc: @ENABLE_GTK_DOC_FALSE@ @echo "*** gtk-doc must be installed and enabled in order to make dist" @ENABLE_GTK_DOC_FALSE@ @false dist-hook: dist-check-gtkdoc dist-hook-local mkdir $(distdir)/tmpl mkdir $(distdir)/html -cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl cp $(srcdir)/html/* $(distdir)/html -cp $(srcdir)/$(DOC_MODULE).pdf $(distdir)/ -cp $(srcdir)/$(DOC_MODULE).types $(distdir)/ -cp $(srcdir)/$(DOC_MODULE)-sections.txt $(distdir)/ cd $(distdir) && rm -f $(DISTCLEANFILES) $(GTKDOC_REBASE) --online --relative --html-dir=$(distdir)/html .PHONY : dist-hook-local docs #DOC_OVERRIDES = $(DOC_MODULE)-overrides.txt # include common portion ... # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/docs/api/html/0000755000175000001440000000000011450334031012365 500000000000000ORBit2-2.14.19/docs/api/html/up.png0000644000175000001440000000062611450334031013443 00000000000000‰PNG  IHDRàw=øbKGDÿÿÿ ½§“ pHYs  ÒÝ~ütIMEÒ2.œE€Ù#IDATxœí“=JÄ@F¿o‰] !+¤œ2…Å[ZÌ<@/á<€¥…XÛ Ú­20v±³ˆÂ…Ïj0»lþvV°ðA`˜ ïÍ ð—t*iùâHÒ­~xR~'IUUÉ9ç#OÁ‘my–eJÓTeY†GvÉ@x¤O#ß;2E>9²|t$DÞ9nnBäíÈjµò‘BRIsIªë:HîŸ8ŽU…œùëùPÖÚN™1fc­sNÎ95Mã§–ɵ¤ ׿ŸØŒ1~¸pEòe$ïIž°€Ç î7nrDòf!;Ã`¨çÝ'äykíÎI’øáû䲤sI_]ÿÇy—‡‘€ÅÀ^^I>O>Á¡ø­§²š?YBIEND®B`‚ORBit2-2.14.19/docs/api/html/left.png0000644000175000001440000000071311450334031013746 00000000000000‰PNG  IHDRàw=øbKGDÿÿÿ ½§“ pHYs  ÒÝ~ütIMEÒ1&¹³[(XIDATxœµ•!OÃPEïÛ*ˆ‰ŠID%~ꊯ˜ÄÕ"pæ'öŘ`sÜ–¥rKf–´‚¤â h—mi—ÇIžz}÷ܯIû¤–.pÚö\“`xä‹ ˆl‡?l·[²,H¬‡¯×k<Ï#Žcþ%\’AUx[S³7–n6ù¾¯år¹ßèõzE‰‡’s’žŒ1³ºö“²æÅj@œ—NL$ݤiª0 ¿5/ð}¿²\E‡Ž¤KIo¥Í“$a0üjÞdF£bŠkIê„‹æAh>ŸW¶lC'?“tk;|/t*I»ÝN«ÕÊZø^`Œy•4ë÷ûšN§r]×® çJÒÌó<«’½À“Út»Ýú€à`±Xàºî1@p´ä€¸d½÷ŽZ')høÖÚK¬ ª$V?%Å]€­+³L’sgUKà"ÿw5â3O·•ÜòIEND®B`‚ORBit2-2.14.19/docs/api/html/ORBit2-orbit2-allocators.html0000644000175000001440000002700011450334031017573 00000000000000 Allocators

Allocators

Allocators — Memory allocation functions for CORBA types.

Synopsis

#define             CORBA_sequence_set_release          (s,
                                                         r)
#define             CORBA_sequence_get_release          (s)
void                CORBA_free                          (gpointer mem);
gpointer            ORBit_alloc_tcval                   (CORBA_TypeCode tc,
                                                         guint nelements);
gpointer            ORBit_realloc_tcval                 (gpointer old,
                                                         CORBA_TypeCode tc,
                                                         guint old_num_elements,
                                                         guint num_elements);

Description

Details

CORBA_sequence_set_release()

#define CORBA_sequence_set_release(s,r) (s)->_release = r

CORBA_sequence_set_release() can be used to set the state of the release flag. If the flag is set to TRUE, the sequence effectively "owns" the storage pointed to by _buffer; if FALSE, the programmer is responsible for the storage. If, for example, a sequence is returned from an operation with its release flag set to FALSE, calling CORBA_free() on the returned sequence pointer will not deallocate the memory pointed to by _buffer.

Also, passing a null pointer or a pointer to something other than a sequence type to either CORBA_sequence_set_release() or CORBA_sequence_get_release() produces undefined behavior.

CORBA_sequence_set_release() should only be used by the creator of a sequence. If it is not called for a given sequence instance, then the default value of the release flag for that instance is FALSE.

s :

a CORBA sequence

r :

the new value of the release flag

CORBA_sequence_get_release()

#define CORBA_sequence_get_release(s) (s)->_release

Before calling CORBA_free() on the _buffer member of a sequence directly, the programmer should check the release flag using CORBA_sequence_get_release(). If it returns FALSE, the programmer should not invoke CORBA_free() on the _buffer member; doing so produces undefined behavior.

s :

a CORBA sequence

CORBA_free ()

void                CORBA_free                          (gpointer mem);

This function should be used to free memory that has been previously allocated with any CORBA memory allocation function. It does deep/recursive/intelligent deallocation of memory, including deallocation of values of CORBA_any types, sequence buffers and elements, etc.

mem :

pointer to any memory block allocated by CORBA/ORBit

ORBit_alloc_tcval ()

gpointer            ORBit_alloc_tcval                   (CORBA_TypeCode tc,
                                                         guint nelements);

Allocates a memory buffer that can hold nelemems elements of type tc.

tc :

typecode of the elements of the array

nelements :

number of elements of the array

Returns :

the address of the newly allocated memory buffer

ORBit_realloc_tcval ()

gpointer            ORBit_realloc_tcval                 (gpointer old,
                                                         CORBA_TypeCode tc,
                                                         guint old_num_elements,
                                                         guint num_elements);

Changes the size of a CORBA memory buffer.

old :

old memory segment, possibly allocated by ORBit_alloc_tcval()

tc :

typecode of the elements of the array

old_num_elements :

current number of elements of the array

num_elements :

new desired size of the array

Returns :

the new location of the array
ORBit2-2.14.19/docs/api/html/general.html0000644000175000001440000000350011450334031014606 00000000000000 API

API

Allocators — Memory allocation functions for CORBA types.
orbit2-small
ORBit2-2.14.19/docs/api/html/style.css0000644000175000001440000001205611450334031014163 00000000000000.synopsis, .classsynopsis { /* tango:aluminium 1/2 */ background: #eeeeec; border: solid 1px #d3d7cf; padding: 0.5em; } .programlisting { /* tango:sky blue 0/1 */ background: #e6f3ff; border: solid 1px #729fcf; padding: 0.5em; } .variablelist { padding: 4px; margin-left: 3em; } .variablelist td:first-child { vertical-align: top; } @media screen { sup a.footnote { position: relative; top: 0em ! important; } /* this is needed so that the local anchors are displayed below the naviagtion */ div.footnote a[name], div.refnamediv a[name], div.refsect1 a[name], div.refsect2 a[name], div.index a[name], div.glossary a[name], div.sect1 a[name] { position: relative; padding-top:4.5em; } /* this seems to be a bug in the xsl style sheets when generating indexes */ div.index div.index { top: 0em; } /* make space for the fixed navigation bar and add space at the bottom so that * link targets appear somewhat close to top */ body { padding-top: 3.2em; padding-bottom: 20em; } /* style and size the navigation bar */ table.navigation#top { position: fixed; /* tango:scarlet red 0/1 */ background: #ffe6e6; border: solid 1px #ef2929; margin-top: 0; margin-bottom: 0; top: 0; left: 0; height: 3em; z-index: 10; } .navigation a, .navigation a:visited { /* tango:scarlet red 3 */ color: #a40000; } .navigation a:hover { /* tango:scarlet red 1 */ color: #ef2929; } td.shortcuts { /* tango:scarlet red 1 */ color: #ef2929; font-size: 80%; white-space: nowrap; } } @media print { table.navigation { visibility: collapse; display: none; } div.titlepage table.navigation { visibility: visible; display: table; /* tango:scarlet red 0/1 */ background: #ffe6e6; border: solid 1px #ef2929; margin-top: 0; margin-bottom: 0; top: 0; left: 0; height: 3em; } } .navigation .title { font-size: 200%; } div.gallery-float { float: left; padding: 10px; } div.gallery-float img { border-style: none; } div.gallery-spacer { clear: both; } a, a:visited { text-decoration: none; /* tango:sky blue 2 */ color: #3465a4; } a:hover { text-decoration: underline; /* tango:sky blue 1 */ color: #729fcf; } div.table table { border-collapse: collapse; border-spacing: 0px; /* tango:aluminium 3 */ border: solid 1px #babdb6; } div.table table td, div.table table th { /* tango:aluminium 3 */ border: solid 1px #babdb6; padding: 3px; vertical-align: top; } div.table table th { /* tango:aluminium 2 */ background-color: #d3d7cf; } hr { /* tango:aluminium 3 */ color: #babdb6; background: #babdb6; border: none 0px; height: 1px; clear: both; } .footer { padding-top: 3.5em; /* tango:aluminium 3 */ color: #babdb6; text-align: center; font-size: 80%; } .warning { /* tango:orange 0/1 */ background: #ffeed9; border-color: #ffb04f; } .note { /* tango:chameleon 0/0.5 */ background: #d8ffb2; border-color: #abf562; } .note, .warning { padding: 0.5em; border-width: 1px; border-style: solid; } .note h3, .warning h3 { margin-top: 0.0em } .note p, .warning p { margin-bottom: 0.0em } /* blob links */ h2 .extralinks, h3 .extralinks { float: right; /* tango:aluminium 3 */ color: #babdb6; font-size: 80%; font-weight: normal; } .annotation { /* tango:aluminium 5 */ color: #555753; font-size: 80%; font-weight: normal; } /* code listings */ .listing_code .programlisting .cbracket { color: #a40000; } /* tango: scarlet red 3 */ .listing_code .programlisting .comment { color: #a1a39d; } /* tango: aluminium 4 */ .listing_code .programlisting .function { color: #000000; font-weight: bold; } .listing_code .programlisting .function a { color: #11326b; font-weight: bold; } /* tango: sky blue 4 */ .listing_code .programlisting .keyword { color: #4e9a06; } /* tango: chameleon 3 */ .listing_code .programlisting .linenum { color: #babdb6; } /* tango: aluminium 3 */ .listing_code .programlisting .normal { color: #000000; } .listing_code .programlisting .number { color: #75507b; } /* tango: plum 2 */ .listing_code .programlisting .preproc { color: #204a87; } /* tango: sky blue 3 */ .listing_code .programlisting .string { color: #c17d11; } /* tango: chocolate 2 */ .listing_code .programlisting .type { color: #000000; } .listing_code .programlisting .type a { color: #11326b; } /* tango: sky blue 4 */ .listing_code .programlisting .symbol { color: #ce5c00; } /* tango: orange 3 */ .listing_frame { /* tango:sky blue 1 */ border: solid 1px #729fcf; padding: 0px; } .listing_lines, .listing_code { margin-top: 0px; margin-bottom: 0px; padding: 0.5em; } .listing_lines { /* tango:sky blue 0.5 */ background: #a6c5e3; /* tango:aluminium 6 */ color: #2e3436; } .listing_code { /* tango:sky blue 0 */ background: #e6f3ff; } .listing_code .programlisting { /* override from previous */ border: none 0px; padding: 0px; } .listing_lines pre, .listing_code pre { margin: 0px; } ORBit2-2.14.19/docs/api/html/home.png0000644000175000001440000000121611450334031013743 00000000000000‰PNG  IHDRàw=øbKGDÿÿÿ ½§“ pHYs  ÒÝ~ütIMEÒ1õÚKvIDATxœÕ•±kqÅ?ßrC‡ßàpà ~C„np¼¡CAAJ .B-\'G‡]:Ü “‚ƒCÇ -(ˆ8´à Ô€!…fD°€…çÒ“klbRÛÁoyüxïûîËïwpðIJº<°of_®-@ÒððçRH•´ÏfÖŸtèÂü¤^¯×ÓÚÚš’$Q«ÕÒ|“ôpâ’¶€gív;X^^&Ïs¢(bww—Z­F£ÑÀ9Çææ&Þû3à¶™ Æ’^IRµZUE.0Z]]Uš¦ ÃPY–Mü8óHÒGIÚÙÙÑìììæeŸkqqñÒ€™!ó  $ÛÛÛ¬¯¯3Œn eýþ{-/seeeìÔÃŒãXóóóåO‡Í·$ý8==UÇS™—é½×ÑÑQòRR€¤'ã–9-sÚÛÛ+B^ éC·Û•sîŸÍËÂ+%À°<7³ŸWô˜¿ õâ:™2IEND®B`‚ORBit2-2.14.19/docs/api/html/ORBit2.devhelp20000644000175000001440000001235611450334031015010 00000000000000 ORBit2-2.14.19/docs/api/html/ORBit2-orbit2-small.html0000644000175000001440000013620111450334031016544 00000000000000 orbit2-small

orbit2-small

orbit2-small

Synopsis

                    ORBit_IModule;
const char *        ORBit_get_safe_tmp                  (void);
gpointer            ORBit_small_alloc                   (CORBA_TypeCode tc);
gpointer            ORBit_small_allocbuf                (CORBA_TypeCode tc,
                                                         CORBA_unsigned_long length);
void                ORBit_small_freekids                (CORBA_TypeCode tc,
                                                         gpointer p,
                                                         gpointer d);
gpointer            ORBit_sequence_alloc                (CORBA_TypeCode sequence_tc,
                                                         CORBA_unsigned_long length);
void                ORBit_sequence_append               (gpointer sequence,
                                                         gconstpointer element);
void                ORBit_sequence_set_size             (gpointer sequence,
                                                         CORBA_unsigned_long length);
#define             ORBit_sequence_index                (sequence,
                                                         idx)
void                ORBit_sequence_concat               (gpointer sequence,
                                                         gconstpointer append);
enum                ORBitConnectionStatus;
gpointer            ORBit_small_get_servant             (CORBA_Object obj);
ORBitConnectionStatus  ORBit_small_get_connection_status
                                                        (CORBA_Object obj);
ORBitConnectionStatus  ORBit_small_listen_for_broken    (CORBA_Object obj,
                                                         GCallback fn,
                                                         gpointer user_data);
ORBitConnectionStatus  ORBit_small_unlisten_for_broken_full
                                                        (CORBA_Object obj,
                                                         GCallback fn,
                                                         gpointer user_data);
ORBitConnectionStatus  ORBit_small_unlisten_for_broken  (CORBA_Object obj,
                                                         GCallback fn);
                    ORBitConnection;
ORBitConnection *   ORBit_small_get_connection          (CORBA_Object obj);
ORBitConnection *   ORBit_small_get_connection_ref      (CORBA_Object obj);
void                ORBit_small_connection_unref        (ORBitConnection *cnx);
void                ORBit_connection_set_max_buffer     (ORBitConnection *cnx,
                                                         gulong max_buffer_bytes);
ORBit_IInterface *  ORBit_small_get_iinterface          (CORBA_Object opt_object,
                                                         const CORBA_char *repo_id,
                                                         CORBA_Environment *ev);
extern              int     ORBit_small_flags;
CORBA_sequence_ORBit_IInterface * ORBit_small_get_iinterfaces
                                                        (const char *name);
                    ORBitAsyncQueueEntry;
void                ORBit_small_invoke_stub_n           (CORBA_Object object,
                                                         ORBit_IMethods *methods,
                                                         glong index,
                                                         gpointer ret,
                                                         gpointer *args,
                                                         CORBA_Context ctx,
                                                         CORBA_Environment *ev);
CORBA_char *        ORBit_small_get_type_id             (CORBA_Object object,
                                                         CORBA_Environment *ev);
void                (*ORBitAsyncInvokeFunc)             (CORBA_Object object,
                                                         ORBit_IMethod *m_data,
                                                         ORBitAsyncQueueEntry *aqe,
                                                         gpointer user_data,
                                                         CORBA_Environment *ev);
void                ORBit_small_demarshal_async         (ORBitAsyncQueueEntry *aqe,
                                                         gpointer ret,
                                                         gpointer *args,
                                                         CORBA_Environment *ev);
void                ORBit_small_invoke_stub             (CORBA_Object object,
                                                         ORBit_IMethod *m_data,
                                                         gpointer ret,
                                                         gpointer *args,
                                                         CORBA_Context ctx,
                                                         CORBA_Environment *ev);
void                ORBit_small_invoke_async            (CORBA_Object obj,
                                                         ORBit_IMethod *m_data,
                                                         ORBitAsyncInvokeFunc fn,
                                                         gpointer user_data,
                                                         gpointer *args,
                                                         CORBA_Context ctx,
                                                         CORBA_Environment *ev);
#define             ORBIT_SMALL_FAST_LOCALS
#define             ORBIT_SMALL_FORCE_GENERIC_MARSHAL
CORBA_sequence_CORBA_TypeCode * ORBit_small_get_types   (const char *name);
gboolean            ORBit_small_load_typelib            (const char *libname);

Description

Details

ORBit_IModule

typedef struct {
	CORBA_unsigned_long           version;
	ORBit_IInterface            **interfaces;
	CORBA_sequence_CORBA_TypeCode types;
} ORBit_IModule;


ORBit_get_safe_tmp ()

const char *        ORBit_get_safe_tmp                  (void);

Returns :


ORBit_small_alloc ()

gpointer            ORBit_small_alloc                   (CORBA_TypeCode tc);

tc :

Returns :


ORBit_small_allocbuf ()

gpointer            ORBit_small_allocbuf                (CORBA_TypeCode tc,
                                                         CORBA_unsigned_long length);

tc :

length :

Returns :


ORBit_small_freekids ()

void                ORBit_small_freekids                (CORBA_TypeCode tc,
                                                         gpointer p,
                                                         gpointer d);

tc :

p :

d :


ORBit_sequence_alloc ()

gpointer            ORBit_sequence_alloc                (CORBA_TypeCode sequence_tc,
                                                         CORBA_unsigned_long length);

sequence_tc :

length :

Returns :


ORBit_sequence_append ()

void                ORBit_sequence_append               (gpointer sequence,
                                                         gconstpointer element);

sequence :

element :


ORBit_sequence_set_size ()

void                ORBit_sequence_set_size             (gpointer sequence,
                                                         CORBA_unsigned_long length);

sequence :

length :


ORBit_sequence_index()

#define        ORBit_sequence_index(sequence,idx) (sequence)->_buffer[(idx)]

sequence :

idx :


ORBit_sequence_concat ()

void                ORBit_sequence_concat               (gpointer sequence,
                                                         gconstpointer append);

sequence :

append :


enum ORBitConnectionStatus

typedef enum {
	ORBIT_CONNECTION_CONNECTED,
	ORBIT_CONNECTION_CONNECTING,
	ORBIT_CONNECTION_DISCONNECTED,
	ORBIT_CONNECTION_IN_PROC
} ORBitConnectionStatus;


ORBit_small_get_servant ()

gpointer            ORBit_small_get_servant             (CORBA_Object obj);

obj :

Returns :


ORBit_small_get_connection_status ()

ORBitConnectionStatus  ORBit_small_get_connection_status
                                                        (CORBA_Object obj);

obj :

Returns :


ORBit_small_listen_for_broken ()

ORBitConnectionStatus  ORBit_small_listen_for_broken    (CORBA_Object obj,
                                                         GCallback fn,
                                                         gpointer user_data);

obj :

fn :

user_data :

Returns :


ORBit_small_unlisten_for_broken_full ()

ORBitConnectionStatus  ORBit_small_unlisten_for_broken_full
                                                        (CORBA_Object obj,
                                                         GCallback fn,
                                                         gpointer user_data);

obj :

fn :

user_data :

Returns :


ORBit_small_unlisten_for_broken ()

ORBitConnectionStatus  ORBit_small_unlisten_for_broken  (CORBA_Object obj,
                                                         GCallback fn);

obj :

fn :

Returns :


ORBitConnection

typedef struct _ORBitConnection ORBitConnection;


ORBit_small_get_connection ()

ORBitConnection *   ORBit_small_get_connection          (CORBA_Object obj);

obj :

Returns :


ORBit_small_get_connection_ref ()

ORBitConnection *   ORBit_small_get_connection_ref      (CORBA_Object obj);

obj :

Returns :


ORBit_small_connection_unref ()

void                ORBit_small_connection_unref        (ORBitConnection *cnx);

cnx :


ORBit_connection_set_max_buffer ()

void                ORBit_connection_set_max_buffer     (ORBitConnection *cnx,
                                                         gulong max_buffer_bytes);

cnx :

max_buffer_bytes :


ORBit_small_get_iinterface ()

ORBit_IInterface *  ORBit_small_get_iinterface          (CORBA_Object opt_object,
                                                         const CORBA_char *repo_id,
                                                         CORBA_Environment *ev);

opt_object :

repo_id :

ev :

Returns :


ORBit_small_flags

extern int     ORBit_small_flags;


ORBit_small_get_iinterfaces ()

CORBA_sequence_ORBit_IInterface * ORBit_small_get_iinterfaces
                                                        (const char *name);

name :

Returns :


ORBitAsyncQueueEntry

typedef struct _ORBitAsyncQueueEntry ORBitAsyncQueueEntry;


ORBit_small_invoke_stub_n ()

void                ORBit_small_invoke_stub_n           (CORBA_Object object,
                                                         ORBit_IMethods *methods,
                                                         glong index,
                                                         gpointer ret,
                                                         gpointer *args,
                                                         CORBA_Context ctx,
                                                         CORBA_Environment *ev);

object :

methods :

index :

ret :

args :

ctx :

ev :


ORBit_small_get_type_id ()

CORBA_char *        ORBit_small_get_type_id             (CORBA_Object object,
                                                         CORBA_Environment *ev);

object :

ev :

Returns :


ORBitAsyncInvokeFunc ()

void                (*ORBitAsyncInvokeFunc)             (CORBA_Object object,
                                                         ORBit_IMethod *m_data,
                                                         ORBitAsyncQueueEntry *aqe,
                                                         gpointer user_data,
                                                         CORBA_Environment *ev);

object :

m_data :

aqe :

user_data :

ev :


ORBit_small_demarshal_async ()

void                ORBit_small_demarshal_async         (ORBitAsyncQueueEntry *aqe,
                                                         gpointer ret,
                                                         gpointer *args,
                                                         CORBA_Environment *ev);

aqe :

ret :

args :

ev :


ORBit_small_invoke_stub ()

void                ORBit_small_invoke_stub             (CORBA_Object object,
                                                         ORBit_IMethod *m_data,
                                                         gpointer ret,
                                                         gpointer *args,
                                                         CORBA_Context ctx,
                                                         CORBA_Environment *ev);

object :

m_data :

ret :

args :

ctx :

ev :


ORBit_small_invoke_async ()

void                ORBit_small_invoke_async            (CORBA_Object obj,
                                                         ORBit_IMethod *m_data,
                                                         ORBitAsyncInvokeFunc fn,
                                                         gpointer user_data,
                                                         gpointer *args,
                                                         CORBA_Context ctx,
                                                         CORBA_Environment *ev);

This method is used to invoke a remote (or local) method asynchronously. fn is called back on return - either with an empty CORBA_Environment indicating success, or with the error.


ORBIT_SMALL_FAST_LOCALS

#define ORBIT_SMALL_FAST_LOCALS           1


ORBIT_SMALL_FORCE_GENERIC_MARSHAL

#define ORBIT_SMALL_FORCE_GENERIC_MARSHAL 2


ORBit_small_get_types ()

CORBA_sequence_CORBA_TypeCode * ORBit_small_get_types   (const char *name);

name :

Returns :


ORBit_small_load_typelib ()

gboolean            ORBit_small_load_typelib            (const char *libname);

This method has security issues if you do not use an absolute path in libname. The environment variables ORBIT_TYPELIB_PATH and GNOME2_PATH are used to scan for type libraries.

libname :

the name of the type library to load

Returns :

FALSE if load failed.
ORBit2-2.14.19/docs/api/html/index.sgml0000644000175000001440000001155611450334031014310 00000000000000 ORBit2-2.14.19/docs/api/html/ORBit2.devhelp0000644000175000001440000001122611450334031014721 00000000000000 ORBit2-2.14.19/docs/api/html/right.png0000644000175000001440000000073011450334031014130 00000000000000‰PNG  IHDRàw=øbKGDÿÿÿ ½§“ pHYs  ÒÝ~ütIMEÒ2 I%Á=eIDATxœ­”!oÂ@†Ÿ.'**M0$ÄÁ$¿?1~¢vIeEuLlÉ&–Ô4‚ä Í¶B»Ý›œ¹|÷>ï—ûî …$ݶ©oc<”´ÑA©¤×€X’ò ORBit2 Reference Manual

API
Allocators — Memory allocation functions for CORBA types.
orbit2-small
ORBit2-2.14.19/docs/api/tmpl/0000755000175000001440000000000011450334031012375 500000000000000ORBit2-2.14.19/docs/api/tmpl/ORBit2-unused.sgml0000644000175000001440000000000011450334031015531 00000000000000ORBit2-2.14.19/docs/api/tmpl/orbit2-small.sgml0000644000175000001440000000731311450334031015514 00000000000000 orbit2-small @version: @interfaces: @types: @void: @Returns: @tc: @Returns: @tc: @length: @Returns: @tc: @p: @d: @sequence_tc: @length: @Returns: @sequence: @element: @sequence: @length: @sequence: @idx: @sequence: @append: @ORBIT_CONNECTION_CONNECTED: @ORBIT_CONNECTION_CONNECTING: @ORBIT_CONNECTION_DISCONNECTED: @ORBIT_CONNECTION_IN_PROC: @obj: @Returns: @obj: @Returns: @obj: @fn: @user_data: @Returns: @obj: @fn: @user_data: @Returns: @obj: @fn: @Returns: @obj: @Returns: @obj: @Returns: @cnx: @cnx: @max_buffer_bytes: @opt_object: @repo_id: @ev: @Returns: @name: @Returns: @object: @methods: @index: @ret: @args: @ctx: @ev: @object: @ev: @Returns: @object: @m_data: @aqe: @user_data: @ev: @aqe: @ret: @args: @ev: @object: @m_data: @ret: @args: @ctx: @ev: @obj: @m_data: @fn: @user_data: @args: @ctx: @ev: @name: @Returns: @libname: @Returns: ORBit2-2.14.19/docs/api/tmpl/orbit2-allocators.sgml0000644000175000001440000000563311450334031016552 00000000000000 Allocators Memory allocation functions for CORBA types. CORBA_sequence_set_release() can be used to set the state of the release flag. If the flag is set to %TRUE, the sequence effectively "owns" the storage pointed to by _buffer; if %FALSE, the programmer is responsible for the storage. If, for example, a sequence is returned from an operation with its release flag set to %FALSE, calling CORBA_free() on the returned sequence pointer will not deallocate the memory pointed to by _buffer. Also, passing a null pointer or a pointer to something other than a sequence type to either CORBA_sequence_set_release() or CORBA_sequence_get_release() produces undefined behavior. CORBA_sequence_set_release() should only be used by the creator of a sequence. If it is not called for a given sequence instance, then the default value of the release flag for that instance is %FALSE. @s: a CORBA sequence @r: the new value of the release flag Before calling CORBA_free() on the _buffer member of a sequence directly, the programmer should check the release flag using CORBA_sequence_get_release(). If it returns %FALSE, the programmer should not invoke CORBA_free() on the _buffer member; doing so produces undefined behavior. @s: a CORBA sequence This function should be used to free memory that has been previously allocated with any CORBA memory allocation function. It does deep/recursive/intelligent deallocation of memory, including deallocation of values of CORBA_any types, sequence buffers and elements, etc. @mem: pointer to any memory block allocated by CORBA/ORBit Allocates a memory buffer that can hold @nelemems elements of type @tc. @tc: typecode of the elements of the array @nelements: number of elements of the array @Returns: the address of the newly allocated memory buffer Changes the size of a CORBA memory buffer. @old: old memory segment, possibly allocated by ORBit_alloc_tcval() @tc: typecode of the elements of the array @old_num_elements: current number of elements of the array @num_elements: new desired size of the array @Returns: the new location of the array ORBit2-2.14.19/docs/api/ORBit2.types0000644000175000001440000000000011450334031013456 00000000000000ORBit2-2.14.19/docs/api/ORBit2-overrides.txt0000644000175000001440000000000011334247617015147 00000000000000ORBit2-2.14.19/docs/api/ORBit2-sections.txt0000644000175000001440000000262611450334031014776 00000000000000
orbit2-allocators CORBA_sequence_set_release CORBA_sequence_get_release CORBA_free ORBit_alloc_tcval ORBit_realloc_tcval ORBit_free ORBit_alloc_get_tcval CORBA_any__freekids ORBit_freekids_via_TypeCode ORBit_alloc_with_free_fn ORBit_Mem_free_fn ORBit_free_T PTR_TO_MEMINFO ORBit_alloc_string ORBIT_MEMHOW_MAKE ORBit_alloc_by_tc MEMINFO_TO_PTR ORBit_alloc_simple ORBitMemHow ORBIT_MEMHOW_ELEMENTS ORBIT_MEMHOW_HOW
orbit2-small ORBit_IModule ORBit_get_safe_tmp ORBit_small_alloc ORBit_small_allocbuf ORBit_small_freekids ORBit_sequence_alloc ORBit_sequence_append ORBit_sequence_set_size ORBit_sequence_index ORBit_sequence_concat ORBitConnectionStatus ORBit_small_get_servant ORBit_small_get_connection_status ORBit_small_listen_for_broken ORBit_small_unlisten_for_broken_full ORBit_small_unlisten_for_broken ORBitConnection ORBit_small_get_connection ORBit_small_get_connection_ref ORBit_small_connection_unref ORBit_connection_set_max_buffer ORBit_small_get_iinterface ORBit_small_flags ORBit_small_get_iinterfaces ORBitAsyncQueueEntry ORBit_small_invoke_stub_n ORBit_small_get_type_id ORBitAsyncInvokeFunc ORBit_small_demarshal_async ORBit_small_invoke_stub ORBit_small_invoke_async ORBIT_SMALL_FAST_LOCALS ORBIT_SMALL_FORCE_GENERIC_MARSHAL ORBit_small_get_types ORBit_small_load_typelib ORBit_small_invoke_adaptor
ORBit2-2.14.19/docs/api/ORBit2-docs.sgml0000644000175000001440000000074111334247617014234 00000000000000 ]> ORBit2 Reference Manual API &orbit2-allocators; &orbit2-small; ORBit2-2.14.19/docs/README0000644000175000001440000000152211334247617011466 00000000000000This directory contain various documentation documents in various stages of completion. The documentation is mainly directed at ORBit2 hackers, not developers using ORBit2 in their applications. You should go to the ORBit2 homepage to get developer documentation. A recommended read is the "ORBit Beginners Documentation" which can be reached at: The beginners guide has lots of sample code to get you started. You can also take a look at a more involved ORBit2 application, the Brutus ORBit2 sample application. This application will demonstrate access to a Microsoft Exchange server using ORBit2 and Brutus. Brutus is a CORBA wrapping of Extended MAPI. Go to: to download the latest Brutus tar-ball and look in "brutus/idl/samples/C". ORBit2-2.14.19/docs/devel/0000755000175000001440000000000011450334031011747 500000000000000ORBit2-2.14.19/docs/devel/Makefile.am0000644000175000001440000000003211334247617013734 00000000000000EXTRA_DIST = \ async.txt ORBit2-2.14.19/docs/devel/Makefile.in0000644000175000001440000002557311450333732013757 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = docs/devel DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = \ async.txt all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/devel/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu docs/devel/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/docs/devel/async.txt0000644000175000001440000000404011334247617013561 00000000000000Re: ORBit2 versus hanging method calls Hi Joe, On 12 Oct 2001, Joe Shaw wrote: > On Thu, 2001-10-11 at 22:10, Michael Meeks wrote: > > Thirdly - there is builtin ASync support in ORBit2 - a bit > > like bonobo-async, but using the infastructure inside ORBit2 [ > > that superceeds bonobo-async by an order of intelligence ], so - > > it should be possible to make nice async methods for things that > > might take a long time, and invoke a standard CORBA method > > asynchronously without any fooling around in the IDL. > > Cool! How does one utilize this functionality? Ah; wait - let me just commit. So, there is an example ( regression test ) in ORBit2/test/everything/client.c search for Async. Essentialy however you just need this: typedef struct _ORBitAsyncQueueEntry ORBitAsyncQueueEntry; typedef void (*ORBitAsyncInvokeFunc) (CORBA_Object object, ORBit_IMethod *m_data, ORBitAsyncQueueEntry *aqe, gpointer user_data, CORBA_Environment *ev); /* Various bits for Async work */ void ORBit_small_invoke_async (CORBA_Object obj, ORBit_IMethod *m_data, ORBitAsyncInvokeFunc fn, gpointer user_data, gpointer *args, CORBA_Context ctx, CORBA_Environment *ev); void ORBit_small_demarshal_async (ORBitAsyncQueueEntry *aqe, gpointer ret, gpointer *args, CORBA_Environment *ev); so you do something like ORBit_small_invoke_async (cb), and inside the cb you do ORBit_small_demarshal_async (queue_entry), and that's about it really. Of course - it would be quite easy to write IDL compiler support for async stubs / skels; all that really needs doing is to sit down and spec. up the ABI, I don't believe the OMG helps us there. The 'gpointer *args' is a standardly normalized array of argument indirectors - as defined in ORBit2/docs/internals/interface-indirection.gnumeric. HTH, Michael. ORBit2-2.14.19/docs/internals/0000755000175000001440000000000011450334031012647 500000000000000ORBit2-2.14.19/docs/internals/interface-indirection.xls0000644000175000001440000006200011334247617017600 00000000000000ÐÏࡱá>þÿ +'þÿÿÿ- l ÉáÁ¿Àâ\ Michael Meeks BäœORB indirectionORB allocation:=TQv/8X@"·Ú1ÈAlbany1´ Helvetica1ð¼ Helvetica1´¼ Helvetica1h¼ Helvetica$#,##0_);($#,##0)$#,##0_);[Red]($#,##0)$#,##0.00_);($#,##0.00)$#,##0.00_);[Red]($#,##0.00)-**_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)*)'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)5,2_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)2+/_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)àõÿ À àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ à À à+õÿ øÀ à)õÿ øÀ à,õÿ øÀ à*õÿ øÀ à õÿ øÀ à Pˆà Xˆà Xˆà"Xˆà Xˆà"Xˆà!Xˆà Xˆ“€ÿ“€ÿ“€ÿ“€ÿ“€ÿ“€ÿ’â8ÿÿÿÿÿÿÿÿÿÿÿÿ€€€€€€€€€ÀÀÀ€€€™™ÿ™3fÿÿÌÌÿÿffÿ€€fÌÌÌÿ€ÿÿÿÿÿÿ€€€€€ÿÌÿÌÿÿÌÿÌÿÿ™™Ìÿÿ™ÌÌ™ÿÿÌ™3fÿ3ÌÌ™ÌÿÌÿ™ÿfff™–––3f3™f333™3™3f33™ÇÇÇ…6ORB indirection…‡ORB allocation l É  ü  dü©ñÒMbP?_*+‚€%ŒÁƒ„&}Ò'}Ò'Ù?'}Ò'}Ò'Ù?(}Ò'}Ò'Ù?)}Ò'}Ò'Ù?¡"dE}Ò'}Ò'Ù?}Ò'}Ò'Ù?U} ´} $ } Ý } $ } ý} "} } I} "} m } I} " } $ }  } $  < ß  ß ð@ X@ßßßßßßßßßßß@ð6.T1. Stub / Skel - (table 1/2) from CORBA spec.¾ 4,T2. ORBit_marshal_value ((*val) argument = )¾ %one would hope this == T1 + * Data Type In InOut OutReturn Key (t = ) Data Type  Indirection¾    base t t* t* t t eg. double base  t*¾   objref t t* t* t CORBA_Objectobjref  t*¾   un',struct, fixed t* t* t* t Foo_Structun',struct, fixed  t*¾   un',struct, var t* t* t** t* Foo_Structun',struct, var  t*¾    [w]string ptr t t* t* tchar * [w]string ptr  t*¾    any t* t* t** t* CORBA_any any  t*¾    sequence t* t* t** t*   Foo_Sequence sequence t*¾    array, fixed t* t* t*  t*  Sub_Type  array, fixed t*¾    array, var t* t* t** t*  Sub_Type  array, var t*¾    typecode t*¾  ! T3. ABI - args[] & retval     T4. CORBA_free Data Type In InOut Outretval  Data Type  Indirection _release Summary - t* t* t** mixed base & . & t* &  base  x  xobjref & . & t* & objref  x  xun',struct, fixed . . & t* & un',struct, fixed  x  xun',struct, var . . . t** & un',struct, var  t*  x [w]string ptr & . & t* &  [w]string ptr  t  x any . . . t** &  any  t*  ysequence . . . t** & sequence  t*  y array, fixed . . & t** &  array, fixed  x  x array, var . . . t** &  array, var  t*  x‡Since the type allocation stuff is for efficiency rather than elegance - we can put a wrapper _Around_ the more efficient mode.$Lets get going like this ...×DÚD<ÿ ÿNþ¸ýýoüÂû ûŒúëùFù¥øiøøø÷c÷÷–öö€õìôTôØóRóÅò;ò;ò;ò1ò¦ñ=TQv/8X> ¶@   l É û#  dü©ñÒMbP?_*+‚€%Œ‰Áƒ„&}Ò'}Ò'Ù?'}Ò'}Ò'Ù?(}Ò'}Ò'Ù?)}Ò'}Ò'Ù?¡"dG}Ò'}Ò'Ù?}Ò'}Ò'Ù?U} } F} ´} } }  m} $   Jßßßßßßß ß ß ß ßJT1. Allocation - Stub¾T2. Allocation - Skel¾  @8The allocations neccessary in ~ to make the client happyA9This table needs filling - clearly stuff needs allocation Data Type InOut OutReturn Key: Data Type  In  InOut   Out Return alloc free alloc¾  alloc  alloc  free  alloc  base x x x xx - no allocation base¾  objref R U R R y - allocateobjref¾  un',struct, fixed s s x xR/U - ref / unrefun',struct, fixed¾  un',struct, var s s y y s - sub typesun',struct, var¾   [w]string ptr y y y y [w]string ptr¾   any s s y y  any¾   sequence s s y y  sequence¾    array, fixed x x x y   array, fixed¾    array, var s s y y   array, var¾  .&T3. Allocation - ORBit_demarshal_value¾   Allocates all sub types,To allocate the×( ,’ÿ ÿ?þ¢ýý…üÜû;û·úGúÍùKùÍøÍøÍøwø=TQv/8X> ¶@   å Ÿ#ÍÁ@á°Áâ\p Michael Meeks B°aÀ=œ¯¼=TQv/8X@"·Ú1ÈAlbany1´ Helvetica1ð¼ Helvetica1´¼ Helvetica1h¼ Helvetica$#,##0_);($#,##0)$#,##0_);[Red]($#,##0)$#,##0.00_);($#,##0.00)!$#,##0.00_);[Red]($#,##0.00)/**_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_),)'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)7,2_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)4+/_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)àõÿ À àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ à À à+õÿ øÀ à)õÿ øÀ à,õÿ øÀ à*õÿ øÀ à õÿ øÀ à üˆà üˆà üˆà"üˆà üˆà"üˆà!üˆà üˆ“€ÿ“€ÿ“€ÿ“€ÿ“€ÿ“€ÿ`’â8ÿÿÿÿÿÿÿÿÿÿÿÿ€€€€€€€€€ÀÀÀ€€€™™ÿ™3fÿÿÌÌÿÿffÿ€€fÌÌÌÿ€ÿÿÿÿÿÿ€€€€€ÿÌÿÌÿÿÌÿÌÿÿ™™Ìÿÿ™ÌÌ™ÿÿÌ™3fÿ3ÌÌ™ÌÿÌÿ™ÿfff™–––3f3™f333™3™3f33™ÇÇÇ…w ORB indirection…*ORB allocation®:®þÿþÿü$<<t.T1. Stub / Skel - (table 1/2) from CORBA spec.&t*char * [w]string ptr,T2. ORBit_marshal_value ((*val) argument = )xLets get going like this ...sequence Summary -. Data TypeInt**InOutmixedOutReturn Foo_Sequence Key (t = ) Indirectiony array, varobjrefSub_Type CORBA_Objectun',struct, varT3. ABI - args[] & retval Foo_StructT4. CORBA_freeSince the type allocation stuff is for efficiency rather than elegance - we can put a wrapper _Around_ the more efficient mode.anyretval CORBA_anyone would hope this == T1 + *_release array, fixedbaset* t eg. doubleun',struct, fixedtypecodeallocKey:T1. Allocation - Stubfrees9This table needs filling - clearly stuff needs allocationT2. Allocation - Skel s - sub typesRTo allocate theUR/U - ref / unrefAllocates all sub types, y - allocate&T3. Allocation - ORBit_demarshal_valuex - no allocation8The allocations neccessary in ~ to make the client happyÿ2! «–ïVAG 2© ” ô¶ ¡ Ÿ#ÍÁ@e  —  dü©ñÒMbP?_*+‚€%ŒÁƒ„&}Ò'}Ò'Ù?'}Ò'}Ò'Ù?(}Ò'}Ò'Ù?)}Ò'}Ò'Ù?¡"dE}Ò'}Ò'Ù?}Ò'}Ò'Ù?U} ´} $ } Ý } $ } ý} "} } I} "} m } I} " } $ }  } $ < ß  ß ð@ X@ßßßßßßßßßßß@ðý ¾ ý ¾ ý #ý  ý  ý ý ý ý ý  ý  ¾   ý &ý ý ý ý ý (ý &ý  ¾   ý ý ý ý ý ý ý ý  ¾   ý )ý ý ý ý ý ý )ý  ¾   ý ý ý ý ý ý ý ý  ¾   ý ý ý ý ý ý ý ý  ¾   ý  ý ý ý ý ý "ý  ý  ¾   ý  ý ý ý ý  ý ý  ý ¾  ý %ý ý ý 'ý  ý ý %ý ¾  ý ý ý ý ý  ý ý ý ¾   ý *ý ¾  ý     ý ý  ý  ý ý ý !ý   ý  ý  $ý  ý ý ý ý ý &ý ý  ý ý ý ý  &ý  ý  ý ý ý  ý ý ý ý  ý  ý  ý )ý  ý  ý ý ý ý  )ý  ý  ý ý  ý  ý  ý ý ý  ý  ý  ý ý ý  ý ý ý ý  ý  ý  ý  ý  ý  ý  ý ý ý   ý  ý  ý  ý  ý  ý  ý ý ý   ý  ý  ý %ý  ý  ý ý ý ý  %ý  ý  ý ý  ý  ý  ý ý ý  ý  ý  ý ý ×D$D’ÿzÿæþ\þÒýHý¾ü4üªû û–ú úÖù’ùˆùùÒøTøÖ÷X÷ÚöRöÔõVõØôZôZôZôPôBô=TQv/8X>¶@   Ÿ#ÍÁ@ %  dü©ñÒMbP?_*+‚€%Œ‰Áƒ„&}Ò'}Ò'Ù?'}Ò'}Ò'Ù?(}Ò'}Ò'Ù?)}Ò'}Ò'Ù?¡"dG}Ò'}Ò'Ù?}Ò'}Ò'Ù?U} } F} ´} } }  m} $  Jßßßßßßß ß ß ß ßJý -¾ý 1¾  ý ;ý 0ý  ý ý ý ý ,ý  ý   ý   ý  ý  ý +ý .ý +¾ý  +ý  +ý  .ý  + ý &ý ý ý ý ý :ý &¾  ý ý 3ý 5ý 3ý 3ý 8ý ¾  ý )ý /ý /ý ý ý 6ý )¾  ý ý /ý /ý ý ý 2ý ¾  ý ý ý ý ý ý ¾  ý  ý /ý /ý ý  ý  ¾  ý  ý /ý /ý ý  ý  ¾  ý %ý ý ý ý  ý %¾  ý ý /ý /ý ý  ý ¾  ý 9¾  ý 7ý 4×(`,¸ÿœÿòþhþèýhýèühüöû„ûû ú.ú.ú.úüù=TQv/8X>¶@   å þÿ ÕÍÕœ.“—+,ù®0þÿ à…ŸòùOh«‘+'³Ù0þÿÿÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿRoot Entryÿÿÿÿÿÿÿÿ&€Book ÿÿÿÿÿÿÿÿ€$Workbookÿÿÿÿÿÿÿÿ“%DocumentSummaryInformation8ÿÿÿÿÿÿÿÿÿÿÿÿ8SummaryInformation(ÿÿÿÿÿÿÿÿ8 þÿÿÿ !"#$%þÿÿÿþÿÿÿ()*þÿÿÿ,þÿÿÿýÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿORBit2-2.14.19/docs/internals/Makefile.am0000644000175000001440000000016611334247617014644 00000000000000EXTRA_DIST = \ idl-compiler.txt \ misc-flow.txt \ poa-notes.txt \ typecode-flags.txt \ interface-indirection.xls ORBit2-2.14.19/docs/internals/Makefile.in0000644000175000001440000002574411450333732014657 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = docs/internals DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = \ idl-compiler.txt \ misc-flow.txt \ poa-notes.txt \ typecode-flags.txt \ interface-indirection.xls all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/internals/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu docs/internals/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/docs/internals/typecode-flags.txt0000644000175000001440000000206011334247617016252 00000000000000 A discussion of flags embedded in the typecode struct ... v 0.1 by Michael Meeks (michael@ximian.com) It is neccesary in the interests of performance to encode some architecture specific information into each TypeCode; for example calculating, the alignment of an arbitrary type can involve a somewhat complex state machine with special cases for structures and unions. Hence it is best to add the 'c_align' flag to the typecode, and calculate this field for incoming typecodes. There are several other properties of a Type that are rather interesting - particularly: * flatness - ie. it's in-memory representation as a C type consists of a contiguous block of memory of determinate length. * GIOP match - a pre-requisite of which is flatness, that the size and alignment of the structure is identical to that of the GIOP data representation. NB. all optimizations must pre-align. Also it would be lovely to have a size field for a flat structure, so that we can use straight memcpys instead of recursive copies when manipulating the structures. ORBit2-2.14.19/docs/internals/poa-notes.txt0000644000175000001440000001354311334247617015261 00000000000000 I'm just going to stick some stuff here to help anyone trying to hack the POA. I'll also try and keep it up to date ;) Mark. CORBA object and servant life cycles ==================================== Here's a nice diagram from 'Advanced CORBA Porgamming with C++' by Henning and Vinoski. +---------------------------+ | | | Object Exists | | | | +------------------+ | | | Object | | | | Activated | | | | +--------------+ | | | | | Servant | | | | | | Incarnated | | | | | +--------------+ | | | +------------------+ | | ^ | | +--------------+ Creation | | | | Destruction +--------------+ | Object |--------->| Activate Deactivate |------------>| Object | | Non-existent | | | | | | Non-existent | +--------------+ | | | | +--------------+ | | v | | +------------------+ | | | +--------------+ | | | | | Servant | | | | | | Etherealized | | | | | +--------------+ | | | | Object | | | | Deactivated | | | +------------------+ | | | +---------------------------+ The key points are : * once an object reference has been created the object exists. * once it exists it can either be activated or deactivated. * to be activated it must be incarnated by a servant - i.e. a servant must be associated with object. * to be deactivated the servant must be etherealised - i.e. the bond between the servant and object broken. * activate and deacitvate apply to objects, incarnate and etherealise apply to servants. ORBit's implementation ====================== In ORBit and object reference is represented by a CORBA_Object and, within the POA, by a POAObject. Every CORBA_Object created by the POA has a POAObject associated with it. When a POAObject is created it is entered into its POA's .oid_obj_map, a hash table with ObjectIds as keys and POAObjects as values. When an object is activated by the POA, it is associated with a servant by setting its POAObject .servant member. The POAObject is also entered into a list of POAObjects in the servant's ._private member. The reverse is done when the object is deactivated. The CORBA spec talks about an 'Active Object Map'. The idea is that if the POA has the RETAIN policy it stores the association between object id and servant in this Active Object Map when it is activated. In ORBit, there is no explicit Active Object Map. An object can be thought of being entered in the POA's Active Object Map once it has been entered in the POA's .oid_to_obj_map hash table (when the POAObject is created) and the POAOjbect's .servant is non-NULL (when the object is activated). POA refcounting =============== When talking about refcounting, I mean internal refs - i.e ORBit_RootOject_duplicate as opposed to CORBA_Object_duplicate - the application can also be responsible for refs to the POA. * ORBit_POA_new - we're creating a POA, set the initial refcount to 1. This ref is released in ORBit_POA_destroy. * ORBit_POA_add_child - we're associating the POA with its parent. The ref is released ORBit_POA_remove_child when the POA is being destoryed. * ORBit_POA_create_object - we're assoiciating a POA with a POAObject. The ref is released in ORBit_POAObject_release_cb when the POAObject is being destroyed. * ORBit_init_internals - this is *only* for the RootPOA. We don't want the RootPOA to be destroyed until, at the earliest, the ORB has been destroyed. So, this ref is released in CORBA_ORB_destroy. POAObject refcounting ===================== * ORBit_POA_activate_object - ref released in ORBit_POA_deactivate. * ORBit_POA_obj_to_ref - we're creating a CORBA_Object and associating the POAObject with it. The ref is released in CORBA_Object_release_cb when the object reference is being destoryed. * ORBit_POA_ServantManager_use_servant - we're using a servant manager to activate an object. In both the RETAIN and NON-RETAIN cases we ref the POAObject. In the RETAIN case this ref is released by ORBit_POA_deactivate. In the NON-RETAIN case the ref is released by unuse_servant. MULTIPLE_ID POAs ================ So that a servant can incarnate more than one object, the ORBit_POAObject pointed to by the servant's ._private member has a .next member pointing to the next Object incarnated by that servant. This forms a simple singly-linked list of Objects. A GSList was not used so as to not kill the common case of a UNIQUE_ID POA. If you look at the note at the end of section 11.3.5.1, it says that it is legal for the servant to be shared between two POAs with different Object Id uniqueness policies. This could create serious problems when we are using obtaining the POAObject associated with the servant in the UNIQUE_ID case. This needs to fixed to check that it actually belongs to the POA in question. Implementing Another Object Adaptor ================================== ORBit2's POA is virtualised. This means that, in theory, it should be possible to plug another Object Adaptor into the ORB. The details are in orbit/poa/orbit-adaptor.h. ORBit2-2.14.19/docs/internals/idl-compiler.txt0000644000175000001440000000643511334247617015736 00000000000000OK, this is the third iteration, it has to be done right this time! :) There are multiple tasks involved: . Generating the header files (solved) . Generating the memory allocators and typecodes (solved) . Generating the POA tie-ins (solved) . Generating the stubs and exception demarshallers (not so solved) . Generating the skeletons and exception marshallers (not so solved) So it is mostly doing the marshalling/demarshalling that is the hard part. The reason it is hard is because: . We need to allow choosing between multiple mechanisms, e.g.: Inlined code Call to a separate function (possibly shared between multiple stubs/skels). Use the CORBA_any routine. It will not be an all-or-nothing decision between the mechanisms - we will try to mix the different mechanisms according to heuristics. The granularity of the decision will be on the level of a 'marshallable entity' (big long words to denote something that can be marshalled, hereafter abbreviated as 'ME'). So, with an ME: def atomically_marshallable(): # The results of this function depend on more than just the data type, but also: # Whether we have to do endian swapping (only applies to demarshalling) # Whether the data arrangement in memory matches the data arrangement on the wire if is_complex: return FALSE if is_struct or is_union or is_sequence or is_array: return probably-FALSE return TRUE if atomically_marshallable(): marshal_inline() else if not is_recursive() and data_type_use_count == 1: marshal_inline() else: if use_any_marshaller(): marshal_via_any_marshaller() else: generate_marshalling_function() call_marshalling_function() The decision is made on a per-data-type basis and NOT on a per-stub basis, because we want to be consistent (i.e. no inlining the marshalling in one function and then calling the any_marshaller in another function, for the same data type). Generating the call-to-separate-function and ORBit_*marshal_any calls should be easy once it is determined that this is desired. Generating the inline code (and generating the separate-function, which will use the 'inlined code' engine), is a difficult thing, because of the optimizations involved and the different situations that the code might be used in. ---------------- OK the above blah is either implemented or total crap. Biggest issue that seems to be looming is memory management during demarshalling. It's not at all clear whether caller or called allocates, how we get rid of things if there is an error or we don't need them, etc. Problems to solve: Currently the marshal/demarshal code is stupid about allocating, esp. for toplevels. We need to handle all cases of OIDL_Marshal_Where properly. OIDL_Marshal_Where is a function of context rather than data type. It will always be MW_Heap or MW_Null for stubs. We need the concept of 'allocation contexts' - i.e. where a variable is 'auto' in or alloca'd in. No we don't, we just need to have a mask of allowed marshalling methods passed down. Possible solutions: We need to know how to allocate a variable for each potential OIDL_Marshal_Where and generate the valuestr for it. 'Caller allocates' allows some optimizations in skeletons. So, if we are going to ask someone to demarshal something, we need to make sure it is allocated first. ORBit2-2.14.19/docs/internals/misc-flow.txt0000644000175000001440000000157311334247617015254 00000000000000Random code flow notes for client policy blah. giop_thread_request_push( thread, pobj, recv ) - puts on request_queue. + Processing incoming requests: + giop_connection_handle_input + handles async / cross-thread calls too. -> ORBit_handle_request (orbit-adaptor.c) -> ORBit_POA_handle_request -> [pool_]push_request_T -> at_idle - safe anyway. -> giop_thread_request_push[_key] -> push on request queue / signal ** -> giop_thread_request_process in other thread. -> drop through to invoke_incoming_request if non-threaded. -> POAObject_handle_request -> lookups etc. + Processing incoming calls during outgoing: + giop_recv_buffer_get -> link_main_iteration -> process 'request_queue' - doesn't check async_ents [!] -> giop_recv_handle_queued_input -> check async_ents ** -> giop_thread_request_process ORBit2-2.14.19/AUTHORS0000644000175000001440000000121211334247617010722 00000000000000This whole saga started by Dick Porter and Elliot Lee For version 2 ORBit was substantialy re-written by: Elliot Lee Michael Meeks Mark McLouglin Other people who have contributed code include: Philip Dawes Andrew Veliath Lauri Alanko Michael Lausch Sebastian Wilhelmi Kennard White Frank Rehberger (This file is here because automake wants it, not because we wanted to leave anyone off the list :) ORBit2-2.14.19/orbit2-zip.in0000755000175000001440000000141311334247617012211 00000000000000#!/bin/sh # Build zipfiles for ORBit2 on Win32: Separate runtime and developer # ones. After running make install, run this. ZIP=/tmp/ORBit2-@ORBIT_VERSION@.zip DEVZIP=/tmp/ORBit2-dev-@ORBIT_VERSION@.zip cd @prefix@ rm $ZIP zip $ZIP -@ < ORBit2 CORBA library for GNOME Michael Meeks michael Kjartan Maraas kmaraas ORBit2-2.14.19/ltmain.sh0000755000175000001440000073306011450333725011505 00000000000000# Generated from ltmain.m4sh. # ltmain.sh (GNU libtool) 2.2.6b # Written by Gordon Matzigkeit , 1996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, # or obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Usage: $progname [OPTION]... [MODE-ARG]... # # Provide generalized library-building support services. # # --config show all configuration variables # --debug enable verbose shell tracing # -n, --dry-run display commands without modifying any files # --features display basic configuration information and exit # --mode=MODE use operation mode MODE # --preserve-dup-deps don't remove duplicate dependency libraries # --quiet, --silent don't print informational messages # --tag=TAG use configuration variables from tag TAG # -v, --verbose print informational messages (default) # --version print version information # -h, --help print short or long help message # # MODE must be one of the following: # # clean remove files from the build directory # compile compile a source file into a libtool object # execute automatically set library path, then run a program # finish complete the installation of libtool libraries # install install libraries or executables # link create a library or an executable # uninstall remove libraries from an installed directory # # MODE-ARGS vary depending on the MODE. # Try `$progname --help --mode=MODE' for a more detailed description of MODE. # # When reporting a bug, please describe a test case to reproduce it and # include the following information: # # host-triplet: $host # shell: $SHELL # compiler: $LTCC # compiler flags: $LTCFLAGS # linker: $LD (gnu? $with_gnu_ld) # $progname: (GNU libtool) 2.2.6b # automake: $automake_version # autoconf: $autoconf_version # # Report bugs to . PROGRAM=ltmain.sh PACKAGE=libtool VERSION=2.2.6b TIMESTAMP="" package_revision=1.3017 # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # NLS nuisances: We save the old values to restore during execute mode. # Only set LANG and LC_ALL to C if already set. # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). lt_user_locale= lt_safe_locale= for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${$lt_var+set}\" = set; then save_$lt_var=\$$lt_var $lt_var=C export $lt_var lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" fi" done $lt_unset CDPATH : ${CP="cp -f"} : ${ECHO="echo"} : ${EGREP="/bin/grep -E"} : ${FGREP="/bin/grep -F"} : ${GREP="/bin/grep"} : ${LN_S="ln -s"} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SED="/bin/sed"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} : ${Xsed="$SED -e 1s/^X//"} # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. exit_status=$EXIT_SUCCESS # Make sure IFS has a sensible default lt_nl=' ' IFS=" $lt_nl" dirname="s,/[^/]*$,," basename="s,^.*/,," # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` } # Generated shell functions inserted here. # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" # The name of this program: # In the unlikely event $progname began with a '-', it would play havoc with # func_echo (imagine progname=-n), so we prepend ./ in that case: func_dirname_and_basename "$progpath" progname=$func_basename_result case $progname in -*) progname=./$progname ;; esac # Make sure we have an absolute path for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=$func_dirname_result progdir=`cd "$progdir" && pwd` progpath="$progdir/$progname" ;; *) save_IFS="$IFS" IFS=: for progdir in $PATH; do IFS="$save_IFS" test -x "$progdir/$progname" && break done IFS="$save_IFS" test -n "$progdir" || progdir=`pwd` progpath="$progdir/$progname" ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed="${SED}"' -e 1s/^X//' sed_quote_subst='s/\([`"$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Re-`\' parameter expansions in output of double_quote_subst that were # `\'-ed in input to the same. If an odd number of `\' preceded a '$' # in input to double_quote_subst, that '$' was protected from expansion. # Since each input `\' is now two `\'s, look for any number of runs of # four `\'s followed by two `\'s and then a '$'. `\' that '$'. bs='\\' bs2='\\\\' bs4='\\\\\\\\' dollar='\$' sed_double_backslash="\ s/$bs4/&\\ /g s/^$bs2$dollar/$bs&/ s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g s/\n//g" # Standard options: opt_dry_run=false opt_help=false opt_quiet=false opt_verbose=false opt_warning=: # func_echo arg... # Echo program name prefixed message, along with the current mode # name if it has been set yet. func_echo () { $ECHO "$progname${mode+: }$mode: $*" } # func_verbose arg... # Echo program name prefixed message in verbose mode only. func_verbose () { $opt_verbose && func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_error arg... # Echo program name prefixed message to standard error. func_error () { $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 } # func_warning arg... # Echo program name prefixed warning message to standard error. func_warning () { $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 # bash bug again: : } # func_fatal_error arg... # Echo program name prefixed message to standard error, and exit. func_fatal_error () { func_error ${1+"$@"} exit $EXIT_FAILURE } # func_fatal_help arg... # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { func_error ${1+"$@"} func_fatal_error "$help" } help="Try \`$progname --help' for more information." ## default # func_grep expression filename # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $GREP "$1" "$2" >/dev/null 2>&1 } # func_mkdir_p directory-path # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { my_directory_path="$1" my_dir_list= if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then # Protect directory names starting with `-' case $my_directory_path in -*) my_directory_path="./$my_directory_path" ;; esac # While some portion of DIR does not yet exist... while test ! -d "$my_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. my_dir_list="$my_directory_path:$my_dir_list" # If the last portion added has no slash in it, the list is done case $my_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"` done my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'` save_mkdir_p_IFS="$IFS"; IFS=':' for my_dir in $my_dir_list; do IFS="$save_mkdir_p_IFS" # mkdir can fail with a `File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$my_dir" 2>/dev/null || : done IFS="$save_mkdir_p_IFS" # Bail out if we (or some other process) failed to create a directory. test -d "$my_directory_path" || \ func_fatal_error "Failed to create \`$1'" fi } # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$opt_dry_run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $MKDIR "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || \ func_fatal_error "cannot create temporary directory \`$my_tmpdir'" fi $ECHO "X$my_tmpdir" | $Xsed } # func_quote_for_eval arg # Aesthetically quote ARG to be evaled later. # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT # is double-quoted, suitable for a subsequent eval, whereas # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters # which are still active within double quotes backslashified. func_quote_for_eval () { case $1 in *[\\\`\"\$]*) func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;; *) func_quote_for_eval_unquoted_result="$1" ;; esac case $func_quote_for_eval_unquoted_result in # Double-quote args containing shell metacharacters to delay # word splitting, command substitution and and variable # expansion for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" ;; *) func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" esac } # func_quote_for_expand arg # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { case $1 in *[\\\`\"]*) my_arg=`$ECHO "X$1" | $Xsed \ -e "$double_quote_subst" -e "$sed_double_backslash"` ;; *) my_arg="$1" ;; esac case $my_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") my_arg="\"$my_arg\"" ;; esac func_quote_for_expand_result="$my_arg" } # func_show_eval cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$my_cmd" my_status=$? if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_show_eval_locale cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$lt_user_locale $my_cmd" my_status=$? eval "$lt_safe_locale" if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_version # Echo version message to standard output and exit. func_version () { $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / { s/^# // s/^# *$// s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ p }' < "$progpath" exit $? } # func_usage # Echo short help message to standard output and exit. func_usage () { $SED -n '/^# Usage:/,/# -h/ { s/^# // s/^# *$// s/\$progname/'$progname'/ p }' < "$progpath" $ECHO $ECHO "run \`$progname --help | more' for full usage" exit $? } # func_help # Echo long help message to standard output and exit. func_help () { $SED -n '/^# Usage:/,/# Report bugs to/ { s/^# // s/^# *$// s*\$progname*'$progname'* s*\$host*'"$host"'* s*\$SHELL*'"$SHELL"'* s*\$LTCC*'"$LTCC"'* s*\$LTCFLAGS*'"$LTCFLAGS"'* s*\$LD*'"$LD"'* s/\$with_gnu_ld/'"$with_gnu_ld"'/ s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ p }' < "$progpath" exit $? } # func_missing_arg argname # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { func_error "missing argument for $1" exit_cmd=exit } exit_cmd=: # Check that we have a working $ECHO. if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then # Yippee, $ECHO works! : else # Restart under the correct shell, and then maybe $ECHO will work. exec $SHELL "$progpath" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # Parse options once, thoroughly. This comes as soon as possible in # the script to make things like `libtool --version' happen quickly. { # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; esac # Parse non-mode specific arguments: while test "$#" -gt 0; do opt="$1" shift case $opt in --config) func_config ;; --debug) preserve_args="$preserve_args $opt" func_echo "enabling shell trace mode" opt_debug='set -x' $opt_debug ;; -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break execute_dlfiles="$execute_dlfiles $1" shift ;; --dry-run | -n) opt_dry_run=: ;; --features) func_features ;; --finish) mode="finish" ;; --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break case $1 in # Valid mode arguments: clean) ;; compile) ;; execute) ;; finish) ;; install) ;; link) ;; relink) ;; uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $opt" exit_cmd=exit break ;; esac mode="$1" shift ;; --preserve-dup-deps) opt_duplicate_deps=: ;; --quiet|--silent) preserve_args="$preserve_args $opt" opt_silent=: ;; --verbose| -v) preserve_args="$preserve_args $opt" opt_silent=false ;; --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break preserve_args="$preserve_args $opt $1" func_enable_tag "$1" # tagname is set here shift ;; # Separate optargs to long options: -dlopen=*|--mode=*|--tag=*) func_opt_split "$opt" set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"} shift ;; -\?|-h) func_usage ;; --help) opt_help=: ;; --version) func_version ;; -*) func_fatal_help "unrecognized option \`$opt'" ;; *) nonopt="$opt" break ;; esac done case $host in *cygwin* | *mingw* | *pw32* | *cegcc*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_duplicate_deps ;; esac # Having warned about all mis-specified options, bail out if # anything was wrong. $exit_cmd $EXIT_FAILURE } # func_check_version_match # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } ## ----------- ## ## Main. ## ## ----------- ## $opt_help || { # Sanity checks first: func_check_version_match if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then func_fatal_configuration "not configured to build any kind of library" fi test -z "$mode" && func_fatal_error "error: you must specify a MODE." # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then func_error "unrecognized option \`-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$progname --help --mode=$mode' for more information." } # func_lalib_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null \ | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_unsafe_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if `file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case "$lalib_p_line" in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test "$lalib_p" = yes } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { func_lalib_p "$1" } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_ltwrapper_scriptname_result="" if func_ltwrapper_executable_p "$1"; then func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" fi } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $opt_debug save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$save_ifs eval cmd=\"$cmd\" func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. func_source () { $opt_debug case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $opt_debug if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_quote_for_eval "$arg" CC_quoted="$CC_quoted $func_quote_for_eval_result" done case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_quote_for_eval "$arg" CC_quoted="$CC_quoted $func_quote_for_eval_result" done case "$@ " in " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with \`--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=${1} if test "$build_libtool_libs" = yes; then write_lobj=\'${2}\' else write_lobj=none fi if test "$build_old_libs" = yes; then write_oldobj=\'${3}\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T <?"'"'"' &()|`$[]' \ && func_warning "libobj name \`$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname="$func_basename_result" xdir="$func_dirname_result" lobj=${xdir}$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi removelist="$removelist $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist removelist="$removelist $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result # Only build a PIC object if we are building libtool libraries. if test "$build_libtool_libs" = yes; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test "$pic_mode" != no; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir command="$command -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test "$suppress_opt" = yes; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test "$build_old_libs" = yes; then if test "$pic_mode" != yes; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test "$compiler_c_o" = yes; then command="$command -o $obj" fi # Suppress compiler output if we already did a PIC compilation. command="$command$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test "$need_locks" != no; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test "$mode" = compile && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to building PIC objects only -prefer-non-pic try to building non-PIC objects only -shared do not build a \`.o' file suitable for static linking -static only build a \`.o' file suitable for static linking COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode \`$mode'" ;; esac $ECHO $ECHO "Try \`$progname --help' for more information about other modes." exit $? } # Now that we've collected a possible --mode arg, show help if necessary $opt_help && func_mode_help # func_mode_execute arg... func_mode_execute () { $opt_debug # The first argument is the command name. cmd="$nonopt" test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $execute_dlfiles; do test -f "$file" \ || func_fatal_help "\`$file' is not a file" dir= case $file in *.la) # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "\`$file' was not linked with \`-export-dynamic'" continue fi func_dirname "$file" "" "." dir="$func_dirname_result" if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir="$func_dirname_result" ;; *) func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -*) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file="$progdir/$program" elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). func_quote_for_eval "$file" args="$args $func_quote_for_eval_result" done if test "X$opt_dry_run" = Xfalse; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" $ECHO "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS fi } test "$mode" = execute && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $opt_debug libdirs="$nonopt" admincmds= if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for dir do libdirs="$libdirs $dir" done for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || admincmds="$admincmds $cmds" fi done fi # Exit here if they wanted silent mode. $opt_silent && exit $EXIT_SUCCESS $ECHO "X----------------------------------------------------------------------" | $Xsed $ECHO "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done $ECHO $ECHO "If you ever happen to want to link against installed libraries" $ECHO "in a given directory, LIBDIR, you must either use libtool, and" $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'" $ECHO "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable" $ECHO " during execution" fi if test -n "$runpath_var"; then $ECHO " - add LIBDIR to the \`$runpath_var' environment variable" $ECHO " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi $ECHO $ECHO "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual" $ECHO "pages." ;; *) $ECHO "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac $ECHO "X----------------------------------------------------------------------" | $Xsed exit $EXIT_SUCCESS } test "$mode" = finish && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $opt_debug # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. $ECHO "X$nonopt" | $GREP shtool >/dev/null; then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" install_prog="$install_prog$func_quote_for_eval_result" # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= for arg do if test -n "$dest"; then files="$files $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) case " $install_prog " in *[\\\ /]cp\ *) ;; *) prev=$arg ;; esac ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_for_eval "$arg" install_prog="$install_prog $func_quote_for_eval_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the \`$prev' option requires an argument" if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else func_dirname_and_basename "$dest" "" "." destdir="$func_dirname_result" destname="$func_basename_result" # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "\`$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "\`$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) current_libdirs="$current_libdirs $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) future_libdirs="$future_libdirs $libdir" ;; esac fi func_dirname "$file" "/" "" dir="$func_dirname_result" dir="$dir$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"` fi func_warning "relinking \`$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname="$1" shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme="$stripme" case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme="" ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib="$destdir/$realname" func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name="$func_basename_result" instname="$dir/$name"i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest="$destfile" destfile= ;; *) func_fatal_help "cannot copy a libtool object to \`$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script \`$wrapper'" finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then func_warning "\`$lib' has not been installed in \`$libdir'" finalize=no fi done relink_command= func_source "$wrapper" outputname= if test "$fast_install" = no && test -n "$relink_command"; then $opt_dry_run || { if test "$finalize" = yes; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file="$func_basename_result" outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` $opt_silent || { func_quote_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_result" } if eval "$relink_command"; then : else func_error "error: relink \`$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file="$outputname" else func_warning "cannot relink \`$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name="$func_basename_result" # Set up the ranlib parameters. oldlib="$destdir/$name" func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run \`$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test "$mode" = install && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $opt_debug my_outputname="$1" my_originator="$2" my_pic_p="${3-no}" my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms="${my_outputname}S.c" else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${my_outputname}.nm" func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then func_verbose "generating symbol list for \`$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` for progfile in $progfiles; do func_verbose "extracting global C symbols from \`$progfile'" $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $opt_dry_run || { $RM $export_symbols eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from \`$dlprefile'" func_basename "$dlprefile" name="$func_basename_result" $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'" } done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms" fi $ECHO >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; " case $host in *cygwin* | *mingw* | *cegcc* ) $ECHO >> "$output_objdir/$my_dlsyms" "\ /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */" lt_dlsym_const= ;; *osf5*) echo >> "$output_objdir/$my_dlsyms" "\ /* This system does not cope well with relocations in const data */" lt_dlsym_const= ;; *) lt_dlsym_const=const ;; esac $ECHO >> "$output_objdir/$my_dlsyms" "\ extern $lt_dlsym_const lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[]; $lt_dlsym_const lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = {\ { \"$my_originator\", (void *) 0 }," case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac $ECHO >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) if test "X$my_pic_p" != Xno; then pic_flag_for_symtable=" $pic_flag" fi ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) symtab_cflags="$symtab_cflags $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' # Transform the symbol file into the correct name. symfileobj="$output_objdir/${my_outputname}S.$objext" case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for \`$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` fi } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. func_win32_libid () { $opt_debug win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | $SED -n -e ' 1,100{ / I /{ s,.*,import, p q } }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_extract_an_archive dir oldlib func_extract_an_archive () { $opt_debug f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?' if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $opt_debug my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib="$func_basename_result" my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir="$my_gentop/$my_xlib_u" func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`basename "$darwin_archive"` darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # func_emit_wrapper_part1 [arg=no] # # Emit the first part of a libtool wrapper script on stdout. # For more information, see the description associated with # func_emit_wrapper(), below. func_emit_wrapper_part1 () { func_emit_wrapper_part1_arg1=no if test -n "$1" ; then func_emit_wrapper_part1_arg1=$1 fi $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # Be Bourne compatible if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then ECHO=\"$qecho\" file=\"\$0\" # Make sure echo works. if test \"X\$1\" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then # Yippee, \$ECHO works! : else # Restart under the correct shell, and then maybe \$ECHO will work. exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} fi fi\ " $ECHO "\ # Find the directory that this script lives in. thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done " } # end: func_emit_wrapper_part1 # func_emit_wrapper_part2 [arg=no] # # Emit the second part of a libtool wrapper script on stdout. # For more information, see the description associated with # func_emit_wrapper(), below. func_emit_wrapper_part2 () { func_emit_wrapper_part2_arg1=no if test -n "$1" ; then func_emit_wrapper_part2_arg1=$1 fi $ECHO "\ # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var " fi # fixup the dll searchpath if we need to. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 fi else # The program doesn't exist. \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # end: func_emit_wrapper_part2 # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory in which it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=no if test -n "$1" ; then func_emit_wrapper_arg1=$1 fi # split this up so that func_emit_cwrapperexe_src # can call each part independently. func_emit_wrapper_part1 "${func_emit_wrapper_arg1}" func_emit_wrapper_part2 "${func_emit_wrapper_arg1}" } # func_to_host_path arg # # Convert paths to host format when used with build tools. # Intended for use with "native" mingw (where libtool itself # is running under the msys shell), or in the following cross- # build environments: # $build $host # mingw (msys) mingw [e.g. native] # cygwin mingw # *nix + wine mingw # where wine is equipped with the `winepath' executable. # In the native mingw case, the (msys) shell automatically # converts paths for any non-msys applications it launches, # but that facility isn't available from inside the cwrapper. # Similar accommodations are necessary for $host mingw and # $build cygwin. Calling this function does no harm for other # $host/$build combinations not listed above. # # ARG is the path (on $build) that should be converted to # the proper representation for $host. The result is stored # in $func_to_host_path_result. func_to_host_path () { func_to_host_path_result="$1" if test -n "$1" ; then case $host in *mingw* ) lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' case $build in *mingw* ) # actually, msys # awkward: cmd appends spaces to result lt_sed_strip_trailing_spaces="s/[ ]*\$//" func_to_host_path_tmp1=`( cmd //c echo "$1" |\ $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ $SED -e "$lt_sed_naive_backslashify"` ;; *cygwin* ) func_to_host_path_tmp1=`cygpath -w "$1"` func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ $SED -e "$lt_sed_naive_backslashify"` ;; * ) # Unfortunately, winepath does not exit with a non-zero # error code, so we are forced to check the contents of # stdout. On the other hand, if the command is not # found, the shell will set an exit code of 127 and print # *an error message* to stdout. So we must check for both # error code of zero AND non-empty stdout, which explains # the odd construction: func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null` if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ $SED -e "$lt_sed_naive_backslashify"` else # Allow warning below. func_to_host_path_result="" fi ;; esac if test -z "$func_to_host_path_result" ; then func_error "Could not determine host path corresponding to" func_error " '$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_path_result="$1" fi ;; esac fi } # end: func_to_host_path # func_to_host_pathlist arg # # Convert pathlists to host format when used with build tools. # See func_to_host_path(), above. This function supports the # following $build/$host combinations (but does no harm for # combinations not listed here): # $build $host # mingw (msys) mingw [e.g. native] # cygwin mingw # *nix + wine mingw # # Path separators are also converted from $build format to # $host format. If ARG begins or ends with a path separator # character, it is preserved (but converted to $host format) # on output. # # ARG is a pathlist (on $build) that should be converted to # the proper representation on $host. The result is stored # in $func_to_host_pathlist_result. func_to_host_pathlist () { func_to_host_pathlist_result="$1" if test -n "$1" ; then case $host in *mingw* ) lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_to_host_pathlist_tmp2="$1" # Once set for this call, this variable should not be # reassigned. It is used in tha fallback case. func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\ $SED -e 's|^:*||' -e 's|:*$||'` case $build in *mingw* ) # Actually, msys. # Awkward: cmd appends spaces to result. lt_sed_strip_trailing_spaces="s/[ ]*\$//" func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\ $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ $SED -e "$lt_sed_naive_backslashify"` ;; *cygwin* ) func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"` func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ $SED -e "$lt_sed_naive_backslashify"` ;; * ) # unfortunately, winepath doesn't convert pathlists func_to_host_pathlist_result="" func_to_host_pathlist_oldIFS=$IFS IFS=: for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do IFS=$func_to_host_pathlist_oldIFS if test -n "$func_to_host_pathlist_f" ; then func_to_host_path "$func_to_host_pathlist_f" if test -n "$func_to_host_path_result" ; then if test -z "$func_to_host_pathlist_result" ; then func_to_host_pathlist_result="$func_to_host_path_result" else func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result" fi fi fi IFS=: done IFS=$func_to_host_pathlist_oldIFS ;; esac if test -z "$func_to_host_pathlist_result" ; then func_error "Could not determine the host path(s) corresponding to" func_error " '$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This may break if $1 contains DOS-style drive # specifications. The fix is not to complicate the expression # below, but for the user to provide a working wine installation # with winepath so that path translation in the cross-to-mingw # case works properly. lt_replace_pathsep_nix_to_dos="s|:|;|g" func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\ $SED -e "$lt_replace_pathsep_nix_to_dos"` fi # Now, add the leading and trailing path separators back case "$1" in :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result" ;; esac case "$1" in *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;" ;; esac ;; esac fi } # end: func_to_host_pathlist # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include # define setmode _setmode #else # include # include # ifdef __CYGWIN__ # include # define HAVE_SETENV # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif # endif #endif #include #include #include #include #include #include #include #include #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif #ifdef _MSC_VER # define S_IXUSR _S_IEXEC # define stat _stat # ifndef _INTPTR_T_DEFINED # define intptr_t int # endif #endif #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifdef __CYGWIN__ # define FOPEN_WB "wb" #endif #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) #undef LTWRAPPER_DEBUGPRINTF #if defined DEBUGWRAPPER # define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args static void ltwrapper_debugprintf (const char *fmt, ...) { va_list args; va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } #else # define LTWRAPPER_DEBUGPRINTF(args) #endif const char *program_name = NULL; void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_fatal (const char *message, ...); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_opt_process_env_set (const char *arg); void lt_opt_process_env_prepend (const char *arg); void lt_opt_process_env_append (const char *arg); int lt_split_name_value (const char *arg, char** name, char** value); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); static const char *script_text_part1 = EOF func_emit_wrapper_part1 yes | $SED -e 's/\([\\"]\)/\\\1/g' \ -e 's/^/ "/' -e 's/$/\\n"/' echo ";" cat <"))); for (i = 0; i < newargc; i++) { LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : ""))); } EOF case $host_os in mingw*) cat <<"EOF" /* execv doesn't actually work on mingw as expected on unix */ rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); if (rval == -1) { /* failed to start process */ LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno)); return 127; } return rval; EOF ;; *) cat <<"EOF" execv (lt_argv_zero, newargz); return rval; /* =127, but avoids unused variable warning */ EOF ;; esac cat <<"EOF" } void * xmalloc (size_t num) { void *p = (void *) malloc (num); if (!p) lt_fatal ("Memory exhausted"); return p; } char * xstrdup (const char *string) { return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL; } const char * base_name (const char *name) { const char *base; #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ if (isalpha ((unsigned char) name[0]) && name[1] == ':') name += 2; #endif for (base = name; *name; name++) if (IS_DIR_SEPARATOR (*name)) base = name + 1; return base; } int check_executable (const char *path) { struct stat st; LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!")); if ((!path) || (!*path)) return 0; if ((stat (path, &st) >= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!")); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char *concat_name; LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!")); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n", tmp_pathspec)); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { char *errstr = strerror (errno); lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal ("Could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (strcmp (str, pat) == 0) *str = '\0'; } return str; } static void lt_error_core (int exit_status, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s: %s: ", program_name, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, "FATAL", message, ap); va_end (ap); } void lt_setenv (const char *name, const char *value) { LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n", (name ? name : ""), (value ? value : ""))); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else int len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { int orig_value_len = strlen (orig_value); int add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } int lt_split_name_value (const char *arg, char** name, char** value) { const char *p; int len; if (!arg || !*arg) return 1; p = strchr (arg, (int)'='); if (!p) return 1; *value = xstrdup (++p); len = strlen (arg) - strlen (*value); *name = XMALLOC (char, len); strncpy (*name, arg, len-1); (*name)[len - 1] = '\0'; return 0; } void lt_opt_process_env_set (const char *arg) { char *name = NULL; char *value = NULL; if (lt_split_name_value (arg, &name, &value) != 0) { XFREE (name); XFREE (value); lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg); } lt_setenv (name, value); XFREE (name); XFREE (value); } void lt_opt_process_env_prepend (const char *arg) { char *name = NULL; char *value = NULL; char *new_value = NULL; if (lt_split_name_value (arg, &name, &value) != 0) { XFREE (name); XFREE (value); lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg); } new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); XFREE (name); XFREE (value); } void lt_opt_process_env_append (const char *arg) { char *name = NULL; char *value = NULL; char *new_value = NULL; if (lt_split_name_value (arg, &name, &value) != 0) { XFREE (name); XFREE (value); lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg); } new_value = lt_extend_str (getenv (name), value, 1); lt_setenv (name, new_value); XFREE (new_value); XFREE (name); XFREE (value); } void lt_update_exe_path (const char *name, const char *value) { LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n", (name ? name : ""), (value ? value : ""))); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ int len = strlen (new_value); while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[len-1] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n", (name ? name : ""), (value ? value : ""))); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF } # end: func_emit_cwrapperexe_src # func_mode_link arg... func_mode_link () { $opt_debug case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # which system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll which has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=no prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module="${wl}-single_module" func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift func_quote_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then dlfiles="$dlfiles $arg" else dlprefiles="$dlprefiles $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" test -f "$arg" \ || func_fatal_error "symbol file \`$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) deplibs="$deplibs $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # moreargs="$moreargs $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file \`$arg' does not exist" fi arg=$save_arg prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) rpath="$rpath $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) xrpath="$xrpath $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds="$arg" prev= continue ;; weak) weak_libs="$weak_libs $arg" prev= continue ;; xcclinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) compiler_flags="$compiler_flags $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "\`-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname '-L' '' "$arg" dir=$func_stripname_result if test -z "$dir"; then if test "$#" -gt 0; then func_fatal_error "require no space between \`-L' and \`$1'" else func_fatal_error "need path for \`-L' option" fi fi # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of \`$dir'" dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "*) ;; *) deplibs="$deplibs -L$dir" lib_search_path="$lib_search_path $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) dllsearchpath="$dllsearchpath:$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework deplibs="$deplibs System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi deplibs="$deplibs $arg" continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot) compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;; esac continue ;; -multi_module) single_module="${wl}-multi_module" continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "\`-no-install' is ignored for $host" func_warning "assuming \`-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" arg="$arg $wl$func_quote_for_eval_result" compiler_flags="$compiler_flags $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" arg="$arg $wl$func_quote_for_eval_result" compiler_flags="$compiler_flags $wl$func_quote_for_eval_result" linker_flags="$linker_flags $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; # -64, -mips[0-9] enable 64-bit mode on the SGI compiler # -r[0-9][0-9]* specifies the processor on the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler # +DA*, +DD* enable 64-bit mode on the HP compiler # -q* pass through compiler args for the IBM compiler # -m*, -t[45]*, -txscale* pass through architecture-specific # compiler args for GCC # -F/path gives path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC # @file GCC response files -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" func_append compile_command " $arg" func_append finalize_command " $arg" compiler_flags="$compiler_flags $arg" continue ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; *.$objext) # A standard object. objs="$objs $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. deplibs="$deplibs $arg" old_deplibs="$old_deplibs $arg" continue ;; *.la) # A libtool-controlled library. if test "$prev" = dlfiles; then # This library was specified with -dlopen. dlfiles="$dlfiles $arg" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. dlprefiles="$dlprefiles $arg" prev= else deplibs="$deplibs $arg" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the \`$prevarg' option requires an argument" if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname="$func_basename_result" libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" func_dirname "$output" "/" "" output_objdir="$func_dirname_result$objdir" # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_duplicate_deps ; then case "$libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi libs="$libs $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; esac pre_post_deps="$pre_post_deps $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test "$linkmode,$pass" = "lib,link"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs="$tmp_deplibs" fi if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; esac fi if test "$linkmode,$pass" = "lib,dlpreopen"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= case $lib in *.la) func_source "$lib" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"` case " $weak_libs " in *" $deplib_base "*) ;; *) deplibs="$deplibs $deplib" ;; esac done done libs="$dlprefiles" fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; esac fi fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then func_warning "\`-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test "$linkmode" = lib; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no func_dirname "$lib" "" "." ladir="$func_dirname_result" lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l *.ltframework) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" newlib_search_path="$newlib_search_path $func_stripname_result" ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" newlib_search_path="$newlib_search_path $func_stripname_result" ;; *) func_warning "\`-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then func_stripname '-R' '' "$deplib" dir=$func_stripname_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) lib="$deplib" ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then $ECHO $ECHO "*** Warning: Trying to link with static lib archive $deplib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because the file extensions .$libext of this argument makes me believe" $ECHO "*** that it is just a static archive that I should not use here." else $ECHO $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi ;; esac continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. newdlprefiles="$newdlprefiles $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else newdlfiles="$newdlfiles $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" fi # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "\`$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir="$func_dirname_result" dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && dlfiles="$dlfiles $dlopen" test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # It is a libtool convenience library, so add in its objects. convenience="$convenience $ladir/$objdir/$old_library" old_convenience="$old_convenience $ladir/$objdir/$old_library" elif test "$linkmode" != prog && test "$linkmode" != lib; then func_fatal_error "\`$lib' is not a convenience library" fi tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_duplicate_deps ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done continue fi # $pass = conv # Get the name of the library we link against. linklib= for l in $old_library $library_names; do linklib="$l" done if test -z "$linklib"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then func_fatal_error "cannot -dlopen a convenience library: \`$lib'" fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. dlprefiles="$dlprefiles $lib $dependency_libs" else newdlfiles="$newdlfiles $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of \`$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir="$ladir" fi ;; esac func_basename "$lib" laname="$func_basename_result" # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library \`$lib' was moved." dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$libdir" absdir="$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir" && test "$linkmode" = prog; then func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" fi # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then newdlprefiles="$newdlprefiles $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then newdlprefiles="$newdlprefiles $dir/$dlname" else newdlprefiles="$newdlprefiles $dir/$linklib" fi fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then newlib_search_path="$newlib_search_path $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" newlib_search_path="$newlib_search_path $func_stripname_result" ;; esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_duplicate_deps ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { { test "$prefer_static_libs" = no || test "$prefer_static_libs,$installed" = "built,yes"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath:" in *"$absdir:"*) ;; *) temp_rpath="$temp_rpath$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc*) # No point in relinking DLLs because paths are not encoded notinst_deplibs="$notinst_deplibs $lib" need_relink=no ;; *) if test "$installed" = no; then notinst_deplibs="$notinst_deplibs $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule="" for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule="$dlpremoduletest" break fi done if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then $ECHO if test "$linkmode" = prog; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname="$1" shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc*) func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" func_basename "$soroot" soname="$func_basename_result" func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from \`$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for \`$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we can not # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null ; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library" ; then $ECHO $ECHO "*** And there doesn't seem to be a static archive available" $ECHO "*** The link will probably fail, sorry" else add="$dir/$old_library" fi elif test -n "$old_library"; then add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && test "$hardcode_minus_L" != yes && test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. $ECHO $ECHO "*** Warning: This system can not link to static lib archive $lib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then $ECHO "*** But as you try to build a module library, libtool will still create " $ECHO "*** a static module, that should work as long as the dlopening application" $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then $ECHO $ECHO "*** However, this would only work if libtool was able to extract symbol" $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" $ECHO "*** not find such a program. So, this module is probably useless." $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) xrpath="$xrpath $temp_xrpath";; esac;; *) temp_deplibs="$temp_deplibs $libdir";; esac done dependency_libs="$temp_deplibs" fi newlib_search_path="$newlib_search_path $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" if $opt_duplicate_deps ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do case $deplib in -L*) path="$deplib" ;; *.la) func_dirname "$deplib" "" "." dir="$func_dirname_result" # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of \`$dir'" absdir="$dir" fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl" ; then depdepl="$absdir/$objdir/$depdepl" darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}" path= fi fi ;; *) path="-L$absdir/$objdir" ;; esac else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "\`$deplib' seems to be moved" path="-L$absdir" fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test "$pass" = link; then if test "$linkmode" = "prog"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) lib_search_path="$lib_search_path $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) tmp_libs="$tmp_libs $deplib" ;; esac ;; *) tmp_libs="$tmp_libs $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then tmp_libs="$tmp_libs $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" fi if test "$linkmode" = prog || test "$linkmode" = lib; then dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "\`-R' is ignored for archives" test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "\`-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "\`-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" objs="$objs$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test "$module" = no && \ func_fatal_help "libtool library \`$output' must begin with \`lib'" if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" else $ECHO $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" libobjs="$libobjs $objs" fi fi test "$dlself" != no && \ func_warning "\`-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test "$#" -gt 1 && \ func_warning "ignoring multiple \`-rpath's for a libtool library" install_libdir="$1" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "\`-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 shift IFS="$save_ifs" test -n "$7" && \ func_fatal_help "too many parameters to \`-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$1" number_minor="$2" number_revision="$3" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in darwin|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; esac ;; no) current="$1" revision="$2" age="$3" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT \`$current' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION \`$revision' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE \`$age' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE \`$age' is greater than the current interface number \`$current'" func_fatal_error "\`$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current" ;; irix | nonstopux) if test "X$lt_irix_increment" = "Xno"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring:${iface}.0" done # Make executables depend on our current version. verstring="$verstring:${current}.0" ;; qnx) major=".$current" versuffix=".$current" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; *) func_fatal_configuration "unknown library version type \`$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then func_warning "undefined symbols not allowed in $host shared libraries" build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi func_generate_dlsyms "$libname" "$libname" "yes" libobjs="$libobjs $symfileobj" test "X$libobjs" = "X " && libobjs= if test "$mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi removelist="$removelist $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then oldlibs="$oldlibs $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"` # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"` # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do temp_xrpath="$temp_xrpath -R$libdir" case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) dlfiles="$dlfiles $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) dlprefiles="$dlprefiles $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework deplibs="$deplibs System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then deplibs="$deplibs -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </dev/null` for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $ECHO $ECHO "*** Warning: linker path does not have real file for library $a_deplib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$newdeplibs $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $ECHO $ECHO "*** Warning: linker path does not have real file for library $a_deplib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \ -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"` done fi if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' | $GREP . >/dev/null; then $ECHO if test "X$deplibs_check_method" = "Xnone"; then $ECHO "*** Warning: inter-library dependencies are not supported in this platform." else $ECHO "*** Warning: inter-library dependencies are not known to be supported." fi $ECHO "*** All declared inter-library dependencies are being dropped." droppeddeps=yes fi ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then $ECHO $ECHO "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" $ECHO "*** a static module, that should work as long as the dlopening" $ECHO "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then $ECHO $ECHO "*** However, this would only work if libtool was able to extract symbol" $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" $ECHO "*** not find such a program. So, this module is probably useless." $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else $ECHO "*** The inter-library dependencies that have been dropped here will be" $ECHO "*** automatically added whenever a program is linked with this library" $ECHO "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then $ECHO $ECHO "*** Since this library must not contain undefined symbols," $ECHO "*** because either the platform does not support them or" $ECHO "*** it was explicitly requested with -no-undefined," $ECHO "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" dep_rpath="$dep_rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname="$1" shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do linknames="$linknames $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols="$output_objdir/$libname.uexp" delfiles="$delfiles $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile if test "x`$SED 1q $export_symbols`" != xEXPORTS; then # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols="$export_symbols" export_symbols= always_export_symbols=yes fi fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" func_len " $cmd" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then func_show_eval "$cmd" 'exit $?' skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' fi if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) tmp_deplibs="$tmp_deplibs $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test "$compiler_needs_object" = yes && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $convenience libobjs="$libobjs $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" linker_flags="$linker_flags $flag" fi # Make a backup of the uninstalled library when relinking if test "$mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output output_la=`$ECHO "X$output" | $Xsed -e "$basename"` # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then output=${output_objdir}/${output_la}.lnkscript func_verbose "creating GNU ld script: $output" $ECHO 'INPUT (' > $output for obj in $save_libobjs do $ECHO "$obj" >> $output done $ECHO ')' >> $output delfiles="$delfiles $output" elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then output=${output_objdir}/${output_la}.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test "$compiler_needs_object" = yes; then firstobj="$1 " shift fi for obj do $ECHO "$obj" >> $output done delfiles="$delfiles $output" output=$firstobj\"$file_list_spec$output\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-${k}.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test "X$objlist" = X || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. eval concat_cmds=\"$reload_cmds $objlist $last_robj\" else # All subsequent reloadable object files will link in # the last one created. eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-${k}.$objext objlist=$obj func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" if test -n "$last_robj"; then eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" fi delfiles="$delfiles $output" else output= fi if ${skipped_export-false}; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi fi test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi if ${skipped_export-false}; then if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi fi libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $dlprefiles libobjs="$libobjs $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "\`-R' is ignored for objects" test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for objects" test -n "$release" && \ func_warning "\`-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object \`$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec and hope we can get by with # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` else gentop="$output_objdir/${obj}x" generated="$generated $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # Create the old-style object. reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for programs" test -n "$release" && \ func_warning "\`-release' is ignored for programs" test "$preload" = yes \ && test "$dlopen_support" = unknown \ && test "$dlopen_self" = unknown \ && test "$dlopen_self_static" = unknown && \ func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test "$tagname" = CXX ; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) compile_command="$compile_command ${wl}-bind_at_load" finalize_command="$finalize_command ${wl}-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done compile_deplibs="$new_libs" compile_command="$compile_command $compile_deplibs" finalize_command="$finalize_command $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) dllsearchpath="$dllsearchpath:$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" "no" # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=yes case $host in *cygwin* | *mingw* ) if test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; *cegcc) # Disable wrappers for cegcc, we are cross compiling anyway. wrappers_required=no ;; *) if test "$need_relink" = no || test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; esac if test "$wrappers_required" = no; then # Replace the output file specification. compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' # Delete the generated files. if test -f "$output_objdir/${outputname}S.${objext}"; then func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' fi exit $exit_status fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do rpath="$rpath$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" func_warning "this platform does not like uninstalled shared libraries" func_warning "\`$output' will be relinked during installation" else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` fi # Quote $ECHO for shipping. if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then case $progpath in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; esac qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"` else qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host" ; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save $symfileobj" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" if test "$preload" = yes && test -f "$symfileobj"; then oldobjs="$oldobjs $symfileobj" fi fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $addlibs oldobjs="$oldobjs $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $dlprefiles oldobjs="$oldobjs $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else $ECHO "copying selected object files to avoid basename conflicts..." gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase="$func_basename_result" case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" oldobjs="$oldobjs $gentop/$newobj" ;; *) oldobjs="$oldobjs $obj" ;; esac done fi eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" newdependency_libs="$newdependency_libs $libdir/$name" ;; *) newdependency_libs="$newdependency_libs $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" newdlfiles="$newdlfiles $libdir/$name" ;; *) newdlfiles="$newdlfiles $lib" ;; esac done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" newdlprefiles="$newdlprefiles $libdir/$name" ;; esac done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlfiles="$newdlfiles $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlprefiles="$newdlprefiles $abs" done dlprefiles="$newdlprefiles" fi $RM $output # place dlname in correct position for cygwin tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that can not go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } { test "$mode" = link || test "$mode" = relink; } && func_mode_link ${1+"$@"} # func_mode_uninstall arg... func_mode_uninstall () { $opt_debug RM="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) RM="$RM $arg"; rmforce=yes ;; -*) RM="$RM $arg" ;; *) files="$files $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= origobjdir="$objdir" for file in $files; do func_dirname "$file" "" "." dir="$func_dirname_result" if test "X$dir" = X.; then objdir="$origobjdir" else objdir="$dir/$origobjdir" fi func_basename "$file" name="$func_basename_result" test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates if test "$mode" = clean; then case " $rmdirs " in *" $objdir "*) ;; *) rmdirs="$rmdirs $objdir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" case "$mode" in clean) case " $library_names " in # " " in the beginning catches empty $dlname *" $dlname "*) ;; *) rmfiles="$rmfiles $objdir/$dlname" ;; esac test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test "$pic_object" != none; then rmfiles="$rmfiles $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test "$non_pic_object" != none; then rmfiles="$rmfiles $dir/$non_pic_object" fi fi ;; *) if test "$mode" = clean ; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe rmfiles="$rmfiles $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result rmfiles="$rmfiles $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then rmfiles="$rmfiles $objdir/lt-$name" fi if test "X$noexename" != "X$name" ; then rmfiles="$rmfiles $objdir/lt-${noexename}.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } { test "$mode" = uninstall || test "$mode" = clean; } && func_mode_uninstall ${1+"$@"} test -z "$mode" && { help="$generic_help" func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode \`$mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: # vi:sw=2 ORBit2-2.14.19/MAINTAINERS0000644000175000001440000000062011334247617011351 00000000000000[ Please read the HACKING file for where to send bug-reports/patches ] Current Maintainers =================== Michael Meeks E-mail: michael@ximian.com Userid: michael Mark McLoughlin Frank Rehberger Kjartan Maraas E-mail: kmaraas@gnome.org Userid: kmaraas Documentation ============= Gustavo Carneiro ORBit2-2.14.19/README.win320000644000175000001440000000566011334247617011506 00000000000000To build ORBit2 on Win32 you must use gcc (mingw). Using MSVC does not work without some major restructuring in they way type codes etc is exported from the ORBit2 DLLs. ORBit2 and code produced by its IDL compiler depend heavily on the --enable-auto-import (which is on by default) and --enable-runtime-pseudo-reloc (which isn't) features of the GNU linker. The same holds for building software that uses ORBit2 itself or DLLs containing code produced by ORBit2's IDL compiler (for instance libbonobo). Personally I build ORBit2 using a command sequence like the one below that corresponds to my (unofficial) source and binary release on 2005-08-28. Obviously you need to adapt it to where you have various dependencies installed, and otherwise. Just use this as a model. Don't use it blindly, but try to understand what each step does and why it is needed. ---------------- THIS=ORBit2-2.13.0-20050828 DEPS="glib-2.8.1 libIDL-0.8.6" sed -e 's/need_relink=yes/need_relink=no # no way --tml/' ltmain.temp && mv ltmain.temp ltmain.sh # This sets PATH and PKG_CONFIG_PATH to "base" values that don't include # things in the GNOME platform, but does include things like libintl or popt. usestable unset MY_PKG_CONFIG_PATH for D in $DEPS; do PATH=/devel/dist/$D/bin:$PATH MY_PKG_CONFIG_PATH=/devel/dist/$D/lib/pkgconfig:$MY_PKG_CONFIG_PATH done PKG_CONFIG_PATH=$MY_PKG_CONFIG_PATH:$PKG_CONFIG_PATH CC='gcc -mtune=pentium3' CPPFLAGS='-I/opt/gnu/include -I/devel/dist/popt-1.10.2-tml-20050828/include' LDFLAGS='-Wl,--enable-runtime-pseudo-reloc -L/opt/gnu/lib -L/devel/dist/popt-1.10.2-tml-20050828/lib' CFLAGS=-O ./configure --enable-debug=yes --disable-gtk-doc --disable-static --prefix=c:/devel/target/$THIS && libtoolcacheize && unset MY_PKG_CONFIG_PATH && PATH=/devel/target/$THIS/bin:.libs:$PATH make install && rm .libtool-cache-link-exe && (cd test && PATH=/devel/target/$THIS/bin:$PATH make check) && ./ORBit2-zip ---------------- Things to note above are: - If you build with optimization, you must pass the --enable-runtime-pseudo-reloc flag to the linker. Otherwise the (default) --enable-auto-import is enough. - /opt/gnu is where I have GNU libintl installed - /devel/dist/* are folders which contain the exact contents of the zipped packages I distribute. Others probably shouldn't have any reason to unzip each package in a separate folder. I use those in the build sequence just to make sure everything needed from the dependencies are included in the zipfiles of the dependencies. - /devel/target/* are separate folders into which I run make install for each module. I don't use anything from there when building other stuff, though, but from the corresponding /devel/dist/* folder into which I only unzip the actual contents of the zipfiles I am going to distribute. This way I make sure that there are no leftover dependencies on built-in compile-time pathnames in the binaries. --Tor Lillqvist , ORBit2-2.14.19/TODO0000644000175000001440000000613011334247617010346 00000000000000TODO: * Ensure that we can have our 'non-threaded' thread be any thread. * Turn off the global 'fast_calls' variable, to knobble old stubs, and go with the new ABI. * Cross thread Object references + I think the way to fix this is by using a different interface->adaptor_type: ORBIT_ADAPTOR_POA_THREADED, such that the fast case will always drop through to small_invoke_stub_n, where we can get far more creative. * Threading + GIOPMessageQueueEntry needs to hold a cnx ref. + orb->current_invocations needs to be per-thread ... also, we should push a stack-data pointer. + Need to emit 'broken' connection - via the listen/unlisten stuff in the main thread ... [ and garentee the same invariants as previously ? cnx status etc. ? ] + Create a per-object policy 'PROCESS_REENTERANTLY', using our VPVID space; takes a boolean ... set it on the object ... [ make some libbonobo wrappers to improve the situation ] + CORBA_Object_non_existant - needs to do a blocking check for CONNECTED / DISCONNETED. + bin redundant forwards in poa.c + giop_recv_thread_fn - more work needed + ** ERROR **: Need to handle zapped cnx' async callbacks * User friendliness + tolerate NULL CORBA_Environments in stubs + 'sequence from GList' API. + always return initialized memory on exception + add an X like 'event' processing API for incoming bits (?) * GIOP fragments / + need to handle a cancel request in the middle of a fragment stream * It seems the local case optimization can go wrong when invoking bogus methods from a different interface on an Object ref. + this is to do with a) not checking the vepv offset we get b) not expanding the lookup of the vepv offset at all. * Thread safety + For independent clients, we need some way to arbitrate the giop_recv_buffer_get method - so that either: a single thread does the poll and the rest block, or we all poll. + apparently g_object_ref / unref are not thread safe we need linc_object_ref / unref instead that does a LINC_MUTEX_LOCK on the global object lifecycle lock that needs to move into linc ... sigh ! + we need to ensure that linc does no signal emissions, since these are horribly slow and again not safe. * Optimization + we need 2 de-marshalling routines, 1 with (slow) byteswap and 1 without it, save scads and scads of branch cache misses; easy to do too; make it a virtual method on the recv buffer (?) [ for easy chaining ] + we need some concept of align == native align flagged on TypeCodes, so we can blat things quickly with memcpy in a generic way - eg. sequences of octets. + we need to implement 'wait for completion' on shutdown so that we can activate async unrefs in bonobo. * Dragons: + giop_recv_buffer.c (giop_connection_handle_input) manages to go through the error condition a whole load; _why_ is this ? - is it a recursive effect on the method ? why are we called if there is no data ? + We need a typecast in an _allocbuf which we know is aliased, eg. PortableServer_POAList_allocbuf, since it gets assigned to a CORBA_Object *, and the cast is bogus.ORBit2-2.14.19/HACKING0000644000175000001440000000253211334247617010647 00000000000000Hacking ORBit2 ============== Please log all patches/bug-reports bugzilla.gnome.org and get approval from myself (Mark) or Michael before committing. If you don't think bugzilla is appropriate, send a mail to orbit-list@gnome.org. If you don't receive any feedback within a resonable number of weeks, go ahead and commit, but please CC the list as you commit. Mark McLoughlin - 19/09/2001 Coding Style ============ No code that does not work is accepted into ORBit2 - ie. the half finished feature you meant to implement - it's not going in. We have enough unused clutter without more. Code that gets committed must be correct, it must look beautiful, it must have an elegant control flow, it should have complete regression tests that couple to make check - to prove that it works. Indentations are 8 stops, as are tabs. Code layout should use K&R - and distribute the extra whitespace to make the code pleasant to read. Methods should be short, use _ naming not stdlycaps and be sweet - not try to do too many things. Patches should be in diff -u format, and come complete with a dated ChangeLog in the standard form ( cf. emacs C-x 4-a ). Michael Meeks - 9/10/2001 Build sheriff commits are welcome - in accordance with the relevant build sheriff constraints. Members of the GNOME packaging product may commit fixes to the .spec files. ORBit2-2.14.19/ORBit.spec.in0000644000175000001440000001503511334247617012122 00000000000000%define __libtoolize /bin/true %define __spec_install_post /usr/lib/rpm/brp-compress Summary: A high-performance CORBA Object Request Broker. Name: ORBit2 Version: @ORBIT_VERSION@ Release: 1 Source: %{name}-%{version}.tar.gz Group: System Environment/Daemons License: LGPL/GPL BuildRoot: %{_tmppath}/%{name}-%{version}-root Prereq: /sbin/install-info URL: http://www.labs.redhat.com/orbit/ BuildRequires: pkgconfig >= 0.8 Requires: glib2 >= @GLIB_REQUIRED@ Requires: libIDL >= @LIBIDL_REQUIRED@ BuildRequires: glib2-devel >= @GLIB_REQUIRED@ BuildRequires: libIDL-devel >= @LIBIDL_REQUIRED@ %description ORBit is a high-performance CORBA (Common Object Request Broker Architecture) ORB (object request broker). It allows programs to send requests and receive replies from other programs, regardless of the locations of the two programs. CORBA is an architecture that enables communication between program objects, regardless of the programming language they're written in or the operating system they run on. You will need to install this package and ORBit-devel if you want to write programs that use CORBA technology. %package devel Summary: Development libraries, header files and utilities for ORBit. Group: Development/Libraries Requires: %name = %{version} Requires: indent Requires: pkgconfig >= 0.8 Requires: glib2 >= @GLIB_REQUIRED@ Requires: glib2-devel >= @GLIB_REQUIRED@ Requires: libIDL >= @LIBIDL_REQUIRED@ Requires: libIDL-devel >= @LIBIDL_REQUIRED@ %description devel ORBit is a high-performance CORBA (Common Object Request Broker Architecture) ORB (object request broker) with support for the C language. This package contains the header files, libraries and utilities necessary to write programs that use CORBA technology. If you want to write such programs, you'll also need to install the ORBIT package. %prep %setup -q mv ltmain.sh ltmain.sh.orig sed s/relink=yes/relink=no/ ltmain.sh.orig > ltmain.sh %build %configure make #%{?_smp_mflags} %install rm -rf %{buildroot} %makeinstall %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post devel %preun devel %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README TODO %{_libdir}/*.so.* %dir %{_libdir}/orbit-2.0/ %{_bindir}/linc-cleanup-sockets %files devel %defattr(-,root,root) %doc /usr/share/gtk-doc/html/ORBit2/ %{_bindir}/orbit-idl-2 %{_bindir}/typelib-dump %{_bindir}/orbit2-config %{_bindir}/ior-decode-2 %{_libdir}/*a %{_libdir}/*.so %{_libdir}/orbit-2.0/*.so %{_libdir}/orbit-2.0/*a %{_libdir}/pkgconfig/* %{_includedir}/* %{_datadir}/aclocal/* %{_datadir}/idl/orbit-2.0/* %changelog * Tue Mar 05 2002 Chris Chabot - Cleaned up formatting - made into .spec.in - expanded deps * Fri Feb 01 2002 Roy-Magne Mo - Added deps * Tue Jan 22 2002 Gregory Leblanc - removed Conflicts line - cleaned up %files section - removed duplicate glib-devel requires line * Sat Jan 19 2002 Chris Chabot - Imported spec into gnome 2.0 alpha - Bumped version to 2.3.102 - Changed requires accordingly - Minor cleanups * Wed Jan 09 2002 Tim Powers - automated rebuild * Wed Jan 2 2002 Havoc Pennington - build system somehow built against libglib-1.3.so.11 even though pkg-config found 1.3.12? wtf? trying again * Wed Jan 2 2002 Havoc Pennington - 2.3.100.90 snap * Mon Nov 26 2001 Havoc Pennington - 2.3.99 * Sun Nov 25 2001 Havoc Pennington - new snap 2.3.97.90, rebuild for glib 1.3.11 * Fri Oct 26 2001 Havoc Pennington - new snap, glib 1.3.10 rebuild * Tue Oct 9 2001 Havoc Pennington - check rebuild against new linc with headers moved - remove epoch, that was a screwup * Thu Oct 4 2001 Havoc Pennington - cvs snap - require specific glib2 * Thu Sep 27 2001 Havoc Pennington - 2.3.95 tarball - depend on new standalone libIDL, remove all libIDL stuff from file list * Fri Sep 21 2001 Havoc Pennington - require specific linc version, unrequire specific glib version since we get that via linc * Mon Sep 17 2001 Havoc Pennington - newer orbit2 from CVS * Thu Sep 13 2001 Havoc Pennington - conflict with old orbit with headers not moved * Wed Sep 12 2001 Havoc Pennington - renaming more things - remove smp flags, doesn't work atm - fix .pc file, trying to get bonobo-activation to build * Tue Sep 11 2001 Havoc Pennington - kill all file conflicts with ORBit1 * Mon Sep 10 2001 Havoc Pennington - convert to ORBit2 spec file (from ORBit original) * Tue Jul 24 2001 Alexander Larsson - Added glib-devel BuildRequires * Thu Jun 21 2001 Elliot Lee 0.5.8-2 - Use _smp_mflags if possible. * Mon May 14 2001 Jonathan Blandford - bumped version * Thu Mar 01 2001 Owen Taylor - Rebuild for GTK+-1.2.9 * Tue Jan 30 2001 Elliot Lee - 0.5.7 for real * Thu Jan 18 2001 Elliot Lee - 0.5.7 * Tue Dec 19 2000 Elliot Lee - 0.5.6 * Thu Nov 30 2000 Elliot Lee - 0.5.5 * Fri Aug 11 2000 Jonathan Blandford - Up Epoch and release * Tue Jul 25 2000 Elliot Lee - 0.5.3 * Wed Jul 19 2000 Jonathan Blandford - fixed to work with new cpp. * Wed Jul 12 2000 Prospector - automatic rebuild * Tue Jul 11 2000 Jonathan Blandford - Upgraded to 0.5.2 - a bug fix release. * Tue Jun 27 2000 Havoc Pennington - Trying to build the package for Preston and the build system wants a new changelog entry * Sat Jun 24 2000 Preston Brown - defattr the devel pkg - FHS paths * Fri May 19 2000 Jonathan Blandford - Upgraded to 0.5.1 * Tue Feb 3 2000 Elliot Lee 0.5.0-3 - Strip shared libraries * Mon Aug 30 1999 Elliot Lee 0.4.94-1 - Spec file fixes from RHL 6.0. * Wed Jun 2 1999 Jose Mercado - Fixed configure.in so spec.in could be used. * Mon Nov 23 1998 Pablo Saratxaga - improved %files section, and added use of %{prefix} and install-info (well,... no. The info file has not dir info inside, commented out) ORBit2-2.14.19/README0000644000175000001440000000116011334247617010534 00000000000000Code for an ORB written in C will spontaneously evolve here, see http://www.gnome.org/projects/ORBit2 for more information. ORBit is part of the GNU project, and is a GNU program. For more information on the Free Software Foundation and GNU, visit http://www.gnu.org/ To checkout ORBit2 grab 'linc' and 'ORBit2' from anoncvs, for more details on Gnome CVS see http://developer.gnome.org/ Please read the HACKING file for information on where to send bug-reports and/or patches. Read 'NEWS', 'TODO', and 'docs/*' if you're bored. Notes on installing on Digital UNIX 4.0: Set $SHELL to /bin/ksh before running configure ORBit2-2.14.19/ORBit-imodule-2.0-uninstalled.pc.in0000644000175000001440000000051111334247617016034 00000000000000prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ Name: ORBit-imodule-2.0 Description: ORBit runtime typelib generation service. Version: @ORBIT_VERSION@ Requires: ORBit-2.0 libIDL-2.0 Libs: ${pc_top_builddir}/${pcfiledir}/libORBit-imodule-2.la Cflags: -I${pc_top_builddir}/${pcfiledir}/include ORBit2-2.14.19/ORBit-CosNaming-2.0-uninstalled.pc.in0000644000175000001440000000055011334247617016257 00000000000000prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ Name: ORBit-CosNaming-2.0 Description: High-performance CORBA Object Request Broker - Naming Service. Version: @ORBIT_VERSION@ Requires: ORBit-2.0 Libs: ${pc_top_builddir}/${pcfiledir}/src/services/name/libORBitCosNaming-2.la Cflags: -I${pc_top_builddir}/${pcfiledir}/include ORBit2-2.14.19/gtk-doc.make0000644000175000001440000001567111450333725012052 00000000000000# -*- mode: makefile -*- #################################### # Everything below here is generic # #################################### if GTK_DOC_USE_LIBTOOL GTKDOC_CC = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) GTKDOC_LD = $(LIBTOOL) --tag=CC --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) GTKDOC_RUN = $(LIBTOOL) --mode=execute else GTKDOC_CC = $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) GTKDOC_LD = $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) GTKDOC_RUN = endif # We set GPATH here; this gives us semantics for GNU make # which are more like other make's VPATH, when it comes to # whether a source that is a target of one rule is then # searched for in VPATH/GPATH. # GPATH = $(srcdir) TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE) EXTRA_DIST = \ $(content_files) \ $(HTML_IMAGES) \ $(DOC_MAIN_SGML_FILE) \ $(DOC_MODULE)-sections.txt \ $(DOC_MODULE)-overrides.txt DOC_STAMPS=scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp \ pdf-build.stamp \ $(srcdir)/tmpl.stamp $(srcdir)/sgml.stamp $(srcdir)/html.stamp \ $(srcdir)/pdf.stamp SCANOBJ_FILES = \ $(DOC_MODULE).args \ $(DOC_MODULE).hierarchy \ $(DOC_MODULE).interfaces \ $(DOC_MODULE).prerequisites \ $(DOC_MODULE).signals REPORT_FILES = \ $(DOC_MODULE)-undocumented.txt \ $(DOC_MODULE)-undeclared.txt \ $(DOC_MODULE)-unused.txt CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS) if ENABLE_GTK_DOC if GTK_DOC_BUILD_HTML HTML_BUILD_STAMP=html-build.stamp else HTML_BUILD_STAMP= endif if GTK_DOC_BUILD_PDF PDF_BUILD_STAMP=pdf-build.stamp else PDF_BUILD_STAMP= endif all-local: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) else all-local: endif docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) $(REPORT_FILES): sgml-build.stamp #### scan #### scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB) @echo 'gtk-doc: Scanning header files' @-chmod -R u+w $(srcdir) @_source_dir='' ; for i in $(DOC_SOURCE_DIR) ; do \ _source_dir="$${_source_dir} --source-dir=$$i" ; \ done ; \ cd $(srcdir) && \ gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES) @if grep -l '^..*$$' $(srcdir)/$(DOC_MODULE).types > /dev/null 2>&1 ; then \ CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) --output-dir=$(srcdir) ; \ else \ cd $(srcdir) ; \ for i in $(SCANOBJ_FILES) ; do \ test -f $$i || touch $$i ; \ done \ fi @touch scan-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp @true #### templates #### tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt @echo 'gtk-doc: Rebuilding template files' @-chmod -R u+w $(srcdir) @cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS) @touch tmpl-build.stamp tmpl.stamp: tmpl-build.stamp @true $(srcdir)/tmpl/*.sgml: @true #### xml #### sgml-build.stamp: tmpl.stamp $(DOC_MODULE)-sections.txt $(srcdir)/tmpl/*.sgml $(expand_content_files) @echo 'gtk-doc: Building XML' @-chmod -R u+w $(srcdir) @_source_dir='' ; for i in $(DOC_SOURCE_DIR) ; do \ _source_dir="$${_source_dir} --source-dir=$$i" ; \ done ; \ cd $(srcdir) && \ gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS) @touch sgml-build.stamp sgml.stamp: sgml-build.stamp @true #### html #### html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) @echo 'gtk-doc: Building HTML' @-chmod -R u+w $(srcdir) @rm -rf $(srcdir)/html @mkdir $(srcdir)/html @mkhtml_options=""; \ gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \ if test "$(?)" = "0"; then \ mkhtml_options=--path="$(srcdir)"; \ fi; \ cd $(srcdir)/html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) @test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html ) @echo 'gtk-doc: Fixing cross-references' @cd $(srcdir) && gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) @touch html-build.stamp #### pdf #### pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) @echo 'gtk-doc: Building PDF' @-chmod -R u+w $(srcdir) @rm -rf $(srcdir)/$(DOC_MODULE).pdf @mkpdf_imgdirs=""; \ if test "x$(HTML_IMAGES)" != "x"; then \ for img in $(HTML_IMAGES); do \ part=`dirname $$img`; \ echo $$mkpdf_imgdirs | grep >/dev/null "\-\-imgdir=$$part "; \ if test $$? != 0; then \ mkpdf_imgdirs="$$mkpdf_imgdirs --imgdir=$$part"; \ fi; \ done; \ fi; \ cd $(srcdir) && gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_imgdirs $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS) @touch pdf-build.stamp ############## clean-local: rm -f *~ *.bak rm -rf .libs distclean-local: cd $(srcdir) && \ rm -rf xml $(REPORT_FILES) $(DOC_MODULE).pdf \ $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt maintainer-clean-local: clean cd $(srcdir) && rm -rf xml html install-data-local: @installfiles=`echo $(srcdir)/html/*`; \ if test "$$installfiles" = '$(srcdir)/html/*'; \ then echo '-- Nothing to install' ; \ else \ if test -n "$(DOC_MODULE_VERSION)"; then \ installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ else \ installdir="$(DESTDIR)$(TARGET_DIR)"; \ fi; \ $(mkinstalldirs) $${installdir} ; \ for i in $$installfiles; do \ echo '-- Installing '$$i ; \ $(INSTALL_DATA) $$i $${installdir}; \ done; \ if test -n "$(DOC_MODULE_VERSION)"; then \ mv -f $${installdir}/$(DOC_MODULE).devhelp2 \ $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \ mv -f $${installdir}/$(DOC_MODULE).devhelp \ $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp; \ fi; \ $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir}; \ fi uninstall-local: @if test -n "$(DOC_MODULE_VERSION)"; then \ installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ else \ installdir="$(DESTDIR)$(TARGET_DIR)"; \ fi; \ rm -rf $${installdir} # # Require gtk-doc when making dist # if ENABLE_GTK_DOC dist-check-gtkdoc: else dist-check-gtkdoc: @echo "*** gtk-doc must be installed and enabled in order to make dist" @false endif dist-hook: dist-check-gtkdoc dist-hook-local mkdir $(distdir)/tmpl mkdir $(distdir)/html -cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl cp $(srcdir)/html/* $(distdir)/html -cp $(srcdir)/$(DOC_MODULE).pdf $(distdir)/ -cp $(srcdir)/$(DOC_MODULE).types $(distdir)/ -cp $(srcdir)/$(DOC_MODULE)-sections.txt $(distdir)/ cd $(distdir) && rm -f $(DISTCLEANFILES) $(GTKDOC_REBASE) --online --relative --html-dir=$(distdir)/html .PHONY : dist-hook-local docs ORBit2-2.14.19/aclocal.m40000644000175000001440000117351411450333730011521 00000000000000# generated automatically by aclocal 1.11.1 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],, [m4_warning([this file was generated for autoconf 2.67. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'.])]) # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.11.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.11.1])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 9 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 10 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 5 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 16 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.62])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl dnl The `parallel-tests' driver may need to know about EXEEXT, so add the dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- # From Jim Meyering # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_MAINTAINER_MODE([DEFAULT-MODE]) # ---------------------------------- # Control maintainer-specific portions of Makefiles. # Default is to disable them, unless `enable' is passed literally. # For symmetry, `disable' may be passed as well. Anyway, the user # can override the default with the --enable/--disable switch. AC_DEFUN([AM_MAINTAINER_MODE], [m4_case(m4_default([$1], [disable]), [enable], [m4_define([am_maintainer_other], [disable])], [disable], [m4_define([am_maintainer_other], [enable])], [m4_define([am_maintainer_other], [enable]) m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) dnl maintainer-mode's default is 'disable' unless 'enable' is passed AC_ARG_ENABLE([maintainer-mode], [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful (and sometimes confusing) to the casual installer], [USE_MAINTAINER_MODE=$enableval], [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) AC_MSG_RESULT([$USE_MAINTAINER_MODE]) AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) MAINT=$MAINTAINER_MODE_TRUE AC_SUBST([MAINT])dnl ] ) AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 6 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. m4_define([_LT_COPYING], [dnl # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ]) # serial 56 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT AC_BEFORE([$0], [LT_LANG])dnl AC_BEFORE([$0], [LT_OUTPUT])dnl AC_BEFORE([$0], [LTDL_INIT])dnl m4_require([_LT_CHECK_BUILDDIR])dnl dnl Autoconf doesn't catch unexpanded LT_ macros by default: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 dnl unless we require an AC_DEFUNed macro: AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl AC_REQUIRE([LTOBSOLETE_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl _LT_SETUP # Only expand once: m4_define([LT_INIT]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. m4_defun([_LT_CC_BASENAME], [for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi ]) if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl _LT_PROG_ECHO_BACKSLASH case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([["`\\]]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from `configure', and `config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # `config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain="$ac_aux_dir/ltmain.sh" ])# _LT_PROG_LTMAIN # So that we can recreate a full libtool script including additional # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS # in macros and then make a single call at the end using the `libtool' # label. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) # ---------------------------------------- # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL_INIT], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_INIT]) # _LT_CONFIG_LIBTOOL([COMMANDS]) # ------------------------------ # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) # ----------------------------------------------------- m4_defun([_LT_CONFIG_SAVE_COMMANDS], [_LT_CONFIG_LIBTOOL([$1]) _LT_CONFIG_LIBTOOL_INIT([$2]) ]) # _LT_FORMAT_COMMENT([COMMENT]) # ----------------------------- # Add leading comment marks to the start of each line, and a trailing # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) # ------------------------------------------------------------------- # CONFIGNAME is the name given to the value in the libtool script. # VARNAME is the (base) name used in the configure script. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on # VARNAME. Any other value will be used directly. m4_define([_LT_DECL], [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) # -------------------------------------------------------- m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_tag_varnames], [_lt_decl_filter([tagged?], [yes], $@)]) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) # --------------------------------------------------------- m4_define([_lt_decl_filter], [m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl ]) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) # -------------------------------------------------- m4_define([lt_decl_quote_varnames], [_lt_decl_filter([value], [1], $@)]) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_dquote_varnames], [_lt_decl_filter([value], [2], $@)]) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_varnames_tagged], [m4_assert([$# <= 2])dnl _$0(m4_quote(m4_default([$1], [[, ]])), m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) m4_define([_lt_decl_varnames_tagged], [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_all_varnames], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl ]) m4_define([_lt_decl_all_varnames], [lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl ]) # _LT_CONFIG_STATUS_DECLARE([VARNAME]) # ------------------------------------ # Quote a variable value, and forward it to `config.status' so that its # declaration there will have the same value as in `configure'. VARNAME # must have a single quote delimited value for this to work. m4_define([_LT_CONFIG_STATUS_DECLARE], [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) # _LT_CONFIG_STATUS_DECLARATIONS # ------------------------------ # We delimit libtool config variables with single quotes, so when # we write them to config.status, we have to be sure to quote all # embedded single quotes properly. In configure, this macro expands # each variable declared with _LT_DECL (and _LT_TAGDECL) into: # # ='`$ECHO "X$" | $Xsed -e "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags="_LT_TAGS"dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into `config.status', and then the shell code to quote escape them in # for loops in `config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' _LT_CONFIG_STATUS_DECLARATIONS LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # Quote evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Fix-up fallback echo if it was mangled by the above quoting rules. case \$lt_ECHO in *'\\\[$]0 --fallback-echo"')dnl " lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` ;; esac _LT_OUTPUT_LIBTOOL_INIT ]) # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) cat >"$CONFIG_LT" <<_LTEOF #! $SHELL # Generated by $as_me. # Run this file to recreate a libtool stub with the current configuration. lt_cl_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD lt_cl_help="\ \`$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2008 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test $[#] != 0 do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try \`$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try \`$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_EXIT(0) _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. if test "$no_create" != yes; then lt_cl_success=: test "$silent" = yes && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) fi ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # NOTE: Changes made to this file will be lost: look at ltmain.sh. # _LT_COPYING _LT_LIBTOOL_TAGS # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac _LT_PROG_LTMAIN # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) _LT_PROG_XSI_SHELLFNS sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], [cat <<_LT_EOF >> "$ofile" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS="$save_LDFLAGS" ]) case $host_os in rhapsody* | darwin1.[[012]]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[[012]]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _LT_DARWIN_LINKER_FEATURES # -------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(whole_archive_flag_spec, $1)='' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=echo _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" m4_if([$1], [CXX], [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX # ----------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl AC_LINK_IFELSE(AC_LANG_PROGRAM,[ lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], [AC_DIVERT_PUSH(NOTICE)]) $1 AC_DIVERT_POP ])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Add some code to the start of the generated configure script which # will find an echo command which doesn't interpret backslashes. m4_defun([_LT_PROG_ECHO_BACKSLASH], [_LT_SHELL_INIT([ # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$lt_ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` ;; esac ECHO=${lt_ECHO-echo} if test "X[$]1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X[$]1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then # Yippee, $ECHO works! : else # Restart under the correct shell. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} fi if test "X[$]1" = X--fallback-echo; then # used as fallback echo shift cat <<_LT_EOF [$]* _LT_EOF exit 0 fi # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test -z "$lt_ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if { echo_test_string=`eval $cmd`; } 2>/dev/null && { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null then break fi done fi if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$ECHO" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. ECHO='print -r' elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} else # Try using printf. ECHO='printf %s\n' if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL ECHO="$CONFIG_SHELL [$]0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$CONFIG_SHELL [$]0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "[$]0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} else # Oops. We lost completely, so just stick with echo. ECHO=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. lt_ECHO=$ECHO if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" fi AC_SUBST(lt_ECHO) ]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that does not interpret backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" ])# _LT_ENABLE_LOCK # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [AC_CHECK_TOOL(AR, ar, false) test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1]) AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $RM conftest* ]) if test x"[$]$2" = xyes; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ = "XX$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n $lt_cv_sys_max_cmd_len ; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF [#line __oline__ "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); return status; }] _LT_EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) ]) ]) ]) ]) ]) ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links="nottested" if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", [Define to the sub-directory in which libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existent directories. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_OBJDUMP])dnl m4_require([_LT_DECL_SED])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` else lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[[4-9]]*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[123]]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[[3-9]]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[List of archive names. First name is the real one, the rest are links. The last name is the one that the linker finds with -lNAME]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], [Run-time system search path for libraries]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program which can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program which can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux* | k*bsd*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method == "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi]) if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) AC_SUBST([DUMPBIN]) if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[[ABCDGISTW]]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK ['"\ " {last_section=section; section=\$ 3};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx]" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ const struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[[]] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= AC_MSG_CHECKING([for $compiler option to produce PIC]) m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64 which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC*) # IBM XL 8.0 on PPC _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl*) # IBM XL C 8.0/Fortran 10.1 on PPC _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw* | cegcc*) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. dnl Note also adjust exclude_expsyms for C++ above. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac _LT_TAGVAR(ld_shlibs, $1)=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[[3-9]]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag= tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 _LT_TAGVAR(whole_archive_flag_spec, $1)= tmp_sharedflag='--shared' ;; xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; freebsd1*) _LT_TAGVAR(ld_shlibs, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" AC_LINK_IFELSE(int foo(void) {}, _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' ) LDFLAGS="$save_LDFLAGS" else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_MSG_CHECKING([whether -lc should be explicitly linked in]) $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then _LT_TAGVAR(archive_cmds_need_lc, $1)=no else _LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], [[If ld is used when linking, flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary and the resulting library dependency is "absolute", i.e impossible to change by setting ${shlibpath_var} if the library is relocated]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [fix_srcfile_path], [1], [Fix the shell variable $srcfile for the compiler]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_TAG_COMPILER # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report which library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC="$lt_save_CC" ])# _LT_LANG_C_CONFIG # _LT_PROG_CXX # ------------ # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ # compiler, we have our own version here. m4_defun([_LT_PROG_CXX], [ pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) AC_PROG_CXX if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi popdef([AC_MSG_ERROR]) ])# _LT_PROG_CXX dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([_LT_PROG_CXX], []) # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [AC_REQUIRE([_LT_PROG_CXX])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_caught_CXX_error" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration LT_PATH_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GXX" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared # libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd[[12]]*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ $RANLIB $oldlib' _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; *) # Version 6 will use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; xl*) # IBM XL 8.0 on PPC, with GNU ld _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd2*) # C++ shared libraries are fairly broken _LT_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd=echo else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ $RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(GCC, $1)="$GXX" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test "$_lt_caught_CXX_error" != yes AC_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ]) dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" || test $p = "-R"; then prev=$p continue else prev= fi if test "$pre_test_object_deps_done" = no; then case $p in -L* | -R*) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)="${prev}${p}" else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" fi fi ;; *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)="$p" else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)="$p" else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_PROG_F77 # ------------ # Since AC_PROG_F77 is broken, in that it returns the empty string # if there is no fortran compiler, we have our own version here. m4_defun([_LT_PROG_F77], [ pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) AC_PROG_F77 if test -z "$F77" || test "X$F77" = "Xno"; then _lt_disable_F77=yes fi popdef([AC_MSG_ERROR]) ])# _LT_PROG_F77 dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([_LT_PROG_F77], []) # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_REQUIRE([_LT_PROG_F77])dnl AC_LANG_PUSH(Fortran 77) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_F77" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC CC=${F77-"f77"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$G77" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" fi # test "$_lt_disable_F77" != yes AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_PROG_FC # ----------- # Since AC_PROG_FC is broken, in that it returns the empty string # if there is no fortran compiler, we have our own version here. m4_defun([_LT_PROG_FC], [ pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) AC_PROG_FC if test -z "$FC" || test "X$FC" = "Xno"; then _lt_disable_FC=yes fi popdef([AC_MSG_ERROR]) ])# _LT_PROG_FC dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([_LT_PROG_FC], []) # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_REQUIRE([_LT_PROG_FC])dnl AC_LANG_PUSH(Fortran) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_FC" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC CC=${FC-"f95"} compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" fi # test "$_lt_disable_FC" != yes AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)="$LD" _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC="$lt_save_CC" ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC GCC= CC=${RC-"windres"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC="$lt_save_CC" ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes AC_MSG_RESULT([$xsi_shell]) _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) AC_MSG_CHECKING([whether the shell understands "+="]) lt_shell_append=no ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes AC_MSG_RESULT([$lt_shell_append]) _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PROG_XSI_SHELLFNS # --------------------- # Bourne and XSI compatible variants of some useful shell functions. m4_defun([_LT_PROG_XSI_SHELLFNS], [case $xsi_shell in yes) cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac } # func_basename file func_basename () { func_basename_result="${1##*/}" } # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac func_basename_result="${1##*/}" } # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). func_stripname () { # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary parameter first. func_stripname_result=${3} func_stripname_result=${func_stripname_result#"${1}"} func_stripname_result=${func_stripname_result%"${2}"} } # func_opt_split func_opt_split () { func_opt_split_opt=${1%%=*} func_opt_split_arg=${1#*=} } # func_lo2o object func_lo2o () { case ${1} in *.lo) func_lo2o_result=${1%.lo}.${objext} ;; *) func_lo2o_result=${1} ;; esac } # func_xform libobj-or-source func_xform () { func_xform_result=${1%.*}.lo } # func_arith arithmetic-term... func_arith () { func_arith_result=$(( $[*] )) } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=${#1} } _LT_EOF ;; *) # Bourne compatible functions. cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi } # func_basename file func_basename () { func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` } dnl func_dirname_and_basename dnl A portable version of this function is already defined in general.m4sh dnl so there is no need for it here. # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # func_strip_suffix prefix name func_stripname () { case ${2} in .*) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; esac } # sed scripts: my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' my_sed_long_arg='1s/^-[[^=]]*=//' # func_opt_split func_opt_split () { func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` } # func_lo2o object func_lo2o () { func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` } # func_xform libobj-or-source func_xform () { func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` } # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "$[@]"` } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` } _LT_EOF esac case $lt_shell_append in yes) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$[1]+=\$[2]" } _LT_EOF ;; *) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$[1]=\$$[1]\$[2]" } _LT_EOF ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 6 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option `$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl `shared' nor `disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) ]) ])# _LT_SET_OPTIONS # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `dlopen' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [0], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl ])# win32-dll AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `win32-dll' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the `shared' and # `disable-shared' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the `static' and # `disable-static' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the `fast-install' # and `disable-fast-install' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `fast-install' option into LT_INIT's first parameter.]) ]) AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `disable-fast-install' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the `pic-only' and `no-pic' # LT_INIT options. # MODE is either `yes' or `no'. If omitted, it defaults to `both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [pic_mode="$withval"], [pic_mode=default]) test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 6 ltsugar.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) # lt_join(SEP, ARG1, [ARG2...]) # ----------------------------- # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their # associated separator. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier # versions in m4sugar had bugs. m4_define([lt_join], [m4_if([$#], [1], [], [$#], [2], [[$2]], [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) m4_define([_lt_join], [m4_if([$#$2], [2], [], [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) # lt_car(LIST) # lt_cdr(LIST) # ------------ # Manipulate m4 lists. # These macros are necessary as long as will still need to support # Autoconf-2.59 which quotes differently. m4_define([lt_car], [[$1]]) m4_define([lt_cdr], [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], [$#], 1, [], [m4_dquote(m4_shift($@))])]) m4_define([lt_unquote], $1) # lt_append(MACRO-NAME, STRING, [SEPARATOR]) # ------------------------------------------ # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. # Note that neither SEPARATOR nor STRING are expanded; they are appended # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). # No SEPARATOR is output if MACRO-NAME was previously undefined (different # than defined and empty). # # This macro is needed until we can rely on Autoconf 2.62, since earlier # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. m4_define([lt_append], [m4_define([$1], m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) # ---------------------------------------------------------- # Produce a SEP delimited list of all paired combinations of elements of # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list # has the form PREFIXmINFIXSUFFIXn. # Needed until we can rely on m4_combine added in Autoconf 2.62. m4_define([lt_combine], [m4_if(m4_eval([$# > 3]), [1], [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl [[m4_foreach([_Lt_prefix], [$2], [m4_foreach([_Lt_suffix], ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) # ----------------------------------------------------------------------- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. m4_define([lt_if_append_uniq], [m4_ifdef([$1], [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], [lt_append([$1], [$2], [$3])$4], [$5])], [lt_append([$1], [$2], [$3])$4])]) # lt_dict_add(DICT, KEY, VALUE) # ----------------------------- m4_define([lt_dict_add], [m4_define([$1($2)], [$3])]) # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) # -------------------------------------------- m4_define([lt_dict_add_subkey], [m4_define([$1($2:$3)], [$4])]) # lt_dict_fetch(DICT, KEY, [SUBKEY]) # ---------------------------------- m4_define([lt_dict_fetch], [m4_ifval([$3], m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) # ----------------------------------------------------------------- m4_define([lt_if_dict_fetch], [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], [$5], [$6])]) # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) # -------------------------------------------------------------- m4_define([lt_dict_filter], [m4_if([$5], [], [], [lt_join(m4_quote(m4_default([$4], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl ]) # ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # Generated from ltversion.in. # serial 3017 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.2.6b]) m4_define([LT_PACKAGE_REVISION], [1.3017]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.2.6b' macro_revision='1.3017' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004. # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 4 lt~obsolete.m4 # These exist entirely to fool aclocal when bootstrapping libtool. # # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) # which have later been changed to m4_define as they aren't part of the # exported API, or moved to Autoconf or Automake where they belong. # # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # using a macro with the same name in our local m4/libtool.m4 it'll # pull the old libtool.m4 in (it doesn't see our shiny new m4_define # and doesn't know about Autoconf macros at all.) # # So we provide this file, which has a silly filename so it's always # included after everything else. This provides aclocal with the # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything # because those macros already exist, or will be overwritten later. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. # # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. # Yes, that means every name once taken will need to remain here until # we give up compatibility with versions before 1.7, at which point # we need to keep only those names which we still refer to. # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 1 (pkg-config-0.24) # # Copyright © 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) # only at the first occurence in configure.ac, so if the first place # it's called might be skipped (such as if it is within an "if", you # have to call PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])[]dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])# PKG_CHECK_MODULES dnl -*- mode: autoconf -*- # serial 1 dnl Usage: dnl GTK_DOC_CHECK([minimum-gtk-doc-version]) AC_DEFUN([GTK_DOC_CHECK], [ AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first dnl check for tools we added during development AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check]) AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true]) AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf]) dnl for overriding the documentation installation directory AC_ARG_WITH([html-dir], AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),, [with_html_dir='${datadir}/gtk-doc/html']) HTML_DIR="$with_html_dir" AC_SUBST([HTML_DIR]) dnl enable/disable documentation building AC_ARG_ENABLE([gtk-doc], AS_HELP_STRING([--enable-gtk-doc], [use gtk-doc to build documentation [[default=no]]]),, [enable_gtk_doc=no]) if test x$enable_gtk_doc = xyes; then ifelse([$1],[], [PKG_CHECK_EXISTS([gtk-doc],, AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))], [PKG_CHECK_EXISTS([gtk-doc >= $1],, AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))]) fi AC_MSG_CHECKING([whether to build gtk-doc documentation]) AC_MSG_RESULT($enable_gtk_doc) dnl enable/disable output formats AC_ARG_ENABLE([gtk-doc-html], AS_HELP_STRING([--enable-gtk-doc-html], [build documentation in html format [[default=yes]]]),, [enable_gtk_doc_html=yes]) AC_ARG_ENABLE([gtk-doc-pdf], AS_HELP_STRING([--enable-gtk-doc-pdf], [build documentation in pdf format [[default=no]]]),, [enable_gtk_doc_pdf=no]) if test -z "$GTKDOC_MKPDF"; then enable_gtk_doc_pdf=no fi AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes]) AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes]) AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes]) AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"]) AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"]) ]) m4_include([acinclude.m4]) ORBit2-2.14.19/acinclude.m40000644000175000001440000001734011334247617012054 00000000000000####################### # type alignment test # ####################### AC_DEFUN([AC_CHECK_ALIGNOF], [changequote(<<, >>)dnl dnl The name to #define. define(<>, translit(orbit_alignof_$1, [a-z *], [A-Z_P]))dnl dnl The cache variable name. define(<>, translit(ac_cv_alignof_$1, [ *], [_p]))dnl changequote([, ])dnl AC_MSG_CHECKING(alignment of $1) align_save_libs="$LIBS" LIBS="$ORBIT_LIBS $LIBS" AC_CACHE_VAL(AC_CV_NAME, [AC_TRY_RUN( [ #include #include #include "$srcdir/include/orbit/util/basic_types.h" typedef struct {char s1;} CORBA_struct; typedef void *CORBA_pointer; struct test {char s1; $1 s2;}; main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", &(((struct test*)0)->s2)); exit(0); } ], AC_CV_NAME=`cat conftestval`, AC_CV_NAME=0, AC_CV_NAME=0) ])dnl AC_MSG_RESULT($AC_CV_NAME) if test "$AC_CV_NAME" = "0" ; then AC_MSG_ERROR([Failed to find alignment. Check config.log for details.]) fi LIBS="$align_save_libs" AC_TYPE_NAME=$AC_CV_NAME AC_SUBST(AC_TYPE_NAME) undefine([AC_TYPE_NAME])dnl undefine([AC_CV_NAME])dnl ]) dnl @synopsis AX_CFLAGS_GCC_OPTION (optionflag [,[shellvar][,[A][,[NA]]]) dnl dnl AX_CFLAGS_GCC_OPTION(-fvomit-frame) would show a message as like dnl "checking CFLAGS for gcc -fvomit-frame ... yes" and adds dnl the optionflag to CFLAGS if it is understood. You can override dnl the shellvar-default of CFLAGS of course. The order of arguments dnl stems from the explicit macros like AX_CFLAGS_WARN_ALL. dnl dnl The cousin AX_CXXFLAGS_GCC_OPTION would check for an option to add dnl to CXXFLAGS - and it uses the autoconf setup for C++ instead of C dnl (since it is possible to use different compilers for C and C++). dnl dnl The macro is a lot simpler than any special AX_CFLAGS_* macro (or dnl ac_cxx_rtti.m4 macro) but allows to check for arbitrary options. dnl However, if you use this macro in a few places, it would be great dnl if you would make up a new function-macro and submit it to the dnl ac-archive. dnl dnl - $1 option-to-check-for : required ("-option" as non-value) dnl - $2 shell-variable-to-add-to : CFLAGS (or CXXFLAGS in the other case) dnl - $3 action-if-found : add value to shellvariable dnl - $4 action-if-not-found : nothing dnl dnl note: in earlier versions, $1-$2 were swapped. We try to detect the dnl situation and accept a $2=~/-/ as being the old option-to-check-for. dnl dnl also: there are other variants that emerged from the original macro dnl variant which did just test an option to be possibly added. However, dnl some compilers accept an option silently, or possibly for just dnl another option that was not intended. Therefore, we have to do a dnl generic test for a compiler family. For gcc we check "-pedantic" dnl being accepted which is also understood by compilers who just want dnl to be compatible with gcc even when not being made from gcc sources. dnl dnl see also: dnl AX_CFLAGS_SUN_OPTION AX_CFLAGS_HPUX_OPTION dnl AX_CFLAGS_AIX_OPTION AX_CFLAGS_IRIX_OPTION dnl dnl @, tested, experimental dnl @version $Id$ dnl @author Guido Draheim dnl AC_DEFUN([AX_CFLAGS_GCC_OPTION_OLD], [dnl AS_VAR_PUSHDEF([FLAGS],[CFLAGS])dnl AS_VAR_PUSHDEF([VAR],[ac_cv_cflags_gcc_option_$2])dnl AC_CACHE_CHECK([m4_ifval($1,$1,FLAGS) for gcc m4_ifval($2,$2,-option)], VAR,[VAR="no, unknown" AC_LANG_SAVE AC_LANG_C ac_save_[]FLAGS="$[]FLAGS" for ac_arg dnl in "-pedantic % m4_ifval($2,$2,-option)" dnl GCC # do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` AC_TRY_COMPILE([],[return 0;], [VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break]) done FLAGS="$ac_save_[]FLAGS" AC_LANG_RESTORE ]) case ".$VAR" in .ok|.ok,*) m4_ifvaln($3,$3) ;; .|.no|.no,*) m4_ifvaln($4,$4) ;; *) m4_ifvaln($3,$3,[ if echo " $[]m4_ifval($1,$1,FLAGS) " | grep " $VAR " 2>&1 >/dev/null then AC_RUN_LOG([: m4_ifval($1,$1,FLAGS) does contain $VAR]) else AC_RUN_LOG([: m4_ifval($1,$1,FLAGS)="$m4_ifval($1,$1,FLAGS) $VAR"]) m4_ifval($1,$1,FLAGS)="$m4_ifval($1,$1,FLAGS) $VAR" fi ]) ;; esac AS_VAR_POPDEF([VAR])dnl AS_VAR_POPDEF([FLAGS])dnl ]) dnl the only difference - the LANG selection... and the default FLAGS AC_DEFUN([AX_CXXFLAGS_GCC_OPTION_OLD], [dnl AS_VAR_PUSHDEF([FLAGS],[CXXFLAGS])dnl AS_VAR_PUSHDEF([VAR],[ac_cv_cxxflags_gcc_option_$2])dnl AC_CACHE_CHECK([m4_ifval($1,$1,FLAGS) for gcc m4_ifval($2,$2,-option)], VAR,[VAR="no, unknown" AC_LANG_SAVE AC_LANG_CXX ac_save_[]FLAGS="$[]FLAGS" for ac_arg dnl in "-pedantic % m4_ifval($2,$2,-option)" dnl GCC # do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` AC_TRY_COMPILE([],[return 0;], [VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break]) done FLAGS="$ac_save_[]FLAGS" AC_LANG_RESTORE ]) case ".$VAR" in .ok|.ok,*) m4_ifvaln($3,$3) ;; .|.no|.no,*) m4_ifvaln($4,$4) ;; *) m4_ifvaln($3,$3,[ if echo " $[]m4_ifval($1,$1,FLAGS) " | grep " $VAR " 2>&1 >/dev/null then AC_RUN_LOG([: m4_ifval($1,$1,FLAGS) does contain $VAR]) else AC_RUN_LOG([: m4_ifval($1,$1,FLAGS)="$m4_ifval($1,$1,FLAGS) $VAR"]) m4_ifval($1,$1,FLAGS)="$m4_ifval($1,$1,FLAGS) $VAR" fi ]) ;; esac AS_VAR_POPDEF([VAR])dnl AS_VAR_POPDEF([FLAGS])dnl ]) dnl ------------------------------------------------------------------------- AC_DEFUN([AX_CFLAGS_GCC_OPTION_NEW], [dnl AS_VAR_PUSHDEF([FLAGS],[CFLAGS])dnl AS_VAR_PUSHDEF([VAR],[ac_cv_cflags_gcc_option_$1])dnl AC_CACHE_CHECK([m4_ifval($2,$2,FLAGS) for gcc m4_ifval($1,$1,-option)], VAR,[VAR="no, unknown" AC_LANG_SAVE AC_LANG_C ac_save_[]FLAGS="$[]FLAGS" for ac_arg dnl in "-pedantic % m4_ifval($1,$1,-option)" dnl GCC # do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` AC_TRY_COMPILE([],[return 0;], [VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break]) done FLAGS="$ac_save_[]FLAGS" AC_LANG_RESTORE ]) case ".$VAR" in .ok|.ok,*) m4_ifvaln($3,$3) ;; .|.no|.no,*) m4_ifvaln($4,$4) ;; *) m4_ifvaln($3,$3,[ if echo " $[]m4_ifval($2,$2,FLAGS) " | grep " $VAR " 2>&1 >/dev/null then AC_RUN_LOG([: m4_ifval($2,$2,FLAGS) does contain $VAR]) else AC_RUN_LOG([: m4_ifval($2,$2,FLAGS)="$m4_ifval($2,$2,FLAGS) $VAR"]) m4_ifval($2,$2,FLAGS)="$m4_ifval($2,$2,FLAGS) $VAR" fi ]) ;; esac AS_VAR_POPDEF([VAR])dnl AS_VAR_POPDEF([FLAGS])dnl ]) dnl the only difference - the LANG selection... and the default FLAGS AC_DEFUN([AX_CXXFLAGS_GCC_OPTION_NEW], [dnl AS_VAR_PUSHDEF([FLAGS],[CXXFLAGS])dnl AS_VAR_PUSHDEF([VAR],[ac_cv_cxxflags_gcc_option_$1])dnl AC_CACHE_CHECK([m4_ifval($2,$2,FLAGS) for gcc m4_ifval($1,$1,-option)], VAR,[VAR="no, unknown" AC_LANG_SAVE AC_LANG_CXX ac_save_[]FLAGS="$[]FLAGS" for ac_arg dnl in "-pedantic % m4_ifval($1,$1,-option)" dnl GCC # do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` AC_TRY_COMPILE([],[return 0;], [VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break]) done FLAGS="$ac_save_[]FLAGS" AC_LANG_RESTORE ]) case ".$VAR" in .ok|.ok,*) m4_ifvaln($3,$3) ;; .|.no|.no,*) m4_ifvaln($4,$4) ;; *) m4_ifvaln($3,$3,[ if echo " $[]m4_ifval($2,$2,FLAGS) " | grep " $VAR " 2>&1 >/dev/null then AC_RUN_LOG([: m4_ifval($2,$2,FLAGS) does contain $VAR]) else AC_RUN_LOG([: m4_ifval($2,$2,FLAGS)="$m4_ifval($2,$2,FLAGS) $VAR"]) m4_ifval($2,$2,FLAGS)="$m4_ifval($2,$2,FLAGS) $VAR" fi ]) ;; esac AS_VAR_POPDEF([VAR])dnl AS_VAR_POPDEF([FLAGS])dnl ]) AC_DEFUN([AX_CFLAGS_GCC_OPTION],[ifelse(m4_bregexp([$2],[-]),-1, [AX_CFLAGS_GCC_OPTION_NEW($@)],[AX_CFLAGS_GCC_OPTION_OLD($@)])]) AC_DEFUN([AX_CXXFLAGS_GCC_OPTION],[ifelse(m4_bregexp([$2],[-]),-1, [AX_CXXFLAGS_GCC_OPTION_NEW($@)],[AX_CXXFLAGS_GCC_OPTION_OLD($@)])]) ORBit2-2.14.19/ChangeLog0000644000175000001440000107737011334247617011447 000000000000002009-05-11 Christian Persch * linc2/src/linc-connection.c: (link_connections_close): Convert a FIXME g_warning into a code comment. Bug #581914. ========================== 2.14.17 ======================== 2009-01-09 Fridrich Strba * configure.in: Add a warning saying that the borked-linking-test could not be run when cross-compiling. * configure.in, Makefile.shared: allow to specify an external idl compiler during the build so that we can use the native compiler while cross-compiling. The fallback is the current situation, the internal idl compiler is used. 2009-01-09 Fridrich Strba * configure.in: add fallback action to AC_TRY_RUN to allow cross- compiling since that one is not possible to override with config.cache file. 2009-01-05 Tor Lillqvist Bug 547885 - ORBit2 should not call g_thread_init() itself as it is usually too late The change to linc2 mentioned in the below ChangeLog entry has been reverted. I didn't bother to revert the corresponding changes to src/orb/GIOP/giop.c and the test programs, they are harmless even with the reverted linc2 behaviour. And I still think that it is more correct to call g_thread_init() from main() in an ORBit2-using program, even if it happens to work not to do it, at least on Linux. 2008-12-15 Tor Lillqvist Bug 547885 - ORBit2 should not call g_thread_init() itself as it is usually too late * src/orb/GIOP/giop.c (giop_init): Don't assume that link_init() managed to actually take threads into use if requested to. See linc2/ChangeLog. Check with giop_thread_safe(). * test/everything/client.c (main) * test/everything/server.c (main) * test/poa/poatest-basic-shell.c (main) * test/test-corbaloc.c (main) * test/test-dynany.c (main) * test/test-giop.c (main) * test/test-mem.c (main) * test/test-performance.c (main) * test/timeout-client.c (main) * test/timeout-server.c (main): Call g_thread_init(NULL). 2008-12-09 Kjartan Maraas * src/services/imodule/orbit-imodule-libidl-utils.h: * src/services/imodule/orbit-imodule-utils.h: * test/everything/client.c: (wait_until_done): Fix glib single includes. Patch from PrzemysÅ‚aw Grzegorczyk. Closes bug #563700. 2008-12-01 Jules Colding * src/orb/orb-core/corba-any.c (ORBit_sequence_remove): Submitted on behalf of Stian Skjelstad . Fixes #552690. 2008-10-17 Cosimo Cecchi * configure.in: Enforce deprecated CFLAGS only under maintainer mode. 2008-10-17 Cosimo Cecchi * configure.in: * src/idl-compiler/orbit-idl-main.c: * src/orb/orb-core/orbit-small.c: * src/orb/orb-core/orbit-typelib.c: * src/orb/poa/poa-macros.h: * src/orb/poa/poa-private.h: * src/orb/util/orbit-purify.h: * src/services/name/boot.c: Use and enforce single GLib includes. 2008-10-03 Kjartan Maraas * src/idl-compiler/orbit-idl-c-utils.c: (orbit_cbe_write_typespec), (orbit_cbe_write_param_typespec_raw): * src/orb/orb-core/corba-orb.c: Fix missing format specifiers and const. Closes bug #554564. 2008-09-26 Tor Lillqvist * src/orb/orb-core/corba-orb.c [Win32]: A DllMain() function shouldn't really call functions in other DLLs. Just save the HMODULE of the libORBit-2 DLL. Don't calculate the typelib directory and system rcfile paths in DllMain(), do it as needed in separate functions. Simplyfy code by using g_win32_get_package_installation_directory_of_module(). * src/orb/orb-core/orb-core-private.h * src/orb/util/orbit-options.c: Corresponding changes. 2008-09-16 Kjartan Maraas * NEWS: Updated. * configure.in: Bump again. ======================= 2.14.16 ============================ 2008-09-16 Jules Colding * src/orb/orb-core/corba-orb.c (ORBit_ORB_start_servers): The ORBNetID option was not consistent in relation to ORBIIOPIPName. This fix ensures that ORBIIOPIPName always takes precedence. It also fixed the fact that the given ORBNetID was not applied to all part of the profile, specifically not the IOP_TAG_INTERNET_IOP part. 2008-09-16 Kjartan Maraas * configure.in: Post release bump. ======================= 2.14.15 ============================ 2008-09-16 Kjartan Maraas * NEWS: Update for release. * test/everything/client.c: Remove suspect code causing critical warnings in g_print(). 2008-09-04 Jules Colding * src/orb/orb-core/corba-loc.c (ORBit_corbaloc_parse): Fix memory leaks. 2008-08-28 Kjartan Maraas * src/orb/orb-core/Makefile.am: Fix a possible infinite make loop with parallel make. Diego Pettenò. Closes bug #549693. ======================== 2.14.14 ============================ 2008-08-11 Mike Gorse * src/orb/GIOP/giop.c (giop_tmpdir_init): use ORBIT_SOCKETDIR to propagate the socket dir to children wherever possible: has two benefits: speeds up ORBit2 launch, and allows root owned apps to talk to the user's AT. 2008-08-06 Jules Colding * test/ior-decode.c (main): Fix terminology. The ID previously known as the "Object ID" is really the "Interface Repository ID". 2008-07-18 Michael Meeks * test/typelib-dump.c (dump_tc): remove redundant code causing warnings - thanks JP. 2008-06-23 Kjartan Maraas * src/services/imodule/Makefile.am: * test/everything/Makefile.am: Patch from to fix compile failures from passing global -I flags before local ones. Closes bug #538514. 2008-06-04 Tor Lillqvist Bug 536505 - Error building 2.14.13 - implicit declaration of function '_strnicmp' * src/orb/orb-core/orbhttp.c: Use g_ascii_strncasecmp() instead of strncasecmp() or _strnicmp(). _strnicmp() is Microsoft-specific and was introduced in this file by accident in the patch for bug 524061 below. But actually, you shouldn't be using --enable-http. ================================ 2.14.13 ============================ 2008-05-29 Christian Persch * src/idl-compiler/orbit-idl-backend.h: * src/services/imodule/orbit-imodule.h: * include/orbit/util/basic_types.h: Include instead of single headers. Bug #535474. 2008-05-25 Tor Lillqvist * src/orb/poa/poa.c: Include before checking HAVE_UNISTD_H. * src/orb/orbit-init.c * src/orb/poa/poa.c * src/orb/util/genrand.c: Windows does have a getpid() in its C library. It's just declared in and not (which doesn't even exist with MSVC), so include on Windows instead of using a #define getpid() GetCurrentProcessId(). 2008-05-20 Tor Lillqvist Bug 524058 - Patch: fix ORBit2 idl-compiler so it compiles with MSVC. * src/idl-compiler/orbit-idl-c-backend.h * src/idl-compiler/orbit-idl-c-skelimpl.c * src/idl-compiler/orbit-idl-main.c * src/idl-compiler/orbit-idl3-types.h: Patch by Marcelo Vanzin. Remove unnecessary inclusions of . Surround those left with ifdefs. 2008-05-19 Tor Lillqvist Bug 524061 - Patch: fix ORBit2 so it compiles with MSVC. * src/orb/poa/poa.c * src/orb/poa/orbit-adaptor.c * src/orb/orbit-init.c * src/orb/orb-core/orbhttp.c * src/orb/orb-core/orbit-small.c * util/genrand.c * GIOP/giop-connection.c: Patch by Marcelo Vanzin. Add HAVE_UNISTD_H and HAVE_SYS_TIME_H ifdefs. Define replacements for getpid() and pid_t. 2008-05-08 Tor Lillqvist * src/orb/orb-core/orbit-trace.c (ORBit_trace_value) * src/orb/GIOP/giop.c (giop_thread_free): Re-indent Michael's changes from yesterday. 8-column tab stops are used here. 2008-05-07 Michael Meeks * src/orb/orb-core/orbit-trace.c (ORBit_trace_value): slow down, but substantially improve string printing in debugging, and add ORBIT2_DEBUG_STRMAX for long strings. * src/orb/GIOP/giop.c (giop_thread_free): armour against double thingits; and NULL the giop_main_thread as we free it: from nasty problems having shut-down the 'main' thread in yast, and started doing calls from another non-main thread. 2008-04-24 Jules Colding * test/timeout-client.c (object_ref_from_file): Add terminating null character to IOR string. Furthermore corrected the name of the IOR file. 2008-02-01 Kjartan Maraas * test/poa/poatest-exception.h: Fix warning from gcc 4.3. ========================== 2.14.12 ======================== 2008-01-29 Christian Persch * src/orb/orb-core/corba-typecode.c: (tc_dec): Use G_STRFUNC, since G_GNUC_FUNCTION was deprecated. 2008-01-25 Kjartan Maraas * NEWS: Forgot to commit this. * configure.in: Post release bump. ========================== 2.14.11 ======================== 2008-01-11 J. Specht * src/orb/orb-core/corba-object.c (CORBA_Object__imethods): fix broken method name lengths - all off by one. 2007-11-12 Jules Colding * src/orb/orb-core/corba-any.c (giop_byteswap): This function is only used in this file so there is really no need to keep giop-endian.[ch] around any more. 2007-10-30 Tor Lillqvist * test/timeout-server.c (create_ipv4_orb): Drop unnecessary zeroing of the argv as the code below assigns all elements of it anyway. And the third argument to memset() was wrong. 2007-10-29 Tor Lillqvist * include/orbit/GIOP/giop-connection.h * src/orb/orb-core/orbit-small.c (ORBit_small_connection_unref): Adapt to change of prototype of link_connection_ref() and link_connection_unref(). 2007-10-17 Tor Lillqvist * test/timeout.sh: Use the killall command only on Linux. On Solaris, for instance, the killall command does something different... On other systems ask the user to manually kill the timeout-server and/or lt-timeout-server processes. 2007-10-15 Kjartan Maraas * configure.in: Post release bump. ============================ 2.14.10 ======================= 2007-10-15 Kjartan Maraas * docs/devel/Makefile.am: Dist more docs. 2007-10-15 Kjartan Maraas * NEWS: Update for 2.14.10. * src/orb/GIOP/giop-connection.c: (giop_connection_initiate): * src/orb/poa/poa.c: Compiler warning fixes 2007-09-27 Tor Lillqvist * src/orb/GIOP/giop-recv-buffer.c (giop_recv_buffer_get): Fix typo: Pass correct pointer to giop_connection_unref(). (#480770) 2007-09-25 Jules Colding * test/timeout-server.c (main): Do not write more into the IOR file than really needed * test/timeout-client.c (main): Fix memory leaks (object_ref_from_file): Do not allocate more memory than really needed 2007-09-24 Jules Colding * ORBit2: Add G_OBJECT() casts to all cases of g_unref_object() * ORBit2: Removed ORBIT_DEBUG_CFLAGS from all Makefile.am's. Instead appended the debug flags directly to CFLAGS in configure.in. The debug flags would otherwise be masked by CFLAGS and have next to no effect in terms of debug symbols. * ORBit2: It is now possible to use the ORBNetID command line option to specify a specific NIC to be used by ORBit2 when creating externally visible objects. This is supported by adding LINK_NET_ID_IS_CUSTOM to the LinkNetIdType enum type. Previously the first NIC which wasn't "127.0.0.1" was unconditionally used. The ORBNetID argument must be of a format that is compatible to the address format that is returned by inet_ntoa(3) on a return value of the SIOCGIFCONF ioctl. A specific IP address, such as '192.168.2.45', would be an acceptable format. The previous behavior of just using the first non "127.0.0.1" NIC is maintained if the net id isn't LINK_NET_ID_IS_CUSTOM. If, on the other hand, the net id is LINK_NET_ID_IS_CUSTOM then the used NIC will be: 1) The net id specified but only if it is found in the interface list as returned by SIOCGIFCONF. 2) If the requested net id isn't found in the list then it will be the last non "0.0.0.0" addressed NIC in said list. This may or may not be "127.0.0.1". I considered if we should use assert() if the specified net id isn't found or if it is invalid, but I decided against it on the grounds that not doing so is more in line with current behavior. * src/orb/orb-core/corba-orb.c (ORBit_ORB_start_servers): Support the new LINK_NET_ID_IS_CUSTOM functionality 2007-09-24 Jules Colding * src/orb/orb-core/orbit-small.c (async_recv_cb): Set CORBA_TIMEOUT exception if state is LINK_TIMEOUT 2007-09-22 Jules Colding * configure.in: Added -O0 to ORBIT_DEBUG_CFLAGS. TODO: Still need to fix the debug CFLAGS so that they are effective in the Makefile.am's. * src/orb/GIOP/giop-connection.c (giop_connection_close): Added a check for the link being in LINK_TIMEOUT state. Not doing this would result in link_connection_finalize() being invoked twice for the same link. We can not have that... * src/orb/GIOP/giop-recv-buffer.c (giop_recv_buffer_get): Use giop_connection_unref() instead of linc_connection_unref() as we really are manipulating a GIOPConnection not a LinkConnection. (giop_timeout): Use the giop_connection_(un)ref() functions. Same reasoning as above. Do not call link_connection_state_changed() or giop_incoming_signal_T() if the link is in the LINK_DISCONNECTED state. Doing so would make link_connection_state_changed() very unhappy (invalid read of size 1). ==================== ORBit2-2.14.9 ===================== 2007-09-17 Kjartan Maraas * test/Makefile.am: Clean iorfile to make distcheck happy. 2007-08-31 Jules Colding * src/orb/GIOP/giop-recv-buffer.c (giop_recv_buffer_get): Make sure nothing is NULL before referencing it 2007-08-22 Jules Colding * src/orb/GIOP/giop-recv-buffer.c (giop_timeout_add): Use LinkConnection native ref function instead of g_object_ref() (giop_recv_buffer_get): Use LinkConnection native unref function instead of g_object_unref() (giop_timeout): Use LinkConnection native unref function instead of g_object_unref() * configure.in: Fix 'if test' statement 2007-08-14 Jules Colding * src/orb/GIOP/giop-send-buffer.c (giop_send_buffer_write): Do not enter giop_timeout_add() if a timeout is already present. This check is not thread safe, but the additional check in giop_timeout_add() is. * src/orb/GIOP/giop-recv-buffer.c (giop_timeout_add): Fix race when creating the timeout mutex. Do not depend on the dynamically created "struct timeout_thread_data". The right thing to do is to pass the connection directly and add an additional member to the LincConnection to hold the GIOPThread. (giop_timeout): Correct to use new input data (LincConnection*). (giop_recv_buffer_get): Fix memory leak. 2007-08-07 Tor Lillqvist * test/timeout_impl.c (impl_Timeout_ping): Use g_usleep() instead of sleep() for portability. (#464094, Andreas Köhler) 2007-07-26 Gustavo J. A. M. Carneiro * configure.in: Post-release version bump. ======================= ORBit2-2.14.8 ========================= 2007-07-25 Jules Colding * test/timeout-client.c (main): Silence timeout testing somewhat * test/timeout-server.c (create_ipv4_orb): Removed non-working ORBNetID option. Use default instead. * test/timeout-client.c (create_timeout_orb): Simplified regression client 2007-07-07 Gustavo J. A. M. Carneiro * test/Makefile.am (EXTRA_DIST): Add timeout.sh. 2007-07-07 Jules Colding * test/timeout-client.c (main): Don't use g_error(), use g_print() * test/timeout-server.c (main): Don't use g_error(), use g_print() 2007-07-07 Gustavo J. A. M. Carneiro * test/Makefile.am (EXTRA_DIST): Add timeout_impl.c to dist. 2007-07-07 Jules Colding * test/timeout-client.c (main): abort() ==> _exit(EXIT_FAILURE) 2007-07-04 Vincent Untz * src/orb/orb-core/orbit-small.c: (ORBit_small_invoke_stub): initialize the exception sooner. This fixes a crash where the exception was used without having been initialized (bug #452428) 2007-03-18 Brian Cameron * linc2/src/linc-protocols.c: Now always set the LINC_PROTOCOL_NEEDS_BIND flag in the static_link_protocols array for both IPv4 and IPv6 This is needed on Solaris because bind is needed to open the ports securely when ORBLocalOnly is being used. The maintainers decided that it would be best to simply turn the flag on for all platorms rather than support complicated ifdefs since this should not cause any issues. Fixes bug #422908. 2007-02-28 Kjartan Maraas * include/orbit/dynamic/dynamic.h: Header guards. * src/orb/dynamic/dynany.c: (DynamicAny_DynStruct_get_members), (DynamicAny_DynStruct_set_members): * src/orb/orb-core/corba-any.c: (ORBit_marshal_value), (ORBit_demarshal_value), (ORBit_copy_value_core), (ORBit_value_equivalent): Fix pointer arithmetic. Patch from Roland Illig. Closes bug #410002. * src/orb/poa/orbit-adaptor.c: (ORBit_forw_bind_find): Fix a warning I introduced with the assert splitup. 2007-02-27 Kjartan Maraas * src/orb/GIOP/giop-connection.c: (giop_connection_get_type): * src/orb/GIOP/giop-server.c: (giop_server_get_type): * src/orb/orb-core/corba-orb.c: * src/services/name/orbit-name-server.c: * test/everything/anyServer.c: * test/everything/arrayServer.c: * test/everything/basicServer.c: * test/everything/contextServer.c: * test/everything/deadReference.c: * test/everything/derivedServer.c: * test/everything/sequenceServer.c: * test/everything/unionServer.c: * test/test-mem.c: More removal of unneeded trailing commas. ======================= ORBit2-2.14.7 ========================== 2007-02-20 Kjartan Maraas * MAINTAINERS: Add myself here. 2007-02-14 Kjartan Maraas * src/orb/GIOP/giop.c: (giop_thread_key_add_T): * src/orb/poa/orbit-adaptor.c: (ORBit_forw_bind_find): Split up some asserts to make debugging a bit easier. Related to bug #378454. ======================= ORBit2-2.14.6 ========================== 2007-02-09 Sebastien Bacher * src/orb/orb-core/corba-orb.c: (CORBA_ORB_destroy): - explicitly set variable for better debugging, patch by Kees Cook 2007-01-24 Brian Cameron * configure.in, ORBit-2.0-uninstalled.pc.in, ORBit-CosNaming-2.0-uninstalled.pc.in, ORBit-imodule-2.0-uninstalled.pc.in: Add uninstalled.pc files. ======================= ORBit2-2.14.5 ========================== 2007-01-11 Kjartan Maraas * configure.in: Remove -std=gnu89 from the compiler flags since it breaks on some compilers. Closes bug #393329. 2007-01-11 Kjartan Maraas * src/idl/interop/conv_frame.new.idl: Nuke this file since hasn't been distributed since the dawn of time. 2007-01-09 Tor Lillqvist * src/idl/interop/CONV_FRAME.idl * src/idl/interop/conv_frame.new.idl: Rename CONV_FRAME.idl to conv_frame.new.idl. File names that differ only in case prevent checking out from SVN on Windows. (In CVS there was just a warning.) The CONV_FRAME.idl file wasn't used anywhere else, so this should be safe. (conv_frame.idl, on the other hand, is included from src/orb/orb-core/iop-defs.idl.) Actually, is this file needed at all? It isn't even distriubted. 2007-01-02 Rodrigo Moya Fixes #328701 * include/orbit/orb-core/corba-orb.h: removed #ifdef ORBIT2_EXTENSIONS guard. 2006-12-20 Kjartan Maraas * src/idl-compiler/orbit-idl-c-common.c: (cc_output_iargs), (cc_output_method), (cc_output_base_itypes), (cc_output_itypes): * src/idl-compiler/orbit-idl-c-typecode.c: (orbit_output_tcstruct_name), (orbit_output_tcstruct_repo_id): More constification fixes. Patch from Jody Goldberg. Closes bug #81892. ======================= ORBit2-2.14.4 =========================== 2006-12-18 Kjartan Maraas * configure.in: Release 2.14.4. 2006-12-12 Christian Persch * autogen.sh: * configure.in: Don't use deprecated autoconf macros. Use AM 1.9. Bug #383527. 2006-12-05 Jules Colding * ORBit2: The previous two ChangeLog entries are hiding a lot of details which I'll hereby try to expand upon. The rationale for these changes is that any and all occurrences of g_cond_wait() in ORBit2 has the potential to block forever if it waits for a connection attempt to complete if said connection attempt is made towards a remote server which happens to be physically disconnected or powered off. This blocking behavior can be demonstrated by invoking an operation on a remote object that is physically inaccessible such as when the remote server is powered down or physically disconnected. Pseudo code: { CORBA_ORB orb = get_orb(); char *objref = get_corbaloc_str(); CORBA_Object obj = CORBA_OBJECT_NIL; CORBA_Environment ev[1]; CORBA_exception_init(ev); obj = CORBA_ORB_string_to_object(orb, objref, ev); FOO_INTERFACE_method(obj, , ev); } The last statement above will block forever in g_cond_wait() while waiting for the recieve buffer to be ready if the remote server is, say, powered down. An exception is on the other hand immediately thrown if the server object is merely gone. The changes to the code therefore boils down to the implementation of the ex_CORBA_TIMEOUT system exception being thrown if g_cond_timed_wait() times out. Most occurrences of g_cond_wait() has been replaced by g_cond_timed_wait(). The only remaining instance of g_cond_wait() is found in link_exec_command(). I haven't observed any problems with link_exec_command() so I've not touched that code. The affected code is: 1) A new ORB command line option: GIOPTimeoutLimit - timeout limit in microseconds. Defaults to 30 seconds. 2) giop_recv_buffer_get(). This one is obvious. We do not want to wait indefinitely for data to be received from a downed host. The waiting interval is configurable with the new GIOPTimeoutLimit ORB option. 3) Any code invoking link_wait(): a) link_connection_wait_connected_T() b) link_connection_try_reconnect() c) giop_connection_try_reconnect(), calls link_connection_try_reconnect() d) ORBit_try_connection_T(), calls giop_connection_try_reconnect() e) ORBit_object_get_connection(), calls ORBit_try_connection_T() 4) The waiting time in link_wait() is set at compile time to LINK_WAIT_TIMEOUT_USEC which is presently 10 seconds. 5) link_wait() has been modified to return a gboolean. FALSE if the timeout expired, TRUE otherwise. 6) link_connection_wait_connected_T() and link_connection_try_reconnect() will both disconnect the connection if link_wait() experienced a timeout. 2006-12-04 Jules Colding * configure.in: Added autoconf 2.60+ required datarootdir variable 2006-12-03 Jules Colding * include/orbit/GIOP/giop.h: Declare giop_recv_set_timeout(). * src/orb/orb-core/corba-orb.c (CORBA_ORB_init): Set GIOP timeout limit from the ORB option. Added new ORB option - GIOPTimeoutLimit. * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_stub): Throw a TIMEOUT exception if a reply hasn't been recieved within the GIOP timeout limit. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_buffer_get): Replaced a g_cond_wait() with a g_cond_timed_wait(). The original g_cond_wait() could potentially block forever if a remote server was physically offline. (giop_recv_set_timeout): Function to adjust the GIOP timeout limit. 2006-11-22 Kjartan Maraas * ORBit-2.0.pc.in: Move MINGW_CFLAGS and LIBM to Libs.private Sebastian Rittau. * configure.in: Use PKG_PROG_PKG_CONFIG instead of manual stuff. suggested by dmacks at netspace org. Closes bug #345729. 2006-11-22 Kjartan Maraas * src/services/name/name-client.c: (main): Fix some signedness compiler warnings. 2006-11-10 Kjartan Maraas * ORBit-2.0.pc.in: move gmodules-no-export-2.0 to Requires-private. Reported by Samuel Thibault. Closes bug #352198. 2006-11-10 Kjartan Maraas * src/orb/dynamic/dynany.c: (DynamicAny_DynAny_assign), (DynamicAny_DynAny_equal), (DynamicAny_DynAny_seek), (DynamicAny_DynEnum_set_as_ulong), (DynamicAny_DynUnion_set_discriminator), (DynamicAny_DynSequence_set_length): * src/orb/orb-core/corba-object.c: (CORBA_Object_is_equivalent): * src/orb/orb-core/corba-typecode.c: (CORBA_TypeCode_equal), (CORBA_TypeCode_equivalent), (CORBA_TypeCode_member_name), (CORBA_TypeCode_member_type), (CORBA_TypeCode_member_label): Patch from Georg Schwarz to fix lack of constification in ORBit2. Closes bug #171012. 2006-10-30 Kjartan Maraas * ORBit-2.0.pc.in: Add gobject-2.0 to the Requires line to fix linking statically against ORBit. Closes bug #322474. Suggested by Vladimir Panov. 2006-10-30 Kjartan Maraas * configure.in: Remove more SSL bits. * docs/internals/orbitrc.txt: Here too. * linc2/include/linc/linc-config.h.in: And here. Closes bug #354714. 2006-09-27 Leena Gunda * src/orb/GIOP/giop.c: (scan_socket_dir): Patch to fix the warning message for users with similar prefixes. Fixes bug #152659. Patch given by Manjunath Kadajji 2006-09-07 Tor Lillqvist * linc2/src/linc-connection.c (link_connection_do_initiate): Workaround for problem introduced on Win32 with Brian's patch below: If host is "127.0.0.1", don't need to check whether it is local. ====================== ORBit2-2.14.3 ====================== 2006-08-28 Brian Cameron * linc2/src/linc-connection.c: Patch to correct problem where DHCP hostname changes caused login to block. 2006-08-16 Jules Colding * src/orb/orb-core/corba-orb.c (ORBit_get_giop_recv_limit): Added gtk-doc documentation. 2006-08-08 Brian Cameron * linc2/src/linc-protocols.c: Modify ORBLocalOnly test for TCP/IP connections so that differences in the port number does not cause the test to fail. Since the port number does not affect whether the IP address is local, this should make the test work properly on platforms where the access () function fills in the port value that is being compared. On Solaris, this fixes a bug that causes Java a11y to break, from an end-user perspective. 2006-08-07 Jules Colding * configure.in (CFLAGS): Fix #147556 * acinclude.m4: Added AX_CFLAGS_GCC_OPTION ====================== ORBit2-2.14.2 ======================= 2006-07-24 Kjartan Maraas * Makefile.am: Dist gtk-doc.make too. * src/idl-compiler/Makefile.am: Remove popt * src/orb/Makefile.am: Same here. Found by Daniel Holbach. ======================= ORBit2-2.14.1 ====================== 2006-07-24 Kjartan Maraas * src/orb/orb-core/corba-orb.c: (CORBA_ORB_string_to_object): Raise exception for bad URL. Patch from Frank Rehberger. Closes bug #116812. 2006-07-24 Kjartan Maraas * src/idl-compiler/orbit-idl-c-skels.c: (cbe_skel_do_interface): Fix C++ compatibility in generated code. Patch from Vladimir Panov. Closes bug #322473. 2006-07-20 Kjartan Maraas * src/orb/poa/poa.c: (ORBit_POAObject_handle_request): Initialize a variable to avoid using it uninitialized later. Coverity #1189. 2006-07-19 Kjartan Maraas * src/orb/orb-core/corba-env.c: (ORBit_handle_exception): Fix null dereference. Found by Coverity in CID #1179. Closes bug #347596. 2006-06-25 Kjartan Maraas * src/idl-compiler/orbit-idl-c-deps.c: (orbit_idl_output_c_deps): Fix compiler warning I introduced with the leak fix. 2006-06-23 Tor Lillqvist * src/orb/orb-core/corba-orb.c: Set orbit_local_only to TRUE on Win32, to go with the use of IPv4 on Win32. We don't want to create world-contactable sockets by default. Note that for orbit_local_only to actually work, a small fix to the linc2 code was also needed, see the ChangeLog over there. 2006-06-20 Tor Lillqvist * src/orb/GIOP/giop.c: Remove the giop_thread_list, isn't used for anything. * src/orb/orb-core/corba-orb.c (CORBA_ORB_init): Don't call g_atexit() on Win32. It can cause bizarre bugs. The semantics of atexit() are very hard to specify exactly in the presence of dynamic libraries, and Win32's implementation is perhaps particularily random in its behaviour. Just rely on any peers we are talking to noticing that the connections are severed and acting appropriately. 2006-06-17 Kjartan Maraas * src/idl-compiler/orbit-idl-c-deps.c: (orbit_idl_output_c_deps): Plug a leak. Closes bug #344976. * test/typelib-dump.c: (dump_tc): Plug leak. Closes bug #344977. Both found by the Coverity checker. 2006-05-29 Christian Persch * configure.in: Remove popt check. * src/idl-compiler/orbit-idl-main.c: (cl_libIDL_version_callback), (cl_cpp_define_callback), (cl_cpp_include_callback), (cl_version_callback), (cl_c_output_formatter_callback), (main): * src/services/name/boot.c: (main): Port from popt to goption argument parsing. Bug #341587. 2006-05-22 Kjartan Maraas * src/orb/orb-core/corba-orb.c: (CORBA_ORB_string_to_object): #ifdef out some code that is only used with ENABLE_HTTP. Closes bug #342406. 2006-05-20 Kjartan Maraas * src/orb/poa/poa.c: (ORBit_POAObject_handle_request): Patch from Pascal Terjan to fix a null deref found by the coverity checker. Closes bug #341336. 2006-05-18 Kjartan Maraas * src/orb/orb-core/corba-loc.c: (corbaloc_profile_iiop_parse): Fix a warning from coverity. * src/orb/orb-core/corba-loc.c: (orbit_url_decode): Fix a signedness warning. 2006-05-18 Kjartan Maraas * src/orb/orb-core/orbit-small.c: (ORBit_handle_exception_array): Fix more NULL refs. Coverity. 2006-05-18 Kjartan Maraas * src/orb/orb-core/corba-any.c: (ORBIT_demarshal_value): Avoid NULL dereference. Found by the coverity checker. 2006-05-06 Kuang-Chun Cheng * src/idl-compiler/orbit-idl-c-headers.c: Add guarding macros around emitted per interface enum of xyz_imethods[]. Fix Bug #340532. * test/everything/client.c Use ORBIT_METHODS_INDEX() for ORBit_small_invoke_async() test. 2006-05-02 Kjartan Maraas * configure.in: Remove SSL bits. * linc2/include/linc/linc-protocol.h: Remove redundant const * linc2/src/cleanup.c: (clean_dir): Remove unused code. * linc2/src/linc-protocols.c: More const removal * linc2/src/linc-server.c: (link_server_setup): s/if !/ifndef * src/idl-compiler/orbit-idl-c-common.c: (cc_output_skel): Remove unused code. * src/idl-compiler/orbit-idl-c-imodule.c: (orbit_idl_output_c_imodule): Fix format specifiers. * src/idl-compiler/orbit-idl-utils.c: Remove unused code and redundant const marker. * src/orb/dynamic/dynany.c: (dynany_get_cur_type), (dynany_get_value), (DynamicAny_DynAny_seek), (DynamicAny_DynAny_component_count), (DynamicAny_DynAny_current_component): Format specifiers again. * src/orb/orb-core/allocators.c: (ORBit_alloc_get_tcval): Same. * src/orb/orb-core/corba-context.c: (CORBA_Context_get_values): Remove unused code. * src/orb/orb-core/corba-loc.c: (corbaloc_profile_uiop_parse): More unused code. * src/orb/orb-core/iop-profiles.c: (IOP_start_profiles): And here * src/orb/poa/orbit-adaptor.c: Fix typos in comment. * src/orb/poa/poa.c: (ORBit_POA_obj_to_ref): More unused code. * src/orb/util/genrand.c: (ORBit_genuid_init): s/if/ifdef * test/echo-client.c: Mark a var static * test/echo-srv.c: (echo_srv_start_poa), (echo_srv_start_object), (echo_srv_finish_object), (echo_srv_finish_poa): Format specifiers and a small buglet. * test/ior-decode.c: (print_objkey), (print_components): Format specifiers * test/poa/poatest-basic11.c: (poatest_run): Unused code * test/test-any-client.c: (main): More format specifiers * test/typelib-dump.c: (dump_iface), (main): And again. 2006-04-24 Kuang-Chun Cheng * src/idl-compiler/orbit-idl-c-headers.c emit per interface enum for index of xyz_imethods[]. 2006-04-09 Gustavo J. A. M. Carneiro * src/services/imodule/orbit-imodule.c (ORBit_iinterface_fill_method): Bug 323201: marshalling of void retval typecode generated by "imodule service" crashes. 2006-04-05 Jules Colding * ORBit.spec.in: linc is now intagrated into ORBit2 so the requirements in the spec file must go. (%files): Fix rpmbuild issues with missing files in this section. 2006-04-04 Jules Colding * configure.in (ORBIT_VERSION): Version 1.14.1. The micro version must be bumped as a new function has been added. * src/orb/orb-core/orb-core-private.h: Declared ORBit_get_giop_recv_limit() * include/orbit/orb-core/corba-orb.h: Added ORBit_get_giop_recv_limit() to ORBIT2_EXTENSIONS section. * src/orb/orb-core/corba-orb.c (ORBit_get_giop_recv_limit): Added function to retrieve the maximum allowed GIOP receive limit. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_get_limit): New function. Clients must be able to retrieve the maximum allowed GIOP receive limit. 2006-03-14 Gustavo J. A. M. Carneiro * configure.in: Version 2.14.0. * acinclude.m4: Missing #include in AC_CHECK_ALIGNOF due to usage of the exit() function. * NEWS: Update. 2006-02-17 Tor Lillqvist Fix build on Cygwin, patch by "Cygwin Ports maintainer" (#331487) * configure.in: Check for winsock2.h only on Windows. * include/orbit/orb-core/orbit-object.h: Need to #define ORBIT2_MAYBE_CONST as empty also on Cygwin. 2006-02-14 Tor Lillqvist * test/test-giop.c: Make global variables static. (test_spoofing): Fix crash: Keep an extra reference to the connection so that it won't be disposed too early. Unref only after checking that its status is disconnected. 2006-02-06 Kjartan Maraas * configure.in: Release 2.13.3. 2006-02-01 Tor Lillqvist Improve configury on Win32, patch by Georg Steffers: * configure.in: Set MINGW_LDFLAGS to -Wl,--enable-runtime-pseudo-reloc on Win32. AC_SUBST it. That GNU ld flag is needed when building software that uses DLLs containing code produced by the ORBit2 IDL compiler, because of the way variables imported from DLLs are used. Add MINGW_LDFLAGS to the LDFLAGS used when building ORBit2 itself, too. * ORBit-2.0.pc.in: Add @MINGW_LDFLAGS@ (empty on Unix) to Libs . * ORBit2.m4: If no orbit2-config script is found, use pkg-config. 2006-01-13 Kjartan Maraas * src/orb/GIOP/giop-recv-buffer.c: Fix a compiler warning about unused result. (giop_recv_buffer_handle_fragmented): * src/orb/poa/orbit-adaptor.c: (ORBit_adaptor_find): Guard against NULL adaptor. (Michael). Closes bug #326283. Seen as an invalid read on startup of the drivemount applet. 2005-11-11 Jens Granseuer * src/idl-compiler/orbit-idl-c-skelimpl.c (prev_char_is_nl): fix // comment. 2005-11-08 Richard Hult * Release 2.13.2. * configure.in (LT_VERSION): Set back to 2.13.2, the version was already bumped. 2005-11-08 Anders Carlsson * configure.in: Up version to 2.13.3 2005-11-08 Anders Carlsson * src/orb/orb-core/corba-object.c (CORBA_Object_release_cb): Allow releasing objects even if orb is NULL. (ORBit_object_get_connection): Make sure to remove and re-add the object from the objref hash table so we won't be left with dangling references which will lead to crashes when trying to shut down the ORB. * src/orb/orb-core/corba-orb.c (strip_object_profiles): Set object's orb to NULL. * src/orb/poa/poa.c (ORBit_POA_deactivate_object_T): Write out an error message here instead of "assertion failed". 2005-09-26 Martin Blom * src/orb/orb-core/allocators.c (ORBit_realloc_tcval): realloc should update the length/tracking information. #316393# 2005-09-24 Tor Lillqvist * orbit2-zip.in: Add share/aclocal/ORBit2.m4 to the developer package. 2005-09-20 Jules Colding * configure.in (CFLAGS): Stricter coding style checks by adding "-Werror-implicit-function-declaration -std=gnu89" to CFLAGS. 2005-09-16 Jules Colding * include/orbit/orb-core/corba-orb.h: Added ORBit_proto_use() to ORBIT2_EXTENSIONS section. This is needed to deduce protocol capabilities if you are not the fortunate first thread to invoke CORBA_ORB_init(). 2005-09-07 Jules Colding * configure.in (LT_VERSION): Version 2.13.2. This is needed as the change below actually makes some programs run when they would otherwise not. * src/orb/GIOP/giop.c (giop_main_run): Remove g_assert(). 2005-09-06 Mark McLoughlin * configure.in: Version 2.13.1 2005-08-28 Tor Lillqvist * README.win32: New file. * Makefile.am (EXTRA_DIST): Add README.win32. * orbit2-zip.in: Include also lib/libname-server-2.a in the developer package. 2005-08-26 Brian Cameron * configure.in: Bumping minor LT_VERSION since interfaces have changed since the initial ORBit2 release and it has never been bumped, but interfaces have been added since that time. Sorry for commiting this twice, but I didn't read the comments closely to see that you modify it to C+1:0:A+1 to indicate interfaces have been added but binary compatibility has been preserved. 2005-08-15 Michael Meeks * configure.in: add threading libraries to ORBIT_NAME pkg-config check: #313403 2005-08-12 Michael Meeks * configure.in: AC_PREREQ(2.54) not 2.12 for Gustavo Gama, #313274. 2005-08-13 Davyd Madeley * configure.in: * linc2/src/linc-protocols.c: Check for sys/sockio.h, required for building on Solaris 9. Patch from James Andrewartha . 2005-08-11 Michael Meeks * src/orb/orb-core/corba-any.c (ORBit_demarshal_arg): propagate the error condition we laboured hard to get right to our caller. (ORBit_demarshal_value): when sequence de-marshalling dies, nail the length as well as freeing the buffer. Fixes #310270# 2005-08-08 Kjartan Maraas * src/orb/orb-core/corba-orb.c: (CORBA_ORB_destroy): Release the lock here. Patch from Aivars Kalvans. Closes bug #153897. 2005-07-28 Tor Lillqvist * configure.in: Include ws2tcpip.h on Win32 when looking for socklen_t. 2005-07-25 Jules Colding * src/orb/orb-core/corba-orb.c: Added new ORB_init option, ORBNetID. Valid values for a hypothetical local host (FQDN:thor.test.com, IP:10.0.3.2): "local": all attempts to resolve the local host will be done using "localhost" "short": all attempts to resolve the local host will be done using "thor". "fqdn" : all attempts to resolve the local host will be done using "thor.test.com". "ipaddr: all attempts to resolve the local host will be done using "10.0.3.2". The new option will be evaluated after ORBLocalOnly but ORBLocalOnly will always take precedence. 2005-06-20 Fernando Herrera * include/orbit/orb-core/corba-orb-type.h: * src/orb/orb-core/corba-orb.c: (CORBA_ORB_init), (CORBA_ORB_destroy), (ORBit_ORB_forw_bind): * src/orb/poa/orbit-adaptor.c: (ORBit_forw_bind_find), (ORBit_handle_request): implement forward binding. Patch by Alejandro Garc�a Castro reviewed by: Michael Meeks 2005-06-03 Jules Colding * docs/README: Added pointers to documentation and sample code for developers using ORBit2, not ORBit2 hackers. 2005-06-02 Sandie Vanderme * configure.in: add missing AC_CHECK_HEADERS(netdb.h) 2005-04-18 Tor Lillqvist * src/orb/orb-core/corba-orb.c (DllMain): As we reguire GLib 2.6, no need to use GLIB_CHECK_VERSION(). And anyway, what we really should have used here was the run-time glib_check_version() and not compile-time GLIB_CHECK_VERSION()... Also, only check for a "bin" subfolder. DLLs are always installed in "bin" and not "lib" nowadays. * src/orb/orb-core/orb-core-private.h: As we require GLib 2.6, G_IS_DIR_SEPARATOR() is always present. 2005-04-16 Kjartan Maraas * linc2/test/test-linc.c: Make some variables static. * src/idl-compiler/orbit-idl-c-skelimpl.c: Same * src/orb/orb-core/corba-orb.c: (CORBA_ORB_create_list): Don't use the C++ reserved word 'new' for variables. * test/echo-client-t.c: Make vars static. * test/echo-client.c: Same * test/echo-srv.c: Same * test/empty-client.c: Same * test/empty-server.c: Same * test/poa/poatest-basic01.c: Again * test/poa/poatest-basic05.c: Again * test/poa/poatest-basic11.c: Again * test/test-any-server.c: Again * test/test-corbaloc.c: Again * test/test-giop-frag.h: Again * test/test-performance.c: And again 2005-04-14 Arvind Samptur * src/orb/orb-core/corba-object.c : (ORBit_object_get_connection): if we have failed on the unix socket, have IPv4 or IPv6 connections enabled and are on localhost, then don't connect on the corresponding port from the profiles. Patch reviewed by Michael Meeks. 2005-04-13 Tor Lillqvist * src/orb/util/genrand.c: Use the Win32 crypto API. * src/orb/GIOP/giop.c * src/idl-compiler/orbit-idl-c-backend.c: Use gstdio wrappers for better localized filename support on Win32. Use GLib directory and filename API. Don't bother with the rather useless utime() setting on the GIOP tmpdir on Win32. Use g_strerror() instead of strerror(). * src/orb/util/orbit-options.c: As we reguire GLib 2.6, no need to use GLIB_CHECK_VERSION. 2005-04-12 Mark McLoughlin * ORBit-2.0.pc.in: require gmodule-no-export-2.0 rather than gmodule-2.0 so we don't -export-dynamic on our link line. 2005-04-11 Tor Lillqvist * test/everything/Makefile.am (Everything_module_la_LIBADD): Need to link with ORBIT_LIBS thanks to a recent change for Win32 in HEAD GLib. 2005-04-11 James Henstridge * configure.in: rename PKG_CONFIG_MIN_VERSION variable to xPKG_CONFIG_MIN_VERSION, to work with pkg-config >= 0.16.0. 2005-04-06 Anders Carlsson * src/orb/orb-core/corba-orb.c: (ORBit_initial_references_by_user): Release objects. (ORBit_set_initial_reference): Release existing objects. 2005-04-06 Anders Carlsson * src/orb/orb-core/corba-object.c: (ORBit_handle_location_forward): Reset the connection since the forwarded object has a new connection. 2005-03-29 Brian Cameron * docs/internals/orbitrc.txt: Docs file explaining how to make use of the ORBit2 Resource File and how the options work. 2005-03-11 Tor Lillqvist * include/orbit/orb-core/orbit-object.h: Add macro ORBIT2_MAYBE_CONST which expands to "const" on Unix, empty on Win32. * src/orb/orb-core/corba-typecode.c * include/orbit/orb-core/corba-orb-type.h * include/orbit/orb-core/corba-typecode.h * src/idl-compiler/orbit-idl-c-headers.c (ch_type_alloc_and_tc) * src/idl-compiler/orbit-idl-c-typecode.c (orbit_output_tcstruct_anon_subtypes_array, orbit_output_tcstruct_anon_sublabels_array, cbe_tc_generate): Use ORBIT2_MAYBE_CONST. This reintroduces constness on Unix, saving some memory. (#169428) 2005-03-10 Tor Lillqvist * configure.in: Bump version to 2.13.0 to distinguish from the gnome-2-10 branch. Call AC_CANONICAL_HOST before the Win32 test to make sure $host is set up. Require GLib 2.6. * src/idl-compiler/orbit-idl-main.c: Make the default not to show CPP errors, so that --showcpperrors actually changes the behaviour. * src/orb/orb-core/corba-any.c (ORBit_demarshal_value) * src/services/imodule/orbit-imodule.c (build_cpp_args): Minor const correctness fixes. * src/orb/orb-core/corba-orb.c: Drop inclusion of , we get it through in linc-protocol.h anyway. Add prototype for DllMain() to silence gcc. 2005-02-23 Tor Lillqvist * orbit2-zip.in: Include also etc/orbitrc (even if it is empty). Don't include lib/orbit-2.0, just the Everything_module gets installed there by ORBit2, and that's just for testing. * configure.in: Drop the -DPOPT_STATIC. The version of popt that we recommend is used on Windows doesn't cause import of variables from libpopt. Using a libpopt DLL works fine. * test/test-giop.c (run_test): Use IPv4 instead of UNIX domain sockets on Win32. * src/idl-compiler/orbit-idl-c-skels.c (cbe_skel_interface_print_relayers): It's the temporary pointer that should be declared volatile, not what it's pointing to. Now auto-import actually works also from optimized code. 2005-02-21 Tor Lillqvist * configure.in: Use -DPOPT_STATIC on Win32 when building the IDL compiler and name server, so that we avoid the problems with referring to variables imported from a DLL in static initializers. In newer libpopt distributions the headers have dllimport decorations for the variables exported from libpopt unless one defines POPT_STATIC. To actually then link with the static libpopt.a you might also have to move the import library libpopt.dll.a away so that the linker won't find it, and perhaps edit libpopt.la. Remove leftover AC_MSG_WARN([host is $host]). 2005-02-14 Tor Lillqvist * configure.in: New autoconf variable LIBM, set to -lm on Unix, empty on Windows. * ORBit-2.0.pc.in (Libs): Use @LIBM@. The dummy -lm in mingw prevents libtool from creating DLLs. (orbit_idl): Append @EXEEXT@. * src/idl-compiler/Makefile.am * test/Makefile.am: Use $(LIBM) here, less verbiage than if using an automake ifdef. * src/orb/orb-core/orb-core-private.h * src/orb/util/orbit-options.c: On Win32, #undef the compile-time pathnames from the Makefiles, instead use run-time strings set up by DllMain(), see below. * src/orb/orb-core/corba-orb.c (DllMain): New function. When ORBit2 is built as a DLL on Win32 (as it should be), this function is called automatically when the DLL is loaded. It fetches the full path of the DLL, and deduces the ORBit2 installation folder from that. Then it forms the type library directory and system orbitrc path names. Some complexity needed by it having to work both when built with GLib 2.4 or 2.6. * src/orb/orb-core/orbit-typelib.c (ORBit_small_load_typelib): Use GLib API to check pathnames, for improved Win32 portability. * src/orb/util/orbit-options.c (ORBit_option_rc_parse): When built against GLib 2.6, use g_fopen(). (ORBit_option_parse): Guard against g_get_home_dir() returning NULL. * src/orb/util/genrand.c (ORBit_genuid_init): Bypass the attempts to use /dev/urandom on Win32. * src/orb/orb-core/corba-any.c (ORBit_marshal_value): Don't do any post-realignment for array elements. We don't do that for array elements in ORBit_demarshal_value() either, and the marshalling of structs and unions already takes care of their post-alignment. * src/idl-compiler/orbit-idl-c-utils.c: Revert the change from 2005-02-01. It's unnecessary now with the alignment fixes in the marshalling code. (The changes were not sufficient anyway; without the alignment fixes in the marshalling code, even more sillyness in the IDL compiler generated code would have been necessary to make it work on Win32.) 2005-02-13 Arvind Samptur * src/orb/orb-core/orbit-trace.c (ORBit_trace_value): Print also long long values, using G_GINT64_FORMAT. Ditto unsigned long long and G_GUINT64_FORMAT. 2005-02-11 Michael Meeks * src/orb/dynamic/dynany.c (DynamicAny_DynStruct_get_members), (DynamicAny_DynStruct_set_members): add field alignment logic now missing from ORBit_copy_value etc. 2005-02-11 Tor Lillqvist * src/orb/orb-core/corba-any.c (ORBit_marshal_value, ORBit_demarshal_value), (ORBit_copy_value_core, ORBit_value_equivalent): re-work, bin pre-align: assume incoming ABI walking data is aligned, do alignment only on outgoing data & during struct/union walking. * test/everything/arrayServer.c (ArrayServer_opAlignHoleStructArray), (ArrayServer_opStrArray): add. * test/everything/unionServer.c (UnionServer_opFixedLengthUnionArray): add * test/everything/client.c (testUnionArray, testStrArray), (testFixedLengthStructArray, testAlignHoleStructArray), (testVariableLengthArray): add more beef to the regression test suite. 2005-02-08 Tor Lillqvist * orbit2-zip.in: New file, expands to a script to be used for packaging ORBit2 distributions as zipfiles for Windows. * configure.in * Makefile.am: Generate and distribute it. 2005-02-07 Tor Lillqvist * test/Makefile.am (check_PROGRAMS): Must use check_PROGRAMS as the name for the list of test programs in order for Automake to properly use EXEEXT on Windows. 2005-02-02 Hans Petter Jansson * configure.in: Check for res_9_init() in -lresolv. This will pull in libresolv on Darwin, where the actual symbol's name is different from the one used by programs. 2005-02-02 Tor Lillqvist Make test-dynany work on Windows: * src/orb/dynamic/dynany.c (MAKE_DYNANY_INSERT): For identical reasons as the below change to the IDL compiler, take a local copy of function parameter before passing its address to dynany_insert(). (dynany_get_value): Take the alignment of preceding fields and the field itself into account when calculating the address of a field in a CORBA_tk_struct or except. 2005-02-01 Tor Lillqvist * src/idl-compiler/orbit-idl-c-utils.c (orbit_cbe_flatten_ref): Take output file as parameter, output directly there instead of returning a string. Don't take the address of function parameters and pass it on to the marshalling layers. Function parameters are not necessarily aligned according to the alinments in orbit-config.h. Case in point: long long on the x86. ORBIT_ALIGNOF_CORBA_LONG_LONG is 8, but as function parameters on the stack, long longs only have 4-byte alignment. The lower levels will realign the address, meaning long long IN parameters might have a completely wrong value marshalled. The same presumably holds for doubles and long doubles. Why this problem hasn't occured on Linux on x86, no idea. I noticed it on Windows. Instead, copy IN parameters to a field in a local struct variable, and pass on the address of that field. In theory, the above could hold on exotic architectures also for OUT parameters, where the address of a parameter is also passed on. But in that case the parameter is a pointer, and at least on the x86, a pointer's alignment as parameter matches expectation in orbit-config.h (4). (orbit_cbe_maybe_copy_of_data_in): New helper function that outputs the definition and initialization of the local copy of IN parameters mentioned above. (orbit_cbe_flatten_args): Modify accordingly. 2005-01-28 Tor Lillqvist * src/orb/orbit-init.c * src/orb/orb-core/orbit-trace.c: Use g_get_current_time() instead of gettimeofday(). * src/orb/GIOP/giop.c * src/orb/GIOP/giop-send-buffer.c * src/orb/orb-core/orbhttp.c: Conditionalize includes as necessary. * src/orb/GIOP/giop.c: Don't check owner on Win32 either. Add newline to dprintf() calls. Use socket API for wakeup pipe on Win32. Create it using link_pipe(). * src/orb/orb-core/corba-orb.c: Use IPv4 and not Unix domain sockets on Win32. * src/orb/orb-core/corba-typecode.c: Drop the const from the typecode struct definitions, for Win32 DLL import/export reasons (see yesterday's ChangeLog entries). * src/orb/orb-core/orbhttp.c (orbHTTPConnectAttempt): Drop an unused variable in the WinSock part. * src/orb/orb-core/orbit-typelib.c: Use G_SEARCHPATH_SEPARATOR_S. * src/orb/util/genrand.c: No getuid() on Win32. * src/services/name/Makefile.am: No -lm on Win32. * src/services/name/boot.c: Conditionalize use of syslog and sigaction. * src/services/name/orbit-name-server.c: Remove a couple of unneeded includes. * test/echo-client.c: Make debugging easier: If argv[1] starts with a dollar, fetch it with getenv(). * test/echo-server.c * test/empty-server.c * test/any-server.c: Output the IOR: string to a file, too, to avoid having to copy-paste long strings when runnning these tests. * test/typelib-dump.c: Small workaround for Win32 DLL variable import restriction. * test/everything/test.sh: Don't run the Unix domain socket tests on Windows. Don't exit after a failed test if $DONT_EXIT is set. * test/everything/client.c (main) * test/everything/server.c (main): Small const correctness fix. 2005-01-27 Tor Lillqvist * src/idl-compiler/Makefile.am * test/Makefile.am: No separate -lm on Win32. * src/idl-compiler/orbit-idl-c-backend.c: mkdir() has different prototype in Microsoft's C library. Below changes from Cygwin port of ORBit2 by Gerrit P. Haase, see www.cygwin.com/ml/cygwin-apps/2004-10/msg00030.html. They also apply to native Win32. * include/orbit/orb-core/corba-orb-type.h * include/orbit/orb-core/corba-typecode.h: Drop the constness of extern structs as it causes problems when building libORBit-2 as a DLL on Win32 and Cygwin. * src/idl-compiler/orbit-idl-c-headers.c (ch_type_alloc_and_tc) * src/idl-compiler/orbit-idl-c-typecode.c (orbit_output_tcstruct_anon_subtypes_array, orbit_output_tcstruct_anon_sublabels_array, cbe_tc_generate): Drop constness from generated code, for Win32 DLL reasons as above. * src/idl-compiler/orbit-idl-c-skels.c (cbe_skel_interface_print_relayers): Workaround Win32 restriction, use a temporary variable. (See ld documentation for --enable-auto-import, and for instance http://sources.redhat.com/ml/binutils/2001-09/msg00130.html) * src/idl-compiler/orbit-idl-main.c: Drop constness from a poptOption array, for obscure Win32 DLL reasons. 2005-01-26 Tor Lillqvist * configure.in: Check also for utime.h, and sys/utime.h (where MSVC keeps it, in case we some day want to be compileable by it). 2005-01-26 Tor Lillqvist * configure.in: Changes for Win32: Set automake conditional OS_WIN32. Check for more headers and functions. Add WinSock library to LIBS. * include/orbit/GIOP/giop-connection.h: Don't include netdb.h on Win32. Is it even needed on Unix? 2005-01-13 Jules Colding * src/idl-compiler/orbit-idl-c-skelimpl.c (prev_char_is_nl): New function that implements check of previously written character to the output file. Excessive output of newline characters are fixed by checking the last character written: If it is '\n' then do not write another '\n'. (cbe_ski_do_list): The correct fix for exessive newline output. Generation of skelimpl files has been fixed by protecting definitions and declarations with #ifdef blocks. This is *not* the right fix. The right fix would be to generate header files with the proper extern declarations. The current "fix" has the drawback of forcing the developer to include the skelimpl files in inheritance order: Most common ancestor first, then progressively later descendants. The right fix requires more redesign of the code than I would like to do now, so this hack must suffice for the time being. * src/idl-compiler/orbit-idl-c-backend.c (out_for_pass): Change the opening mode of output files to "w+". This is needed to support the correct fix for excessive newline output in skelimpl files. * src/idl-compiler/orbit-idl-c-skelimpl.c: I had a really hard time parsing the code with the former indentation level of 2, so I changed it to a more reasonable 8. 2005-01-12 Jules Colding * src/idl-compiler/orbit-idl-main.c (main): Fix print of passes. 2005-01-01 Jules Colding * src/idl-compiler/orbit-idl-c-skelimpl.c (cbe_ski_do_list): Fix the former fix for excessive newline output (integer overflow bug fixed). 2004-12-28 Jules Colding * src/idl-compiler/orbit-idl-c-skelimpl.c (cbe_ski_do_list): Prevent excessive output of newlines for skelimpl files. 2004-12-27 Jules Colding * configure.in: Remove support for external indentation command. * src/idl-compiler/orbit-idl-main.c: Removed all traces of the output formatter command line option but leave a warning. * src/idl-compiler/orbit-idl-c-backend.c (out_for_pass): "popen ==> fopen" for all output files. The reason is to avoid opening a pipe as we don't want to use an externally invoked indentation process. * src/idl-compiler/orbit-idl3-types.h: Removed output_formatter. 2004-12-22 Jules Colding * test/everything/everything.idl: Added test for bug#161879. * src/idl-compiler/orbit-idl-c-utils.c (orbit_cbe_get_const): Fix IDL compilation of "const char N = '\x0A';" definitions (bug#161879). * src/idl-compiler/orbit-idl3-types.h: Added output_directory to OIDL_Run_Info. * src/idl-compiler/orbit-idl-c-backend.c: Prefixed output file with output directory. * src/idl-compiler/orbit-idl-main.c: Added 'output-dir' command line option. 2004-12-17 Michael Meeks * src/orb/orb-core/corba-any.c (ORBit_demarshal_value): don't fail de-marshalling null & void - just do nothing. (ORBit_copy_value_core): just copy nothing for void & null - instead of breaking the val pointer. 2004-10-02 Gustavo J. A. M. Carneiro * test/everything/client.c (testAnySequence), * test/everything/server.c (SequenceServer_opAnySeq): implement test for TC_void bug. 2004-12-13 Joe McCann * configure.in: bump libIDL dep to 0.8.2. 2004-11-12 Sandie Vanderme * include/orbit/orb-core/Makefile.am (IDL_FLAGS_NO_DEFS): add src/orb/orb-core. 2004-10-19 Paolo Borelli * src/idl-compiler/Makefile.am: fix linking, patch by Jimmy Do. 2004-10-02 Gustavo J. A. M. Carneiro * src/orb/orb-core/corba-env.c (CORBA_exception_set): Before overwriting an exception, free any previous value contained by it. Patch by Michael Meeks. Fixes #153299. 2004-09-13 Mark McLoughlin * configure.in: Version 2.12.0. 2004-08-25 Michael Haubenwallner * src/orb/orb-core/allocators.c (ORBit_freekids_via_TypeCode_T): Step over align-holes at the end of structures (bug#151023) * src/orb/orb-core/corba-any.c (ORBit_marshal_value) (ORBit_demarshal_value) (ORBit_copy_value_core) (ORBit_value_equivalent): Ditto. * test/everything/everything.idl test/everything/client.c test/everything/structServer.c: Added testcase for bug#151023, align-holes at the end of structures. * test/everything/constants.h: Ditto. Added constants for CHAR and OCTET. 2004-08-19 Michael Meeks * Version 2.11.2 * src/orb/GIOP/giop-recv-buffer.c (giop_recv_list_destroy_queue_entry): unref the ent's connection without the message queue lock held. * test/everything/client.c: bin stderr printfs during thread tests, to avoid unhelpful rescheduling. * src/orb/orb-core/orbit-small.c (ORBit_small_unlisten_for_broken_full): use the peek method, no need to try re-connecting just to disconnect the 'broken' signal. * src/orb/orb-core/corba-object.c (CORBA_Object_release_cb): after a long audit; unlock / lock around the giop connection unref; this avoids the final connection release deadlocking vs. a pending call in the I/O thread needing this lock. (ORBit_object_peek_connection): impl. 2004-08-19 Magnus Therning * src/idl-compiler/orbit-idl-backend.c: fix bit-field assignments. 2004-08-10 Michael Meeks * test/everything/basicServer.c (BasicServer_testBoolString): impl. 2004-08-11 Kjartan Maraas * src/idl-compiler/orbit-idl-c-backend.c: (orbit_idl_output_c): 0 vs NULL. * src/idl-compiler/orbit-idl-c-common.c: (cc_output_typecodes):i Same here. * src/idl-compiler/orbit-idl-c-utils.c: (orbit_cbe_get_typespec_str): Same here too. * src/orb/dynamic/dynany.c: (DynamicAny_DynUnion_member_name): 0 vs NULL and add some casts. * src/orb/orb-core/allocators.c: (ORBit_freekids_via_TypeCode_T): 0 vs NULL fixes. * src/orb/orb-core/corba-object.c: (ORBit_objref_find): Same again. * src/services/name/boot.c: (main): And again. * test/echo-srv.c: (echo_srv_finish_object), (echo_srv_finish_poa): And again. 2004-08-10 Mark McLoughlin * src/orb/orb-core/iop-profiles.c: (IOP_start_profiles), (IOP_TAG_CODE_SETS_demarshal): don't initialize the sequence using structure initialization, but rather zero the structure contents. Fixes bug #147255, which admittedly is really a gcc on powerpc bug, but this code is nicer anyway. 2004-08-08 Gustavo J. A. M. Carneiro * src/orb/orb-core/corba-any.c (ORBit_sequence_remove): Impl. method to remove a single element in an ORBit sequence. * include/orbit/orb-core/orbit-small.h: Add ORBit_sequence_remove prototype. * test/everything/client.c (testSequenceHelpers): Test ORBit_sequence_remove. 2004-07-30 Mark McLoughlin * test/test-corbaloc.c: "\%" isn't a valid escape sequence, so just use "%". From d.binderman@virgin.net. 2004-07-07 Frank Rehberger * Revert to Version 2.11.x and Add Version ORBit2-2.11.1 (developer release only) 2004-07-07 Frank Rehberger * Add Version ORBit2-2.12.0 2004-06-22 Chris Landrieu * src/orb/orb-core/allocators.c (ORBit_freekids_via_TypeCode_T): add missing pre-align for struct/except types. Complicate the union alignment rules. 2004-05-30 Christophe Saout * src/orb/orb-core/corba-any.c: (ORBit_marshal_value, ORBit_demarshal_value): Fix broken wstring support. Marshal/demarshal the correct number of bytes on the wire and negotiate the UTF-16 byte ordering using an optional endianess marker. Also works now with JacORB. 2004-05-30 Christophe Saout * src/services/imodule/orbit-imodule-utils.c (ORBit_imodule_get_typecode): set c_align in nested array typecodes that are not handled by ORBit_imodule_find_c_align. 2004-05-17 Michael Meeks * ORBit-2.0.pc.in: prune pkgconfig cruft. 2004-05-14 Fernando Herrera * src/idl-compiler/orbit-idl-c-backend.c: (out_for_pass): clobber LC_ALL because cpp tranlates some strings in some locales during dep files generation that makes compilation fails. Fixes bug #142546. 2004-05-08 Frank Rehberger * src/orb/orb-core/iop-profiles.c (IOP_start_profiles): orbit generated profiles contain full codeset data structures (IOP_component_free): freeing codeset structures (CodeSetComponent_marshal): marshal codeset structures (CodeSetComponent_demarshal): demarshal codeset structures * src/orb/orb-core/iop-profiles.h (IOP_PROFILES_CODE_SET_*): declare known code-sets, but UTF8 and UTF16 supported only. (struct IOP_TAG_CODE_SETS_info): complete CodeSet data structure using CONV_FRAME_CodeSetComponentInfo. * src/orb/orb-core/corba-orb.c: variable orbit_use_corbaloc must be of type gboolean. 2004-05-07 Michael Meeks * configure.in: bump version to 2.11.0 (after branch), update configure message to point to gnome-2-6 branch. 2004-05-02 Frank Rehberger * src/orb/orb-core/corba-loc.c (corbaloc_profile_iiop): reference constants defined for CSSIOP * src/orb/orb-core/iop-defs.idl: add IIOP.idl and CORBA Security Ineterop. attributes in files CSI.idl and CSIIOP.idl 2004-05-01 Frank Rehberger * src/idl: upgrade to CORBA-3.0 IDL files cause of security attributes defined in there * include/orbit/orb-core/orb-types.h: comment typedef being defined in generated include/orbit/orb-core/corba-defs.h now. 2004-05-07 Michael Meeks * Branch for Gnome 2.6 2004-04-24 Dan Winship * src/services/imodule/Makefile.am (LDADD): Remove $(LOCAL_LINC_LIBS). (Only libORBit-2 itself should be linking against it.) * src/services/name/Makefile.am (libORBitCosNaming_2_la_LDFLAGS): Likewise 2004-04-24 Frank Rehberger * MAINTAINERS: maintainer-ship handed over to frehberg@gnome-de.org 2004-04-21 Michael Meeks * Version 2.10.1 2004-04-21 Michael Meeks * src/orb/orb-core/iop-profiles.c (CodeSetComponent_demarshal): don't spew a g_warning, just a dprintf. (IOP_UnknownComponent_marshal): actually marshal the length of the sequence as well as the data. 2004-04-21 Bill Haneman * test/everything/basicServer.c (TestFactory_getObjectCount, TestFactory_getObject): hammer on some JavaORB stuff. * test/everything/client.c (testIOR): impl. (run_tests): upd. 2004-04-13 Joe Marcus Clarke * ORBit-2.0.pc.in: add gthread dep. 2004-03-19 Mark McLoughlin * orbit2-config.in: return -lORBitCosNaming-2 with --use-service=name rather than -lORBitCosNaming. This script is still deprecated old cruft, though. 2004-03-04 Michael Meeks * Version 2.10.0 * src/orb/orb-core/corba-orb.c (CORBA_ORB_init): add 'orbit-io-thread' initializer to force I/O thread usage. * src/orb/GIOP/giop.c (giop_init): s/threaded/thread_safe/ 2004-02-12 Chris Toshok * Version 2.9.8 2004-02-12 Chris Toshok * src/orb/orb-core/Makefile.am (INCLUDES): change the order so that top_builddir is always listed first. This keeps heads in top_srcdir from ending up in the .dep files and causing make distcheck to fail. 2004-02-10 Tomasz K�oczko * acinclude.m4: added missing [] quotation first parameter of AC_DEFUN(). This fix is for aclocal from automake 1.8.x and is backward compatible with older auto tools. 2004-02-10 Michael Meeks * src/orb/orb-core/Makefile.am: always dist. HTTP_FILES. 2004-02-06 Chris Toshok * src/orb/poa/poa.c (push_request_idle): add an @on_context arg, so callers can specify the GMainContext to use. Also, NULL out pcl->pobj and pcl->recv_buffer. (poa_destroy_idle_closure): new function. free up the PoaIdleClosure here, and release/unuse the POAObject/buffer if we haven't hit the idle handler yet. (ORBit_POA_handle_request): implement ORBIT_THREAD_HINT_ON_CONTEXT case, and pass NULL to push_request_idle for the normal IDLE cases. (ORBit_poa_allow_cross_thread_call): add ON_CONTEXT where the other idle poa policies are, and add a FIXME comment about needing something along the lines of g_main_context_get_owner to implement it properly. * src/orb/poa/object-adaptor.c (ORBit_ObjectAdaptor_set_thread_hintv): extract the GMainContext out of the arg list in the ON_CONTEXT case. * include/orbit/poa/orbit-adaptor.h (ORBit_ObjectAdaptor_type): add context slot. 2004-02-06 Michael Meeks * src/orb/orb-core/Makefile.am (IDL_DIR): set this so we're not vunerable to environment problems. 2004-02-05 Michael Meeks * test/test-giop.c (run_test): upd. tests. 2004-02-04 Michael Meeks * Version 2.9.7 2004-02-04 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (giop_recv_list_zap): signal the wait condition on threads when a connection dies. 2004-02-04 Michael Meeks * src/orb/GIOP/giop.c (wakeup_mainloop): handle EAGAIN on wakeup pipe more elegantly, downgrade g_error. 2004-02-02 Kjartan Maraas * src/services/imodule/orbit-imodule.c: (build_cpp_args): Don't use deprecated function. Closes bug #133168. 2004-02-02 Michael Meeks * docs/internals/Makefile.am: add misc. bits. * docs/internals/interface-indirection.xls: switch from .gnumeric, and tag -kb. 2004-01-25 Alexander Winston * ORBit2.m4: quote it properly 2004-01-16 Michael Meeks * Version 2.9.6 2004-01-16 Michael Meeks * src/orb/orb-core/corba-any.c (ORBit_copy_value_core): fetch the union tag only after pre-aligning correctly, vicious PPC snafu; thanks to Jeroen Zwartepoorte for his patience. * test/everything/everything.idl: add a double to the VariableLengthUnion - causing grief on PPC. 2004-01-15 Mark McLoughlin * Version 2.9.5 2004-01-15 Mark McLoughlin * src/orb/orb-core/corba-env.c: (CORBA_exception_free), (CORBA_exception_set_system), (CORBA_exception_set), (CORBA_exception_init): add pre-conditions so as to warn people that passing NULL for the environment to CORBA methods is not allowed, without changing the existing behaviour. 2004-01-14 Michael Meeks * Version 2.9.4 2004-01-14 Michael Meeks * test/everything/client.c (testWithException): add. * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_stub): always clean Environment as it enters - otherwise there's no way of telling if the return value is valid. * src/orb/poa/poa.c (ORBit_c_stub_invoke): init ev. here too; same reason; upd. locking comments. 2004-01-14 Albert Chin-A-Young * include/orbit/GIOP/giop-recv-buffer.h: guint for single bitfield. * src/orb/orb-core/corba-object.c (CORBA_Object_is_a), * src/orb/poa/poa.c (ORBit_POA_setup_root): fix array assigment portability. 2004-01-09 Michael Meeks * Version 2.9.3 2004-01-09 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_stub): add performance comment and pass method flags in. * src/orb/poa/poa.c (get_c_method), (ORBit_c_stub_invoke): extract / pass on the method flags to: (ORBit_poa_allow_cross_thread_call): if we have an non-std. threading policy, then do a 'true' oneway call. 2004-01-06 Michael Meeks * configure.in: fix 'if !' bug for Morten. 2003-12-10 Michael Meeks * src/orb/GIOP/giop.c (giop_init): make the write pipe non-blocking. (giop_thread_queue_process): fix printf. (giop_thread_push_recv): kill. (giop_incoming_signal_T): add 'type' param; we know people are waiting for replies and don't need wakeup. (giop_invoke_async, giop_thread_request_push): annotate as requests not replies. * src/orb/GIOP/giop-recv-buffer.c (handle_reply): in-line giop_thread_push_recv for simplicity & mark as a reply type. 2003-12-10 Alexander Larsson * src/orb/GIOP/giop.c (first_valid_request): Really look up the policy 2003-12-08 Michael Meeks * Version 2.9.2 2003-12-08 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_stub): bin double unuse in MARSHAL_RETRY loop; add more exception handling. 2003-12-06 Michael Meeks * src/orb/GIOP/giop.c (wakeup_mainloop): don't spin on EAGAIN, if the buffer is full we're sure of waking the mainloop. Warn on EAGAIN - someone isn't running the glib mainloop. 2003-11-17 Frank Rehberger * src/orb/GIOP/giop.c (giop_mainloop_handle_input): invoke giop_thread_queue_process with specific GIOPThread object instead NULL. 2003-11-15 Frank Rehberger * src/idl-compiler/orbit-idl-c-skelimpl.c (cbe_ski_do_interface): fix mem-leak in generated code: g_free (servant) in destructor impl_*__destroy() by default 2003-11-13 Michael Meeks * Version 2.9.1 * src/orb/orb-core/Makefile.am: fix include. 2003-11-10 Justin Schoeman * src/orb/GIOP/giop-recv-buffer.c (giop_recv_buffer_use_buf, giop_recv_buffer_unuse): Add a reference to the connection on giop_recv_buffer_use_buf, and remove it on giop_recv_buffer_unuse. Prevents a connection shutdown while a request is being handled. 2003-11-06 Padraig O'Briain * linc2/src/linc-server.c (link_server_handle_io): Change g_error to g_warning to avoid crash if revents field reset between check() and dispatch(). Fixes bug #126209. 2003-11-03 Frank Rehberger * src/orb/poa/poa.c (ORBit_POA_invocation_stack_pop) (ORBit_POA_invocation_stack_push) (ORBit_POA_invocation_stack_lookup_objid) (ORBit_POA_invocation_stack_lookup_objref) (ORBit_POA_invocation_stack_peek): refactore code managing invocation stack; done for later thread aware management of stack. 2003-11-03 Justin Schoeman * src/orb/orb-core/corba-orb.c (ORBit_initial_references_by_user): Destroy the NameService object after calling ORBit_set_initial_reference on it, as ORBit_set_initial_reference dup's the object. 2003-10-31 Michael Meeks * src/orb/GIOP/giop.c (giop_thread_free): only free policy queue if we have one. * src/orb/GIOP/giop-recv-buffer.c (giop_connection_handle_input): on HUP goto msg_error so we don't leave the cnx->incoming_msg hanging around. 2003-10-30 Michael Meeks * test/everything/lifeCycle.c (LifeCycleServer_deactivateUnrefOnReturn): a nasty in-proc hack that unreferences our CORBA_Object handle. * test/everything/client.c (testLifeCycle): use the ORBit_small_invoke_stub_n path, used by older stubs. 2003-10-29 Justin Schoeman * src/orb/orb-core/orbit-object.c (ORBit_RootObject_shutdown): fix declaration of valid_running when G_ENABLE_DEBUG is defined. * src/orb/GIOP/giop.c (giop_thread_request_push_key): make sure tdata is set before calling giop_thread_key_add_T. 2003-10-27 Michael Meeks * test/everything/client.c (testPolicy): impl. * src/orb/orb-core/orbit-policy.c (ORBit_object_get_policy, ORBit_object_set_policy): impl. * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_stub): push/pop the policy if there is one associated with an object. * src/orb/GIOP/giop.c (giop_thread_queue_process): move it here, rename, re-hash, fix leak. (giop_thread_queue_empty_T): implement. (giop_thread_request_process): move into process_queue. (giop_mainloop_handle_input): upd. (giop_invoke_async): push the async reply to the right thread, cleanly. (giop_thread_queue_tail_wakeup): impl. (giop_list_pop): re-implement, bin GQueue - it's more bloated, and sucks harder than GList. (giop_thread_free): free policy queue. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_buffer_get): handle switch to threaded IO in mid wait properly. (giop_recv_handle_queued_input): move this to giop.c (handle_reply): bin process_now 2003-10-24 Michael Meeks * src/orb/GIOP/giop.c (giop_shutdown): allow shutdown from any thread - this looks safe enough, at least here. 2003-10-23 Mark McLoughlin * configure.in: release version 2.9.0. 2003-10-23 Mark McLoughlin * test/everything/lifeCycle.c: add this from the 2.8.2 tarball. Michael must have forgotten to CVS add it. 2003-10-14 Michael Meeks * src/orb/poa/poa.c (ORBit_POA_destroy_T_R): rename to this; fix nasty deadlock with child poas. 2003-10-10 Michael Meeks * configure.in: switch to 2.9.0 * ORBit.spec.in: fix from Joe Pranevich. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_thread_fn): prune cruft. * src/orb/GIOP/giop-connection.c (giop_connections_shutdown): axe. * src/orb/GIOP/giop.c (giop_shutdown): call linc_connections_close. * src/orb/poa/poa.c (get_c_method): re-order check for ORBIT_ADAPTOR_POA to pre the cast, check that we're not walking over the end of vepvmap_cache. (ORBit_skel_class_register): setup VEPV_CACHE_SIZE using the 0'th element of vepvcache. 2003-10-01 Michael Meeks * src/orb/poa/poa.c (ORBit_POA_destroy_T): make the adaptor array walk slightly faster. * test/everything/client.c (test_time_noop): fix timer leak. 2003-10-08 Olivier Andrieu * src/orb/orb-core/corba-typecode.c: (CORBA_TypeCode_id), (CORBA_TypeCode_name), (CORBA_TypeCode_member_name), (CORBA_TypeCode_member_type), (CORBA_TypeCode_discriminator_type), (CORBA_TypeCode_content_type): duplicate return values of type string or TypeCode in CORBA_TypeCode_* functions for spec conformance. 2003-10-07 Ian McKellar * src/services/imodule/orbit-imodule.c: (ORBit_iinterface_fill_iargs): I suck - Olivier just made a better version of my change. I'm reverting it. 2003-10-07 Ian McKellar reviewed by: Michael Meeks * src/services/imodule/orbit-imodule.c: (ORBit_iinterface_fill_iargs): Fill in the iarg->name from the IDL. 2003-10-06 Olivier Andrieu * src/services/imodule/orbit-imodule.c: (ORBit_iinterface_fill_iargs): fill the name field of ORBit::IArg struct 2003-10-02 Alexander Larsson * include/orbit/GIOP/giop-types.h: * include/orbit/GIOP/giop.h: * src/orb/GIOP/giop.c: (giop_thread_new), (giop_thread_key_add_T), (giop_thread_key_release_T), (giop_thread_free), (giop_thread_self), (giop_thread_key_add), (giop_thread_key_release), (giop_thread_request_push_key), (giop_request_handler_fn), (giop_init): Allow GIOPThreads to have several keys. Don't leak some GIOPThread contents. * src/orb/poa/orbit-adaptor.c: * include/orbit/poa/orbit-adaptor.h: Add ORBIT_THREAD_HINT_ON_CONTEXT to case to fix warning. Fix recursion in ORBit_ObjectAdaptor_set_thread_hint Implement ORBit_ObjectAdaptor_object_bind_to_current_thread. * src/orb/poa/poa.c: (ORBit_POA_handle_request): Add comment about thread binding. 2003-09-30 Michael Meeks * src/orb/poa/poa.c (ORBit_POAObject_handle_request): get the pobj->use_cnt tracking right. * src/orb/GIOP/giop.c (scan_socket_dir): actually use the string comparison to use the sort order, not the directory order. * test/everything/server.c (TestFactory_createLifeCycleServer): impl * test/everything/lifeCycle.c: add module. * test/everything/client.c (testLifeCycle): impl. (run_tests): upd. - try to catch Ettore's bug - to no avail. * src/idl-compiler/orbit-idl-main.c: at least return error status on an error ... 2003-09-29 Michael Meeks * test/test-mem.c (main_func): release refs we own. * test/test-performance.c (test_activation): destroy the child poa nicely. * src/orb/poa/poa.c (PortableServer_POA_destroy): hold the POA lock, re-flow. (ORBit_POA_destroy_T): upd. lock/unlock children. * src/orb/orb-core/corba-object.c (ORBit_try_connection_T): clean warnings. * src/orb/poa/poa.c (ORBit_POA_deactivate_object_T): rename to this. (ORBit_POAObject_handle_request): upd, hold a poa ref. for longer. * src/orb/orb-core/corba-orb.c (CORBA_ORB_destroy, shutdown_orb): stop the g_atexit case from moaning about leaked references, if we have to do work here, then someone didn't do a debug_shutdown properly anyway, so it will always moan annoyingly. * src/orb/orb-core/orbit-object.c (ORBit_RootObject_shutdown): add non-moaning option 2003-09-29 Olivier Andrieu * src/orb/orb-core/orbit-typelib.c (add_if_unique) (ORBit_get_typelib_paths): update typelib_path semantics to be more sane. 2003-09-22 Kjartan Maraas * acconfig.h: Removed. * configure.in: Added templates from acconfig.h here.. * src/orb/orb-core/corba-any.c: (ORBit_sequence_concat): * src/orb/orb-core/corba-orb.c: (CORBA_ORB_resolve_initial_references): * src/services/imodule/orbit-imodule.c: (build_cpp_args): * test/test-corbaloc.c: (main): Remove compiler warnings. Thu Sep 18 09:09:39 2003 George Lebl * src/orb/util/genrand.c: when seeding from time shift the seconds up as we don't really care much about the high order bits (they're not interesting). Achieve almost 32 bits of entropy within an hour of uncertainty this way rather then a century. Only affects places without /dev/urandom 2003-09-16 Michael Meeks * configure.in: add $(top_builddir)/linc2/include to LOCAL_LINC_CFLAGS - how did distcheck not pick this up ? 2003-09-09 Michael Meeks * Version 2.8.1 2003-09-08 Padraig O'Briain * linc2/src/linc-private.h: Add field was_disconnected in order to deal with the case where connecting after disconnection returns EINPROGRESS. * linc2/src/linc-connection.c: (linc_connection_state_changed_T_R): Do not emit "broken" signal if disconnected field is set. (linc_connection_try_disconnect): Set was_disconnected field before calling link_connection_wait_connected_T. (link_connection_init): Initialize was_disconnected to FALSE. This fixes bug #121246. 2003-09-05 Frank Rehberger * test/test-mem.c: autmatic memory verification based on 'ps' command, added POA test 2003-08-26 Michael Meeks * Version 2.8.0 2003-08-21 Frank Rehberger * src/orb/orb-core/corba-any.c (ORBit_sequence_concat): initial implementaion 2003-08-19 Frank Rehberger * src/orb/orb-core/corba-loc.c (ORBit_corbaloc_from): encode giop-version in corbaloc * src/orb/orb-core/corba-object.c (ORBit_object_to_corbaloc): representation for empty object reference (ORBit_object_by_corbaloc): accept corbaloc representation for empty object * src/orb/orb-core/corba-orb.c (CORBA_ORB_object_to_string): if corbaloc fails, fallback to common marshalling 2003-08-11 Michael Meeks * Version 2.7.6 2003-08-08 Michael Meeks * src/orb/orb-core/corba-object.c (ORBit_try_connection_T): rename to this, return the correct state, and handle the result. (ORBit_object_get_connection): in here. (ORBit_try_connection_T): drop the lock over the [re-]connection phase - it's possibly re-enterant. #117970 * src/orb/GIOP/giop-connection.c (giop_connection_try_reconnect): return the status. 2003-08-07 Michael Meeks * src/orb/orb-core/corba-orb.c (shutdown_orb): set init_level to 1, so our g_atexit handler actually does clean-up the ORB bits. 2003-08-06 Michael Meeks * configure.in: don't link libIDL into the name service; thanks Morten. 2003-08-04 James Henstridge * src/services/imodule/orbit-imodule.c (build_cpp_args): add function to build up a full set of cpp args (adds __ORBIT_IDL__ and __basename_COMPILATION). Makes many Gnome IDL files just work. (ORBit_iinterfaces_from_file): use build_cpp_args() to build the full set of CPP args. 2003-07-31 Michael Meeks * Version 2.7.5 * src/orb/orb-core/corba-object.c: by-pass invoke_stub in-proc, since we may have a transient policy on our object; and we want an answer now. * test/everything/server.c (TestFactory_getDerivedServer): impl. (test_TestFactory__init): upd. * test/everything/derivedServer.c: add. * src/orb/orb-core/corba-loc.c (ORBit_corbaloc_from): invert ssl_info NULL check's sense, remove redundant braces / inits. Add a 'break' so we don't drop through to the next case by mistake. * test/everything/client.c (testIsA): hammer _is_a on the 'diamond of death'. 2003-07-30 Frank Rehberger * src/orb/orb-core/corba-object.c (g_CORBA_Object_hash): use object key for calculation, remove commented code * src/orb/orb-core/corba-loc.c (ORBit_corbaloc_from): if ssl port given create ssliop-profile instead of iiop-profile. 2003-07-30 Michael Meeks * test/everything/server.c, client.c: upd. to "orbit-local-non-threaded-orb". * src/orb/orb-core/corba-orb.c (CORBA_ORB_init): default to a thread-safe ORB, since we can't have GConf initializing without threads, and then libbonobo requiring that we have them later; and (it seems) GConf won't change. * Makefile.shared: parallel build messing. * src/orb/orb-core/Makefile.am: parallel build fixage. 2003-07-29 Michael Meeks * configure.in: disable linux/irda.h check / include, causing misc. problems, and the code is unused anyway. #118495. 2003-07-29 Frank Rehberger * src/orb/orb-core/corba-loc.c (corbaloc_profile_iiop_parse): polishing comments and layout (true K&R) (corbaloc_profile_iiop): target supports full security features, target requires at least integrity and confidentiality * src/orb/orb-core/corba-object.c (g_CORBA_Object_hash): polishing comments 2003-07-28 Frank Rehberger * test/everything/test.sh (SAMPLE_NAME): regression test for corbaloc * src/orb/orb-core/corba-orb.c (CORBA_ORB_object_to_string): feature allows stringified represantation in corbaloc syntax 2003-07-28 Frank Rehberger * test/Makefile.am (noinst_PROGRAMS): add target test-corbaloc * test/test-corbaloc.c: test verifies string->object transformation from corbaloc strings * src/orb/orb-core/corba-orb.c (CORBA_ORB_string_to_object): provide corbaloc parsing * src/orb/orb-core/Makefile.am (main_src): add corba-loc.c * src/orb/orb-core/corba-loc.c: new module, provides OMG corbaloc support * src/orb/orb-core/corba-object.c (ORBit_object_to_corbaloc): thread safe invocation of corbaloc functions (ORBit_object_by_corbaloc): thread safe creation of object from corbaloc string 2003-07-28 Frank Rehberger * src/orb/orb-core/iop-profiles.c (IOP_ObjectKey_dump): zero padding in hex object key * src/orb/orb-core/iop-profiles.c (IOP_profile_dump): free temporary 'key' * src/orb/orb-core/corba-orb.c (ORBit_initial_references_by_user): protect initial references "RootPOA" and "POACurrent" from being set by user 2003-07-25 Dan Winship * src/idl-compiler/orbit-idl-main.c (main): Don't print version info / flags to stderr. They're not errors. 2003-07-15 Michael Meeks * src/orb/util/orbit-options.c (ORBit_option_command_line_parse): fix warning, bin redundant commenting. * Version 2.7.3 2003-07-15 Michael Meeks * src/orb/orb-core/corba-object.c (ORBit_try_connection): bin the TESTME g_warning. 2003-07-14 Mark McLoughlin Fix for bug #103159. Patiently tracked down by Brian Cameron * src/orb/orb-core/corba-any.c: (ORBit_value_equivalent): align to the discriminator before figure out the members typecode based on the discriminator value. 2003-07-14 Michael Meeks * test/everything/client.c (testSegv): fix silly - amazing that gcc didn't catch this for me (!?) * src/orb/GIOP/giop-recv-buffer.c: bin execinfo, thanks Morten. 2003-07-11 Michael Meeks * src/orb/orb-core/corba-orb.c (ORBit_initial_references_by_user): fix iterator type. * src/orb/orb-core/corba-object.c (ORBit_try_connection): use the (now) thread safe linc_connection_wait_connected [ although not re-enterant sadly ], if we've connected in the past, always return the same connection - but have a go at reviving it if it dropped. 2003-07-09 Michael Meeks * test/everything/client.c (testNonExistent): impl. * src/orb/orb-core/corba-object.c (CORBA_Object_non_existent): wait until it's connected before giving a verdict. 2003-07-08 Michael Meeks * src/orb/orb-core/corba-orb.c: bin popt.h include. 2003-07-07 Michael Meeks * test/everything/client.c (testPingPong): reset max_buffer on the cnx to 0 afterwards the test - ie. don't poison other stuff. * src/orb/orb-core/orbit-small.c (async_recv_cb): call destroy_queue_entry on the mqe. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_list_setup_queue_entry) (giop_recv_list_destroy_queue_entry): hold a ref. on the cnx. (giop_recv_destroy_queue_entry_T): split out. * src/orb/dynamic/dynany.c (ORBit_DynAnyFactory_new): impl. * src/orb/orbit-init.c (ORBit_init_internals): register DynAnyFactory - a completely bogus object to satisfy the spec. * src/orb/orb-core/corba-orb.c (ORBit_initial_references_by_user): cleanup. 2003-07-07 Michael Meeks * test/everything/test.sh: put the failures first. * src/orb/GIOP/giop-send-buffer.c (giop_send_buffer_unuse): shrink indirect chunk size, so we don't keep vast buffers kicking around. * src/orb/orb-core/corba-any.c (ORBit_sequence_append): prune comments. * src/orb/orb-core/allocators.c (ORBit_realloc_tcval): bin comments / extra braces - nice otherwise. 2003-07-03 Frank Rehberger * src/orb/orb-core/corba-any.c (ORBit_sequence_alloc): undo previous change, now sequence length initially seq->_length=length * test/everything/client.c (testSequenceHelpers): undo previous changes to client.c 2003-07-03 Frank Rehberger * src/orb/orb-core/corba-context.c (ORBit_Context_demarshal): fix for #116338 2003-07-02 Frank Rehberger * src/orb/orb-core/allocators.c (ORBit_realloc_tcval): prevent SEGV on empty sequences; if(old_num_elements==0 && !old_buffer) return ORBit_alloc_tcval(tc,num_elements); 2003-07-01 Frank Rehberger * src/orb/orb-core/corba-any.c (ORBit_sequence_alloc): invoke CORBA_sequence_set_release (seq, CORBA_TRUE) on new sequence, otherwise _buffer wouldn't be CORBA_free'd! Length of new sequence is 0 instead of _length==_maximum. (ORBit_sequence_append): calculate resized seq-length by new_len = MAX (2, (seq->_maximum * 2)); * test/everything/client.c (testSequenceHelpers): extend ORBit_sequence* tests 2003-06-30 Padraig O'Briain * linc2/src/linc-connection.c: Move link_source_remove and link_source_add to before link_connection_state_changed_T_R. This fixes bug #116350. 2003-06-28 Gustavo J. A. M. Carneiro * docs/api/Makefile.am (DOC_SOURCE_DIR): indicate a source dir, so that gtk-doc can scan for inline docs. * src/orb/orb-core/allocators.c: Added an extra asterisk to the comment block in the beginning of the file, to prevent gtk-doc from thinking this is an inline documentation comment. 2003-06-27 Frank Rehberger * src/orb/orb-core/corba-orb.c (CORBA_ORB_resolve_initial_references): feature-disabled: disabled exceptions that broke GNOME in bonobo_arg_new(). Feature should be re-enabled for later release. 2003-06-24 Michael Meeks * test/everything/client.c (testUnboundedSequence): fix silly. * src/orb/orb-core/orbit-small.c (ORBit_small_listen_for_broken) (ORBit_small_unlisten_for_broken_full): upd. 2003-06-22 Frank Rehberger * src/orb/util/orbit_optionss.h: introducing type ORBit_OptionKeyValue * src/orb/orb-core/corba-orb.c: bugfix in CORBA_init() of initial -ORBInitRef and -ORBNamingIOR option parsing 2003-06-22 Gustavo J. A. M. Carneiro * docs/api/ORBit2-sections.txt: Created the orbit2-small section. * docs/api/Makefile.am: Instead of specifying an include directory for gtkdoc-scan, indicate a specific set of files to scan instead, via the variable EXTRA_HFILES. * docs/api/ORBit2-docs.sgml: Added the orbit2-small section. * docs/api/tmpl/orbit2-small.sgml: New template file for the orbit-small.h header. * docs/api/tmpl/orbit2-allocators.sgml: Added some documention for this section. 2003-06-19 Gustavo J. A. M. Carneiro * Makefile.shared: Moved the target 'distclean-local' out of the MAINTAINER_MODE conditional because, since the deps are always generated (regardless of maintainer mode), they should be always be deleted too; This avoids the "files left in build directory after distclean" automake 1.7 error. * test/Makefile.am (DYNANY_IDLOUT): Added skels and stubs sources. * docs/api/ORBit2-sections.txt: New file, ORBit2 API sections. * docs/api/ORBit2-docs.sgml: New file, main ORBit2 API docbook source. * docs/api/Makefile.am: New makefile, to build ORBit2 API docs. * linc2/configure.in, linc2/acconfig.h, linc2/autogen.sh: Removed these files: they're no longer used, and are getting in the way. * autogen.sh: Use (include) generic gnome autogen; Require automake >= 1.6 because of gtk-doc. * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Added --enable-gtk-doc, to make distcheck work. * configure.in: Write linc2/include/linc/linc-config.h; gtk-doc detection. Write docs/api/Makefile. * test/poa/Makefile.am: Avoid "blank line following trailing backslash" automake warning. * test/everything/Makefile.am (BUILT_SOURCES): Removed duplicate definition. (CLEANFILES): Also removed this duplicate definition. * src/orb/dynamic/Makefile.am: Removed duplicate definition of DYNAMIC_IDLOUT. * src/orb/orb-core/Makefile.am (IDL_COMPILER): Removed, twice; already defined in Makefile.shared. 2003-06-19 Michael Meeks * configure.in: add gthread to ORBIT_LIBS etc. 2003-06-19 Bowie Owens * test/everything/sequenceServer.c (SequenceServer_opMassiveSeq): impl. & hook it up. * test/everything/client.c (testUnboundedSequence): invoke opMassiveSeq. 2003-06-18 Frank Rehberger * src/orb/util/orbit-options.c: enable parsing of command line options * src/orb/util/orbit-options.h: declare ORBIT_OPTION_KEY_VALUE * src/orb/util/orbit-options.c: code for option ORBIT_OPTION_KEY_VALUE * src/orb/orb-core/corba-orb.c: support for -ORBNamingIOR, -ORBInitRef 2003-06-11 Michael Meeks * test/everything/client.c (test_time_noop): fix. 2003-06-11 Frank Rehberger * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_adaptor): ensure we free temporarily allocated fixed size struct/union return & out values. 2003-06-11 Michael Meeks * src/orb/poa/poa.c: bin dupped set_classinfo macro. * include/orbit/poa/poa.h (ORBIT_SERVANT_SET_CLASSINFO): add back to please old/stale stubs. 2003-06-09 Michael Meeks * src/orb/GIOP/giop.c (giop_init): bin terrifying warning; hey-ho. 2003-06-09 Michael Meeks * Version 2.7.2 2003-06-09 Michael Meeks * include/orbit/orb-core/corba-object-type.h: internalize the CORBA_Object layout. * src/orb/poa/orbit-adaptor.c (ORBit_ObjectAdaptor_set_thread_hintv): split (ORBit_ObjectAdaptor_set_thread_hint): impl. * src/idl-compiler/orbit-idl-c-common.c (orbit_idl_output_c_common): guard the skel marshallers so they arn't built in the imodule. * configure.in (ORBIT_SERIAL): bump it. * include/orbit/poa/orbit-adaptor.h: internalize everything except the thread hint bits. * include/orbit/poa/poa-types.h: internalize ORBit_POAObejct_type, drastically prune the macros / ABI exposure. * src/orb/orb-core/orbit-small.c: disable ORBIT_SMALL_FAST_LOCALS to hugely prune our ABI. * src/orb/poa/poa.c (ORBit_c_stub_invoke): add pre/post call macro values in comments here. 2003-06-06 Michael Meeks * src/orb/Makefile.am: poke at deps again [!] * src/orb/GIOP/giop-connection.c (giop_connections_shutdown): warn hackers only, an old problem. * test/poa/test-poa.c: make the test effective & pass. * src/orb/Makefile.am: fix deps again (?) * src/orb/orb-core/orbit-small.c (ORBit_small_unlisten_for_broken_full): split from (ORBit_small_unlisten_for_broken): here, and allow a 'user_data' to be specified ie. make the method actually useful. (ORBit_small_invoke_stub_n): fix warning. 2003-06-06 Michael Meeks * test/poa/test-poa.c: add. * src/orb/poa/poa.c (ORBit_POA_copy_policies): impl. (ORBit_POA_new_from): impl. 2003-06-05 Michael Meeks * include/orbit/orb-core/corba-object.h: fix include. * src/orb/orb-core/orbit-policy.[ch]: stub. 2003-06-05 Michael Meeks * test/everything/Makefile.am: use check_PROGRAMS instead of noinst_PROGRAMS - Mac people have problems with their static libraries it seems. * test/everything/client.c (test_time_noop): upd for FORCE_GENERIC_MARSHAL etc. * src/orb/poa/poa.c (get_c_method): in-line ORBIT_STUB_IsBypass (and the epv lookups) add ORBIT_SMALL_FORCE_GENERIC_MARSHAL (ORBit_POA_activate_object_T): tolerate a NULL vepvmap. 2003-06-04 Michael Meeks * src/orb/Makefile.am: add dep on linc lib. * test/everything/test.sh, * test/everything/client.c: run more tests. * src/orb/GIOP/giop.c (giop_thread_new_check): impl. * src/orb/poa/orbit-adaptor.c (ORBit_ObjectAdaptor_set_thread_hint): spawn the I/O thread when we set an interesting hint * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_stub): ensure we check to see if we're in another thread. * src/orb/poa/poa.c (ORBit_poa_allow_cross_thread_call): add check to invoke switch to threaded io for XT case. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_buffer_get): use giop_thread_io instead of tdata != NULL. * src/orb/poa/poa.c (pool_push_request_for_T) (ORBit_POA_handle_request, ORBit_POA_handle_request): use giop_thread_io. (ORBit_POA_handle_request): invoke_incoming_req outside the poa lock. * src/orb/orb-core/corba-object.c (ORBit_try_connection): use giop_thread_safe (?), we don't want to drop into link_connection_wait_connected via re-enterancy. * src/orb/GIOP/giop-recv-buffer.c (handle_reply): switch on giop_thread_io. * src/orb/GIOP/giop.c (giop_threaded): rename to (giop_thread_safe): this, (giop_thread_io): add. (giop_shutdown, giop_thread_set_main_handler), (giop_thread_self, giop_thread_key_release), (giop_invoke_async, giop_main_run): upd. * src/orb/Makefile.am (libORBit_2_la_LIBADD): libadd the link library. 2003-06-03 Michael Meeks * src/orb/orb-core/corba-orb.c (CORBA_ORB_init): move genuid_init lower than giop_init (which does a linc_init). 2003-06-03 Alexander Larsson * src/orb/GIOP/giop.c (giop_request_handler_fn): use data as tdata instead of user_data 2003-06-03 Michael Meeks * src/orb/GIOP/giop-connection.c (giop_connection_initiate): upd. 2003-05-31 Michael Meeks * ORBit-2.0.pc.in: remove 'linc' in Requires, thanks oGalaxyo. 2003-05-30 Michael Meeks * src/orb/GIOP/giop.c (giop_tmpdir_init): guard against double init. (ORBit_get_safe_tmp): impl. for hp/others. * */Makefile.am: add LOCAL_LINC_LIBS/CFLAGS * include/orbit/orbit.h: only include GIOP if we need to. * include/orbit/GIOP/Makefile.am: don't install the GIOP headers - they're private. * configure.in: include linc2/include in the include path. * Updated *.[ch] with: #!/usr/bin/perl -w -pi.bak s/linc_/link_/g; s/LINC([^_])/Link$1/g; s/LINC/LINK/g; * configure.in: merge a chunk of checks in for linc2 2003-05-30 * test/everything/Makefile.am (Everything_module_la_LDFLAGS): avoid version. 2003-05-29 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_stub_n): validate the index into the sequence. 2003-05-29 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_stub): check cross-thread calls, and generate an in-proc proxy for non-allowed xt cases. * src/orb/poa/poa.c (ORBit_poa_allow_cross_thread_call): impl. (get_c_method): use it. * src/orb/GIOP/giop.c (giop_thread_same_key): impl. 2003-05-28 Michael Meeks * src/idl-compiler/orbit-idl-c-skels.c: move ck_output_skels (and deps) into: * src/idl-compiler/orbit-idl-c-common.c: here. (orbit_idl_output_c_common): hook in, but only on stub/skelish builds. * src/orb/poa/poa.c (ORBit_stub_post_invoke): kill. (ORBit_stub_pre_get_epv): rename to (get_c_method): this and re-hash. (ORBit_c_stub_invoke): impl. - a new plan. * include/orbit/poa/poa-basics.h: bin old/stale ORBitSkeleton typedef. 2003-05-27 Michael Meeks * src/orb/poa/poa.c (ORBit_stub_pre_get_epv) (ORBit_stub_post_invoke): impl. to get this out of the stubs. * src/idl-compiler/orbit-idl-c-stubs.c (cs_output_stub): use the new stub methods. 2003-05-23 Michael Meeks * src/orb/GIOP/giop-server.c (giop_server_handle_create_connection): upd. cnx instantiaton. * src/orb/GIOP/giop-connection.c (giop_connection_get_property, giop_connection_set_property): impl. (giop_connection_class_init): upd. (giop_connection_set_orb_n_ver): kill. * src/orb/orb-core/corba-object.c, * src/orb/orb-core/orbit-small.c: sed: s/linc_object_ref/giop_connection_ref/ s/linc_object_unref/giop_connection_unref/ 2003-05-22 Michael Meeks * src/orb/GIOP/giop-connection.c (giop_connection_initiate): use new linc API. (giop_connection_list_lookup_T): bin. (giop_connection_list_add, giop_connection_list_init), (giop_connection_list_remove): bin. * src/orb/GIOP/giop.c (giop_init): upd. * src/orb/GIOP/giop.c (giop_thread_request_push_key): fix HINT_PER_REQUEST policy by not inserting NULL into the hash table (thanks to AlexL). * src/orb/orb-core/corba-orb.c (CORBA_ORB_init): fix non-debugging build; thanks to Christophe. 2003-05-21 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (handle_reply): re-work the code for a simpler, more readable flow, and fix async/ent ownership silly. * src/orb/orb-core/corba-orb.c (ORBit_setup_debug_flags): add 'force_threaded' debug option. (CORBA_ORB_init): do the dirty bits. 2003-05-14 Michael Meeks * src/orb/orb-core/orbit-small.c (orbit_small_demarshal): split out giop_recv_buffer_get, and pass the recv buffer in, remove the recv release argument. (ORBit_small_demarshal_async): pass the buffer straight in. (ORBit_small_invoke_stub): unref the recv buffer here. * src/orb/GIOP/giop.c (giop_thread_request_process) (giop_thread_request_push): use a GQueue for request_queue. (giop_incoming_signal_T, giop_incoming_signal): impl. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_handle_queued_input): bin the return value, and re-hash. (giop_recv_buffer_get): use a GQueue for request_queue. * src/orb/GIOP/giop.c (giop_thread_free): impl. (giop_invoke_async): re-factor bits into here. (giop_request_handler_fn): free the giop thread after use. * src/orb/GIOP/giop-recv-buffer.c (handle_reply): bin process_now distinction. (giop_recv_list_zap): use giop_invoke_async so we work across threads. * include/orbit/GIOP/giop-recv-buffer.h: make free_body a guchar not a (signed) gboolean; thanks to Morten. 2003-05-13 Michael Meeks * test/everything/client.c (testDerivedServer): impl. (run_tests): call it. * src/idl-compiler/orbit-idl-c-skels.c (cbe_skel_interface_print_vepvmap_offsets), (cbe_skel_do_interface): pass parent id through. * src/idl-compiler/orbit-idl-utils.c (IDL_tree_traverse_helper): re-hash self inclusion; This bug was _really_ screwing up libbonobo. 2003-05-12 Michael Meeks * src/idl-compiler/orbit-idl-utils.c (IDL_tree_traverse_parents_full): split from (IDL_tree_traverse_parents): here. * include/orbit/poa/poa-types.h (ORBIT_VEPV_OFFSET): impl. * src/idl-compiler/orbit-idl-c-skels.c (cbe_skel_interface_print_vepvmap_offsets): impl. (cbe_skel_do_interface): upd to call skel_class_register. * src/orb/poa/poa.c (ORBit_classinfo_lookup): hold lock. (ORBit_skel_class_register): impl. for thread-safe skels (ORBit_poa_init): init lock. * src/orb/poa/poa.c (ORBit_POAObject_handle_request): bin current_invocations->data assertion; we can get here without pushing the current invocation; was hurting libbonoboui. 2003-05-12 Gustavo J. A. M. Carneiro * MAINTAINERS: Declare myself as documentation maintainer. 2003-05-09 Michael Meeks * test/everything/*.c: large scale servant re-factor. 2003-05-08 Michael Meeks * test/everything/server.c (simple_finalize): impl. (test_TestFactory__fini, create_TestFactory): allocate servant. (simple_servant, TestFactory_createDeadReferenceObj) (test_TestFactory__init): allocate the servants, so we're thread-safe. * test/everything/*.c: use Simple_base_epv to finalize the servant where appropriate. 2003-05-07 Michael Meeks * src/orb/GIOP/giop-connection.c (giop_connection_dispose): release thread key. * src/orb/poa/poa.c (pool_push_request_for_T): impl. (ORBit_POA_handle_request): implement PER_OBJECT,POA,CONNECTION,REQUEST policies. (ORBit_POA_free_fn, ORBit_POAObject_release_cb): de-register threading keys. * src/orb/GIOP/giop.c (giop_thread_key_release_T) (giop_request_handler_fn, giop_thread_key_release) (giop_thread_request_push_for): impl. (giop_init): create the thread pool. 2003-05-06 Michael Meeks * src/orb/orb-core/corba-object.c (ORBit_demarshal_object): add precondition. * src/orb/orb-core/orbit-small.c (ORBit_small_get_connection_status): add pre-condition. 2003-05-03 Michael Meeks * Version 2.7.1 2003-04-29 Michael Meeks * test/everything/client.c (main, run_tests): pull out testSegv. * src/orb/orb-core/corba-object.c (ORBit_try_connection): bin some type-checked casts. * test/everything/client.c (run_threaded_tests), (test_thread): impl. * src/orb/util/genrand.c (genuid_rand_openssl), (genuid_glib_pseudo, genuid_simple): take lock for static incrementing foo. (ORBit_genuid_fini, ORBit_genuid_init): setup lock. * src/orb/orb-core/corba-object.c (ORBit_objref_new): setup the adaptor_obj explicitely at construct time. * src/orb/poa/poa.c (ORBit_POA_obj_to_ref): upd. * test/everything/client.c (testAsync): upd. * src/orb/orb-core/orbit-small.c (ORBit_small_get_connection): don't take a ref, for b/w compatibility. (ORBit_small_get_connection_ref): add separate method. 2003-04-25 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_stub, ORBit_small_invoke_async) (ORBit_small_get_connection_status) (ORBit_small_unlisten_for_broken, get_status) (ORBit_small_get_connection): update to handle cnx. reference correctly. (ORBit_small_connection_unref): impl. * src/orb/orb-core/corba-object.c (ORBit_objref_get_proxy, ORBit_marshal_object): register objref after generating profiles, hold lock, refactor slightly. (ORBit_object_get_connection): return an incremented ref. (CORBA_Object_non_existent): handle ref. * src/orb/orb-core/iop-profiles.c (IOP_generate_profiles): remove object registration. 2003-04-24 Michael Meeks * test/everything/test.sh: add threaded tests into the default run: too bold perhaps. * src/orb/orb-core/corba-object.c (_ORBit_object_init): impl. (ORBit_try_connection): re-hash; add locking. (CORBA_Object_release_cb): bin giop_connection_unref. (ORBit_object_get_connection): hold the lock while we're working on the object. * src/orb/GIOP/giop-connection.c (giop_connection_unref): bin it. * src/orb/orb-core/corba-orb.c (CORBA_ORB_init): add init. 2003-04-23 Michael Meeks * src/orb/orb-core/corba-object.c (ORBit_try_connection): here lurketh much grief. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_msg_reading_body): add comment on 0 length message for CLOSECONNECTION. (giop_connection_handle_input): handle 0 length bodies properly. 2003-04-21 Herbert Valerio Riedel * src/orb/poa/orbit-adaptor.c (ORBit_handle_locate_request): impl. a stub (checks for POA, but not object itself so far). * src/orb/orb-core/orbit-small.c (orbit_small_marshal): set the response_expected flag correctly for oneways. * src/orb/GIOP/giop-send-buffer.c (giop_send_buffer_use_request): fix request id bits. (giop_send_buffer_write): don't tail align send buffers, we only want to do that (elsewhere) for fragments (it seems) * src/orb/GIOP/giop-recv-buffer.c (giop_GIOP_TargetAddress_demarshal): clean it up. (giop_recv_buffer_demarshal_locate_request_1_2): fix id demarshal (giop_recv_buffer_get_request_id, giop_recv_buffer_demarshal): add "close connection" stub. (giop_recv_buffer_get_objkey): make it work fully for more msg types & versions. (giop_connection_handle_input): handle locate request. 2003-04-21 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (giop_recv_set_limit): impl. (giop_recv_buffer_handle_fragmented, giop_recv_msg_reading_body): use the dynamic limit instead. * src/orb/orb-core/corba-orb.c (CORBA_ORB_init): set the limit, add an "ORBInitialMsgLimit" option. * src/orb/GIOP/giop.c (wakeup_mainloop): handle EINTR. 2003-04-19 Michael Meeks * src/orb/GIOP/giop.c (giop_init, giop_shutdown): bin incoming thread bits. * src/orb/orb-core/orbit-small.c (get_status): use linc_connection_get_status. * src/orb/GIOP/giop-connection.c (giop_connection_close): use linc_connection_disconnect instead of a dubious forced state change. 2003-04-18 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (giop_connection_handle_input): hold neither ref nor lock, linc does it. * src/orb/GIOP/giop-connection.c (giop_connection_real_state_changed) (giop_connection_dispose, giop_connection_init): bin locking action. * include/orbit/GIOP/giop-connection.h: bin incoming and outgoing mutex; all locking is in linc-connection now. 2003-04-18 Gustavo J. A. M. Carneiro * src/orb/poa/orbit-adaptor.c (ORBit_ObjectAdaptor_set_thread_hint): Update debugging check to consider the new _IDLE thread hints. 2003-04-17 Michael Meeks * test/everything/client.c (test_basic_server): re-factor this out so we can apply it to different remote POA policies later. * src/orb/poa/poa.c (push_request_idle, poa_invoke_at_idle), (ORBit_POA_handle_request): impl both. both idle policies. (poa_recv_is_oneway): impl. 2003-04-15 Masahiro Sakai * Makefile.shared: append $(EXEEXT) to IDL_COMPILER. * configure.in: call AC_LIBTOOL_WIN32_DLL. * configure.in: call AC_PROG_CC earlier. because AM_PROG_LIBTOOL needs it. * src/orb/GIOP/giop.c (test_safe_socket_dir): disable permission checking on Cygwin. * src/orb/Makefile.am: add -no-undefined to libORBit_2_la_LDFLAGS. * src/services/imodule/Makefile.am: add -no-undefined to libORBit_imodule_2_la_LDFLAGS and write dependency libraries in libORBit_imodule_2_la_LIBADD explicitly. * src/services/name/Makefile.am: add -no-undefined to libORBitCosNaming_2_la_LDFLAGS and write dependency libraries in libORBitCosNaming_2_la_LIBADD explicitly. * test/everything/Makefile.am: add -no-undefined to Everything_module_la_LDFLAGS. 2003-04-10 Michael Meeks * docs/FAQ: update threading bits. 2003-04-08 Michael Meeks * configure.in: check for a slew of sys headers. * src/orb/orb-core/orbhttp.c: only include headers we have. 2003-04-04 Michael Meeks * test/poa/poatest-basic11.c (poatest_run): test the ObjectId <-> string methods. This test fails. * src/orb/poa/poa.c (PortableServer_ObjectId_to_wstring) (PortableServer_ObjectId_to_string): don't trample on bits off the end of the string terminating it. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_thread_fn): remove shutdown warning. * src/orb/GIOP/giop.c (giop_shutdown): guard against double invocation. * src/orb/orb-core/corba-orb.c (ORBit_ORB_shutdown_servers): remove warning. (CORBA_ORB_shutdown): delay server shutdown until giop worker thread is joined. * src/orb/orb-core/iop-profiles.c (IOP_delete_profiles): NULL ORB profiles pointer. 2003-04-03 Michael Meeks * src/orb/orb-core/corba-object.c (ORBit_register_objref): take the ORB lock, and work on the ORB. (ORBit_lookup_objref, CORBA_Object_release_cb): ditto. (ORBit_objref_find): set the orb before lookup. * src/orb/orb-core/corba-orb.c (CORBA_ORB_shutdown): don't do an init_level check, don't barf half way on 'wait for completion', but actually do a full shutdown (doh). (strip_object_profiles): do this on the objects. * test/everything/server.c (TestFactory_segv): do a shutdown, not a dodgy loop kill. 2003-04-02 Richard Kinder * configure.in: fix for #108932 - warning spat out for linux/irda.h. Also fix up error case when no pkg-config script exists - exit with AC_MSG_ERROR rather than letting the script die by coincidence. 2003-04-01 Michael Meeks * src/orb/GIOP/giop.c (giop_shutdown, giop_main_run): add shared seperate 'main-thread' glib mainloop, If you are running your own loop, you get to quit that yourself on CORBA_ORB_shutdown, we only break out of CORBA_ORB_run's loop, if it's going. * src/orb/poa/poa-private.h: add. * src/orb/poa/poa.c (ORBit_POA_free_fn, ORBit_POA_new): add a per poa lock, add '_T' suffixes to things that take / release no locks. Push POA_[UN]LOCK throught, need some work on pre-conditions though. (ORBit_POAObject_handle_request): do some ref holding over invocation & re-factor exception processing. * src/orb/poa/poa-manager.c (PortableServer_POAManager_get_state): lock sprinkling. * src/orb/poa/poa.c (ORBit_POACurrent_get_object): hold the orb lock while poking at current_invocations. (ORBit_POAObject_handle_request), (PortableServer_POA_servant_to_reference): ditto. (push_request): split out * src/orb/orb-core/orbit-small.c (orbit_small_demarshal): add comment for Rich Burridge. 2003-03-31 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (giop_recv_buffer_get): integrate the request processing into the same condition. * src/orb/GIOP/giop.c (giop_thread_get_main): impl. * test/everything/client.c (run_tests): shunt testMisc belong pingPong. * src/orb/GIOP/giop.c: massive threading re-hash, realised a seprate GIOPQueue to the GIOPThread was a painful waste of time. * src/orb/poa/poa.c (queue_request, local_main_handle) (LocalClosure): kill old hacks. (ORBit_POA_handle_request): use new external hacks. * src/orb/poa/poa.c (ORBit_poa_init): add. * src/orb/orb-core/corba-orb.c (CORBA_ORB_init): do the poa_init. * src/orb/GIOP/giop.c (scan_socket_dir): handle non-existant directories gracefully. * test/everything/test.sh: stop 'make check' destroying the system socket directory - and causing all manner of grief. * src/orb/GIOP/giop-connection.c (giop_connection_initiate): bin last ORBIT_THREADED conditionals. * include/orbit/GIOP/giop-basics.h, * src/orb/GIOP/giop-server.c (giop_server_new): ditto 2003-03-29 Michael Meeks * src/orb/orb-core/corba-orb.c (CORBA_ORB_run): add a nasty hack to not do a linc_mainloop in the threaded case, since that causes acute problems. * test/everything/test.sh: add --threaded test. * src/orb/GIOP/giop-connection.c (giop_connection_dispose): (giop_connection_init): bin outgoing_mutex, move this into linc for easier cross thread output task transfer. * src/orb/GIOP/giop-send-buffer.c (giop_send_buffer_write): ditto. 2003-03-30 Richard Kinder * src/orb/orb-core/corba-context.c: Code cleanups. Remove gboolean return value from free_child since it is never used. Clean up some unused user_data arguments to g_slist_foreach and g_hash_table_foreach_remove. Fixes #109358. 2003-03-28 Michael Meeks * src/orb/GIOP/giop-send-buffer.c (giop_send_buffer_write): do the nasty re-entering connection wait phase here instead of in linc, so we can make it thread safe later. 2003-03-28 Michael Haubenwallner * src/orb/orb-core/corba-any.c (ORBit_marshal_value): fix silly marshalling packed types. 2003-03-28 Michael Meeks * test/everything/client.c (testFixedLengthArray): split into (testLongArray) add (testOctetArray). * test/everything/arrayServer.c (ArrayServer_opOctetArray): add. 2003-03-27 Michael Meeks * src/orb/GIOP/giop-send-buffer.c (giop_send_buffer_init): always enable wire data wiping if ORBIT_PURIFY. * src/orb/GIOP/giop.c (giop_tmpdir_init): use g_get_tmp_dir instead of hard-coding "/tmp". 2003-03-25 Michael Meeks * Version 2.7.0 2003-03-25 Richard Kinder * src/services/name/orbit-name-server.c: return CORBA_OBJECT_NIL rather than NULL, clean up rn_unref functions. Fixes #109125. 2003-03-24 Richard Kinder * src/orb/poa/poa.c: Change return values for ORBit_POA_is_inuse and ORBit_POA_destroy to gboolean's, not CORBA_boolean's. Fixes #109066 2003-03-18 Archana Shah * /configure.in: Put a check to read the argument for, whether to enable orbhttp compilation. * /src/orb/orb-core/Makefile.am: Changed so that orbhttp.c and orbhttp.h will be compiled only if mentioned. * /src/orb/orb-core/corba-orb.c (CORBA_ORB_init): Put checks for compilation of http-ior segment. 2003-03-18 Shailesh Mittal * src/orb/orb-core/iop-profiles.c (IOP_start_profiles): Fixed the bug, now it works for IPv6 options without having unix option set, by eliminating the requirement of osi profile for IPv6. Fixed sense of string comparision which check for duplicate profiles. 2003-03-17 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_adaptor): memset scratch, args to 0. (ORBit_small_invoke_adaptor, orbit_small_demarshal): handle de-marshalling overruns with an exception, rather a goto spaghetitfication. * src/orb/include/Makefile.am: check and install rules depend on 'all', hopefully fixes brokenness with 'make install' * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_adaptor): use g_alloca now we have it. * src/orb/GIOP/giop-recv-buffer.c (giop_connection_handle_input): debug dump the correct body offset instead of starting at 0, use 12. * src/orb/GIOP/giop.c (giop_dump): print --- delimiter after dumping the full block. 2003-03-15 Christophe Merlet * ORBit-imodule-2.0.pc.in: Fix a typo. 2003-03-14 Michael Meeks * src/orb/orb-core/corba-any.c (ORBit_demarshal_value): optimize zero length sequences. * src/orb/orb-core/corba-orb.c (CORBA_ORB_destroy): give a different warning if people unref but don't destroy the ORB. 2003-03-11 Michael Meeks * src/orb/orb-core/corba-any.c (ORBit_sequence_alloc) (ORBit_sequence_append, ORBit_sequence_set_size) (ORBit_sequence_concat): impl & stub sequence helpers. (SKIP_ALIAS): use this throught. * src/orb/orb-core/allocators.c (ORBit_alloc_get_tcval): impl. * src/orb/poa/poa.c (ORBit_POAObject_handle_request): only lookup CORBA_Object small skels in-proc. 2003-03-03 Michael Meeks * src/orb/poa/poa.c (ORBit_POA_handle_request): add HINT_ONEWAY_AT_IDLE and HINT_ALL_AT_IDLE thread hints - currently ONEWAY doesn't distinguish. 2003-02-14 Mark McLoughlin * include/orbit/poa/orbit-adaptor.h: add ORBit_ObjectAdaptor_(get|set)_thread_hint. * src/idl/misc/PortableServer.idl: kill non spec compliant ThreadPolicy enum values. * src/orb/poa/orbit-adaptor.c: (ORBit_ObjectAdaptor_set_thread_hint), (ORBit_ObjectAdaptor_get_thread_hint): impl. (ORBit_adaptor_setup): init the hint. * src/orb/poa/poa.c: (queue_request): split out from handle_request(). (ORBit_POA_handle_request): upd and treat ORB_CTRL mode with no hint just like single threaded mode. 2003-02-11 Mark McLoughlin * Makefile.am, ORBit-imodule-2.0.pc.in, configure.in: build and install a pkg-config file for the imodule service. * src/services/imodule/Makefile.am: actually install the damn thing. Doh. 2003-02-10 Michael Meeks * src/orb/GIOP/giop.c (wakeup_mainloop): spew errors on error. * src/orb/GIOP/giop-recv-buffer.c (giop_connection_handle_input): add more helpful messages. * configure.in: make the "can't link" message more generally helpful. 2003-01-26 Michael Meeks * test/everything/client.c (wait_till_done): split out, and add thread safe path. * src/orb/poa/poa.c (ORBit_POA_handle_request): free the recv buffer if we've handled it immediately in this thread. (ORBit_POA_object_id_lookup): return a ref. (PortableServer_POA_create_reference_with_id), (PortableServer_POA_activate_object_with_id), (PortableServer_POA_id_to_reference), (PortableServer_POA_id_to_servant): tool up with matching releases. (ORBit_POA_handle_request): hold the pobj during the scope. (ORBit_POA_set_policies): init threading type to STM by default. * src/orb/GIOP/giop-recv-buffer.c (giop_connection_handle_input): let ORBit_handle_request free the recv buffer when convenient. * src/orb/poa/orbit-adaptor.c (ORBit_adaptor_find): dup the returned ref, and hold lifecycle lock over orb->adaptors manipulation. (ORBit_handle_request): release the ref. (ORBit_adaptor_setup): hold lifecycle lock over adaptor setup. 2002-11-29 Michael Meeks * src/orb/GIOP/giop-connection.c (giop_connection_list_lookup), (giop_connection_initiate), (giop_connections_shutdown): use linc_object_[un]ref. * src/orb/GIOP/giop-recv-buffer.c (giop_connection_handle_input): ditto. 2002-10-31 Michael Meeks * src/orb/orb-core/corba-orb.c (ORBit_ORB_start_servers): lock the ORB while setting up the profiles. (ORBit_ORB_shutdown_servers): guard with locks. * src/orb/GIOP/giop.c (giop_shutdown): impl. * src/orb/GIOP/giop-connection.c (giop_connection_remove_by_orb): rename to (giop_connections_shutdown): this & upd. (giop_connection_unref): use linc_object_unref. * src/orb/GIOP/giop.c (giop_init): actually start the IO thread ;-) 2002-10-31 Michael Meeks * test/echo-client-t.c (main): init mt orb. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_list_destroy_queue_entry): kill bogus thread stuff. (handle_reply): queue up reply recv's on the right thread for processing elsewhere. (giop_recv_buffer_get): kill unused non-blocking mode, substantially re-write. (giop_recv_list_zap): use locking. * src/orb/GIOP/giop.c (giop_thread_push_recv): impl. 2002-10-30 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (giop_recv_list_setup_queue_entry_async), (giop_recv_list_setup_queue_entry): upd. (giop_connection_handle_input): upd. * include/orbit/GIOP/giop-recv-buffer.h (GIOPMessageQueueEntry): bin bogus thread bits, add thread id. * src/orb/GIOP/giop.c (giop_init): pass threaded, setup main thread / context wakeup. (giop_thread_new, giop_thread_self): impl. * src/orb/orb-core/corba-orb.c (CORBA_ORB_init): check for orbit-local-mt-orb profile. 2003-01-26 Michael Meeks * test/everything/server.c (main), * test/everything/client.c (main): add --threaded option to enable threading. 2002-12-20 Michael Meeks * src/orb/poa/poa.c (ORBit_POAObject_handle_request): upd. * include/orbit/poa/poa-types.h: make the first element a 'dummy' - reflecting reality. * include/orbit/poa/poa-basics.h: bin the old relay_call. Rename the impl_finder. 2003-01-09 Mark McLoughlin * src/orb/orb-core/corba-orb.c: (CORBA_ORB_create_struct_tc), (CORBA_ORB_create_union_tc), (CORBA_ORB_create_enum_tc), (CORBA_ORB_create_alias_tc), (CORBA_ORB_create_exception_tc), (CORBA_ORB_create_interface_tc), (CORBA_ORB_create_string_tc), (CORBA_ORB_create_wstring_tc), (CORBA_ORB_create_fixed_tc), (CORBA_ORB_create_sequence_tc), (CORBA_ORB_create_recursive_sequence_tc), (CORBA_ORB_create_array_tc): remove malloc return value checks - its all through glib. 2003-01-09 Michael Meeks * configure.in: bump version to 2.7.0, require linc >= 1.1.0 * Branch for gnome-2-2 2003-01-06 Michael Meeks * test/everything/server.c (CLOBBER_SYM): actually clobber the symbol. 2002-12-28 Michael Meeks * Version 2.5.1 2002-12-28 Michael Meeks * test/everything/Makefile.am: define TEST_SRCDIR * test/everything/server.c (init_interfaces): re-write. (main): use TEST_SRCDIR. * src/services/imodule/orbit-imodule-utils.c (ORBit_imodule_jam_int): split out of (ORBit_imodule_setup_label_any): here, fix memory corrupting nasties with using '0', '1' for booleans, and wrong 'node' for binops. Handle 'short' tc's. 2002-12-17 Michael Meeks * src/idl-compiler/orbit-idl-c-typecode.c (orbit_add_align): impl. (orbit_find_c_align): re-write to use a string list of the ALIGNOF defines. (orbit_output_tcstruct_c_align): build a MAX statement, where appropriate. 2002-12-26 James Henstridge * src/orb/orb-core/Makefile.am (IDL_FLAGS): add -I. to IDL_FLAGS. This gets rid of the multiple symbol definition errors with newer autoconf and/or automake (not sure which one is causing the problem). 2002-12-02 Michael Meeks * src/idl-compiler/orbit-idl-utils.c (oidl_param_info): bail out if we get an exception as a parameter. 2002-11-21 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_handle_exception_array): ensure we always exit with an exception set, even with odd wire data. 2002-11-05 Mark McLoughlin * test/everything/everything.idl: add simple regression test to catch the bug below. 2002-11-05 Mark McLoughlin * src/idl-compiler/orbit-idl-c-headers.c: (ch_prep): out enum types declared as part of a typedef. Fixes #97238. 2002-11-04 Thomas Vander Stichele * configure.in: - require pkg-config 0.14.0 - make AC_DEFINE* three-argument (someone might want to remove acconfig.h) * autogen.sh: - fail if configure failed 2002-10-28 Marion Schuenemann * src/services/name/boot.c (main): move ORB init up the heap, so we can use eg. ORBIIOPIPName 2002-10-24 Michael Meeks * test/echo-client-t.c (echo_client_thread): add a threaded test client, so we at least know where things break. 2002-10-18 Michael Meeks * Version 2.5.0 2002-10-18 Michael Meeks * test/everything/Makefile.am (INCLUDES): add IDL_CFLAGS for the imodule service; we need a new .pc.in file for that service I think, we don't want to pollute the include space with libIDL unnecessarily. 2002-10-18 Mark McLoughlin * src/services/imodule/orbit-imodule-utils.[ch]: (typecodes_hash_foreach), (ORBit_imodule_get_typecodes_seq): impl converting a typecode hash into a sequence. * src/services/imodule/orbit-imodule.[ch]: (ORBit_iinterface_from_tree): kill. Its useless. (ORBit_iinterfaces_from_tree): return a sequence of typecodes. Add docs. (ORBit_iinterfaces_from_file): ditto. * test/everything/client.c: (main): upd and test the typecodes sequence. * test/everything/server.c: (get_server): upd. 2002-10-18 Mark McLoughlin * src/services/imodule/orbit-imodule-utils.[ch]: * src/services/imodule/orbit-imodule.[ch]: Don't use a global has of TypeCodes. 2002-10-18 Mark McLoughlin * src/services/imodule/*: added runtime IDL->IInterfaces service. * configure.in, src/services/Makefile.am: added build for above. * test/everything/Makefile.am: build against libORBit-imodule. * test/everything/client.c: (main): * test/everything/server.c: (init_iinterfaces), (get_server): add --gen-imodule arg to run tests using runtime generated IInterfaces. * test/everything/test.sh: use it. 2002-10-17 Albert Chin * src/orb/orb-core/orbit-debug.h (dprintf): add ERRORS define for ugly non-varargs case. * test/everything/client.c (test_BasicServer_opStringA_cb), (test_BasicServer_opStringA): kill duff array inits in decl. 2002-10-16 James Henstridge * src/idl-compiler/orbit-idl-c-imodule.c (ci_build_types): handle types nested within structs, unions and exceptions. * test/everything/client.c (testIInterface): add a test to check that the subnames array of the FixedLengthUnion typecode is correct. * src/idl-compiler/orbit-idl-c-typecode.c (orbit_output_tcstruct_anon_subnames_array): when generating the subnames array for unions, repeat the name once for each label associated with the case statement. 2002-10-16 Michael Meeks * test/everything/client.c (testIInterface): add type regression tests for James' work. * src/idl-compiler/orbit-idl-c-utils.c (orbit_cbe_flatten_args): use _args[i] =...; initialization instead of array init, to make HP/UX happy. 2002-10-14 Mark McLoughlin * src/orb/poa/orbit-adaptor.c: (ORBit_handle_request): init and free the exception to stop crasher on exception. 2002-10-02 James Henstridge * src/idl-compiler/orbit-idl-c-typecode.c (cbe_tc_generate): same here. * src/idl-compiler/orbit-idl-c-common.c (cc_output_class_id): check for IMODULE symbol including file name. (cc_output_itypes): and here. * src/idl-compiler/orbit-idl-c-headers.c (ch_type_alloc_and_tc): only define typecode struct as static if the header matches the imodule we are compiling. (ch_output_itypes): and here too. * src/idl-compiler/orbit-idl-c-imodule.c (orbit_idl_output_c_imodule): only define ORBIT_IDL_C_IMODULE_filename. 2002-10-02 Mark McLoughlin * src/orb/orb-core/corba-typecode.c: (CORBA_TypeCode_get_compact_typecode), (CORBA_TypeCode_type_modifier), (CORBA_TypeCode_concrete_base_type): add stubs for these that just through a NO_IMPLEMENT exception. (CORBA_TypeCode_kind), (CORBA_TypeCode_id), (CORBA_TypeCode_name), (CORBA_TypeCode_member_count), (CORBA_TypeCode_member_name), (CORBA_TypeCode_member_type), (CORBA_TypeCode_member_label), (CORBA_TypeCode_discriminator_type), (CORBA_TypeCode_default_index), (CORBA_TypeCode_length), (CORBA_TypeCode_content_type), (CORBA_TypeCode_fixed_digits), (CORBA_TypeCode_fixed_scale), (CORBA_TypeCode_member_visibility): Add implementations for these. Based on original implementation by Tom Tromey which was merged into the cpp branch by Sam Couter. 2002-10-02 Mark McLoughlin * src/idl-compiler/orbit-idl-backend.c: (load_language_backend): kill bogus g_module_close. Thanks to Gergo for pointing it out. 2002-09-30 ERDI Gergo * src/idl-compiler/orbit-idl-c-stubs.c (cs_output_stub): Cast EPV to correct type before storing it 2002-09-30 Michael Meeks * test/everything/client.c (find_tc): return the typecode. (testIInterface): do some tests on StrSeq. * src/orb/orb-core/orbit-small.c (orbit_small_marshal, orbit_small_demarshal), (ORBit_small_invoke_adaptor): bin inefficient trailing TC_void business. 2002-09-24 Michael Meeks * src/orb/orb-core/corba-typecode.c: TC_void's kind should be tk_void. * configure.in: bump to 2.5.0, so it's clear this is the devel-branch. * src/idl-compiler/orbit-idl-c-common.c (cc_output_method): output TC_void not CORBA_OBJECT_NIL for no return value. * src/idl-compiler/orbit-idl-c-common.c (cc_output_iargs, cc_output_method): don't do silly things with the argument list length, fixes #93928 2002-09-24 Michael Meeks * configure.in: require linc >= 0.7.0 * src/orb/GIOP/giop-connection.c (giop_connection_real_state_changed): remove nasty locking silly workaround. 2002-09-20 Mark McLoughlin * ORBit.spec.in: remove name-client-2 and orbit-name-server-2 since they are no longer installed. Fixes #93643. 2002-09-20 Mark McLoughlin * test/Makefile.am: * test/poa/Makefile.am: * test/inhibit/Makefile.am: add $(ORBIT_LIBS) to LDADD. 2002-09-17 Murray Cumming * src/idl-compiler/orbit-idl-backend.c (orbit_idl_backend_output): Warn if the specified idl compliler backend could not be found. 2002-09-04 Mark McLoughlin Re-implement the idl-compiler language backend loading. * configure.in: add src/idl-compiler/ORBit-idl-2.0.pc. * src/idl-compiler/orbit-idl-backend.[ch]: implement. * src/idl-compiler/Makefile.am: remove orbit-idl-backends.c from the build and add orbit-idl-backend.[ch]. Install orbit-idl-backend.h into $(prefix)/include/orbit-2.0/orbit-idl, install the pkg-config file into $(prefix)/lib/pkgconfig. * src/idl-compiler/orbit-idl-backends.c: remove. * src/idl-compiler/orbit-idl-c-backend.[ch]: (orbit_idl_output_c): return a bool. * src/idl-compiler/orbit-idl-driver.c: (orbit_idl_to_backend): hardwire in the c backend and use the loader for anything else. Also return a bool. * src/idl-compiler/orbit-idl-main.c: don't define the backend directory here. * src/idl-compiler/orbit-idl2.h: kill OIDL_Backend_Info. * src/idl-compiler/orbit-idl3-types.h: upd. * src/idl-compiler/ORBit-idl-2.0.pc.in: add 2002-09-04 Mark McLoughlin Merged some stuff from orbit-cpp-cactus. * include/orbit/orb-core/corba-typecode.h: include giop-basics.h if we're using the headers internally. * src/idl-compiler/Makefile.am: don't define -DDEBUG. * src/orb/orb-core/corba-orb.c: (ORBit_TypeCode_allocate), (CORBA_ORB_create_struct_tc), (CORBA_ORB_create_union_tc), (CORBA_ORB_create_enum_tc), (CORBA_ORB_create_alias_tc), (CORBA_ORB_create_exception_tc), (CORBA_ORB_create_interface_tc), (CORBA_ORB_create_string_tc), (CORBA_ORB_create_wstring_tc), (CORBA_ORB_create_fixed_tc), (CORBA_ORB_create_sequence_tc), (CORBA_ORB_create_recursive_sequence_tc), (CORBA_ORB_create_array_tc): s/CORBA_TypeCode_allocate/ORBit_TypeCode_allocate/g 2002-09-04 Mark McLoughlin * src/idl-compiler/*: chop, chop - take 2: a year on, remove all the non-small code again, except this time a lot more cleanly. That's 6,000 lines of code we don't have to maintain anymore :-) 2002-08-23 Michael Meeks * Version 2.4.3 2002-08-23 Michael Meeks * src/orb/orb-core/corba-any.c (ORBit_demarshal_value): don't do expensive re-allocs on every sequence from length 1 upwards, re-assuring this works though, start with 4096 elements. 2002-08-18 Havoc Pennington * autogen.sh: hardcode aclocal-1.4/automake-1.4 so that users with both automake 1.6 and 1.4 installed get the right automake. Means compilation from CVS will now require the latest automake 1.4 release, or manually creating symlinks called "automake-1.4" and "aclocal-1.4" 2002-08-16 Michael Meeks * Version 2.4.2 * test/test-performance.c (test_copy): more tests. 2002-08-15 Darren Kenny * src/orb/orb-core/corba-object.c (get_small_skel_CORBA_Object): upd. to '_is_a' (CORBA_Object__imethods): update _is_a, get_interface->_interface, non_existent -> _non_existent to comply with the spec and interop with Java. 2002-08-07 Michael Meeks * src/idl-compiler/orbit-idl-c-headers.c (ch_type_alloc_and_tc): add missing '\n's spiking build, thanks Jody. 2002-08-05 Michael Meeks * src/orb/orb-core/orbit-object.c (object_hash_dump): fix output. 2002-08-05 Laurent Vivier * src/orb/orb-core/orbit-small.c (ORBit_handle_exception_array): char cast. (ORBit_small_unlisten_for_broken): add G_CALLBACK cast on fn. * src/orb/orb-core/orbit-debug.h: stubs for unsupported vararg types. * src/orb/orb-core/corba-orb.c: no static after extern. * src/orb/orb-core/allocators.c (ORBit_freekids_via_TypeCode_T): char * cast. * src/orb/dynamic/dynany.c (MAKE_DYNANY_INSERT): prune redundant ';'s (DynamicAny_DynSequence_get_elements_as_dyn_any): kill redundant cast. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_buffer_demarshal_request_1_1), (giop_recv_buffer_demarshal_request_1_2): signedness string casts. * src/idl-compiler/orbit-idl-c-headers.c (ch_output_types): undefine before define. (ch_type_alloc_and_tc): improve imodule output. (ch_output_itypes): deal with empty imethods. * *.[ch]: remove trailing ','s at end of enums for AIX compiler. * src/idl-compiler/orbit-idl-c-common.c (cc_small_output_method): same - in compiler. (cc_small_output_itypes): only output an itype if it's non-empty (/used) 2002-08-05 Michael Meeks * src/idl-compiler/orbit-idl-c-backend.h: use guint instead of guint8 for bitfields. * src/orb/poa/poa.c (ORBit_POAObject_object_to_objkey): switch to guchar * pointer for arithmetic. 2002-08-05 Michael Meeks * Version 2.4.1 * src/services/name/Makefile.am: objects fix. 2002-07-24 Michael Meeks * test/test-giop.c (run_test): upd. * src/orb/orb-core/corba-object.c (ORBit_object_get_connection): pass the orb into cnx initiate. * src/orb/GIOP/giop-connection.c (giop_connection_initiate): upd. (giop_connection_set_orb_n_ver): impl. * src/orb/GIOP/giop-server.c (giop_server_handle_create_connection): upd. 2002-07-10 Brian Cameron * src/services/name/Makefile.am No longer install name-client-2 or orbit-name-server-2 since they are not used. 2002-07-10 Michael Meeks * configure.in: detect the dofus earlier and more explicitely. 2002-07-08 Martin Pool * src/services/name/Makefile.am: update build rules requiring CosNaming.h to be built first. 2002-07-01 Michael Meeks * src/orb/poa/orbit-adaptor.c (ORBit_handle_request): return a system exception if we can't find the method, so the remote end won't just hang forever. * src/orb/poa/poa.c (return_exception): split guts out. (ORBit_recv_buffer_return_sys_exception): into here 2002-07-01 Murray Cumming * src/idl-compiler/orbit-idl3-types.h: Applied Felix Breuer's "namespace -> ns" patch, and added comment to code so that it won't be reverted again. The C++ keyword "namespace" was being used as a struct field name. 2002-06-27 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (giop_recv_list_zap): always remove the stale ent from the list, and NULL the dying cnx. (giop_recv_buffer_get): check for a NULL ent's cnx. (giop_connection_destroy_frags): impl. (giop_recv_buffer_handle_fragmented): check that we don't have an inconsistant 'fragments_follow' state. * src/orb/GIOP/giop-connection.c (giop_connection_dispose): dispose the fragments. * src/orb/orb-core/orbit-small.c (async_recv_cb): treat a NULL cnx, like the disconnection it is. * src/orb/orb-core/corba-any.c (ORBit_demarshal_value): do exponential growing of sequences so we don't blow the memory - since we find it hard to do pre-alloc bounds checking on arbitrary sequence contents. Free the sequence on failing to de-marshal. * src/orb/orb-core/allocators.c (ORBit_realloc_tcval): impl. for the above scheme. 2002-06-27 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (giop_connection_handle_input): update reporting to make DEBUG=errors more useful. (handle_reply): don't dump the reply. * test/test-giop.c (test_mangling): impl. (main): upd. (test_incoming_mangler): randomly mangle passing data. * src/orb/GIOP/giop-server.c: conditionalize new_connection debug hook. 2002-06-26 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (concat_frags): propagate out of memory condition upwards. (giop_connection_remove_frag): move buffer unuse here. conditionalize debug hooks on a debug build. (giop_connection_handle_input): close the connection on out of bound input more aggressively. (concat_frags): make sure head->end points at the right bound. (giop_recv_buffer_handle_fragmented): build the overall length into the head message_size, and bounds check it against MSG_SIZE_LIMIT. * test/ior-decode.c (main): re-hash & expand. 2002-06-25 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (alloc_buffer): (giop_recv_msg_reading_body): handle the out of memory situation gracefully. 2002-06-25 Michael Meeks * src/orb/GIOP/giop.c (giop_tmpdir_init): update to new genuid API, how did this get missed (!), dependency problems it seems. * src/orb/GIOP/giop-send-buffer.c (giop_send_buffer_init): upd. (get_next_indirect): blank newly allocated memory if giop_blank_wire_data is set. (giop_send_buffer_use): blank indirects we have already used. * src/orb/GIOP/giop.c (giop_init): upd. * src/orb/orb-core/corba-orb.c (CORBA_ORB_init): pass flag to giop_init. * src/orb/poa/poa.c (PortableServer_POA__get_the_children): fix annoying typedef warning type thing, needs an IDL compiler fix really. 2002-06-25 Michael Meeks * src/orb/poa/orbit-adaptor.c (ORBit_adaptor_setup), (ORBit_adaptor_find): upd. * src/orb/poa/poa.c (ORBit_POA_new_system_objid), (ORBit_POA_create_object, ORBit_POA_object_key_lookup): upd. * src/orb/util/genrand.c (ORBit_genuid_init): always do simple init, fallback to /dev/random if we don't have /dev/urandom, return a status. (ORBit_genuid_fini): upd. (ORBit_genuid_buffer): update to pass a role in. (genuid_simple): upd. * src/orb/orb-core/corba-orb.c (CORBA_ORB_init): split out (genuid_init): this, and trap some of the more heinous error cases we can catch. * test/test-giop.c (test_cookie): add. 2002-06-24 Michael Meeks * src/orb/util/genrand.c (ORBit_genuid_init): prune bits out. * src/orb/poa/poa.c (ORBit_POA_new_system_objid): update arithmetic. 2002-06-24 Michael Meeks * test/test-giop.c: fix the non-debugging build. 2002-06-24 Gustavo Gir�ldez * src/orb/util/orbit-options.c (ORBit_option_command_line_parse): fix '\0' termination regression. 2002-06-21 Michael Meeks * test/test-giop.c (run_test): add symmetry test. (main): test things both ways around. 2002-06-21 Michael Meeks * test/test-giop.c (test_spoof_callback), (test_spoof_hook, test_spoofing): impl. (run_test): impl. (wait_for_disconnect): impl. (run_test_hook_new_connection): impl. (main): upd. * src/orb/GIOP/giop-server.c (giop_server_handle_create_connection): add a new connection debugging hook. * src/orb/GIOP/giop-recv-buffer.c (handle_reply): validate the reply came from the right connection, return TRUE/FALSE depending. (giop_connection_handle_input): terminate connections that do bad things to us. * src/orb/orbit-init.c (ORBit_init_internals): add a getuid to the srand. 2002-06-20 Michael Meeks * src/orb/orb-core/orbit-typelib.c (ORBit_get_typelib_paths): use GNOME2_PATH to be consistant with the rest of the platform. (ORBit_small_load_typelib): document. * src/orb/util/orbit-options.c (ORBit_option_command_line_parse): properly erase arguments we chew, instead of nulling them via argv [j++] = '\0' - odd indeed. We decrement argc anyway. * src/orb/orb-core/corba-orb.c (CORBA_ORB_string_to_object): only use the orbhttp code if it's explicitely enabled with --ORBHTTPIORs. * src/orb/orb-core/orbhttp.c: brief review and condemn as riddled with security holes, env. var buffer overflows, dubious un-integrated socket code etc. etc. 2002-06-19 jacob berkman * configure.in: fix obvious typo in debug cflags stuff 2002-06-18 Michael Meeks * test/everything/pingServer.c (PingPongServer_opOneWayCallback): kill warning. * src/orb/GIOP/giop-send-buffer.c (giop_send_buffer_use): paranoid checks on the giop version we are passed 2002-06-18 Alexander Larsson * test/everything/client.c (testPingPong): Initialize broken. 2002-06-18 Michael Meeks * src/orb/GIOP/giop-send-buffer.c (get_next_indirect): check the send buffer for 8 byte alignment, thanks to Alex Larsson 2002-06-17 Michael Meeks * src/orb/orb-core/corba-orb.c (ORBit_ORB_start_servers): pass local only create_options into linc_server_new add "ORBLocalOnly" option. 2002-06-13 Michael Meeks & * test/everything/client.c (testPingPong): disable this test - ultimately oneways suck. You can't block the event consumer, because you deadlock, you can't block the event client because you don't know when the server has a full stack. 2002-06-13 Michael Meeks & Bill Haneman * test/everything/client.c (testPingPong): add client limited stack smash test. * test/everything/pingServer.c (PingPongServer_opOneWayCallback): impl. (PingPongServer_opRoundTrip): impl. 2002-06-13 Bill Haneman * test/everything/Makefile.am: fix DEPENDENCIES typo. 2002-06-13 Mark McLoughlin * src/orb/GIOP/giop-recv-buffer.c: (handle_reply): don't use _orbit_debug_flags unles debugging is switched on. 2002-06-12 Michael Meeks * src/orb/GIOP/giop-connection.c (giop_connection_real_state_changed): fix a logic silly. 2002-06-11 Michael Meeks * src/orb/orb-core/corba-orb.c (CORBA_ORB_destroy): don't print out debug unless G_ENABLE_DEBUG is on. 2002-06-10 Michael Meeks * src/orb/GIOP/giop.c (giop_init): upd. (test_safe_socket_dir): impl. (scan_socket_dir): impl. (giop_tmpdir_init): impl. * src/orb/orb-core/corba-orb.c (CORBA_ORB_init): hoist random init up the file so we can use it in the giop init. 2002-06-09 Michael Meeks * src/orb/GIOP/giop.c (giop_init): g_strdup_printf instead of snprintf. 2002-06-07 Michael Meeks * src/orb/GIOP/giop-connection.c (giop_connection_list_add): remove bogus ref, we've been leaking connection objects a lot it seems. (giop_connection_real_state_changed): add broken lock handling, all because Mark added a status change notification to linc_connection_read [ that should go long term ]. * test/test-giop.c (test_fragments): upd. * test/Makefile.am (INCLUDES): add some internals. * src/orb/GIOP/giop-recv-buffer.c (handle_reply): add unexpected reply debug hook. (giop_connection_get_frag): calm printout. * src/orb/orb-core/corba-orb.c (ORBit_setup_debug_flags): add ORBIT_DEBUG_ERRORS, so we don't spew stuff all the time. 2002-06-07 Michael Meeks * src/orb/orb-core/corba-typecode.c (CDR_get): remove impossible signedness wise comparison. * src/orb/orb-core/iop-profiles.c (ORBit_demarshal_IOR): ditto. 2002-06-06 Michael Meeks * src/orb/orb-core/corba-typecode.c: update TC_null's name #84354 2002-06-05 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (giop_recv_buffer_handle_fragmented): GIOP_FRAGMENTs don't have message_id's we can get in the same way. (concat_frags): fix mem copying. 2002-06-05 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (giop_connection_handle_input): more re-arrangement, and death of sillies. 2002-06-05 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (giop_connection_handle_input): upd. frag_out to move onto the next incoming buffer properly. 2002-06-04 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (giop_connection_get_frag, giop_connection_add_frag), (giop_connection_remove_frag): impl. (alloc_buffer): split out of (giop_recv_msg_reading_body): here. (concat_frags): use it & impl. (giop_recv_buffer_handle_fragmented): impl. (giop_connection_handle_input): upd & fix nasty with locking / leaking & msg_error path. 2002-05-31 Mark McLoughlin * src/orb/orb-core/corba-orb.c: (copy_case_value): handle alias typecodes. * src/orb/orb-core/orbit-object.c: (object_hash_dump): print out helpful info on leaked TypeCodes. * src/orb/orb-core/orbit-small.c: (orbit_small_marshal), (orbit_small_demarshal): don't rely on the sequences _buffer to be null terminated. We have _length after all ... 2002-05-27 Michael Meeks * Version 2.4.0 2002-05-27 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (giop_recv_list_zap): unuse the buffer, don't print a message that we're leaking it. 2002-05-27 Michael Meeks * test/everything/client.c (main): re-instate run_tests [doh] (testIsA): impl. (run_tests): use it. * src/idl/CORBA/orb.idl: add #pragma prefix. * src/idl-compiler/orbit-idl-c-common.c (cc_small_output_itypes): upd. * src/orb/orb-core/corba-typecode.c (DEF_TC_BASIC): upd. (void): upd. * src/orb/orb-core/corba-object.c (CORBA_Object_is_a): handle omg.org/CORBA/Object 2002-05-27 Michael Meeks * test/everything/server.c (TestFactory_noOp): impl. 2002-05-24 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_stub_n): impl. to help bin-compat, we add this method, and leave 'ORBit_small_invoke_stub' * src/idl-compiler/orbit-idl-c-stubs.c (cs_small_output_stub): remove bulky system exception setting logic. (cs_small_output_stub): call invoke_stub_n instead, so we have the method index, so we could do strange, but index rather than name based associations on methods later. * include/orbit/poa/poa-types.h (ORBIT_STUB_GetEpv): cast to gpointer, to save huge & ugly cast in the stubs. * src/orb/orb-core/orbit-object.c (ORBit_RootObject_shutdown): only dump debug on exit if we have G_ENABLE_DEBUG. 2002-05-22 Michael Meeks * src/orb/orb-core/corba-orb.c (ORBit_setup_debug_flags): add inproc_traces, disable fast calls if flag is on. * include/orbit/orb-core/orbit-small.h: add ORBIT_SMALL_FAST_LOCALS. * src/idl-compiler/orbit-idl-marshal.c: update all the printed strings to 'orbit-idl-2' * src/idl-compiler/*.c: update all the auto-generated warnings to a standard define in * src/idl-compiler/orbit-idl-c-backend.h (OIDL_C_WARNING): here and version to orbit-idl-2 correctly. 2002-05-24 Richard Kinder * src/orb/orb-core/orbhttp.c: cleanup magic numbers, closes #78938 2002-05-22 Michael Meeks * src/orb/orb-core/corba-object.c (g_CORBA_Object_hash): don't bother hashing the profiles they're all the same, and it's theoretically wrong anyway (cf. equal), use the object key instead, for a huge reduction in hash collisions. * src/orb/orb-core/iop-profiles.c (IOP_ObjectKey_hash): impl. 2002-05-21 Michael Meeks * include/orbit/orb-core/corba-object-type.h: move 'orb' down the structure, so that the only bits the stubs could possibly use are at the end. 2002-05-20 Michael Meeks * Version 2.3.110 * prune cleanup from the build, will move to linc. 2002-05-16 Jacob Berkman * src/cleanup/Makefile.am (orbit_cleanup_sockets_LDADD): fix LDADD var name 2002-05-16 Michael Meeks * src/orb/orb-core/orbit-small.c (orbit_small_demarshal): add a parameter as to whether we should release the recv buffer. * src/orb/GIOP/giop-recv-buffer.c (handle_reply): unuse the async buffer here. * src/orb/GIOP/giop-connection.c (giop_connection_dispose): check we don't leak a pending msg on cnx close. 2002-05-16 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (giop_recv_buffer_unuse): free GIOP_1_0 service contexts in the same way as GIOP_1_1, that's how we de-marshal them in giop_recv_buffer_demarshal. * test/everything/client.c (testMisc): fix leak. (testMiscUnions): don't dup inArg's string. don't alloc the inSeq's _buffer, or dup it's string. 2002-05-15 Michael Meeks * src/cleanup/Makefile.am, * src/cleanup/cleanup.c: add. * configure.in, * src/Makefile.am: add cleanup. 2002-05-14 Sean Atkinson * src/orb/orb-core/orbit-trace.c (ORBit_trace_value): Replace middle of long strings with dots. (ORBit_trace_timestamp): Pad microseconds with zeros. 2002-05-13 Michael Meeks * Version 2.3.109 2002-05-07 Michael Meeks * src/services/name/orbit-name-server.c (impl_NamingContext_list): re-order to kill swathe of redundant forward prototypes. (ORBit_CosNaming_NamingContextExt_create), (impl_BindingIterator__create): dup the poa ref we hold. (impl_NamingContextExt__destroy), (impl_BindingIterator__destroy, impl_BindingIterator__destroy): don't de-activate ourselves in a finalize method. 2002-05-02 ERDI Gergo * src/idl-compiler/orbit-idl-c-headers.c (ch_prep_sequence): Cast return value of _allocbuf method to pointer to member type, to make typesafe C++ compilers happy 2002-04-23 Mark McLoughlin * src/orb/orb-core/iop-profiles.c: (CodeSetComponent_demarshal): fix off by one error manifesting itself with the Java ORB. 2002-04-18 Michael Meeks * src/orb/orb-core/orbit-small.c (async_recv_cb): handle a NULL callback. * test/everything/client.c (testMisc): fix ev mis-direction. * configure.in (DISABLE_DEPRECATED_CFLAGS): add. * */Makefile.am: add deprecated cflag guards. 2002-04-15 Michael Meeks * Version 2.3.108 2002-04-15 Michael Meeks * configure.in: require linc >= 0.1.21 * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_adaptor): fix the same bug just above Gergo's, and just below too - gack. * test/everything/*: update the sequence tests so we have longer runs. 2002-04-13 ERDI Gergo * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_adaptor): Check for FIXED flag on the argument type and not the method (as that would be silly:) 2002-04-10 Michael Meeks * configure.in: remove poll & basename checks, socklen_t check, inet_aton check, we don't need them. 2002-04-09 Michael Meeks * src/orb/orb-core/corba-typecode.c (tc_dec): fix #76777 warning issue. 2002-04-09 Michael Meeks * src/orb/util/genrand.c (genrand_openssl): rename to (genuid_rand_openssl): this to be consistant and work. [thanks to Colin Campbell]. 2002-04-02 Michael Meeks * src/orb/orb-core/corba-orb.c (shutdown_orb): impl. we need it to close floating UDS. 2002-04-01 Murray Cumming * Added --headerguardprefix option to orbit-idl-2. This allows the C++ bindings to use generated C bindings which in turn #include already-generated installed C bindings. This has already been applied to the cpp branch. Applying it here should simplify merging. 2002-03-30 ERDI Gergo * src/idl-compiler/orbit-idl-c-utils.c (cs_small_unflatten_ref): Explicitly cast array arguments to silence C++ compiler error messages 2002-03-28 Mark McLoughlin * src/services/name/Makefile.am: link against dependancies (75709) 2002-03-27 Michael Meeks * test/everything/client.c (testMisc): add IOR stringification roundtrip check. 2002-03-25 Mark McLoughlin * src/idl-compiler/orbit-idl-c-common.c: (cc_small_output_itypes): initialise the ORBit_IMethod array in a friendly way. 2002-03-04 Mark McLoughlin * configure.in: version 2.3.107 2002-03-09 Dou Wen * src/orb/GIOP/giop-recv-buffer.c (giop_recv_msg_reading_body): assert that the buffer is correctly aligned. 2002-03-20 Gregory Leblanc * ORBit.spec.in: Lots of re-writing and such. * configure.in: Added AC_SUBST for a couple of missing variables used in the spec file 2002-03-20 Mark McLoughlin * src/orb/orb-core/iop-profiles.c: (IOP_components_marshal): also marshal the CODE_SETS component in an encapsulated buffer. (IOP_TAG_CODE_SETS_demarshal): demarshal it from the encapsulated buffer. 2002-03-13 Laszlo Peter * include/orbit/orb-core/corba-typecode.h: change CORBA_tk_recursive to unsigned. * src/orb/orb-core/corba-typecode.c (tc_dec): test the unsigned lkind instead of kind that can be signed or unsigned on different platforms. 2002-03-04 Mark McLoughlin * configure.in: version 2.3.106 2002-03-01 jacob berkman * autogen.sh: pass --copy to automake, and pass --include-deps unless using gcc 2002-03-01 Mark McLoughlin * test/poa/poatest-basic*.c: don't use lovely C99 compliant structure initialisation .... just to keep forte happy. 2002-03-01 Mark McLoughlin * src/idl-compiler/orbit-idl-c-headers.c: (ch_output_type_union): output the enum decl here if need be. * src/idl-compiler/orbit-idl-c-imodule.c: (cc_small_build_types): ditto. * test/everything/everything.idl: add new soup constats and declare the colour enum in the union decl. * test/everything/client.c: (testConst): test the soup consts. (testIInterface): test the soup and colour typecodes. (testMiscUnions): update for colour scope change. * test/everything/unionServer.c: (UnionServer_opMisc): ditto. 2002-02-28 Mark McLoughlin * src/orb/orb-core/orbit-debug.h: fix typo. 2002-02-26 Michael Meeks * src/orb/orb-core/corba-orb.c (CORBA_ORB_list_initial_services): update assertion to not do an assignment. 2002-02-26 Yanko Kaneti * src/orb/orb-core/orbit-debug.h: handle different var-arg cases in the parser. 2002-02-24 Sam Couter * Add G_BEGIN_DECLS and G_END_DECLS to installed headers to allow exported interfaces to be used from C++ code. 2002-02-18 Mark McLoughlin * src/idl-compiler/orbit-idl-c-common.c: (cc_small_build_interfaces): don't initialise ai twice. * docs/FAQ: add bit about refs and giop debugging. 2002-02-11 Mark McLoughlin * configure.in: version 2.3.105 2002-02-08 Mark McLoughlin * src/idl-compiler/orbit-idl-c-typecode.c: (orbit_output_tcstruct_anon_sublabels_array): cleanup. 2002-02-06 Michael Meeks * src/orb/util/genrand.c (genuid_rand_device): handle EINTR, EAGAIN, and short reads. 2002-02-06 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_stub): make trace debugging more meaningfull in-proc. 2002-02-05 Michael Meeks * src/orb/orb-core/orbit-object.c (object_hash_dump): impl. (ORBit_RootObject_shutdown), (ORBit_RootObject_init, do_unref): add more verbose and powerful object debugging. * src/orb/orb-core/corba-orb.c (ORBit_setup_debug_flags): add 'refs' * src/orb/orb-core/orbit-debug.h: fix bitmask cockup. 2002-02-05 Mark McLoughlin * src/orb/orb-core/corba-any.c: (ORBit_value_equivalent): add union_size to the original pointers. * test/everything/client.c: (testAnyEquivalence): re-enable testing this. 2002-02-05 Mark McLoughlin * src/orb/orb-core/corba-any.c: (ORBit_get_union_switch): don't assume pointers are correctly alligned. * src/orb/util/genrand.c: (genuid_glib_pseudo): fix silly. 2002-02-04 Michael Meeks * src/orb/orb-core/corba-context.c (ORBit_Context_free_fn): remove ourselves correctly from the parent. * test/everything/client.c (testAnyEquivalence): knobble for now so we pass the tests. * src/orb/orb-core/corba-any.c: do a proper boolean compare. 2002-02-02 Michael Meeks * Makefile.am (EXTRA_DIST): add Makefile.shared. 2002-02-04 Mark McLoughlin * configure.in: version 2.3.104. 2002-02-04 Shivram U reviewed by: Mark McLoughlin * src/idl-compiler/orbit-idl-c-demarshal.c: * src/idl-compiler/orbit-idl-c-marshal.c: * src/idl-compiler/orbit-idl-c-skelimpl.c: * src/idl-compiler/orbit-idl-c-stubs.c: * src/idl-compiler/orbit-idl-c-typecode.c: * src/idl-compiler/orbit-idl-c-utils.c: * src/idl-compiler/orbit-idl-utils.c: * src/orb/orb-core/corba-object.c: Remove deprecated glib functions. s/g_string_sprintf/g_string_printf/ s/g_string_sprintfa/g_string_append_printf/ s/g_main_iteration/g_main_context_iteration/. 2002-01-31 Mark McLoughlin * src/orb/GIOP/giop-debug.h: make giop dumping a runtime debugging option. * src/orb/GIOP/giop-recv-buffer.c: (giop_recv_msg_reading_body): use dprintf (GIOP.. instead of giop_dprintf. * src/orb/orb-core/corba-orb.c: (ORBit_setup_debug_flags): add ORBIT_DEBUG_GIOP. * src/orb/orb-core/orbit-debug.h: ditto. 2002-01-30 Mark McLoughlin * include/orbit/orb-core/corba-any.h: kill dup_strings arg from demarshal funcs. Kill duplicated ORBit_demarshal_value. * src/orb/GIOP/giop-recv-buffer.c: (giop_IOP_ServiceContextList_demarshal): upd for dup_strings. * src/orb/orb-core/corba-any.c: (ORBit_get_union_tag): kill unused variable. (ORBit_demarshal_value), (ORBit_demarshal_arg), (ORBit_demarshal_any): kill dup_strings arg. * src/orb/orb-core/orbit-small.c: (ORBit_handle_exception_array): upd for dup_strings. (ORBit_small_marshal_context): move branch to (orbit_small_marshal): here. We rarely take this branch, so lets kill the fuction call overhead for the common case. (orbit_small_demarshal), (ORBit_small_invoke_adaptor): upd for dup_strings change. * test/everything/basicServer.c: (BasicServer_opString), (BasicServer_opFloat), (BasicServer_opDouble), (BasicServer_opLongDouble): implement floating point tests. * test/everything/unionServer.c: (UnionServer_opMisc): impl another union test. * test/everything/client.c: (testConst): test float, double and long double constants. (testFloat), (testDouble), (testLongDouble): use floating point tests. (testMiscUnions): use new union test. (testAnyException): add output. (testAnyEquivalence): test ORBit_any_equivalent and ORBit_copy_value code paths. (test_BasicServer_opExceptionA): update vtable offset. (run_tests): run new tests. * test/everything/constants.h: add floating point constants. * test/everything/everything.idl: add idl for new tests. 2002-01-29 Mark McLoughlin * src/orb/orb-core/corba-orb.c: clean up. 2002-01-28 Mark McLoughlin * configure.in: version 2.3.103. 2002-01-28 Mark McLoughlin * src/orb/util/genrand.c: (genuid_simple), (genuid_glib_pseudo): more tweaks. 2002-01-25 Michael Meeks * test/everything/client.c (main): upd. (test_init): test it. * src/orb/orb-core/corba-orb.c (CORBA_ORB_shutdown, CORBA_ORB_init), (CORBA_ORB_destroy): count init / destroy pairs and don't allow people to destroy if someone else has inited. 2002-01-25 Mark McLoughlin * acinclude.m4: (AC_CHECK_ALIGNOF): error out if an alignment is found to be zero. * test/everything/client.c: (make_large_str_seq): fix leak. 2002-01-24 Michael Meeks * src/orb/orb-core/corba-typecode.c (ORBit_TypeCode_free_fn): kill bogus typecode free. * src/orb/util/genrand.c (ORBit_genuid_init): seed the random number generator but once. (genuid_glib_pseudo): use rand more sensibly, use genuid_simple first. (genuid_simple): make inc a gulong. 2002-01-22 Mark McLoughlin * src/orb/orb-core/corba-typecode.c (ORBit_TypeCode_free_f): sublabels isn't an 'any' sequence anymore. 2002-01-22 Mark McLoughlin * include/orbit/orb-core/corba-typecode.h: change the sublabels member to a CORBA_long *. * src/idl-compiler/orbit-idl-c-typecode.c: (orbit_output_tcstruct_anon_sublabels_array), (orbit_output_tcstruct_sublabels), (cbe_tc_generate): output the array. * src/orb/orb-core/corba-any.c: (ORBit_get_union_tag): simplify the discrim compare. * src/orb/orb-core/corba-orb.c: (copy_case_value): impl. (CORBA_ORB_create_union_tc): don't copy the whole any, just the value. * src/orb/orb-core/corba-typecode.c: (tc_enc_tk_union), (tc_dec_tk_union), (typecode_equiv_internal): upd. 2002-01-22 Mark McLoughlin * src/idl-compiler/orbit-idl-utils.c: (orbit_idl_check_oneway_op): impl to check if oneways have returns or outs/inouts. * src/idl-compiler/orbit-idl-c-headers.c: (ch_output_stub_protos): use. * test/everything/everything.idl, test/everything/server.c, test/everything/client.c: make segv return void. 2002-01-21 Mark McLoughlin * src/orb/orb-core/corba-orb.c: (ORBit_setup_debug_flags): fix silly so that debug options in orbitrc works correctly. 2002-01-21 Michael Meeks * src/orb/orb-core/corba-any.c (ORBit_copy_value): tolerate NULL. * src/orb/orb-core/orbit-small.c (orbit_small_demarshal): kill warning. * test/everything/client.c (testMisc): add a check. 2002-01-21 Xiong Jiang * src/idl-compiler/orbit-idl-c-stubs.c (cs_small_output_stub): put the endif in a comment, to make the preprocessor happy. 2002-01-17 Michael Meeks * configure.in: require the new linc with different protocol structure size. * test/everything/client.c (main): upd. 2002-01-17 Mark McLoughlin Allow ORBit2 debugging to be switched on/off at runtime. Based on a patch by Jacob Berkman * configure.in: --enable-debug option. * src/orb/GIOP/Makefile.am, src/orb/Makefile.am, src/orb/dynamic/Makefile.am, src/orb/orb-core/Makefile.am, src/orb/poa/Makefile.am, src/orb/util/Makefile.am: use ORBIT_DEBUG_CFLAGS. * src/orb/orb-core/corba-object.c: (g_CORBA_Object_equal), (ORBit_objref_find), (ORBit_object_get_connection), (ORBit_marshal_object): upd. * src/orb/orb-core/corba-orb.c: (ORBit_setup_debug_flags), (CORBA_ORB_init): add --ORBDebugFlags option and ORBIT2_DEBUG env variable and parse. * src/orb/orb-core/orbit-debug.h: kill old debug stuff and make everything conditional on G_ENABLE_DEBUG. * src/orb/orb-core/orbit-small.c: (ORBit_handle_exception_array), (ORBit_small_send_user_exception), (orbit_small_marshal), (orbit_small_demarshal), (ORBit_small_invoke_stub), (ORBit_small_invoke_adaptor), (ORBit_small_demarshal_async): upd. * src/orb/orb-core/orbit-trace.c: (ORBit_trace_timestamp): upd. * src/orb/orb-core/orbit-typelib.c: (load_module): upd. * src/orb/poa/orbit-adaptor.c: (ORBit_handle_request): upd. * src/orb/util/genrand.c: (ORBit_genuid_init), (genuid_simple): incorporate the pid and an incrementing number into simple uid. 2002-01-16 Mark McLoughlin * include/orbit/orb-core/corba-orb-type.h: kill genrand ORB member. * include/orbit/util/orbit-genrand.h: rename to genuid, we're not allways taking about randomness. * src/orb/orb-core/corba-orb.c: (ORBit_genuid_type): impl to figure what genuid type we'll use. (CORBA_ORB_init): upd. (ORBit_proto_use): fix silly. Also add a --ORBSimpleUIDs option. * src/orb/poa/orbit-adaptor.c: (ORBit_adaptor_setup): upd. * src/orb/poa/poa.c: (ORBit_POA_new_system_objid): upd. * src/orb/util/genrand.c: (ORBit_genuid_init), (ORBit_genuid_fini): impl. (genuid_glib_pseudo): impl id generator using glib's prng. (genrand_unix): kill. (genuid_simple): impl non-random id generator. (ORBit_genuid_buffer): upd. * test/test-performance.c: (main): pass argc and argv to ORB_init. * docs/FAQ, docs/internals/poa-notes.txt: upd. 2002-01-16 Michael Meeks * src/orb/orb-core/corba-object.c: update to free result of IOP profile dumpage. * src/orb/orb-core/iop-profiles.c (IOP_components_free): make it free the list too, and NULL the list for safety. 2002-01-14 Mark McLoughlin * include/orbit/orb-core/corba-policy-type.h, src/orb/orb-core/corba-policy.c: kill ORBit_Policy_(set|get) * include/orbit/poa/orbit-adaptor.h: (ORBit_adaptor_setup): add. * include/orbit/poa/poa-types.h: (ORBit_vepvmap_init): kill. Kill init_vepvmap and vepvlen ClassInfo members. Enable vepvmap cache by default. Add next member to ORBit_POAObject_type to replace servant->_private GSList. Kill unused macros. * include/orbit/poa/poa.h: don't include poa-policy.h. * include/orbit/poa/portableserver-poa-type.h: kill poa_rand_len POA struct member. * src/idl-compiler/orbit-idl-c-skels.c: (cbe_skel_interface_print_vepvmap_initializer): kill. (cbe_skel_interface_print_vepvmap_line), (cbe_skel_do_interface): initialise the vepvmap in servant init. No need for init_vepvmap method. * src/orb/orb-core/corba-orb.c: (CORBA_ORB_destroy): s/poa/adaptor/. * src/orb/poa/orbit-adaptor.c: (ORBit_adaptor_setup): move here from poa.c - all adaptor's keys should be the same. * src/orb/poa/orbit-poa.h: * src/orb/poa/poa-manager.c: (ORBit_POAManager_new), (ORBit_POAManager_register_poa), (ORBit_POAManager_unregister_poa): kill unneeded ev args. Move ownership of the poa_manager reference into poa.c where it belongs. * src/orb/poa/poa-policy.c: set the policy structs directly. Kill okey randomness policy. * src/orb/poa/poa-servants.c: use poa_execption macros. * src/orb/poa/poa.c: (check_object_inuse): impl instead of hacking traverse_cb. (ORBit_POA_object_id_lookup): rename from ORBit_POA_oid_to_obj, removing crackness in the process. (ORBit_POA_remove_child): kill unneeded ev arg. (ORBit_POA_destroy): cleanup. (traverse_cb): rationalise. Kill unneeded TraverseInfo members. (ORBit_POA_deactivate): upd. (ORBit_POA_free_fn): check members are allocated before freeing. (ORBit_POA_set_policy): update fro policy changes. (ORBit_POA_set_policies): set defaults here, use poa_exception macros. (ORBit_POA_new): big cleanup. (ORBit_POA_activate_object): don't init vepvpmap here. Update for servant pobj list changes. (ORBit_POA_deactivate_object): ditto. (ORBit_POAObject_handle_request): use policy checking macros. (ORBit_POA_object_key_lookup): impl. (ORBit_POA_handle_request): use ORBit_POA_object_key_lookup and return_exception. (ORBit_POA_ServantManager_use_servant), (ORBit_POA_ServantManager_unuse_servant): big cleanup and update for servant pobj list change. * test/everything/server.c: (TestFactory_getStructServerIOR): use global_orb. 2002-01-09 Michael Meeks * Version 2.3.102 2002-01-09 Michael Meeks * src/orb/GIOP/giop-send-buffer.c (send_buffer_list): initialize it. * src/orb/GIOP/giop-connection.c (giop_connection_remove_by_orb): fix acute re-enterancy hazard. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_list_zap): fix re-enterancy hazard. (giop_queued_messages): initialize it. 2002-01-09 Mark McLoughlin * test/test-performance.c: (create_mult_id_poa), (test_activation), (main): add object activation/de-activation performance test. * test/Makefile.am: upd. 2002-01-07 Mark McLoughlin * src/services/name/Makefile.am: install idl files in $(datadir)/idl/orbit-2.0. 2002-01-04 Michael Meeks * test/everything/client.c (testSegv): remove race condition assert. * test/everything/everything.idl: make segv oneway. 2002-01-03 Michael Meeks * Version 2.3.101 2001-12-31 Michael Meeks * src/orb/poa/orbit-adaptor.c (ORBit_handle_request): debug. * src/orb/poa/poa.c (ORBit_POA_handle_request): add debug. 2002-01-03 Laszlo Peter * test/test-performance.c: s/time/elapsed_time/ (conflicts with Solaris system headers) 2002-01-03 Mark McLoughlin * test/test-performance.c: make global symbols static to stop core dumps in my ldap libraries. Don't ask me :/ 2002-01-03 Mark McLoughlin * src/idl-compiler/orbit-idl-c-stubs.c: (cs_small_output_stub): output local case code to check to see if the operation is implemented and return NO_IMPLEMENT if not. * src/idl-compiler/orbit-idl2.h: add ORBIT_EPV_VAR_NAME. * test/everything/client.c: (testMisc): test this in the local case as well. 2002-01-03 Mark McLoughlin * include/orbit/poa/poa-types.h: (ORBIT_STUB_IsBypass): check for nil reference, and pawn off on ORBit_small_invoke_stub if it is nil. * src/orb/orb-core/orbit-small.c: (ORBit_small_invoke_stub): return INV_OBJREF exception if obj is nil. * test/everything/client.c: (testException): test. * test/everything/pingServer.c: (PingPongServer_opSleep): kill unused variable. 2001-12-31 Michael Meeks * configure.in: require the new linc. 2001-12-28 Michael Meeks * src/orb/dynamic/dynany.c (ORBit_dynany_new_default): publicise internaly for time trials. * src/idl-compiler/orbit-idl-c-headers.c (ch_output_const_dcl): output unsigned types properly. * test/everything/client.c (testPingPong): add non-blocking IO test. * test/everything/pingServer.c (PingPongServer_opSleep): impl. * src/orb/poa/poa.c (ORBit_POA_handle_request, return_exception): non blocking writes. * src/orb/orb-core/orbit-small.c (orbit_small_marshal): do a non-blocking write. (ORBit_small_invoke_adaptor): ditto. 2001-12-27 Michael Meeks * src/orb/GIOP/giop-connection.c (giop_connection_close): block on send notification. * src/orb/GIOP/giop-send-buffer.c (giop_send_buffer_write): do blocking and non-blocking writes. * include/orbit/GIOP/giop-send-buffer.h: kill duff prototype. * src/orb/orb-core/orbit-small.c (ORBit_small_get_connection): impl. (ORBit_connection_set_max_buffer): impl. 2001-12-21 Roland Juelich * src/orb/orb-core/iop-profiles.c: (IOP_ObjectKey_demarshal): don't modify key length. 2001-12-19 Mark McLoughlin * test/everything/test.sh: niceify. 2001-12-19 Mark McLoughlin * src/orb/orb-core/iop-profiles.c: (IOP_profiles_sync_objkey): reduce the scream and shout error to a warning. 2001-12-18 Michael Meeks * src/orb/orb-core/corba-orb.c (CORBA_ORB_init): check the ALIGNOF_DOUBLE instead, since all sys allocated memory has to be aligned to this. 2001-12-15 Ross Golder * ORBit.spec.in: updated shared library directory. 2001-12-14 Roland Juelich * src/orb/orb-core/corba-orb.c: add ORBIIOPIPName and ORBIIOPIPSock options. (ORBit_ORB_start_servers): use the arguments. 2001-12-13 Sam Couter * configure.in: move type alignment test * acinclude.m4: here & make it pretty. 2001-12-11 Michael Meeks * Version 2.3.100 2001-12-10 jacob berkman * src/orb/GIOP/Makefile.am (libGIOP_la_SOURCES): add giop-debug.h 2001-12-08 Kristian Rietveld * src/orb/GIOP/giop-send-buffer.c: move down sys/uio.h, so it builds on FreeBSD 2001-12-07 Laszlo Peter * src/orb/orb-core/orbit-debug.h: src/orb/orb-core/orbit-trace.c: get the trace code work on Solaris 2001-12-07 Mark McLoughlin * src/orb/orb-core/corba-typecode.c: (CDR_get): use proper casts. 2001-12-07 Mark McLoughlin * src/orb/orb-core/corba-typecode.c: (CDR_get): do byteswap if neccessary. 2001-12-07 Mark McLoughlin * src/orb/orb-core/corba-any.c: (ORBit_demarshal_value): do byteswap if neccessary. 2001-12-07 Mark McLoughlin * include/orbit/GIOP/giop-recv-buffer.h: include/orbit/GIOP/giop-send-buffer.h: src/orb/orb-core/orbit-debug.h: src/orb/orb-core/orbit-small.c: src/orb/poa/poa.c: src/orb/GIOP/giop.c: src/orb/GIOP/giop-recv-buffer.c: rework the recv buffer dumping to do it as we receive. * src/orb/orb-core/iop-profiles.c: (CodeSetComponent_demarshal): fix silly. 2001-12-07 Mark McLoughlin * src/idl-compiler/orbit-idl-c-typecode.c: (orbit_find_c_align): only calculate the alignment of the union. * src/orb/orb-core/corba-any.c: (ORBit_marshal_value), (ORBit_demarshal_value), (ORBit_copy_value_core), (ORBit_value_equivalent): upd. 2001-12-06 Mark McLoughlin * src/orb/orb-core/corba-any.c: (ORBit_copy_value_core), (ORBit_value_equivalent): fix union alignment. 2001-12-06 Michael Meeks * src/orb/orb-core/corba-object.c (CORBA_Object_hash), (CORBA_Object_is_equivalent): make faster and better - we were screwing up if we hashed an object before remoting it. Since we garentee a CORBA_Object <-> profile mapping anyway these can be trivial methods. * test/everything/client.c (testPingPong): test hashing. 2001-12-05 Michael Meeks * test/everything/structServer.c (opObjectStruct): impl. * test/everything/client.c (testObjectStruct): impl. 2001-12-06 Mark McLoughlin * src/idl-compiler/orbit-idl-c-common.c: (cc_small_output_method): don't add 1 to name_len. 2001-12-06 Mark McLoughlin * src/orb/GIOP/giop.c (giop_dump_recv): start dumping the message body at message_body + 12. Why do we allocate this space? 2001-12-05 Mark McLoughlin * src/orb/orb-core/corba-any.c (ORBit_marshal_value): align the union properly. Thanks to Laca for the debugging. 2001-12-05 Mark McLoughlin * src/orb/orb-core/iop-profiles.c: (CodeSetComponent_demarshal): byte swap the code sets if necessary and fix silly. 2001-12-05 Mark McLoughlin * src/orb/orb-core/corba-object.c: (ORBit_handle_location_forward), (ORBit_demarshal_object): intialise type_id and profiles. * src/orb/orb-core/iop-profiles.c: (ORBit_demarshal_IOR): cleanup code flow. 2001-12-05 Mark McLoughlin * src/orb/orb-core/corba-orb.c: (CORBA_ORB_string_to_object): tidy up a bit. Use g_ascii_* functions. 2001-12-04 Michael Meeks * test/everything/basicServer.c (BasicServer_testLargeStringSeq): stub. * test/everything/client.c (make_large_str_seq): impl. (testMisc): use it. 2001-12-03 Mark McLoughlin * src/orb/GIOP/giop.c: (giop_dump): tidy up output a little. 2001-12-02 Laszlo Peter * src/idl-compiler/orbit-idl-c-typecode.c (cbe_tc_generate): fix order to match corba-typecode.h 2001-12-01 Theo van Klaveren * src/orb/include/Makefile.am: make -> $(MAKE). * src/orb/GIOP/giop-send-buffer.c: add to the includes. Fixes the build on FreeBSD. 2001-11-29 Mark McLoughlin * src/orb/GIOP/giop.c: (giop_dump_recv): print the header as well as the message body. 2001-11-26 Michael Meeks * Version 2.3.99 * configure.in: bump serial. 2001-11-26 Michael Meeks * src/idl-compiler/orbit-idl-c-typecode.c (cbe_tc_generate): upd & re-order. * include/orbit/orb-core/corba-typecode.h: give us some space for expansion & re-order. 2001-11-26 Michael Meeks * Version 2.3.98 * src/orb/util/orbit-options.c (ORBit_option_command_line_parse): allow NULL argc on init. * test/test-dynany.c (main): test it. 2001-11-23 Michael Meeks * docs/internals/typecode-flags.txt: add. * src/orb/poa/poa.c (ORBit_POAObject_handle_request): add debug. 2001-11-25 Havoc Pennington * src/orb/poa/Makefile.am (main_src): add poa-macros.h 2001-11-22 Michael Meeks * test/everything/client.c (run_tests): disable the async tests - need more thought. * src/orb/orb-core/iop-profiles.c (IOP_TAG_INTERNET_IOP_copy): copy the host too. * src/orb/GIOP/giop-connection.c (giop_connection_initiate): add pre-condition. 2001-11-21 Michael Meeks * test/everything/client.c (testPingPong): add a scad of equivalence tests. * src/orb/orb-core/corba-object.c (ORBit_register_objref): add pre-condition. (g_CORBA_Object_equal): allow NULL object keys - these are local objects. (CORBA_Object_is_equivalent): fix to cope with the concept of 'local' and NULL objects. (g_CORBA_Object_equal): remove checks. * src/orb/orb-core/iop-profiles.c (IOP_delete_profiles): cope with no ORB on remote objects. 2001-11-21 Michael Meeks * src/orb/dynamic/dynany.c (dynany_sequence_realloc_to): undo a stupidity. 2001-11-21 Michael Meeks * src/orb/orb-core/iop-profiles.c (IOP_delete_profiles): use orb->profiles not common_profiles. (ORBit_demarshal_IOR): upd. * src/orb/orb-core/corba-object.c (ORBit_objref_find, CORBA_Object_release_cb), (ORBit_handle_location_forward): upd. * src/orb/orb-core/corba-types.c (CORBA_sequence__freekids): kill. (ORBit_sequence_CORBA_octet_dup): upd. * src/orb/orb-core/iop-profiles.c (IOP_start_profiles): impl. (IOP_generate_profiles): upd. ensure that we always register an objref as we generate it's profiles. * src/orb/orb-core/corba-object.c (ORBit_start_servers): move into the ORB. (ORBit_objref_find): add some debug. * src/orb/orb-core/corba-orb.c (ORBit_ORB_start_servers): here. * src/orb/orb-core/iop-profiles.c (IOP_generate_profiles): prune cut & paste shutdown code - argh; split out, (boot_profiles): this. * src/orb/orb-core/corba-object.c (ORBit_lookup_objref): don't pointlessly setup an objref hash when we don't need one. * test/everything/client.c (testPingPong): check we remote and return correctly. 2001-11-20 Michael Meeks * src/orb/orb-core/corba-typecode.c (CORBA_TypeCode__freekids): kill. * src/orb/orb-core/orbit-small.c (ORBit_small_alloc), (ORBit_small_invoke_adaptor): upd. * src/orb/orb-core/corba-any.c (ORBit_copy_value, ORBit_demarshal_arg): alloc_by_tc. (CORBA_any__freekids): kill. * src/orb/dynamic/dynany.c (dynany_any_new_default), (dynany_sequence_realloc_to), (DynamicAny_DynStruct_get_members), (DynamicAny_DynSequence_get_elements): alloc_by_tc * src/orb/orb-core/allocators.c (ORBit_alloc_by_tc): impl. * src/orb/orb-core/corba-any.c (CORBA_any__alloc): do it with _alloc_by_tc. * src/orb/orbit-init.c: include our own header. * src/orb/GIOP/giop-recv-buffer.c (giop_IOP_ServiceContextList_demarshal): warning fix. * src/orb/orb-core/corba-env.c (CORBA_exception__alloc): upd. * src/orb/orb-core/corba-object.c (CORBA_Object__freekids): kill. * src/orb/orb-core/allocators.c (ORBit_alloc_kidfnc): rename to (ORBit_alloc_with_free_fn): this * src/orb/orb-core/corba-any.c (CORBA_any__alloc): upd. * include/orbit/orb-core/allocators.h: kill the ORBit_alloc macro. 2001-11-20 Michael Meeks * src/orb/orb-core/corba-string.c (CORBA_string_alloc, CORBA_string_dup): use alloc_string. (CORBA_string__freekids): kill, unused. * src/orb/orb-core/allocators.c (ORBit_alloc_string): impl. * test/Makefile.am: add test-mem * test/test-mem.c: add. * src/orb/orb-core/allocators.c (ORBit_alloc_core): kill. (ORBit_free_T): re-write. (ORBit_freekids_via_TypeCode_T): re-order args to make it a freekids fn, privatize. (ORBit_freekids_via_TypeCode): upd. (ORBit_alloc_tcval): re-write. (ORBit_alloc_kidfnc): re-write. (ORBit_alloc_simple): re-write. * src/orb/orb-core/corba-any.c (ORBit_demarshal_value): upd. * src/orb/orb-core/corba-orb.c (CORBA_ORB_init): check our processor is a real processor. * src/orb/orb-core/orbit-small.c (ORBit_small_alloc): use ORBit_small_alloc. * src/orb/GIOP/giop-recv-buffer.c (giop_IOP_ServiceContextList_free): use CORBA_free (giop_IOP_ServiceContextList_demarshal): do it genericaly by typecode. 2001-11-19 Mark McLoughlin * src/orb/poa/poa-macros.h: new file with convience macros. * src/orb/poa/poa.c: (PortableServer_POA_servant_to_id), (PortableServer_POA_servant_to_reference), (PortableServer_POA_reference_to_servant), (PortableServer_POA_reference_to_id), (PortableServer_POA_id_to_servant), (PortableServer_POA_id_to_reference): update to use macros to simplify policy checking, exception returning. 2001-11-19 Michael Meeks * src/orb/GIOP/giop-connection.c (giop_connection_close): remove bogus fsync breaking encapsulation. 2001-11-19 Michael Meeks * src/orb/GIOP/giop-connection.c (giop_connection_list_lookup): kill retval. (giop_cnx_descr): impl. for debug. (giop_connection_initiate): DOH ! pass the right args to the connection cache. (giop_connection_list_add): validate connection, add debug. (giop_connection_list_remove): only try to remove initiated connections, add debug. 2001-11-16 Michael Meeks * test/everything/client.c (test_BasicServer_opStringA_cb): free the returned strings. 2001-11-18 Mark McLoughlin * configure.in: add warning cflags : -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations. add --enable-compile-warnings option. * src/idl-compiler/Makefile.am, src/orb/GIOP/Makefile.am, src/orb/GIOP/giop-private.h, src/orb/Makefile.am, src/orb/dynamic/Makefile.am, src/orb/poa/Makefile.am, src/orb/orb-core/Makefile.am, src/orb/util/Makefile.am, src/services/name/Makefile.am, test/Makefile.am, test/everything/Makefile.am, test/inhibit/Makefile.am, test/poa/Makefile.am (INCLUDES): add $(WARN_CFLAGS). * src/orb/GIOP/giop-connection.c, src/orb/GIOP/giop-recv-buffer.c: include correct headers and make some functions static. * src/orb/dynamic/dynany.c: (DynamicAny_DynSequence_get_elements_as_dyn_any): rename to DynamicAny_DynSequence_get_elements_as_dyn_any, its correct name. * src/orb/orb-core/corba-nvlist.c, src/orb/orb-core/corba-object.c: src/orb/orb-core/corba-orb.c, src/orb/orb-core/iop-profiles.c src/orb/orb-core/orb-core-export.h, src/orb/orb-core/orbit-object.c: include correct headers, make some functions static and kill unused variables. * src/orb/poa/poa.c: (ORBit_classinfo_lookup_id): kill unused fuction. (ORBit_POA_obj_to_ref): kill unused variable. * test/everything/arrayServer.c., test/everything/client.c test/everything/pingServer.c, test/everything/server.c: make some functions static. * test/poa/poatest-basic01.c, test/poa/poatest-basic02.c, test/poa/poatest-basic03.c, test/poa/poatest-basic04.c, test/poa/poatest-basic05.c, test/poa/poatest-basic06.c, test/poa/poatest-basic07.c, test/poa/poatest-basic08.c, test/poa/poatest-basic09.c, test/poa/poatest-basic10.c: include correct headers and make some functions static. 2001-11-16 Mark McLoughlin * include/orbit/poa/poa.h: kill ORBit_POA_object_to_shutdown. * src/orb/orb-core/corba-object.c: (CORBA_Object_release_cb): upd. * src/orb/poa/poa.c: (PortableServer_POA_id_to_reference): duplicate returned reference. 2001-11-16 Michael Meeks * test/everything/server.c (main): kill sleep. * test/everything/client.c (main): kill sleep. 2001-11-16 Michael Meeks * configure.in: require a linc we can work with. * src/orb/orb-core/corba-object.c (ORBit_try_connection): use giop_connection_unref. (ORBit_objref_find): release the object key - don't leak it. * src/orb/GIOP/giop-recv-buffer.c (giop_connection_handle_input): prune cruft. * src/orb/GIOP/giop-connection.c (giop_connection_remove_by_orb): unref the connection here as well as a close. (giop_connection_unref): hold the right locks. (giop_connection_list_remove): don't take the locks. * src/orb/orb-core/corba-object.c (CORBA_Object_release_cb): don't close what might be a shared connection; it'll happen on dispose anyway, use giop_connection_unref to get locking right. * src/orb/orb-core/corba-context.c: make it all look pretty. 2001-11-16 Michael Meeks * src/orb/poa/poa.c (PortableServer_POA_servant_to_reference): dup the reference we return if we return the same twice ... * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_adaptor): get the ORB via. the poa and not the objref. * src/orb/poa/poa.c (ORBit_POA_object_shutdown): impl. (ORBit_POA_deactivate_object): free the environment after setting it up. * src/orb/orb-core/corba-object.c (CORBA_Object_release_cb): move the connection close right to the end; it can re-enter, invoke ORBit_POA_object_shutdown instead of an unref - the poa holds a ref too ... * test/everything/deadReference.c (DeadReferenceObj_test): release references, kill spurious global. * test/everything/server.c (TestFactory_createDeadReferenceObj): release the poa and the poa_current. * test/everything/pingServer.c (PingPongServer_get), (PingPongServer_set): don't leak. (create_ping_pong_servant): upd. * test/everything/server.c (TestFactory_createPingPongServer): upd. * src/orb/orb-core/corba-context.c (ORBit_Context_demarshal): don't init me as a RootObject, I'm static. * src/orb/orb-core/corba-nvlist.c (CORBA_NVList_free_memory): always blank the type & value on free. * src/orb/orb-core/corba-orb.c (CORBA_ORB_create_list): remove bogus 'no memory' op. * test/everything/server.c (main): exit cleanly, release the factory. 2001-11-15 Michael Meeks * test/everything/client.c (testException): fix mem corruption. * src/orb/GIOP/giop-connection.c (giop_connection_initiate): don't ref here, (giop_connection_list_add): ref here instead. (giop_connection_list_remove): privatize. (giop_connection_dispose): move locking into (giop_connection_list_remove): here. (giop_connection_dispose): protect vs. double disposes. (giop_connection_list_lookup): accelerate & robustify. * src/orb/orb-core/iop-profiles.c (IOP_generate_profiles): re-flow & simplify confusion. * src/orb/orb-core/orbit-trace.c (ORBit_trace_value): update so an strace doesn't give us a thousand writes. 2001-11-15 Mark McLoughlin * src/orb/poa.c (ORBit_POAObject_handle_request): warn if queueing a request because the POAManager is holding. 2001-11-12 Michael Meeks * src/orb/orb-core/orbit-trace.c (ORBit_trace_header): print pid in decimal. (ORBit_trace_value): only print printable characters. * test/everything/client.c (testPingPong): upd. * test/everything/pingServer.c (PingPongServer_opOneWay), (PingPongServer_pingPong): add method to try and confuse - no joy. (PingPongServer_set, PingPongServer_get): impl. 2001-11-12 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (handle_reply): dump unexpected system exceptions silently. * test/everything/client.c (testMisc): add ops. on a deactivated object. 2001-11-12 Michael Meeks * src/orb/poa/poa.c (ORBit_POAObject_handle_request): only free exceptions iff we're not in proc, we need to return them otherwise. 2001-11-12 Michael Meeks * src/orb/GIOP/giop-server.c (giop_server_new): always pass non blocking flag. * src/orb/orb-core/corba-object.c (ORBit_start_servers): don't pass non blocking flag. * src/orb/GIOP/giop-connection.c (giop_connection_initiate): always initate non blocking connections. * src/orb/GIOP/giop-recv-buffer.c (giop_connection_handle_input): use new linc_connection_read semantics, kills deadlock, and heinous EAGAIN handling, we now idle in the mainloop on EAGAIN. * configure.in: require linc >= 0.1.8 and it's new linc_connection_read. 2001-11-09 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (giop_connection_handle_input): close the connection on a GIOP_CLOSECONNECTION - shock. * HACKING: update. 2001-11-09 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (handle_reply): split out of (giop_recv_list_push): here, kill and fold into (giop_connection_handle_input): here & simplify. (giop_recv_buffer_use): kill, confused & unused. (giop_recv_list_pop_T, giop_recv_list_pop): kill; unused (recv_list_push_or_handle): don't do silly things with lists. (giop_recv_buffer_init): kill lock init. (giop_connection_handle_input): don't pile up GIOP_CLOSECONECTION requests in the bit bucket. 2001-11-09 Michael Meeks * include/orbit/GIOP/giop-recv-buffer.h: kill GIOPMessageInfo, not neccessary. remove giop_recv_buffer_data_read prototype. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_list_push): a crack smoking & inefficient loop search; re-order compare - most unlikely first, get request_id only once. re-order locking to be yet more transparent. Remove the huge, paranoid and incorrect ( except for Elliot's huge stubs/skels ) message. (giop_recv_buffer_demarshal): make robust against duff giop versions. (giop_recv_buffer_use_buf): simplify, remove bogus is_auth parameter. (giop_connection_handle_input): upd. to not pass isauth. (giop_recv_list_push): add processed concept outline. 2001-11-08 Michael Meeks * configure.in: require linc >= 0.1.7 2001-11-08 Michael Meeks * src/orb/poa/poa.c (ORBit_POAList_add_child), (PortableServer_Current_get_POA), (PortableServer_POA_find_POA), (PortableServer_POA__get_the_parent), (PortableServer_POA_get_servant_manager): RootObject duplicate, not CORBA_Object_duplicate. * src/orb/orb-core/corba-orb.c (CORBA_ORB_init): RootObject duplicate. * src/orb/orb-core/corba-context.c (CORBA_Context_new): RootObject duplicate. (CORBA_ORB_get_default_context): ditto. * src/orb/orb-core/corba-any.c: indent pleasantly * src/orb/util/genrand.c (genrand_unix): use p_memzero * src/orb/GIOP/giop-send-buffer.c (giop_send_buffer_append_aligned), (giop_send_buffer_align): use p_memzero. * src/orb/util/Makefile.am (liborb_util_la_SOURCES): add orbit-purify.h * src/orb/dynamic/dynany.c (DynamicAny_DynAny_release_fn): p_free. * src/orb/poa/poa-manager.c (ORBit_POAManager_free_fn): p_free. * src/orb/poa/poa.c (ORBit_POACurrent_free_fn), (ORBit_POA_free_fn): p_free. * src/orb/orb-core/corba-policy.c (ORBit_Policy_release): p_free. * src/orb/orb-core/corba-typecode.c (ORBit_TypeCode_free_fn): p_free. * src/orb/orb-core/corba-orb.c (CORBA_ORB_release_fn): p_free * src/orb/orb-core/corba-object.c (CORBA_Object_release_cb): p_free * src/orb/util/orbit-options.c, * src/orb/util/genrand.c, * src/orb/util/orbit-util.c, * src/orb/poa/orbit-adaptor.c, * src/orb/poa/poa.c, * src/orb/poa/poa-servants.c, * src/orb/poa/poa-policy.c, * src/orb/poa/poa-manager.c, * src/orb/GIOP/giop-endian.c, * src/orb/orb-core/corba-orb.c, * src/orb/orb-core/orbit-object.c, * src/orb/orb-core/iop-profiles.c: include config.h * src/orb/orb-core/orb-core-export.h (p_memzero, p_memwipe, p_free): impl. helpers. * src/orb/orb-core/corba-context.c (ORBit_Context_free_fn): p_free. 2001-11-08 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (giop_connection_handle_input): move here. (giop_recv_buffer_data_read): kill; fold into the above to flatten control flow. (giop_recv_buffer_state_change): privatize. * src/orb/GIOP/giop-connection.c (giop_connection_handle_input): move into giop-recv-buffer.c. * src/orb/GIOP/giop.c (dump): rename to (giop_dump): and publicise. * test/everything/server.c: clean & (TestFactory_createPingPongServer): impl. (main): upd. * test/everything/client.c: prune BIG_STUBS cruft, they'll never work again :-) (testPingPong): impl. * test/everything/pingServer.c: impl. * test/everything/everything.idl: add PingPongServer. 2001-11-06 Johan Dahlin * test/everything/Makefile.am (Everything_module_la_LIBADD): Add $(top_builddir)/src/orb/libORBit-2.la * src/orb/orb-core/Makefile.am (TYPELIB_DIR): fix to be $(libdir)/orbit-2.0 2001-11-05 Michael Meeks * src/orb/GIOP/giop-send-buffer.c (giop_send_buffer_append_aligned): remove erroneous assertion - the indirect (system) align and message align are not synchronized. (giop_send_buffer_append_string): fix an incredibly daft bug; accelerate further. 2001-11-02 Abel Cheung * configure.in: Update required linc version. 2001-11-02 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_async, ORBit_small_invoke_stub), (ORBit_small_invoke_adaptor), (ORBit_small_demarshal_async): use tprintf_end_method. * src/orb/orb-core/orbit-trace.c (ORBit_trace_timestamp): split out. (ORBit_trace_header): invoke. (ORBit_trace_end_method): impl. * src/orb/orb-core/orbit-small.c (ORBit_small_unlisten_for_broken), (ORBit_small_listen_for_broken): tolerate a NULL object sensibly. 2001-11-01 Michael Meeks * src/orb/GIOP/giop-send-buffer.c (giop_send_buffer_append_string): Optimize more to the hilt for the common case. * src/orb/orb-core/corba-object.c (ORBit_marshal_object): upd. * src/orb/orb-core/corba-env.c (ORBit_send_system_exception): upd. (ORBit_send_user_exception): upd. * src/orb/orb-core/corba-any.c (ORBit_marshal_value): upd. * src/orb/orb-core/orbit-small.c (ORBit_small_send_user_exception): upd. * src/orb/orb-core/iop-profiles.c (IOP_TAG_GENERIC_SSL_SEC_TRANS_marshal), (IOP_TAG_INTERNET_IOP_marshal), (IOP_TAG_GENERIC_IOP_marshal), (IOP_TAG_ORBIT_SPECIFIC_marshal): upd. * src/orb/orb-core/corba-typecode.c (CDR_put_string): make a #define. * src/orb/GIOP/giop-send-buffer.c (giop_send_buffer_append_string): impl. * src/orb/orb-core/corba-typecode.c (tc_enc): make typecode marshaling smaller and faster. 2001-11-01 Michael Meeks * Version 2.3.97 2001-11-01 Michael Meeks * src/orb/orb-core/corba-typecode.c: populate tk_info with CORBA_TypeCodes for the empty case, so we don't have to alloc / free them continualy. (tc_dec): re-vamp to use faster basic type path. * src/orb/orb-core/orbit-small.c: s/CORBA_free/ORBit_free/ * src/orb/orb-core/iop-profiles.c: ditto. * src/orb/orb-core/corba-string.c (CORBA_string__freekids): use ORBit_free * src/orb/orb-core/corba-nvlist.c (ORBit_NamedValue_free): use ORBit_free. (CORBA_NVList_free_memory): ditto. * test/everything/client.c (dummy_cb): impl. (testSegv): upd. to test unlisten. (testAnyStrSeq): add (main): call it. * test/everything/everything.idl: add method. * test/everything/anyServer.c (AnyServer_opAnyStrSeq): forward port * src/orb/orb-core/orbit-small.c (ORBit_small_unlisten_for_broken): impl. sigh, there had to be something to break the API freeze. 2001-10-31 Mark McLoughlin * include/orbit/orb-core/corba-ir.h: * include/orbit/orb-core/corba-nvlist-type.h: * include/orbit/orb-core/orb-defs.h: * include/orbit/util/os-feature-alloca.h: * include/orbit/util/thread-safety.h * src/orb/util/genrand.h: remove unused headers. 2001-10-31 Mark McLoughlin * configure.in: version 2.3.96. 2001-10-31 Mark McLoughlin * test/poa/Makefile.am: add poatest-basic-shell.h. 2001-10-31 Mark McLoughlin I feel violated. What's bonobo-config doing poking around with this stuff? * include/orbit/orb-core/allocators.h: expose ORBit_alloc_tcval. * include/orbit/orb-core/corba-typecode.h: expose ORBit_TypeCode_epv. * include/orbit/orb-core/orbit-object.h: expose ORBit_RootObject_init. 2001-11-01 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_get_servant): tolerate a NULL obj. * test/everything/client.c (testMisc): add test. 2001-11-01 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_get_servant): fixup. (get_status): use correct LINC_CONNECTION enum. * test/everything/client.c (testMisc): use in_proc, not evil hacks, expand to test new methods. (testSegv): upd, & listen for 'broken' 2001-11-01 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_get_servant, get_status), (ORBit_small_get_connection_status), (ORBit_small_listen_for_broken): impl. 2001-10-31 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_get_servant), (ORBit_small_get_connection_status), (ORBit_small_listen_for_broken): stub - impl. to follow. 2001-10-30 Mark McLoughlin * include/orbit/util/orbit-util.h: make ALIGN_ADDRESS publicly available. It seems bonobo-config uses it. hmmm. 2001-10-30 Mark McLoughlin * include/orbit/*/*.h: wrap all internal defines in #ifdef ORBIT2_INTERNAL_API and all defines for the benefits of stubs/skels in #ifdef ORBIT2_STUBS_API. * include/orbit/orb-core/Makefile.am: don't install empty files. * include/orbit/util/Makefile.am: ditto. * src/idl-compiler/Makefile.am: define ORBIT2_INTERNAL_API. * src/idl-compiler/orbit-idl-c-common.c: (orbit_idl_output_c_common): define ORBIT2_STUBS_API in generated code. * src/idl-compiler/orbit-idl-c-skels.c: (orbit_idl_output_c_skeletons): ditto. * src/idl-compiler/orbit-idl-c-stubs.c: * (orbit_idl_output_c_stubs): ditto. * src/idl-compiler/orbit-idl-c-headers.c: (ch_output_types): don't define exception marshallers in small mode. * src/orb/GIOP/Makefile.am: * src/orb/Makefile.am: * src/orb/dynamic/Makefile.am: * src/orb/orb-core/Makefile.am: * src/orb/poa/Makefile.am: * src/orb/util/Makefile.am: define ORBIT2_INTERNAL_API. * src/orb/util/genrand.c: don't include genrand.h. * src/orb/util/genrand.h: kill, duplicate of include/orbit/util/orbit-genrand.h. * test/Makefile.am: * test/everything/Makefile.am: define ORBIT2_INTERNAL_API. 2001-10-31 Michael Meeks * src/orb/poa/poa.c (return_exception): if in-proc, we have no valid recv_buffer, so just return - ev is the actual exception context. 2001-10-31 Michael Meeks * src/orb/orb-core/corba-env.c (CORBA_exception_free_T): impl & upd. (CORBA_exception_free): do correct locking. * test/everything/client.c (testException): test copying. * src/orb/orb-core/corba-env.c (CORBA_exception__alloc), (CORBA_exception__copy), (CORBA_exception__freekids): move from bonobo. 2001-10-30 Michael Meeks * src/orb/orb-core/orbit-object.c (ORBit_RootObject_shutdown): upd. to account for the ORB hanging around. * src/orb/orb-core/corba-orb.c (CORBA_ORB_destroy): set exceptions on an unclean shutdown, release default ctx. (CORBA_ORB_release_fn): check refs where we have an ev, don't release default ctx here. 2001-10-29 Mark McLoughlin * include/orbit/poa/poa-basics.h (PortableServer_ServantBase__epv): added extra members to the epv to handle servant refcounting and CORBA::Object method overiding. * include/orbit/poa/poa.h: upd. * src/orb/poa/poa-servants.c: (PortableServer_ServantBase__get_interface), (PortableServer_ServantBase__is_a), (PortableServer_ServantBase__add_ref), (PortableServer_ServantBase__remove_ref), (PortableServer_RefCountServantBase__add_ref), (PortableServer_RefCountServantBase__remove_ref), (PortableServer_RefCountServantBase__init), (PortableServer_RefCountServantBase__fini): impl. (PortableServer_ServantBase__init): initialise function pointers if not already set. (PortableServer_ServantBase__fini): upd. * include/orbit/orb-core/corba-orb-type.h: add CORBA_InterfaceDef definition to keep poa headers happy. 2001-10-30 Michael Meeks * src/orb/poa/poa.c (ORBit_POA_handle_request): make it more robust vs. NULL pobjs. 2001-10-29 Michael Meeks * configure.in: bump required glib version. 2001-10-27 Michael Meeks * src/orb/orb-core/corba-typecode.c: re-order to kill redundant forward prototypes. (ORBit_decode_CORBA_TypeCode): return a typecode with a single reference - not no reference. (tc_dec): ditto duplicate here. (tc_dec_tk_sequence, tc_dec_tk_struct, tc_dec_tk_union), (tc_dec_tk_alias, tc_dec_tk_except, tc_dec_tk_array): update all callers to not do their own duplicates. * src/orb/orb-core/corba-any.c (ORBit_demarshal_value, ORBit_demarshal_any): push back the refs into ORBit_decode_CORBA_TypeCode. * test/everything/client.c (testMisc): fix reference leak. * src/orb/orb-core/orbit-object.c (ORBit_RootObject_shutdown): add a total ref count, always taken regardless of locking. (ORBit_RootObject_duplicate, do_unref), (ORBit_RootObject_duplicate_T), (ORBit_RootObject_duplicate): upd. * src/orb/orb-core/corba-orb.c (CORBA_ORB_release_fn): release the default context. * test/everything/client.c (testMisc): regression test. 2001-10-27 Michael Meeks * test/test-dynany.c (main): shutdown the ORB correctly. * test/everything/server.c (TestFactory_segv): use exit instead of a segv - more friendly. * test/poa/poatest-basic*.c: include poatest-basic-shell.h create into the global child_poa so we can destroy it later. don't unref the child_poa, leave that to the shell. * test/poa/poatest-basic-shell.h: add. * test/poa/poatest-basic-shell.c (main): destroy any child poas we have created. * src/orb/poa/poa.c (ORBit_POA_new): duplicate the poa we return, one ref is released by 'POA_destroy' and another by CORBA_Object_release. (ORBit_POAObject_handle_request): survive even if the poa manager is dead. (PortableServer_POA_create_POA): remove extra duplicate. * src/orb/orbit-init.c (ORBit_init_internals): release the references after set_initial_reference. * src/orb/poa/poa.c (ORBit_POA_destroy): remove superstition about the RootPOA entry. 2001-10-26 Michael Meeks * src/orb/orb-core/corba-orb.c (CORBA_ORB_release_fn): don't destroy the initial refs here - some of them are poas and hold refs on the ORB so we never get here ... (ORBit_service_list_free_ref): use locking mode. (CORBA_ORB_destroy): unref the initial_refs here instead, we don't need to explicitely kill the poas ourselves here. (CORBA_ORB_shutdown): destroy the current poa as well. * test/everything/client.c (main): release the orb after destroy. * test/everything/server.c (main): ditto. * src/orb/orb-core/corba-orb.c (CORBA_ORB_init): split out static ORB variable, so we can NULL it on destroy and seek leaks. (CORBA_ORB_destroy): check we are destroying the right thing, NULL the pointer. (CORBA_ORB_release_fn): call ORBit_RootObject_shutdown, to see if we leaked anything. * src/orb/orb-core/corba-object.c (ORBit_objref_find): kill deadlock. * src/orb/orb-core/orbit-object.c (ORBit_RootObject_duplicate): actualy do some locking ! (ORBit_RootObject_duplicate_T): impl. (ORBit_RootObject_release_T): duplicate into (ORBit_RootObject_release): here - for more speed, we gamble that robj->refs == ORBIT_REFCOUNT_STATIC is not a likely intermediate for an incomplete set of a normal ref count: garenteed pretty much. (do_unref): split out the guts, add alive object count. (ORBit_RootObject_init): count live objects if there is no locking. (ORBit_RootObject_shutdown): impl. 2001-10-26 Michael Meeks * docs/FAQ: add a first pass at a FAQ. * src/orb/orb-core/orbit-typelib.c (ORBit_get_typelib_paths): use g_getenv not getenv. * test/everything/Makefile.am (orbittypelibdir): install in orbit-2.0 * src/orb/orb-core/orbit-typelib.c (add_if_unique): use the orbit-2.0 directory for type libs. 2001-10-23 Mark McLoughlin * include/orbit/orb-core/Makefile.am: reverse Michael's change. 2001-10-24 Michael Meeks * src/orb/GIOP/giop-server.c (giop_server_destroy): kill misleadingly named method. (giop_server_class_init): don't init it, or setup parent_class 2001-10-24 Michael Meeks * include/orbit/orb-core/Makefile.am: prune broken special case for orbit-interface.idl. * test/everything/client.c (main): upd, use linc_set_threaded, requires HEAD linc; sorry. 2001-10-23 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (giop_recv_buffer_state_change): re-format to make pretty. (giop_recv_buffer_handle_fragmented): return GIOP_MSG_INVALID * src/orb/GIOP/giop-connection.c (giop_connection_handle_input): drasticaly simplify crack smoking flow control, release cnx->incoming_mutex much earlier to avoid deadlock. 2001-10-18 Mark McLoughlin * include/orbit/orb-core/corba-orb-type.h (CORBA_ORB_type): kill poa_current, make poa_current_invocations a GSList and rename to current_invocations. (ORBit_InitialReference): kill. * include/orbit/orb-core/corba-orb.h, src/orb/orb-core/orb-core-private.h, src/orb/orb-core/corba-object.c: (CORBA_ORB_set_initial_reference): rename to ORBit_set_initial_reference, privatise and simplify arguments. (ORBit_service_list_add_id): kill ugly _maximum++ hack. (ORBit_service_list_free_ref): impl. (CORBA_ORB_release_fn): unref all initial references. (CORBA_ORB_resolve_initial_references): update. * src/orb/poa/poa.c (ORBit_POACurrent_get_object): update. (ORBit_POAObject_handle_request): ditto. (PortableServer_Current_get_POA): ditto. (PortableServer_Current_get_object_id): ditto. (PortableServer_POA_servant_to_id): ditto. (PortableServer_POA_servant_to_reference): ditto. (CORBA_ORB_list_initial_services): update. * src/orb/orbit-init.c (ORBit_init_internals): update, and create + register a "POACurrent" reference. * include/orbit/poa/poa-types.h (ORBIT_STUB_PreCall, PostCall): update. * include/orbit/poa/poa.h(ORBit_POAInvocation): kill. * src/orb/poa/orbit-poa.h: add ORBit_POACurrent_new. * test/everything/client.c, test/everything/everything.idl, test/everything/server.c, test/everything/deadReference.c, test/everything/test.sh: added regression test for dead server-side references and ORB initial services. * src/idl-compiler/orbit-idl-c-stubs.c (cs_small_output_stub): update. * configure.in: bump up ORBIT_SERIAL. 2001-10-18 Michael Meeks * test/everything/client.c (testSegv): invoke a remote segv. (run_tests): upd. * test/everything/server.c (TestFactory_segv): impl. a segv. * src/orb/GIOP/giop-connection.c (giop_connection_handle_input): kill uber wierd error handling, and make return value always TRUE. 2001-10-18 Michael Meeks * include/orbit/orb-core/corba-object-type.h: make type_id a GQuark to save space, and time. * src/orb/poa/poa.c (ORBit_POA_obj_to_ref): upd. * src/orb/orb-core/corba-object.c (g_CORBA_Object_hash), (CORBA_Object_release_cb, ORBit_objref_new, ORBit_objref_find):, (ORBit_marshal_object, CORBA_Object_is_a): upd. 2001-10-17 jacob berkman * Makefile.am: orbit-config is no more 2001-10-18 Michael Meeks * src/orb/GIOP/giop-connection.c (giop_connection_handle_input): hold a ref on the connection whilst handling the input. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_list_push): release the incoming mutex around the ent. call, set the cnx->incoming_msg to NULL much earlier. * src/orb/orb-core/iop-profiles.c (IOP_profiles_copy): impl. (ORBit_demarshal_IOR): kill redundant gbuf = buf, no nasty global variables thank you. (IOP_ObjectKey_copy, IOP_components_copy), (IOP_TAG_COMPLETE_OBJECT_KEY_copy), (IOP_TAG_GENERIC_SSL_SEC_TRANS_copy), (IOP_TAG_SSL_SEC_TRANS_copy, IOP_TAG_CODE_SETS_copy), (IOP_UnknownComponent_copy, IOP_component_copy), (IOP_components_copy, IOP_TAG_INTERNET_IOP_copy), (IOP_TAG_GENERIC_IOP_copy), (IOP_TAG_ORBIT_SPECIFIC_copy), (IOP_TAG_MULTIPLE_COMPONENTS_copy), (IOP_TAG_UnknownProfile_copy), (IOP_profile_copy, IOP_profiles_copy): impl. * src/orb/orb-core/corba-object.c (CORBA_Object_release): misc. style cleans. (ORBit_objref_get_proxy): impl. to make a local object able to access itself as if remote. * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_async): if we have no local profiles, create some. * test/everything/client.c (testAsync): beef up regression tests to catch the above. * test/everything/client.c (testAsync): perform some normal work while waiting for the async method result. Lots of stylistic seds. * src/orb/orb-core/orbit-trace.c (ORBit_trace_header): impl & add timing information. * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_adaptor), (orbit_small_marshal): use it 2001-10-16 jacob berkman * src/orb/orb-core/Makefile.am: fix to dist from a clean checkout * autogen.sh: don't look in libIDL * configure.in (AC_OUTPUT): generate orbit2-config 2001-10-16 Ross Golder * orbit-config.in: replaced with orbit2-config.in * orbit2-config.in: use pkg-config ORBit2 for --cflags * ORBit.spec.in: update. * ORBit2.m4: was generating stubs etc with older IDL compiler. 2001-10-16 Mark McLoughlin * Makefile.am (EXTRA_DIST): add HACKING AND MAINTAINERS. Remove ORBit.spec.in, *.pc.in which are automatically included. * include/orbit/Makefile.am (EXTRA_DIST): remove orbit-config.h.in. * src/orb/dynamic/Makefile.am, src/orb/orb-core/Makefile.am, src/orb/poa/Makefile.am, test/Makefile.am, test/everything/Makefile.am, test/inhibit/Makefile.am, test/poa/Makefile.am: remove idl compiler generated files before dist-ing. 2001-10-13 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_demarshal_async): fix brokenness. * test/everything/client.c (test_BasicServer_opStringA_cb), (test_BasicServer_opStringA): impl async method with ret. (testAsync): upd. 2001-10-13 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c: lots of debugging instrumentation. * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_stub): un-queue the reply tag for oneway methods - there is no reply. (ORBit_small_invoke_async): ditto. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_list_zap): iterate over the full list, invoke the unthreaded cb when the connection is dead, and unlink before invoke. (giop_recv_list_push): unlink from giop_queued_messages. * src/orb/orb-core/orbit-small.c (async_recv_cb): upd, and set COMM_FAILURE on a broken method ... (ORBit_small_demarshal_async): impl. to simplify de-marshaling. (ORBit_small_invoke_async): upd. 2001-10-11 Michael Meeks * src/orb/GIOP/giop-recv-buffer.c (giop_recv_buffer_get): don't do a blocking iteration, check the queue first. (giop_recv_list_push): re-jig locking. * test/everything/client.c (testAsync): impl. (test_BasicServer_opExceptionA): impl. (test_BasicServer_opExceptionA_cb): impl. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_list_setup_queue_entry_async): impl. * src/orb/orb-core/orbit-small.c (orbit_small_marshal): split out the recv_list_setup_queue_entry. (ORBit_small_invoke_stub): put it here instead. (async_recv_cb): impl. (ORBit_small_invoke_async): impl. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_list_push): add an async callback on a GIOPMessageQueueEntry 2001-10-02 Mark McLoughlin * test/Makefile.am(test_dynany_LDFLAGS): add -lm for non-glibc systems. 2001-10-02 Glynn Foster * autogen.sh, configure.in: Dumb commit to fix spelling mistake and remove build fail references to ORBit and replace with ORBit2. Yeah, this is lame. 2001-10-02 Laszlo Peter * src/orb/orb-core/iop-profiles.c: change g_string_printfa to g_string_append_printf because it was renamed in glib. * test/ior-decode.c: ditto. 2001-10-03 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_adaptor): use the incomming buffer's giop_version on the reply, not the connection's version. FIXME: either the connections ver. negotiation is broken or using it was broken - investigate. * test/everything/client.c (main): add a 'success' printf. * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_adaptor): trace all incoming data. * src/orb/orb-core/orbit-debug.h: include stdio if debug is turned on for fprintf. * src/orb/orb-core/iop-profiles.c (IOP_TAG_ORBIT_SPECIFIC_marshal): output the IIOP version fields - because ORBit 1 expects this. (IOP_TAG_ORBIT_SPECIFIC_demarshal): ignore the IOP version fields. 2001-09-25 Mark McLoughlin * Version 2.3.95. 2001-09-24 Mark McLoughlin * Makefile.am(SUBDIRS): remove libIDL - this is to built seperately. * configure.in: cleanup libtool versioning. Use pkg-config to check for dependancies. Remove libIDL config call. * ORBit-2.0.pc.in, ORBit-CosNaming-2.0.pc.in, ORBit.spec.in: update. * src/idl-compiler/Makefile.am: update and remove all libIDL build rules. * src/orb/Makefile.am: update and don't use libtool's -release flag which makes binary compatibility impossible. * src/orb/GIOP/Makefile.am: update. Don't supply version-info to libtool. * src/orb/dynamic/Makefile.am, src/orb/orb-core/Makefile.am, src/orb/poa/Makefile.am, src/orb/util/Makefile.am, src/services/name/Makefile.am, test/Makefile.am, test/everything/Makefile.am, test/inhibit/Makefile.am, test/poa/Makefile.am: update. 2001-09-24 Mark McLoughlin * test/Makefile.am: -lm for test-dynany. 2001-09-21 Mark McLoughlin * src/orb/GIOP/giop-recv-buffer.c, include/orbit/GIOP/giop-recv-buffer.c (giop_recv_buffer_reply_status): macroise - another forte fix. 2001-09-21 Mark McLoughlin * src/orb/orb-core/corba-typecode.c (CDR_get): remove unused align param. Tidy up macros, hard code the CDR alignments. Fixes a forte build problem. 2001-09-20 Mark McLoughlin * src/orb/GIOP/giop-connection.c (giop_connection_handle_input): If linc_connection_read returns 0 and was not passed a length of 0, then the connection has been closed. Unlock incoming_mutex and change state to LINC_DISCONNECTED. Clients should no longer hang when servers have dumped code while servicing a request. 2001-09-20 Mark McLoughlin * ORBit-2.0.pc.in (Requires): add linc. * .cvsignore, src/idl-compiler/.cvsignore, src/services/name/.cvsignore, test/.cvsignore: update. 2001-09-19 Havoc Pennington * src/idl-compiler/Makefile.am (orbit_idl_2_SOURCES): don't install orbit-idl2.h, apparently it isn't used. * ORBit-CosNaming-2.0.pc.in (Libs): update * ORBit-2.0.pc.in (orbit_idl): orbit-idl-2 * test/Makefile.am (ior_decode_2_SOURCES): rename ior-decode to ior-decode-2 * src/services/name/Makefile.am (libORBitservicesincludedir): put ORBitservices inside /usr/include/orbit to avoid ORBit1 conflicts (lib_LIBRARIES): rename libname-server to libname-server-2 * src/orb/poa/Makefile.am (IDL): s/orbit-idl/orbit-idl-2/ * src/orb/orb-core/Makefile.am: s/orbit-idl/orbit-idl-2/ * Makefile.shared (IDL_COMPILER): s/orbit-idl/orbit-idl-2/ * src/idl-compiler/Makefile.am: s/orbit-idl/orbit-idl-2/ * src/services/name/Makefile.am: s/name-client/name-client-2/ s/orbit-name-server/orbit-name-server-2/ 2001-09-19 Mark McLoughlin * src/orb/orb-core/Makefile.am: revert Darin's patch. That header is not generated by this rule. 2001-09-19 Darin Adler * src/orb/orb-core/Makefile.am: Fix build by mentioning the generated header file explicitly as a target. Otherwise, the dependencies trigger the default orbit-idl compile rule, which uses the wrong flags. 2001-09-19 Mark McLoughlin Implement orbitrc option handling. * src/orb/orb-core/corba-orb.c (ORBit_proto_use): fix typo. (orbit_supported_options): move orbitrc options. * src/orb/util/Makefile.am: define ORBIT_SYSTEM_RCFILE. * src/orb/util/orbit-options.c, src/orb/util/orbit-options.h (ORBit_option_set): change options_list to const. (ORBit_option_rc_parse): impl. (ORBit_option_parse): rename to ORBit_option_command_line_parse. (ORBit_option_parse): impl. (orbit_sysrc_options): add orbitrc options. 2001-09-19 Raja R Harinath * src/orb/orb-core/corba-typecode.c: Have definitions of '*_struct's agree with declarations in include/orbit/orb-core/corba-typecode.h. 2001-09-19 Raja R Harinath Fixes bug #60730 * Makefile.shared: Make dependency output file name agree with pattern used for IDL_DEPS_MAGIC. 2001-09-18 Mark McLoughlin Port command line option handling from ORBit-0.5.x. * src/orb/util/orbit-options.[ch]: two new files with two new functions - ORBit_option_set and ORBit_option_parse courtesy of Dick I think. * src/orb/util/Makefile.am: update. * src/orb/orb-core/corba-orb.c, src/orb/orb-core/orb-core-private.h (ORBit_proto_use): impl. Added all of the sensible options from ORBit-0.5.x. Only the IIOP protocol options are implemented as yet. * src/orb/orb-core/corba-object.c(ORBit_start_servers): check to see if we should use the protocol before starting a server using that protocol. 2001-09-18 Mark McLoughlin * src/orb/orb-core/Makefile.am: depend on $(IDL_COMPILER) not on $(IDL). hmmm. 2001-09-18 Jens Finke * ORBit.spec.in: Updated, matches gpp requirements now, renamed the package to ORBit2 and reworked the files section. 2001-09-17 Mark McLoughlin * Makefile.shared: s/DEPS_MAGIC/IDL_DEPS_MAGIC/. Using the same variable name used by automake causes automake to get confused. This was causing automatic Makefile dependancy tracking to not work. 2001-09-17 Mark McLoughlin * src/orb/poa/Makefile.am: remove bogus BUILT_SOURCE dependancy. * src/orb/poa/poa.c: clean up includes. Don't include corba-ops.h. * test/inhibit/test-inhibit.c: include stdio.h. 2001-09-17 Mark McLoughlin * include/orbit/orb-core/orbit-small.h: don't include IDL.h. * src/orb/GIOP/giop.c: include stdio.h. * src/orb/orb-core/orbit-typelib.c (ORBit_iinterface_from_idl): kill. This is never going to be implemented as it would require linking against libIDL. Also include stdlib.h. 2001-09-11 Mark McLoughlin * src/orb/orb-core/iop-profiles.c (IOP_profile_get_info): don't forget to return TRUE. * include/orbit/GIOP/giop-connection.h, src/orb/GIOP/giop-connection.c (giop_connection_from_fd): this function is unused and unneeded. fds are handled inside linc. 2001-09-10 Mark McLoughlin * test/ior-decode.c: fixup object key handling. * include/orbit/GIOP/giop-server.h, src/orb/GIOP/giop-server.c: minor tidying. 2001-09-09 Michael Meeks * src/orb/orb-core/corba-object.c (get_small_skel_CORBA_Object): make impl non NULL to simplify checks. * test/everything/client.c (testMisc): expand regression tests. * src/orb/poa/poa.c (ORBit_POAObject_handle_request): return exceptions that we have thrown, re-organise the exception throwing code to flow more smoothly. (return_exception): impl; ie. with the old 'Lee' stubs, we have no way to tell that the method was oneway - so we might stil try and return an exception - another nail in it's coffin. 2001-09-09 Michael Meeks * src/orb/orb-core/corba-typecode.c: fix alignment of CORBA_TC_Object, or we get serious marshaling issues. 2001-09-06 Mark McLoughlin * src/orb/orb-core/corba-object.c (g_CORBA_Object_equal): compare object keys. (ORBit_objref_find): sync the object keys before looking up the object. (ORBit_try_connection): sync object keys in forward locations profiles. * src/orb/orb-core/iop-profiles.c, src/orb/orb-core/iop-profiles.h (IOP_profile_find): remove unused. (IOP_profile_dump): the object key is never in the profiles anymore. (IOP_profiles_sync_objkey): impl. (IOP_profile_get_info): remove objkey arg. (IOP_ObjectKey_equal): export. (IOP_profile_equal): don't compare object keys. (IOP_component_free, IOP_TAG_INTERNET_IOP_free, IOP_TAG_ORBIT_SPECIFIC_free): don't free the object key. 2001-09-04 Mark McLoughlin * src/orb/poa/Makefile.am, src/orb/dynamic/Makefile.am, src/orb/orb-core/Makefile.am: add --noheaders options to fix build dependancy problem and remove headers from BUILT_SOURCES. 2001-09-04 Mark McLoughlin * src/orb/orb-core/corba-orb.c(CORBA_ORB_shutdown): quit linc's main loop. 2001-09-03 Maciej Stachowiak * Makefile.shared: Re-enable generating deps, fixing a potential distcheck-breaking problem. * src/orb/orb-core/Makefile.am: Re-disable generating headers; they are generated in include/orbit/orb-core. 2001-09-03 Mark McLoughlin * src/idl-compiler/orbit-idl-c-headers.c (ch_output_const_dcl): implement the unsigned check correctly. Michael should have more faith in the splendifuredness of libIDL ;) 2001-09-03 Mark McLoughlin * src/orb/orb-core/corba-any.c, src/orb/orb-core/orb-core-private.h (ORBit_find_alignment): kill - we have that info in the TypeCode now. * src/orb/dynamic/dynany.c, src/orb/orb-core/allocators.c, src/orb/orb-core/corba-any.c, src/orb/orb-core/orbit-trace.c: update for above change. 2001-09-03 Mark McLoughlin * src/idl-compiler/orbit-idl-c-typecode.c: Big cleanup. Split out the generation of individual TypeCode members from cbe_tc_generate into seperate functions. Also seperate functions for various anon arrays. 2001-09-01 Darin Adler * src/orb/orb-core/.cvsignore: New generated file that needs ignoring. 2001-08-31 Mark McLoughlin * include/orbit/orb-core/corba-typecode.h: (CORBA_TypeCode_struct): fill unused flags, add c_align. * include/orbit/orb-core/orb-types.h: add alignment macro for fixed types. * src/idl-compiler/orbit-idl-c-typecode.c (orbit_find_c_alignment) impl. * src/orb/orb-core/corba-any.c(ORBit_find_alignment): replace with temporary wrapper. * src/orb/orb-core/corba-typecode.c (ORBit_TC_find_c_alignment): impl. (tc_dec): update. 2001-08-30 Mark McLoughlin * acconfig.h, configure.in, include/orbit/orbit-config.h.in: move ALIGNOF defines out of config.h and into public view. Rename to ORBIT_ALIGNOF*. * include/orbit/orb-core/orb-types.h, src/idl-compiler/orbit-idl-passes.c, src/orb/orb-core/allocators.c, src/orb/orb-core/corba-any.c: update. 2001-08-29 Mark McLoughlin * src/orb/orb-core/corba-any.c: minor cleanups. 2001-08-28 Mark McLoughlin * src/orb/orb-core/corba-any.c (ORBit_find_alignment): no need to recurse for aliases. (ORBit_gather_alloc_info): ditto. (ORBit_get_union_switch): ditto. (ORBit_demarshal_value): ditto. (ORBit_copy_value_core): ditto. (ORBit_value_equivalent): ditto. (ORBit_marhsal_value): ditto and fix silly bug with previous commit. 2001-08-28 Mark McLoughlin * src/orb/orb-core/corba-any.c(ORBit_marhsal_value): cleanup and document. 2001-08-28 Mark McLoughlin * src/orb/GIOP/giop-send-buffer.c (giop_send_buffer_append_aligned): kill unused indirect_left. * src/orb/orb-core/corba-any.c(ORBit_marhsal_value): Use giop_send_buffer_append_aligned when appropriate. Fixup long long and long double cases. * test/everything/: added long long regression test. 2001-08-28 Mark McLoughlin * include/orbit/orb-core/corba-any-type.h: kill ORBit_marshal_value_info_struct. * include/orbit/orb-core/corba-any.h, /src/orb/orb-core/corba-any.c (ORBit_marshal_value): remove ORBit_marshal_value_info arg, special case boolean/char/octet sequences and arrays. (ORBit_marshal_arg): update ORBit_marshal_value call. (ORBit_marshal_any): ditto. * src/orb/orb-core/orbit-small.c (orbit_small_marshal): ditto. * src/orb/orb-core/orbit-trace.c (ORBit_trace_value): kill ORBit_marshal_value_info. 2001-08-27 Mark McLoughlin * test/everything/server.c (test_TestFactory__fini): free context ref. (test_TestFactory_Servant): free poa ref. 2001-08-27 Mark McLoughlin * src/orb/orb-core/iop-profiles.c (IOP_component_free): free object key. (IOP_TAG_INTERNET_IOP_free): ditto. (IOP_TAG_ORBIT_SPECIFIC_free): ditto. Note: To avoid deadlock use ORBit_free_T, even though the lock is not neccessarily taken. This doesn't matter, because no RootObjects are affected. 2001-08-27 Mark McLoughlin * src/orb/poa/poa.c(ORBit_POA_setup_root): release the policy. 2001-08-27 Mark McLoughlin * configure.in, ORBit-2.0.pc.in: removed THREADLIBS stuff. Handled by linc. 2001-08-24 Michael Meeks * Version 2.3.94 * Makefile.shared: don't generate .deps - totaly broken. * test/Makefile.am: dynany.idl not .idk ! * src/idl-compiler/orbit-idl-main.c (main): use the full filename not the basename ! * src/idl-compiler/orbit-idl-c-backend.c (out_for_pass): create the .deps directory if it doesn't exist - spew only warnings. * src/orb/orb-core/Makefile.am: why not generate the headers we go on to include ? * src/idl-compiler/orbit-idl-c-backend.c (out_for_pass): print the correct name of what it failed to open... 2001-08-23 Mark McLoughlin * src/orb/orb-core/allocators.c (ORBit_freekids_via_TypeCode_T): unref the object reference. * src/orb/orb-core/corba-policy.c (CORBA_Policy_destroy): don't unref the object - that's CORBA_Object_release's job. 2001-08-23 Michael Meeks * configure.in: require linc 0.1.4 bump version to 2.3.94 2001-08-23 Sander Vesik * configure.in: check for popt.h 2001-08-23 Mark McLoughlin * test/poa/poatest-basic??.c: do the policy thang correctly. 2001-08-23 Mark McLoughlin Bunch of warnings fixes. * libIDL/lexer.l, libIDL/parser.y, libIDL/util.c, src/idl-compiler/orbit-idl-c-headers.c: cast char to int for isspace() etc. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_list_push): kill G_BREAKPOINT. * src/orb/dynamic/dynany.c (DynamicAny_DynStruct_get_elements_as_dyn) kill unused newdyn. * src/orb/orb-core/corba-context.c (ctx_get_values) changes CORBA_Identifier arg to const CORBA_char *. * src/orb/orb-core/iop-profiles.c (IOP_components_marshal): kill unsed lenptr. * test/test-dynany.c(test_struct): pass dyn_struct to DynamicAny_DynStruct_* instead of dyn_any. 2001-08-23 Mark McLoughlin * src/orb/orb-core/corba-context.c, src/orb/orb-core/corba-nvlist.c, src/orb/orb-core/corba-object.c, src/orb/orb-core/corba-orb.c, src/orb/orb-core/corba-request.c, src/orb/poa/poa.c: The implications of Maciej's patch. Match up API defs with IDL generated defs. * src/orb/orb-core/iop-profiles.c: include orb-core-private.h. * src/orb/poa/poa.c(ORBit_POA_okey_to_poa): killed unused. 2001-08-22 Maciej Stachowiak * src/idl-compiler/orbit-idl-c-utils.c (orbit_cbe_write_param_typespec_str): If a type Foo is a typedef for CORBA_string, write const CORBA_char * instead of const Foo. This is needed to avoid warnings in the generated skeletons. 2001-08-20 Mark McLoughlin * src/orb/orb-core/poa.c (ORBit_POAObject_object_to_objkey) removed objid. (ORBit_ORB_find_POA_for_okey) killed. 2001-08-20 Martin Baulig * src/orb/GIOP/giop-connection.c (giop_connection_initiate): If the connection could not be established, drop the connection list lock right before calling g_object_unref(cnx). 2001-08-20 Michael Meeks * src/idl-compiler/orbit-idl-c-typecode.c (cbe_tc_generate): only do strange object mapping things for PIDL. 2001-08-20 Mark McLoughlin * src/orb/poa/poa-servants.c, src/orb/poa/poa-manager.c, src/orb/poa/poa.c: more cleanup. 2001-08-20 Martin Baulig * src/orb/dynamic/dynany.c (dynany_kind_mismatch): Make it work with aliases. (DynamicAny_DynStruct_get_elements_as_dyn_any): Implemented. (DynamicAny_DynSequence_set_elements_as_dyn_any): Implemented. 2001-08-18 Michael Meeks * test/everything/server.c: init threads, before ORB init. * test/everything/client.c: ditto. * src/orb/GIOP/giop.c (giop_init): actualy do pass FALSE to linc_init now we know it works in threaded mode. 2001-08-20 Mark McLoughlin * src/orb/poa/poa-policy.c: create policy methods with macros. Simplifies things. * src/orb/poa/poa-manager.c: more scrubbing. 2001-08-19 Maciej Stachowiak * src/orb/orbit-init.c: Include to fix build. 2001-08-19 Mark McLoughlin * src/orb/poa/poa.c: code movement, cleaning etc. * src/orb/poa/orbit-poa.h: only export what's neccessary. 2001-08-18 Michael Meeks * src/orb/orb-core/corba-object.c (CORBA_Object_release_cb): fix deadlock. * src/orb/GIOP/giop.c (giop_init): pass FALSE to linc_init, if peopl want threads they have to initialize them before initializing the ORB. * src/orb/orb-core/orbit-object.c (ORBit_RootObject_release): upd locking. move global lock into corba-orb.c * src/orb/orb-core/allocators.c (ORBit_freekids_via_TypeCode, ORBit_free): upd locking. * src/orb/orb-core/corba-object.c (ORBit_objref_find): fix locking homogenise style. * include/orbit/orb-core/orbit-object.h: update ORBit_RootObject_lifecycle_lock decl. - wtf. is this global !? * src/orb/orb-core/corba-orb.c (ORBit_locks_initialize): upd. (CORBA_ORB_init): always init locks. * src/orb/GIOP/giop-recv-buffer.c: (giop_recv_buffer_init): re-write. s/O_MUTEX/LINC_MUTEX/ fix stylistic ugliness, remove redundant forward prototypes. * src/orb/GIOP/giop-connection.c (giop_connection_dispose): update lock destruction. (giop_connection_handle_input): FIXME: introduced possible re-enterancy deadlock here. s/O_MUTEX/LINC_MUTEX/ * src/orb/orb-core/corba-object.c (CORBA_Object_release_cb): use g_object_unref not giop_connection_unref (ORBit_try_connection): ditto. * src/orb/GIOP/giop-connection.c (giop_connection_list_init): upd. mutex code. (giop_connection_unref): kill. * src/orb/GIOP/giop-send-buffer.c (giop_get_request_id): prune redundant, slow cruft. (giop_send_buffer_init): update locking code, kill 'id' lock - just use a heap / stack pointer - doh. (giop_send_buffer_append_real): kill redundant forward prototype. (giop_IOP_ServiceContextList_marshal), (giop_CORBA_sequence_octet_marshal): remove cruft. use linc mutex code throught. * configure.in: require linc 0.1.3 2001-08-18 Mark McLoughlin * configure.in: kill AC_CONFIG_SUBDIRS(popt) 2001-08-18 Dirk-Jan C. Binnema * src/idl-compiler/orbit-idl-c-backend.c (out_for_pass): raise a g_error instead of segfaulting if the output can't be opened or popened 2001-08-16 Mark McLoughlin * src/orb/orb-core/orbit-debug.h: add. * src/orb/orb-core/orbit-small.c, * src/orb/orb-core/orbit-typelib.c, src/orb/orb-core/orbit-trace.c: move debug/trace stuff to orbit-debug.h 2001-08-16 Michael Meeks * configure.in: require linc >= 0.1.2 * src/orb/GIOP/giop-connection.c (giop_connection_handle_input): update sig. (giop_connection_real_state_changed): hack out linc_io_add_watch. Use new linc 'handle_input' abstraction. 2001-08-15 Michael Meeks * src/idl-compiler/orbit-idl-c-deps.c: update. (orbit_idl_output_c_deps): if we didn't open the fh; return. * src/idl-compiler/orbit-idl-c-backend.c (out_for_pass): only fopen non NULL deps files. 2001-08-14 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_marshal_context): trace CORBA contexts nicely. 2001-08-15 Mark McLoughlin * include/orbit/orb-core/corba-any.h, src/orb/orb-core/corba-any.c: implement CORBA_any_{set|get}_release as macros. 2001-08-13 Maciej Stachowiak Implemented dependency tracking in the IDL compiler (much like the similar feature of gcc) and use it everywhere. * src/idl-compiler/orbit-idl-c-deps.c (orbit_idl_output_c_deps, output_deps): New pass that outputs dependency info in a format suitable for including into a Makefile. * src/idl-compiler/orbit-idl-main.c (main): Add a --deps switch which takes a filename argument. * src/idl-compiler/orbit-idl-c-backend.h, src/idl-compiler/orbit-idl-c-backend.c (orbit_idl_output_c): Output dependencies when requested. (orbit_idl_c_filename_for_pass, out_for_pass): Split out the code that generates the output filename for each pass and make it public, to help the new dependency pass. * src/idl-compiler/orbit-idl-driver.c (orbit_idl_to_backend): Always pass IDLF_SRCFILES flag, since SRCFILE nodes are required by the dependency generation pass. * src/idl-compiler/orbit-idl-c-headers.c (ch_output_types): Only output weird stuff for SRCFILE nodes when suppressing includes. * src/idl-compiler/orbit-idl3-types.h: Add dependency pass and a #define for the number of passes, to help avoid magic numbers in code. * src/idl-compiler/Makefile.am: Add orbit-idl-c-deps.c to build. * Makefile.shared: Common Makefile segment that has the appropriate rules for building IDL files and generating dependency info for targets of IDL sources. * include/orbit/dynamic/Makefile.am, include/orbit/orb-core/Makefile.am, include/orbit/poa/Makefile.am, src/orb/dynamic/Makefile.am, src/orb/include/Makefile.am, src/orb/orb-core/Makefile.am, src/orb/poa/Makefile.am, src/services/name/Makefile.am, test/Makefile.am, test/everything/Makefile.am, test/inhibit/Makefile.am, test/poa/Makefile.am: Use Makefile.shared and IDL dependencies to simplify and sanitize IDL compilation. * include/orbit/dynamic/.cvsignore, include/orbit/orb-core/.cvsignore, include/orbit/poa/.cvsignore: Ignore .deps directories. 2001-08-14 Michael Meeks * src/idl-compiler/orbit-idl-c-headers.c (ch_output_const_dcl): try and get libIDL to give us some useful information - right ! * src/idl-compiler/orbit-idl-driver.c (orbit_idl_to_backend): set rinfo->namespace. * src/orb/orb-core/corba-any.c (ORBit_copy_value_core): fix heinous _buffer = TRUE bug. 2001-08-13 Michael Meeks * test/everything/client.c (testMisc): invoke a non existant method on an object. (testMisc): add a (currently failing) check for Martin's bug. * test/everything/everything.idl: add ObjectStruct. * src/orb/orb-core/iop-profiles.c (IOP_profile_dump): dump the correct oki. 2001-08-13 Mark McLoughlin * include/orbit/orb-core/corba-object-type.h: kill IOP_ObjectKey_info. Use ORBit_ObjectKey. * include/orbit/poa/orbit-adaptor.h, src/orb/orb-core/corba-object.c, src/orb/orb-core/iop-profiles.c, src/orb/orb-core/iop-profiles.h, src/orb/orb-core/orb-core-private.h, src/orb/poa/orbit-adaptor.c, test/ior-decode.c: s/IOP_ObjectKey_info/ORBit_ObjectKey/. Add ORBit_AdaptorKey. CORBA_free the object key instead of g_free-ing it. * include/orbit/poa/portableserver-poa-type.h: kill num_to_koid_map and koid_rand_len. * src/orb/poa/orbit-poa.h: kill ORBit_POAKOid, ORBIT_POAKOID_OidLenOf etc. * src/orb/poa/poa.c (ORBit_POAObject_object_to_objkey): Just use the adaptor key and object Id for the key. Improvements will follow. Kill num_to_koid_map etc. * include/orbit/GIOP/giop-send-buffer.h, src/orb/GIOP/giop-send-buffer.c (giop_send_buffer_use_request, giop_send_buffer_use_locate_request): Take a ORBit_ObjectKey instead an iovec. 2001-08-13 Mark McLoughlin * include/orbit/poa/poa-policy.h, include/orbit/poa/portableserver-poa-type.h, src/orb/poa/poa-policy.c, src/orb/poa/poa-policy.c, src/orb/poa/poa.c: kill obj_rand_len. kill ORBit_PortableServer_OkeyrandPolicy_t. 2001-08-13 Martin Baulig * src/idl-compiler/orbit-idl-c-common.c: Increase the length of the ORBit::IArguments sequence by one so that the trailing NULL element is copied as well. 2001-08-11 Michael Meeks * test/typelib-dump.c (list_libs): impl. (main): list installed type libraries. 2001-08-11 Mark McLoughlin * src/orb/poa/orbit-poa.h, src/orb/poa/poa.c: (ORBit_POA_make_sysoid): Always use random data. Rename to ORBit_POA_new_system_objid. (ORBit_POA_create_object): make static. Remove unused asDefault arg. (ORBit_POAObject ORBit_POA_okey_to_obj): kill unused. 2001-08-10 Michael Meeks * src/orb/orb-core/orbit-typelib.c (ORBit_get_typelib_paths): expose internaly. 2001-08-10 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_handle_exception_array): set the typecode in the CORBA_Environment as we demarshal. * src/orb/orb-core/orbit-trace.c (ORBit_trace_typecode): upd. (ORBit_trace_any): impl. * src/orb/orb-core/orbit-small.c (orbit_small_demarshal): more trace debug: out parameters & exceptions. 2001-08-10 Michael Meeks * test/everything/test.sh: trash /tmp/orbit-$USER before we start ... 2001-08-09 Michael Meeks * src/orb/orb-core/Makefile.am: add orbit-typelib.c * src/orb/orb-core/orbit-small.c: split out type libraries * src/orb/orb-core/orbit-typelib.c: to here. * src/orb/orb-core/orbit-trace.c (ORBit_trace_value): fixup. 2001-08-08 Michael Meeks * test/Makefile.am: add typelib-dump * test/typelib-dump.c (dump_iface): impl. 2001-08-08 Michael Meeks * src/orb/orb-core/iop-profiles.c (IOP_component_free): don't free the non-allocated oki - it's part of the component's structure. * include/orbit/orbit.h: add orbit_version. * configure.in (then): kill HAVE_LIMITED_WRITEV check. * include/orbit/orbit-config.h.in: kill HAVE_ALLOCA, HAVE_LIMITED_WRITEV - unused. * src/orb/orbit-init.c: setup orbit_version char * * src/orb/Makefile.am: define ORBIT_VERSION. 2001-08-08 Mark McLoughlin * src/orb/orb-core/orbit-small.c (load_module): unload module, if not needed. * src/orb/orb-core/corba-object.c (CORBA_Object_release_cb): free object key. * test/everything/client.c (testString): free ior. 2001-08-08 Mark McLoughlin * test/everything/client.c (testIInterface): free iinterface. 2001-08-08 Mark McLoughlin * test/everything/client.c (testUnboundedSequence): set _release. (testBoundedSequence): ditto. (testSequenceOfAny): ditto. 2001-08-07 Michael Meeks * test/everything/client.c: call testMisc. (testMisc): impl CORBA_TypeCode_equal / equivalent regression tests. 2001-08-07 Michael Meeks * Version 2.3.93 * src/orb/orb-core/corba-typecode.c (CORBA_TypeCode_eqivalent): rename to (CORBA_TypeCode_equivalent): this, doh. * src/orb/orb-core/corba-typecode.c (typecode_equiv_internal): fixup. 2001-08-07 Dirk-Jan C. Binnema * src/orb/orb-core/allocators.c (ORBit_free_T): do g_error instead of g_assert, makes debugging a bit easier. 2001-08-07 Mark McLoughlin * src/orb/dynamic/dynany.c (DynamicAny_DynStruct_get_members): set _release to CORBA_TRUE. (DynamicAny_DynStruct_get_members_as_dyn_any): ditto. (DynamicAny_DynSequence_get_elements): ditto. * ORBit2/src/orb/orb-core/corba-any.c (ORBit_copy_value_core): ditto. * src/orb/poa/poa.c(ORBit_POA_new): ditto. * src/orb/orb-core/corba-orb.c (CORBA_ORB_list_initial_services): use CORBA_TRUE instead of TRUE. * src/orb/orb-core/corba-types.c (ORBit_sequence_CORBA_octet_dup): ditto. * src/orb/orb-core/orbit-small.c(load_module): ditto. 2001-08-07 Michael Meeks * test/everything/client.c (testIInterface): actualy free the iinterface structure. * src/orb/orb-core/orbit-small.c (load_module): fix leak. * src/orb/orb-core/corba-types.c (ORBit_sequence_CORBA_octet_dup): set release to TRUE. * src/orb/orb-core/corba-orb.c (CORBA_ORB_list_initial_services): ditto. * src/orb/poa/clean-poa.c (PortableServer_POA__get_the_children): ditto. * src/orb/poa/clean-poa.c (ORBit_POA_create_object): ditto. * src/orb/poa/poa.c (PortableServer_POA__get_the_children), (ORBit_POA_create_object): ditto. (PortableServer_string_to_ObjectId): revert. 2001-08-07 Mark McLoughlin * src/orb/poa/poa.c (PortableServer_string_to_ObjectId): set _release to TRUE. 2001-08-07 Mark McLoughlin * src/orb/orb-core/corba-policy.c (ORBit_Policy_release): impl. (ORBit_Policy_new): ref the policy. (CORBA_Policy_destroy): unref the policy. * include/orbit/orb-core/corba-policy-type.h: killed CORBA_Policy_t, POLICY_CAST_OUT, POLICY_CAST_IN. * src/orb/poa/poa.c(ORBit_POA_setup_root): cleaned up. 2001-08-07 Michael Meeks * src/orb/orb-core/orbit-trace.c (ORBit_trace_value): impl. * src/orb/orb-core/Makefile.am: add orbit-trace.c 2001-08-06 Michael Meeks * src/orb/orb-core/corba-typecode.c (typecode_equiv_internal): split this out of (CORBA_TypeCode_equal): here. (CORBA_TypeCode_eqivalent): impl. (typecode_equiv_internal): impl equivalent checking. 2001-08-06 Mark McLoughlin * src/orb/orb-core/orbit-small.c (ORBit_small_getepv): put back. 2001-08-04 Michael Meeks * src/orb/poa/orbit-adaptor.c (ORBit_handle_request): fix potential segv. on NULL objkey. 2001-08-02 Martin Baulig * src/orb/orb-core/orbit-interface.idl: (ORBit::IInterfaces): New typedef. * include/orbit/orb-core/orbit-small.h, src/orb/orb-core/orbit-small.c (ORBit_small_get_iinterfaces): New function. 2001-08-02 Mark McLoughlin * src/orb/poa(ORBit_OAObject_invoke): let's not return a value from a void function, shall we. 2001-08-01 Mark McLoughlin * test/poa/*: re-indent. sigh. 2001-08-01 Mark McLoughlin * include/orbit/poa/orbit-adaptor.h, src/orb/poa/orbit-adaptor.c (ORBit_OAObject_invoke, ORBit_OAObject_object_to_objkey): impl. * src/orb/orb-core/iop-profiles.c, src/orb/orb-core/orbit-small.c: used the above. 2001-07-31 Darin Adler * src/orb/orb-core/corba-object.c: (CORBA_Object_non_existent): Don't dereference obj until after we check it for nil. 2001-07-31 Mark McLoughlin * include/orbit/poa/orbit-adaptor.h, src/orb/poa/orbit-adaptor.c, include/orbit/poa/Makefile.am, src/orb/poa/Makefile.am: added orbit-adaptor.[ch]. Virtual Object Adaptor interface. * include/orbit/poa/poa-basics.h: added typedefs for ORBit_OAObject and ORBit_ObjectAdaptor. * include/orbit/poa/poa-types.h, include/orbit/poa/portableserver-poa-type.h: Included base structures in ORBIt_POAObject and PortableServer_POA. * src/orb/poa/orbit-poa-export.h (ORBit_handle_request, ORBit_small_handle_request, ORBit_POA_object_to_okey): kill. * src/orb/poa/poa.c (ORBit_POAObject_is_active, ORBit_POAObject_invoke): impl. (ORBit_POA_object_to_okey) rename to ORBit_POAObject_object_to_objkey. (ORBit_handle_request) rename to ORBit_POA_handle_request. (ORBit_small_handle_rquest) rename to ORBit_POAObject_handle_request. * include/orbit/orb-core/corba-object-type.h,, include/orbit/orb-core/corba-orb-type.h, include/orbit/orb-core/orbit-object.h, include/orbit/orb-core/orbit-small.h, src/orb/orb-core/corba-object.c, src/orb/orb-core/corba-orb.c, src/orb/orb-core/iop-profiles.c, src/orb/orb-core/orbit-small.c, test/everything/server.c: host of minor supporting changes. 2001-07-31 Michael Meeks * Version 2.3.92 2001-07-31 Michael Meeks * test/poa/Makefile.am: fixup. 2001-07-31 Martin Baulig * src/orb/dynany.c (DynamicAny_DynStruct_set_members_as_dyn_any): Impl. (DynamicAny_DynStruct_get_members_as_dyn_any): Impl. * tests/test-dynany.c: Added tests for them. 2001-07-31 Michael Meeks * test/everything/client.c (find_tc): impl. (testIInterface): beef up, and test new methods. * src/orb/orb-core/orbit-small.c (ORBit_small_get_types): impl. (ORBit_small_load_typelib): fixup local lib names. * src/idl-compiler/orbit-idl-c-imodule.c (cc_small_build_exceptions): prune. (cc_small_build_types): merge exceptions to here. * src/orb/orb-core/orbit-small.c (ORBit_iinterface_from_idl): kill cruft. (add_iinterface, lookup_iinterface, get_type_db): impl. (ORBit_small_get_iinterface): lookup in the local db first then classinfo, then remote. (shallow_copy_iinterface): rename to (copy_iinterface): & add 'shallow' arg. (load_module): actualy close the handle and register the types. (get_types, add_types): impl. (ORBit_small_load_typelib): upd. (load_module): upd. (get_types, add_types): impl. * test/everything/Makefile.am (included_src): add context-server 2001-07-31 Michael Meeks * configure.in: require linc-0.1.1 bump version to 2.3.92 * src/orb/orb-core/orbit-small.c (ORBit_small_get_types): stub for API freeze. 2001-07-30 Martin Baulig * src/orb/dynamic.c (dynamic_sequence_realloc_to): Initialize the newly created elements. 2001-07-30 Martin Baulig * configure.in: Bump ORBIT_SERIAL to 16. * include/orbit/orb-core/corba-object.h (CORBA_Object__itype): Renamed to CORBA_Object__iinterface. * include/orbit/orb-core/orbit-small.h (ORBit_IModule): Added `CORBA_TypeCode *exceptions' and `CORBA_TypeCode *types'. * include/orbit/orb-core/corba-typecode.h (CORBA_TypeCode_struct): Added `CORBA_unsigned_long flags'. * src/idl-compiler/orbit-idl-c-*.c: Use `__iinterface' instead of `__itype' as prefix for the ORBit_IInterface structs. * src/idl-compiler/orbit-idl-c-imodule.c: Create the new type and exception arrays. 2001-07-28 Michael Meeks * test/everything/client.c (testStructAny): impl. (run_tests): hook up. * test/everything/structServer.c (StructServer_opStructAny): impl. (StructServer_epv): add. & fix all the serious stylistic issues. 2001-07-27 Mark McLoughlin * /src/idl-compiler/orbit-idl-c-common.c: add a couple of '\n's to the generated code. We shouldn't rely on indent to fix up broken code. 2001-07-27 Michael Meeks * src/orb/orb-core/orbit-small.c (quick_compare): impl. (ORBit_small_invoke): use it instead of a hard pointer compare - since we can make new multiple IInterfaces to point to the same data. 2001-07-26 Michael Meeks * src/orb/orb-core/orbit-small.c (get_typelib_paths): add to the search path. * src/orb/orb-core/Makefile.am: define ORBIT_TYPELIB_DIR 2001-07-26 Michael Meeks * src/idl-compiler/orbit-idl-c-typecode.c (cbe_tc_generate): fix duplicate static bug. 2001-07-26 Michael Meeks * src/idl-compiler/orbit-idl-main.c (main): only output imodule information if explicitely asked, and then only output the neccessary. 2001-07-25 Michael Meeks * src/idl-compiler/orbit-idl-c-typecode.c (cbe_tc_generate): make TC's static in typelibs. * src/idl-compiler/orbit-idl-c-common.c (cc_small_output_itypes): make the __itype data static if for a type library, also for __imethods. (cc_output_alloc_interface): only output __classids in certain cases. * src/orb/orb-core/orbit-small.c (ORBit_small_load_typelib), (get_typelib_paths, add_if_unique): impl. * test/everything/Makefile.am: build an _module typelib. * test/everything/client.c (testIInterface): load it. * configure.in: we need gmodule. * ORBit-2.0.pc.in (Requires): add @THREAD_LIBS@ and gmodule. * src/idl-compiler/orbit-idl-c-common.c (orbit_idl_output_c_common): inhibit GIOP include for small. * src/idl-compiler/orbit-idl-c-imodule.c (cc_small_output_imodule): kill. (cc_small_output_base_itypes): ditto. (cc_small_build_interfaces): upd. (orbit_idl_output_c_imodule): upd. * include/orbit/orb-core/orbit-small.h: define the ORBit_IModule interface in standard C - not IDL, so we can have nicer dereferencing. * src/orb/orb-core/orbit-interface.idl: kill IModule bits. 2001-07-25 Maciej Stachowiak * src/idl-compiler/orbit-idl-c-headers.c: (ch_output_codefrag): Add a newline after emitted codefrag lines to avoid line directives running together with the next line. 2001-07-25 Mark McLoughlin * src/orb/orb-core/iop-profiles.c(IOP_components_marshal), src/orb/orb-core/corba-contexts.c(ORBit_Context_marhsal), see below... more of the same. 2001-07-25 Mark McLoughlin * src/orb/iop-profiles.c(IOP_profile_marshal), src/orb/corba-typecode.c(tc_enc): do not dereference pointers that aren't neccessarily properly aligned. * src/orb/GIOP/giop-send-buffer.c: document this. 2001-07-25 Michael Meeks * src/orb/GIOP/giop.c (giop_dump_send, giop_dump_recv), (dump): move here. * test/everything/basicServer.c (BasicServer_opOneWay): impl. * test/everything/client.c (testString): call it. * test/everything/everything.idl: add opOneWay to BasicServer. 2001-07-24 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_poa): don't send anything back for oneway methods ... (giop_dump_recv, giop_dump_send): robustify and publicise. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_buffer_handle_fragmented): add a warning for the broken fragmentation case ... (giop_recv_buffer_use_noblock): kill. (giop_recv_list_push): add conditional debug 2001-07-24 Martin Baulig * src/idl-compiler/orbit-idl-c-imodule.c: Correctly calculate the length of the __base_types array. 2001-07-24 Michael Meeks * src/orb/orb-core/orbit-small.c (shallow_copy_iinterface): impl. (ORBit_small_get_iinterface): use it. * src/orb/orb-core/corba-object.c: update to mention exceptions we fire on get_iinterface. * src/orb/orb-core/corba-env.c (CORBA_exception_free): NULL the exception id after freeing it, so we don't double free: doh ! * src/orb/orb-core/orbit-small.c (ORBit_handle_exception_array): robustify the 'fired an unknown exception' case. (ORBit_small_send_user_exception): don't use a fakeev - use the real one, since the exception type is grokked elsewhere, return a boolean to indicate a re-marshal of a sys exception, and free the send_buffer. (ORBit_small_invoke_poa): upd to loopback on exception. * test/everything/client.c (testIInterface): update tests to go over the wire. 2001-07-24 Martin Baulig The IDL compiler now creates a -imodule.c file which contains a `ORBit_IModule orbit_imodule_data' struct. We'll compile these -imodule.c files into shared libraries which can be dlopen()ed by scripting languages. There is a --noimodule command line option to turn this feature off. * src/orb/orb-core/orbit-interface.idl (IModuleVersion, IInterfaces): New typedefs. (IModule): New struct type. * configure.in: Bump ORBIT_SERIAL to 14. * src/idl-compiler/orbit-idl3-types.h (enabled_passes): Added OUTPUT_IMODULE. * src/idl-compiler/orbit-idl-main.c: Added "--noimodule" command line option to disable output of the -imodule.c files. * src/idl-compiler/orbit-idl-c-imodule.c: New file. 2001-07-23 Michael Meeks * src/idl-compiler/orbit-idl-main.c (main): add version output. 2001-07-23 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_poa): only free the return value if there is no exception. 2001-07-20 Michael Meeks * src/orb/orb-core/iop-profiles.c (IOP_generate_profiles): remove 'need_object_key_component' - we always do, to flag UTF-8. (IOP_profile_get_info): fallback to obj->oki if coki is NULL. (IOP_components_marshal): hook up CODE_SETS. (IOP_TAG_CODE_SETS_marshal): impl. (CodeSetComponent_marshal): impl. (IOP_components_demarshal): upd. (CodeSetComponent_demarshal): impl. (IOP_component_free): upd. 2001-07-20 Michael Meeks * src/orb/GIOP/giop-send-buffer.c (giop_send_buffer_append_indirect): rename to (giop_send_buffer_append_aligned): this, to make not only more efficient, but clean and sane. (giop_send_buffer_align): re-write to be actualy fast, remove the 'register' keyword - it doesn't speed things up. (get_next_indirect): split out of _append & re-write. (giop_send_buffer_append_aligned): here & re-write. (giop_send_buffer_append_copy): impl simple version for (giop_send_buffer_append): to use & upd. * src/orb/orb-core/iop-profiles.c: upd. * src/orb/orb-core/corba-context.c: upd. * src/orb/orb-core/corba-any.c: upd. * src/orb/orb-core/corba-typecode.c: upd. * src/orb/orb-core/corba-env.c: upd. * src/orb/orb-core/corba-object.c: upd. * src/orb/orb-core/orbit-small.c: upd. 2001-07-19 Michael Meeks * src/orb/poa/poa.c (ORBit_POAObject_release_cb): try freeing the object_id before we free the pobj we need to reference it, also NULL it for safety. 2001-07-19 Michael Meeks * src/orb/orb-core/orbit-small.c: remove redundant DEBUG_LOCAL_TEST macro ... * src/orb/GIOP/giop-connection.c (giop_connection_real_state_changed): use linc watches. 2001-07-18 Michael Meeks * test/echo-server.c (main): use CORBA_ORB_run. * src/orb/orb-core/corba-orb.c (CORBA_ORB_perform_work, CORBA_ORB_work_pending), (CORBA_ORB_run): use new linc_main stuff instead of g_main. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_buffer_get): use linc_main_iteration, this requires the latest CVS linc. (giop_recv_buffer_use): ditto. 2001-07-18 Mark McLoughlin * src/idl-compiler/orbit-idl-c-headers.c(ch_output_native), src/idl-compiler/orbit-idl-c-stubs.c(cs_small_output_stub): add a couple of '\n's to the generated code. We shouldn't rely on indent to fix up broken code. 2001-07-18 Michael Meeks * src/orb/orb-core/corba-object.c (_ORBit_object_get_connection): rename to (ORBit_object_get_connection): this & re-order slightly. (CORBA_Object_non_existent): local objects always exist, even if we havn't bothered remoting them yet => no connection. * include/orbit/orb-core/corba-object.h: kill macro (ORBit_object_get_connection): somewhat confusing. * test/everything/client.c (testIInterface): add CORBA_Object_non_existent and CORBA_Object_is_nil regression tests. 2001-07-17 Michael Meeks * src/idl-compiler/orbit-idl-main.c (main): make the runtime message more pleasant. * src/orb/orb-core/corba-object.c (ORBit_IInterface_is_a): upd. to sequence * src/idl-compiler/orbit-idl-c-common.c (cc_small_output_itypes): output sequence for base types & get the length right. (cc_small_output_base_itypes): upd. * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_skel): kill. (ORBit_small_invoke): impl. * configure.in (ORBIT_SERIAL): bump. * src/orb/orb-core/orbit-interface.idl: switch to sequence for base_interfaces. 2001-07-17 Michael Meeks * test/everything/client.c (testIInterface): ORBit_small_get_type_id regression test. (run_tests): hook it up. * src/orb/poa/poa.c (ORBit_classinfo_lookup): impl. * src/orb/poa/clean-poa.c (ORBit_classinfo_lookup): impl. * src/orb/orb-core/corba-object.c (ORBit_impl_ORBit_get_iinterface): impl. (ORBit_impl_ORBit_get_type_id): impl. (get_small_skel_CORBA_Object): extend. * src/orb/orb-core/orbit-small.c (ORBit_small_get_iinterface): impl. (ORBit_small_get_type_id): impl. * src/orb/orb-core/corba-object.c: add ORBit_get_iinterface / ORBit_get_type_id methods. 2001-07-13 Peter Williams * configure.in (ACLOCAL): Preserve ACLOCAL_FLAGS in ACLOCAL. (Update: whoops, typo! Fixed.) (Update: I do not believe it. Fix another typo.) 2001-07-14 Martin Baulig * ORBit-2.0.pc.in (orbit_idl): New variable. 2001-07-13 Mark McLoughlin * docs/devel/internals/poa-notes.txt: added. 2001-07-13 Michael Meeks * test/everything/client.c (testString): use the getIOR method to test stringification. * test/everything/server.c (TestFactory_getBasicServerIOR): impl. 2001-07-13 Michael Meeks * src/orb/poa/poa.c (ORBit_small_handle_request): re-indent to make legible. * src/orb/orb-core/corba-object.c (CORBA_Object_is_a): fix invocation code. (ORBit_impl_CORBA_Object_is_a): fix indirection. Thanks to Martin Baulig for reporting repo_id matching bug. * test/everything/client.c (testFixedLengthStruct): add CORBA_Object_is_a test. * src/orb/orb-core/allocators.c (ORBit_freekids_via_TypeCode_T): kill broken assumption that align == length ! * src/orb/orb-core/corba-typecode.c (ORBit_tk_to_name): impl. * test/test-dynany.c: portability fix for CHECK_OK. 2001-07-12 Darin Adler * include/orbit/poa/Makefile.am: Install poa-basics.h. 2001-07-12 Mark McLoughlin * src/idl-compiler/orbit-idl-c-common.c, src/orb/orb-core/orbit-interface.idl, (IInterface)change name string to typcode. * src/orb/orb-core/corba-object.c, src/orb/orb-core/orb-core-export.h, src/orb/poa/poa.c: re-jig CORBA_Object_is_a using the IInterface data. 2001-07-12 Michael Meeks * src/orb/orb-core/corba-object.c (ORBit_register_objref): assert profile_list != NULL. * src/orb/poa/poa.c (ORBit_POA_object_to_okey): add precondition. * src/orb/orb-core/iop-profiles.c (IOP_TAG_ORBIT_SPECIFIC_marshal): use the local oki if we have it. (IOP_TAG_INTERNET_IOP_marshal): use obj->oki where appropriate. (IOP_generate_profiles): only set obj->oki if we have a pobj. * NB. obj->oki == NULL for objects passed in remotely, need to bear this in mind when re-marshaling the profiles. 2001-07-12 Mark McLoughlin * include/orbit/orb-core/corba-object.h, src/idl-compiler/orbit-idl-c-common.c, src/idl-compiler/orbit-idl-c-skels.c, src/orb/orb-core/corba-object.c, src/orb/poa/orbit-poa.h, src/orb/poa/poa.c: add IInterface data for CORBA_object. * include/orbit/orbit-types.h, include/orbit/poa/poa-types.h, include/orbit/poa/poa-basics.h: split out some of poa-types.h into new poa-basics.h. Include poa-basics.h from orbit-types.h. * include/orbit/orb-core/corba-object-type.h, include/orbit/poa/poa-types.h, include/orbit/poa/poa.h, src/orb/orb-core/orbit-small.c, src/orb/poa/orbit-poa-export.h: make ORBit_POAObject a pointer to ORBit_POAObject_type instead of a struct. 2001-07-12 Mark McLoughlin * include/orbit/orb-core/orbit-small.h, include/orbit/poa/poa-types.h, src/idl-compiler/orbit-idl-c-backend.h, src/idl-compiler/orbit-idl-c-common.c, src/idl-compiler/orbit-idl-c-demarshal.c, src/idl-compiler/orbit-idl-c-headers.c, src/idl-compiler/orbit-idl-c-marshal.c, src/idl-compiler/orbit-idl-c-skels.c, src/idl-compiler/orbit-idl-c-stubs.c, src/idl-compiler/orbit-idl-c-utils.c, src/idl-compiler/orbit-idl-main.c, src/orb/dynamic/Makefile.am, src/orb/orb-core/orbit-small.c, src/orb/poa/Makefile.am, src/orb/poa/poa.c: put all the 'non-small' code back, at Elliot's behest. Note: The --noidata option remains and the PIDL is still no longer being compiled with --oldstyle. * configure.in: bump up ORBIT_SERIAL. 2001-07-11 Mark McLoughlin * src/idl-compiler/orbit-idl-c-headers.c (ch_type_alloc_and_tc): do the allocbuf thing. * src/orb/dynamic/dynany.c, src/orb/poa/poa.c, test/poa/poatest-exception.h: kill temporary hacks for the above. 2001-07-11 Mark McLoughlin * src/idl-compiler/orbit-idl-c-backend.h, src/idl-compiler/orbit-idl-c-common.c, src/idl-compiler/orbit-idl-c-demarshal.c, src/idl-compiler/orbit-idl-c-headers.c, src/idl-compiler/orbit-idl-c-marshal.c, src/idl-compiler/orbit-idl-c-skels.c, src/idl-compiler/orbit-idl-c-stubs.c, src/idl-compiler/orbit-idl-c-utils.c, src/idl-compiler/orbit-idl-main.c, src/idl-compiler/orbit-idl3-types.h: chop, chop. Remove all non-small code. Kill orbit-idl-c-demarshal.c and orbit-idl-c-marshal.c. Add --noidata option. * include/orbit/orb-core/orbit-small.h, include/orbit/poa/poa-types.h, src/orb/orb-core/orbit-small.c, src/orb/poa/poa.c: remove all non-small code. * src/orb/dynamic/dynany.c, src/orb/poa/poa.c, test/poa/poatest-exception.h: temp hacks to get around fact that orbit-idl is not generating aliased sequence allocbufs. * include/orbit/orb-core/Makefile.am, src/orb/dynamic/Makefile.am, src/orb/include/Makefile.am, src/orb/orb-core/Makefile.am, src/orb/poa/Makefile.am: kill --oldstyle, use --noidata. * test/poa/Makefile.am: depend on orbit-idl. * configure.in: bump up ORBIT_SERIAL. 2001-07-11 Michael Meeks * src/orb/orb-core/corba-object.c (CORBA_Object__freekids): fix brokenness. * src/orb/orb-core/corba-typecode.c (ORBit_TypeCode_free_fn): ditto. 2001-07-11 Michael Meeks * src/orb/poa/poa.c (ORBit_POA_free_fn), (ORBit_POACurrent_free_fn): fix deadlocks * src/orb/poa/clean-poa.c (ORBit_POACurrent_free_fn), (ORBit_POA_free_fn): ditto. * src/orb/orb-core/corba-typecode.c (ORBit_TypeCode_free_fn): kill deadlocks. * src/orb/dynamic/dynany.c (DynamicAny_DynAny_release_fn): use ORBit_free_T to stop deadlock & don't lock on invalidate. (dynany_invalidate): add 'lock' argument. update all references. * src/orb/orb-core/allocators.c (ORBit_free): take the RootObject_lifecycle_lock, and call (ORBit_free_T): split out. (ORBit_freekids_via_TypeCode): split out to (ORBit_freekids_via_TypeCode_T): here & kill deadlock plague. * src/orb/orb-core/corba-object.c (CORBA_Object_release_cb): use the non-locking release on obj->pobj. 2001-07-10 Michael Meeks * configure.in: Bump version to 2.3.91 2001-07-10 Peter Williams * test/poa/Makefile.am ($(POATEST_IDLOUT)): use $< instead of poatest.idl for when srcdir != builddir. 2001-07-10 Mark McLoughlin * include/orbit/poa/poa.h(ORBit_POAInvocation): killed object_id and doUnuse members. * include/orbit/poa/portableserver-poa-type.h (PortableServer_POA): replaced default_pobj member with default_servant; * src/orb/poa/poa.c (ORBit_POA_ServantManager_{un}use_servant): pass a pobj instead of an iframe. (ORBit_handle_request): split in two. Now ORBit_small_handle_request can be used for local calls and original function is a wrapper for remote calls. Also various default_servant fixes. * src/orb/poa/orbit-poa-export.h: introduce ORBit_small_handle_request. * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_stub): call ORBit_small_handle_request. * test/poa/poatest-basic09.c, test/poa/poatest-basic10.c: commit default servant tests. 2001-07-09 Mark McLoughlin * src/orb/orb-core/corba-object.c, src/orb/poa/poa.c: fixed some extreme braindeadness on my part. 2001-07-07 Mark McLoughlin * include/orbit/orb-core/corba-object-type.h, src/orb/orb-core/Makefile.am, src/orb/orb-core/corba-object.c, src/orb/orb-core/orb-core-private.h, src/orb/orb-core/iop-profiles.c, src/orb/orb-core/iop-profiles.h: split off all the profiles stuff on its own. 2001-07-08 Michael Meeks * src/orb/orb-core/orbit-object.c (ORBit_RootObject_release): split out core to: (ORBit_RootObject_release_T): here. * src/orb/orb-core/corba-object.c (CORBA_Object_release_cb): use the non-locking release. * src/orb/poa/poa.c (remove_cb): return FALSE instead of nothing. (ORBit_POAObject_release_cb): use non-locking release. 2001-07-07 Mark McLoughlin * include/orbit/orb-core/corba-object.h, src/orb/orb-core/corba-object.c, src/orb/poa/poa.c: sharing is caring. Make the POA generated references share their profile_lists. 2001-07-07 Mark McLoughlin * src/orb/orb-core/corba-object.c: don't carry around multiple copies of the object key. Only generate it when it the ref is to be exported. * src/orb/poa/orbit-poa-export.h, src/orb/poa/poa.c: rename ORBit_POA_oid_to_okey to ORBit_POA_object_to_okey and export. 2001-07-07 Mark McLoughlin * src/orb/orb-core/corba-object.c, src/orb/orb-core/corba-orb.c: only opening listening sockets when externalising a reference. 2001-07-06 Mark McLoughlin * include/orbit/orb-core/corba-object.h, include/orbit/poa/poa-types.h, src/orb/orb-core/corba-object.c, src/orb/poa/orbit-poa.h, src/orb/poa/poa.c: make an object reference's profile_list only be generated when it is about to be externalised. 2001-07-04 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_stub): add ORBIT_STUB_PostCall/PreCall ref counting checks. 2001-07-05 Mark McLoughlin * include/orbit/orb-core/corba-object-type.h, include/orbit/poa/poa-types.h, src/orb/orb-core/corba-object.c, src/orb/orb-core/orbit-small.c, src/orb/poa/poa.c, src/services/name/orbit-name-server.c: make every reference created by the POA have a POAOjbect associated with it. s/bypass_obj/pobj/. 2001-07-05 Mark McLoughlin * test/poa/poatest-basic04.c, test/poa/poatest-basic05.c, test/poa/poatest-basic06.c, test/poa/poatest-basic07.c, test/poa/poatest-basic08.c: use CORBA_PolicyList_allocbuf instead of g_new0. 2001-07-04 Mark McLoughlin * configure.in: updated glib check. 2001-07-04 Mark McLoughlin * src/orb/orb-core/orbit-interface.idl, src/idl-compiler/orbit-idl-c-common.c, src/idl-compiler/orbit-idl-c-headers.c: added inheritance data to ORBit::IInterface. 2001-07-03 Michael Meeks * src/orb/orbit-init.c (ORBit_init_internals): seed the random number generator once, properly. * src/orb/GIOP/giop-connection.c s/shutdown/dispose/ * include/orbit/util/basic_types.h: include glib/gunicode.h Mark needs to update his glib :-) 2001-06-29 Michael Meeks * src/orb/orb-core/corba-object.c (IOP_TAG_INTERNET_IOP_demarshal): NULL components if version is !> GIOP_1_0. * src/idl-compiler/orbit-idl-c-utils.c (orbit_cbe_get_typespec_str): return CORBA_wstring not CORBA_wchar *. * include/orbit/util/basic_types.h: add CORBA_wstring. 2001-06-29 Mark McLoughlin * include/orbit/util/basic_types.h: include gunicode.h, not glib/gunicode.h. 2001-06-29 Mark McLoughlin * src/orb/poa/poa.c: fixed a couple of porblems with yesterday's commit. 2001-06-28 Mark McLoughlin * include/orbit/poa/poa-types.h, src/orb/orbit-init.c, src/orb/orb-core/corba-object.c, src/orb/orb-core/corba-orb.c, src/orb/poa/orbit-poa.h, src/orb/poa/poa.c: sorted out the POA and POAObject ref counting mess - I hope ;) * src/orb/poa/poa-servants.c: remove assertions - not valid in MULT_ID case. * test/poa/poatest-basic-shell.c, test/poa/poatest-basic04.c, test/poa/poatest-basic05.c, test/poa/poatest-basic06.c, test/poa/poatest-basic07.c, test/poa/poatest-basic08.c: release more refs, and invoke orb->destroy and orb->shutdown. 2001-06-28 Michael Meeks * include/orbit/util/basic_types.h: include glib/gunicode.h, we require HEAD glib. 2001-06-26 Mark McLoughlin * src/orb/orb-core/corba-context.c, src/orb/poa/poa.c: kill deprecated g_hash_table_(freeze|thaw) functions. 2001-06-26 Mark McLoughlin * include/orbit/poa/poa-types.h, src/idl-compiler/orbit-idl-c-skels.c : kill POAObject members use_count, death_callback and user_data. Relics from an old hack from ORBit0 thats not used anymore. * src/orb/poa/poa.c: add a few TODO items. 2001-06-26 Michael Meeks * src/idl-compiler/orbit-idl-c-skels.c (cbe_skel_interface_print_relayer): chop specious overall idx calculation. (cbe_skel_interface_print_relayers): calc. m_data idx per interface so inheritance works, sigh. * test/everything/everything.idl: inherit StructServer from BasicServer to regression test method layout under inheritance. * test/everything/structServer.c (StructServer_vepv): upd. 2001-06-26 Michael Meeks * src/orb/GIOP/giop-connection.c (giop_connection_handle_input): unuse the incoming message off the cnx list as we handle it. * src/orb/orb-core/corba-orb.c (CORBA_ORB_run): just do a g_main_loop_run 2001-06-25 Mark McLoughlin * test/poa/.cvsignore: added. 2001-06-25 Mark McLoughlin * test/poa/*: import. * configure.in, test/Makefile.am: add poa. 2001-06-25 Mark McLoughlin * include/orbit/poa/poa-types.h, src/idl-compiler/orbit-idl-c-skels.c, src/orb/poa/poa-servants.c, src/orb/poa/poa.c : make MULT_ID work by having a list of POAObjects in the servant's '_private' member. 2001-06-25 Mark McLoughlin * include/orbit/poa/poa.h: add string_to_ObjectId etc. * src/orb/poa/poa.c: make root POA have non default IMPLICIT_ACTIVATION policy. 2001-06-25 Michael Meeks * src/orb/dynamic/dynany.c (CORBA_sequence_DynamicAny_NameValuePair_allocbuf), (CORBA_sequence_DynamicAny_NameValuePair__alloc): impl. 2001-06-25 Martin Baulig * src/orb/dynamic/dynany.c (DynamicAny_DynStruct_set_members), (DynamicAny_DynStruct_get_members): copy from ORBit-martin-forked. 2001-06-25 Michael Meeks * test/echo-server.c (main): remove hack. * src/orb/orb-core/corba-orb.c (idle_fn), (ORBit_ORB_idle_init): kill ugly hack. 2001-06-25 Martin Baulig * src/orb/orb-core/corba-object.c: add include. * src/orb/GIOP/giop-connection.c (giop_connection_handle_input): handle request as it finished coming in. 2001-06-23 Martin Baulig * configure.in: Don't output the .pc files twice. * src/idl-compiler/Makefile.am: s/libIDL.la/libIDL-2.la/g. * test/inhibit/Makefile.am: Removed $(IDLOUT), test_any_built and $(TEST_ANY_IDLOUT) so this actually works. 2001-06-19 Michael Meeks * src/idl-compiler/orbit-idl-c-stubs.c (cs_small_output_stub): output pre / post call code even for small stubs / skels. * include/orbit/poa/poa-types.h: remove redundant type defines. 2001-06-19 Michael Meeks * src/orb/util/genrand.c (genrand_unix): if ORBIT_PURIFY don't use bits of uninitialized stack. 2001-06-18 Erik Walthinsen * ORBit-2.0.pc.in, ORBit-CosNaming-2.0.pc.in: brought in from ORBit-martin-forked. * .cvsignore, Makefile.am, configure.in: added necessary lines for above .pc files to be created/installed. 2001-06-19 Mark McLoughlin * src/orb/include/Makefile.am: use --oldstyle * src/orb/dynamic/Makefile.am: fix build. * src/orb/poa/Makefile.am: fix build. * test/Makefile.am: Fix build, kill -lefence. 2001-05-30 Michael Meeks * src/orb/orb-core/Makefile.am: simplify makefile ugliness. * test/Makefile.am (echo_built): fix recursive build issue. 2001-05-30 Michael Meeks * src/orb/GIOP/giop-connection.c (giop_connection_initiate): only ref the connection if we didn't just destroy it. 2001-05-30 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_stub): don't do an alloca (0), just use &obj - this points to the stack in a safer, quicker and cleaner way. 2001-05-30 Michael Meeks * src/orb/dynamic/dynany.c (dynany_sequence_realloc_to): only copy old_len elements from the old buffer. 2001-05-30 Michael Meeks * src/orb/dynamic/dynany.c: Port from ORBit-stable. * src/orb/orb-core/allocators.c (ORBit_free): use ORBit_free internaly not CORBA_free to clean stack traces. * src/orb/orb-core/corba-any.c (CORBA_any__freekids): ditto & accelerate. * src/orb/orb-core/corba-orb.c (CORBA_ORB_set_initial_reference): fix g_hash_table manipulation leak / bug. 2001-05-29 Michael Meeks * src/orb/dynamic/Makefile.am: install dynamic-defs.h in the right place ... * src/orb/orb-core/corba-typecode.c: add long_double TC def. * src/idl-compiler/orbit-idl-c-headers.c (ch_type_alloc_and_tc): fixup emmission of __allocbuf as well as __alloc for sequences. * include/orbit/orb-core/corba-typecode.h: declare. TC_CORBA_long_double_struct and TC_CORBA_wstring_struct. * src/orb/orb-core/corba-any.c (CORBA_any__copy): constipate. * include/orbit/dynamic/dynamic.h: upd. * include/orbit/orbit.h: add dynamic.h * src/orb/dynamic/Makefile.am: add dynany.c 2001-05-25 Michael Meeks * src/orb/poa/Makefile.am (runidl_poa): install poa-defs into the correct directory, fixup the include brokenness. (POA_IDLOUT): add poa-defs.h - doh. * src/idl-compiler/orbit-idl-c-headers.c (ch_output_interface): output TC_ #defines even for PIDL types. * src/idl-compiler/orbit-idl-c-common.c (build_marshal_funcs): only output marshalers if we need to. (cc_output_tc_walker): Output typecode information for PIDL types - why not, might help automated language bindings to the PIDL. 2001-05-25 Michael Meeks * src/orb/orb-core/orbit-small.c (dump): print in-buffer offsets as well as the data. * src/orb/orb-core/corba-typecode.c (tc_dec_tk_except): decode sub_parts sub-types not length. (tc_enc_tk_except): ditto for encode. (tc_enc): use the buffer length in the message header instead of the current_idx, since we now marshal straight into a single buffer without the encaps cruft. (tc_dec): fix the recursive arithmetic, make it remember to duplicate the recursive typecode references. * src/orb/orb-core/corba-any.c (ORBit_demarshal_value): duplicate the correct pointer. * src/orb/orb-core/orbit-small.c (ORBit_small_alloc): re-write to memset 0 the returned memory. * src/orb/orb-core/corba-any.c (CORBA_any__freekids): release the typecode pointer as well. * src/idl-compiler/orbit-idl-c-common.c (cc_alloc_prep): pass rinfo around. 2001-05-25 Michael Meeks * src/orb/orb-core/corba-context.c (CORBA_Context_set_one_value): remove the hash table value, so we don't screw up the key allocation. 2001-05-24 Michael Meeks * src/orb/GIOP/giop-connection.c (giop_connection_initiate): reference the connection before returning it, if it wasn't looked up in the list. (giop_connection_remove_by_orb): fix serious brokenness. (giop_connection_close): publicise. (giop_connection_shutdown): remove the connection from the connection list. (giop_connection_unref): remove last unref sillies. * src/orb/orb-core/corba-object.c (g_CORBA_Object_equal): uglify, we need to be able to scan for MULTIPLE_COMPONENTS profiles in order to do the GIOP profile comparison (get_mci): impl helper. (IOP_Profile_equal): similarly uglify. (CORBA_Object_release_cb): close the connection and unref it. * src/orb/poa/poa.c (ORBit_POA_oid_to_ref): set the profile_type on the iiop profile. * src/orb/orb-core/corba-object.c (ORBit_objref_new): actualy insert new object references into the objrefs hash. (IOP_Profile_dump): impl. 2001-05-24 Michael Meeks * src/orb/orb-core/corba-object.c (CORBA_Object_release_cb): only unref the connection if it is valid. (IOP_Profile_equal): re-order compares to accelerate & warn on unknown profile. * src/orb/GIOP/giop-connection.c (giop_connection_list_add): re-privatize. * src/orb/GIOP/giop-server.c (giop_server_handle_new_connection): remove - was broken. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_buffer_data_read): kill warning. * src/orb/GIOP/giop-connection.c (giop_connection_handle_input): if we return FALSE set the source tag to 0, since on return it is removed. (giop_connection_real_state_changed): add some source management assertions. (giop_connection_destroy): rename to (giop_connection_shutdown): this. 2001-05-20 Michael Meeks * src/orb/orb-core/corba-object.c (CORBA_Object_release_cb): remove bypass_obj unref, hmm. 2001-05-20 Michael Meeks * src/orb/orb-core/corba-orb.c (ORBit_ORB_idle_init, idle_fn): FIXME these suck. * src/orb/GIOP/giop-recv-buffer.c (giop_recv_buffer_use_noblock): impl. 2001-05-19 Michael Meeks * src/idl-compiler/orbit-idl-c-headers.c (orbit_idl_output_c_headers): re-order. 2001-05-19 Michael Meeks * src/orb/poa/poa.c (ORBit_POA_free_fn): free the poa's name and key buffer. * src/orb/orb-core/corba-orb.c (CORBA_ORB_release_fn): free the initial refs hash. 2001-05-18 Martin Baulig * ORBit-2.0.pc.in (Cflags): Added `-DORBIT2=1'. 2001-05-18 Martin Baulig * ORBit-2.0.pc.in: Use `ORBit-2.0' as package name. * ORBit-CosNaming-2.0.pc.in: Use `ORBit-CosNaming-2.0' as name. * Makefile.am: Install the .pc files. * src/orb/orb-core/Makefile.am: Added explicit dependency `$(top_builddir)/include/orbit/orb-core/orbit-interface.h: runidl_iface'. 2001-05-19 Michael Meeks * src/orb/orb-core/corba-any.c (ORBit_demarshal_value): set _release = TRUE for sequences. 2001-05-18 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_poa): fix more stupid leaks. 2001-05-18 Michael Meeks * src/orb/orb-core/corba-object.c (IOP_TAG_ORBIT_SPECIFIC_demarshal): allocate the correct buffer size for the sock_path. (IOP_Profile_equal): fix bug in GIOP compare, and compare on host for IOP, impl for ORBIT_SPECIFIC and re-order to accelerate. (IOP_ObjectKey_equal): split out. (IOP_TAG_ORBIT_SPECIFIC_free): don't double free the profile itself. * src/orb/poa/poa.c (ORBit_POA_oid_to_ref): put the osi profile on the profile list, and do this later, to ensure that the ORBit specific profile is later than the GIOP profile. * test/everything/server.c (create_object): free the object id... * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_poa): fix misc. leaks. * src/orb/orb-core/corba-context.c (CORBA_Context_get_values): remove redundant call to create_list. 2001-05-18 Michael Meeks * src/orb/GIOP/giop-server.c (giop_server_handle_new_connection): impl. (giop_server_class_init): hook it up. * src/orb/orb-core/corba-orb.c (CORBA_ORB_run): unuse reliably here. * src/orb/poa/poa.c (ORBit_handle_request): remove the unuse. * src/orb/orb-core/corba-context.c (CORBA_Context_new): fix leak. 2001-05-18 Michael Meeks * src/orb/poa/poa.c (PortableServer_POA_find_POA): bugfix. (ORBit_POA_is_inuse): * src/orb/orb-core/corba-orb.c (CORBA_ORB_init): duplicate the ORB before returning it. * src/orb/orb-core/corba-object.c (ORBit_delete_profiles): upd. (ORBit_handle_location_forward, ORBit_demarshal_IOR): upd. (CORBA_Object_release_cb): finish. (ORBit_objref_find): fix leak. 2001-05-18 Michael Meeks * src/orb/orb-core/corba-typecode.c (tc_dec): remove broken ref set to 1. 2001-05-17 Michael Meeks * src/orb/orb-core/corba-object.c (ORBit_profile_free): actualy free the sub-profiles. (IOP_TAG_INTERNET_IOP_free, IOP_TAG_GENERIC_IOP_free), (IOP_TAG_MULTIPLE_COMPONENTS_free, IOP_TAG_ORBIT_SPECIFIC_free): impl. * src/orb/GIOP/giop-recv-buffer.c (giop_IOP_ServiceContextList_free): impl. (giop_recv_buffer_unuse): use it. * src/orb/orb-core/corba-typecode.c (tc_dec): unuse the encapsulated buffer after creation. 2001-05-17 Michael Meeks * src/orb/orb-core/corba-context.c (ORBit_Context_demarshal): move buf->cur over the length to point at the value. * src/orb/orb-core/corba-orb.c (CORBA_ORB_create_list): impl. * src/orb/orb-core/corba-typecode.c (tc_dec_tk_sequence), (tc_dec_tk_alias, tc_dec_tk_array): set sub_parts to 1. (tc_dec): set ref count to 1. * src/orb/orb-core/corba-any.c (ORBit_marshal_value), (ORBit_demarshal_value): Make TypeCode indirection consistant with CORBA_Object indirection [ and in fact all other types ] - they are both Pseudo-objects. * src/orb/orb-core/corba-typecode.c (tc_dec): hack. * src/orb/orb-core/corba-env.c (ORBit_send_user_exception): fixup. 2001-05-16 Michael Meeks * src/orb/orb-core/orbit-small.c (ORBit_small_invoke_skel): impl. 2001-05-16 Michael Meeks * src/orb/orb-core/corba-object.c (CORBA_Object_non_existent): reverse polarity. * src/orb/orb-core/orbit-small.c (ORBit_small_allocbuf): fix silly allocbuf bug. * test/everything/client.c: #include yet another .c file - yuck. * test/everything/server.c: kugly #ifdef hacks. 2001-05-14 Michael Meeks * src/orb/orb-core/corba-object.c (CORBA_Object_non_existent): fix. * configure.in: add pkgconfig bits. 2001-05-12 Michael Meeks * src/orb/orb-core/orbit-small.c: impl. context code. 2001-05-11 Michael Meeks * src/orb/orb-core/corba-any.c (ORBit_demarshal_value): don't try to de-marshal a _maximum that isn't there. 2001-05-10 Michael Meeks * src/idl-compiler/orbit-idl-c-utils.c (orbit_cbe_write_param_typespec_str): split from (orbit_cbe_write_param_typespec_raw): here. (cs_small_unflatten_ref, cbe_small_unflatten_args): impl. * include/orbit/poa/poa-types.h: add ORBit_small_impl_finder, add ORBitSmallSkeleton. 2001-05-09 Michael Meeks * test/everything/Makefile.am: remove ugly hack. 2001-05-08 Michael Meeks * src/idl-compiler/orbit-idl-c-skels.c (ck_output_small_skel): impl. * src/idl-compiler/orbit-idl-c-utils.c (cs_small_flatten_ref, cbe_small_output_args): move here from orbit-idl-c-stubs.c * src/idl-compiler/orbit-idl-c-skels.c (cbe_skel_interface_print_relayers), (cbe_skel_interface_print_relayer): make small variants like to change sig to have const char *method, but needs poa work... perhaps expand the PortableServer_ClassInfo struct with a more sensible option ? / put it on the object. * src/idl-compiler/orbit-idl-c-stubs.c (orbit_cbe_param_printptrs): unused - kill. 2001-05-05 Michael Meeks * src/idl-compiler/orbit-idl-c-headers.c (orbit_idl_output_c_headers): upd. (ch_output_itypes, ch_output_itype): impl. * src/idl-compiler/orbit-idl-c-stubs.c (orbit_idl_output_c_stubs): upd. (cs_small_output_stubs, cs_small_flatten_ref), (cs_small_output_args, cs_small_output_small_stub): impl. * src/orb/orb-core/corba-any.c (ORBit_demarshal_value), (ORBit_marshal_value): publicise. * src/idl-compiler/orbit-idl-c-common.c (cc_small_output_itypes, cc_small_output_itype): add. 2001-05-04 Michael Meeks * include/orbit/orb-core/allocators.h (ORBit_freekids_via_TypeCode): publicize. * src/idl-compiler/orbit-idl-c-common.c: don't dump any allocs if we are in small mode. * src/idl-compiler/orbit-idl-c-utils.c (orbit_cbe_get_typecode_name): add. * include/orbit/orb-core/orb-core.h: add orbit-small.h * src/idl-compiler/orbit-idl-c-headers.c (ch_output_type_enum): (ch_output_interface, ch_output_type_dcl, ch_output_type_struct), (ch_output_type_union, ch_prep_fixed, ch_prep_sequence): pass rinfo around so we can get at the 'small' flag. (ch_prep): upd. * src/idl-compiler/orbit-idl-main.c (main): add arg '--small' 2001-05-04 Michael Meeks * test/everything/*: import & port. * src/orb/orb-core/corba-any.c (ORBit_any_equivalent), copy straight from ORBit stable - no mods. (ORBit_value_equivalent): ditto + add scratch to union_tag handling. (ORBit_copy_value_core): fix bug in CORBA_tk_union handling * src/orb/orb-core/corba-typecode.c (CORBA_TypeCode_equal): copy straight from ORBit stable - no mods. * test/Makefile.am (SUBDIRS): add 'everything' * src/idl-compiler/orbit-idl-c-common.c (orbit_idl_output_c_common): setup ORBit_zero_int as a static local. * include/orbit/orb-core/allocators.h (CORBA_sequence_get_release): define CORBA_sequence_get_release * src/idl-compiler/orbit-idl-c-skels.c: add G_GNUC_UNUSED attribute to some potentialy unused bits. * src/idl-compiler/orbit-idl-c-stubs.c add G_GNUC_UNUSED attribute to some potentialy unused bits. (cs_output_stub): always generate _ORBIT_demarshal_error. * src/orb/orb-core/corba-any.c (CORBA_any_get_release): impl. * test/everything/Makefile.am: update. ORBit2-2.14.19/NEWS0000644000175000001440000004360611450333706010360 00000000000000ORBit2-2.14.19 - bug fixes + fix free on error of uninitialized IOR components (Michael Meeks) ORBit2-2.14.18 - bug fixes + add a g_warning (Christian Persch) + fix FMR in forwarding code (Thoralf Lund) + fix some problems with the preprocessor on Solaris (Thomas Clausner) + add a CORBA_wstring_dup function (Jules Colding) ORBit2-2.14.17 - bug fixes + fix glib single includes (Cosimo Cecchi) + various fixes for cross-compiling (Fridrich Strba) + do fewer DNS lookups in linc (Jules Colding) + fix compiler warnings (Kjartan) + threading fixes (Tor Lillqvist) + win32 portability fixes (Tor Lillqvist) ORBit2-2.14.16 - bug fixes + fix make check on Mac OS/X + The ORBNetID option was not consistent in relation to ORBIIOPIPName. This fix ensures that ORBIIOPIPName always takes precedence. (Jules Colding) ORBit2-2.14.15 - bug fixes + fix some leaks (Jules Colding) + fix for Mike's recent fixes (Mike Gorse) + fix potential make loop (Diego Pettenò) ORBit2-2.14.14 - portability + Fix build on win32 (Tor) + Mac OS/X fixes (Jules Colding) - bug fixes + use ORBIT_SOCKETDIR to propagate the socket dir to children wherever possible: has two benefits: speeds up ORBit2 launch, and allows root owned apps to talk to the user's AT. (Mike Gorse) + other linc2 fixes (Michael, Mike) + Cleanups (JP, Jules Colding, dmacks at netspace org) ORBit2-2.14.13 - porting + Fixes for building with MSVC (Tor Lillqvist and Marcelo Vanzin) - bug fixes + Robustness fixes (Michael) + Fixes for the poa test client (Jules) + Build fixes with single glib includes (Christian) + Locking fixes in linc (Michael, Tor) + Fixes for handling of local requests (Jeff, Li) ORBit2-2.14.12 - bug fixes + Fix the build with glib 2.15 ORBit2-2.14.11 - bug fixes + Various cleanups and fixes for win32 (Tor) + Fix off by one in all method name lengths. Fixes interoperability with other ORBs (J. Specht) ORBit2-2.14.10 - bug fixes + It is now possible to use the ORBNetID command line option to specify a specific NIC to be used by ORBit2 when creating externally visible objects. This is supported by adding LINK_NET_ID_IS_CUSTOM to the LinkNetIdType enum type. Previously the first NIC which wasn't "127.0.0.1" was unconditionally used. (Jules Colding) + More GIOP fixing (Jules Colding) + Build and debugging fixes (Jules Colding) + Fix a crash (Tor Lillqvist) ORBit2-2.14.9 * bug fixes + Portability fix (Tor Lillqvist) + Various fixes in GIOP and linc (Jules Colding) ORBit2-2.14.8 * bug fixes + Fix GIOP timeouts and add unit tests (Jules Colding) + Code cleanups (Kjartan) + Fix pointer arithmetics (Roland Illig) + Fix crash with uninitialized exception (Vincent Untz) + ORBLocalOnly mode in Solaris fixes (Brian Cameron) ORBit2-2.14.7 * bug fixes + Split up some asserts to ease debugging + Dist MAINTAINERS ORBit2-2.14.6 * bug fixes + Add uninstalled .pc files (Brian Cameron) + Improve debugging (Kees Cook) + Build fix (dmacks at netspace org) ORBit2-2.14.5 * bug fixes + Remove -std=gnu99 from the compiler flags. (Kjartan) + Constification fixes (Jody) + Remove #ifdef ORBIT2_EXTENSIONS guard that caused compiler warnings in gnome-session. (Rodrigo) + Fix two files with same name on non-case-sensitive filesystem (Tor) ORBit2-2.14.4 * bug fixes + Cleanups and compiler warning fixes (Kjartan) + Win32 portability fixes (Tor) + Constification fixes (Georg Schwartz) + Portability and build fixes (dmacks at netspace org) + Build fixes, add g_cond_timed_wait and use it instead of g_cond_wait to avoid blocking indefinitely in some situations (Jules) + Build fixes (Christian) ORBit2-2.14.3 * bug fixes + Fix DHCP hostname changes breaking login. (Brian) + Modify ORBLocalOnly test for TCP/IP connections so that differences in the port number does not cause the test to fail. Fixes a11y breakage on Solaris (Brian) * docs + Document ORBit_get_giop_recv_limit (Jules) ORBit2-2.14.2 * bug fixes + Don't hang when the hostname changes (Brian) + Fix problems with a11y on Solaris (Brian) + Doc improvements (Jules Colding) + Build fixes (Jules, Kjartan) ORBit2-2.14.1 * bug fixes + Cleanups, leak fixes and fixes for reports from the Coverity checker (Kjartan, Pascal) + New function ORBit_get_giop_recv_limit(). Clients must be able to retrieve the maximum allowed GIOP receive limit. (Jules Colding) + Bug 323201: marshalling of void retval typecode generated by "imodule service" crashes. (Gustavo Carneiro) + emit per interface enum for index of xyz_imethods[]. (Kuang-Chun Cheng) + Port to GOption (Christian Persch) + Win32 fixes (Tor Lillqvist) + Emit exception for bad URL in string_to_object (Frank Rehberger) + Fix C++ compatibility in generated code (Vladimir Panov) ORBit2-2.14.0 * bug fixes + Fix build on Cygwin (Tor) + Fix giop test compilation/crash (Tor) ORBit2-2.13.3 * bug fixes + Fix crash on null adaptor (Michael) + Fix compiler warnings (Kjartan, Jens Granseuer) + Improve configure stage on Win32 (Tor) ORBit2-2.13.2 * bug fixes + realloc should update length/tracking information (Martin Blom) + Fix memory management and crashew when shutting down the ORB. (Anders Carlsson) + Build/correctness fixes (Tor, Jules) ORBit2-2.13.1 * features + More work on porting to Win32 (Tor) + Implement forward binding (Fernando Herrera) + Implement new ORB_init option ORBNetID (Jules Colding) * bug fixes + Build fix (James Henstridge) + Memory management fixes (Anders Carlsson) + Reset connection for forwarded objects (Anders) + Don't use -export-dynamic (Mark) + if we have failed on the unix socket, have IPv4 or IPv6 connections enabled and are on localhost, then don't connect on the corresponding port from the profiles (Arvind Samtur) + Fix a bunch of compiler warnings and make some code static (Kjartan) + Add threading libs to ORBIT_NAME (Michael) + Check for netdb.h (Sandie Vanderme) + Check for sys/sockio.h (James Andrewartha) * Other + Improve docs for users of ORBit2 (Jules Colding) ORBit2-2.12.4 * bug fixes + add ORBIT2_MAYBE_CONST (Tor, Mark) ORBit2-2.12.3 * bug fixes + reduce stack size for I/O thread (Mark) + work with pkg-config >= 0.16 (James H) + check for netdb.h (Sandie Vanderme) + release lock in ORB destroy (Aivars Kalvans) + error condition fix in demarshaling (Michael) + check for sys/sockio.h (James Andrewartha) + AC_PREREQ bump (Gustavo Gama) + add threading libs to name service (Diego Petteno) ORBit2-2.12.2 * bug fixes + Fix infinite loop when using ORBInitRef (Anders Carlsson) + Fix memory leak in initial references (Anders Carlsson) + Use correct host name for unix sockets (Arvind Samptur) ORBit2-2.12.1 * bug fixes + Fix mem leak on exception overwrite (Michael) + Fix demarshalling CORBA_any containing null or void values (Michael) + IDL generation (esp. skelimpl) fixes (Jules Colding) + Ongoing Win32 port work (Tor Lillqvist) + Fix linking on Darwin (Hans Petter Jansson) ORBit2-2.9.6 * bug fixes + PPC union walking bug (Michael, Jeroen Z) ORBit2-2.9.5 * bug fixes + don't crash with NULL env (Mark) ORBit2-2.9.4 * bug fixes + enviroment pollution (Michael) + AIX portability bits (The Written Word) ORBit2-2.9.3 * bug fixes + configure logic bug (Morten Welinder) + no-mainloop threading issue (Michael) + custom policy oneway fix (Michael, JP) + policy lookup fix (Alex Larsson) ORBit2-2.9.2 * bug fixes + threaded client deadlock (Michael) + skelimpl leak fix (Frank) + forward request double free (Michael) + thread queue processing (Frank) ORBit2-2.9.1 * bug fixes + thread handling / shutdown bugs (Justin Schoeman) + linc I/O revents race fix (Padraig O'Briain) + name service ref leak (Justin) + GIOP HUP error cleanup (Michael) + ORB shutdown from any thread (Michael) + build fixes / cleans (Justin, Michael) * featurelets + (limited) re-enterancy client policy (Michael) + re-factored invocation stack (Frank Rehberger) + deactivation / return test (Michael) ORBit2-2.9.0 * bug fixes + speed up child POA destruction (Michael) * featurelets + allow objects to be bound to specific threads (Alex Larsson) ORBit2-2.8.0 * bug fixes + sequence_concat helper (Frank) + corbaloc fixes (Frank) ORBit2-2.7.6 * bug fixes + try_connection deadlock (Michael, Padraig O'Briain) + shutdown_orb fd leak (Michael, Morten Welinder) + don't export libIDL strangely (Michael, Morten) * featurelets + define file specific foo in idlcompile (James H) ORBit2-2.7.5 * bug fixes + cmdline option parsing (Michael) + idl-compiler stderr fixes (Dan Winship) + object key hashing fix (Frank Rehberger) + ~always enable thread-safety (Michael) + parallel build fixes (Michael) + _is_a fixes for in-proc + transient poa (Michael) * featurelets + RootPOA/POACurrent set guards (Frank) + corbaloc support (Frank) + more regression tests (Michael, Frank) ORBit2-2.7.3 * bug fixes + vicious union discriminator issue (Brian Cameron) + non_existent / try_connection fix (Michael) + 'broken' emission at idle (Michael, George Lebl) + DynAnyFactory registration (Michael) + no longer explicitely "entering a wold of pain" + ORBit_sequence fixes (Frank Rehberger) + linc source fix (Padraig O'Briain) + gthread linkage fix (Michael) + struct/union leakage on exceptions (Frank) * featurelets + improved regression tests (Michael, Frank, Bowie Owens) + lots of documentation improvements (Gustavo Carneiro) + -ORBInitRef, -ORBNamingIOR (Frank) ORBit2-2.7.2 * bug fixes + fixed docs build (Gustavo Varneiro) + thread pool fix (Alex) + build fixes (Waschk, oGalaxy, Michael) * features (Michael) + vastly improved thread safety (& Alex) + improved regression tests + much improved ABI + implemented POA thread policies + client side re-enterancy guard policies + internalized linc as 'linc2/link' + in-proc cross-thread invocation + poa copying API ORBit2-2.7.1 * bug fixes + tail align fix (Herbert Valerio Riedel) + request ID fix (Herbert) + thread hint fix (Gustavo Carneiro) + build fixes (Richard Kinder) + packed type marshal fix (Michael Haubenwallner) + purifing mode fixes (Michael) + use g_get_tmp_dir (Michael) * features + much improved thread safey (Michael) + improved tests (Michael) + locate request impl. (Herbert) + GIOP cleans (Herbert) + configurable init msg limit (Michael) + cygwin support (Masahiro Sakai) + code cleans (Richard Kinder) ORBit2-2.5.1 * bug fixes + relocated make check (Michael) + memory corruption in imodule service (Michael) + wierd autoconf missing -I (James Henstridge) + always set ev on exceptions (Michael) + enum typedef problem (Mark) + autoconf / build fixage (Thomas Vander Stichele) + name service init fix (Marion Schuenemann) * featurelets (Michael) + non-platform specific generated code + add threaded test client ORBit2-2.5.0 * bug fixes + HP/UX / ANSI fixes (Albert Chin) + imodule fixage (James Henstridge) + nested unions, structs, exceptions + fall-through case unions subnames + type mis-inclusion + request handler segv (Mark) + epv typecasts (Gergo) + improve generic marshaller (Michael) + fix TC_void's kind (Michael) + fix linc EOF locking interaction silly (Michael) + kill name server cruft (Mark) + fix linking for -pthread (Mark) + IDL compiler backend fix (Murray Cumming) + internal header / build fixes (Gergo Erdi) * features + IDL compiler language backend API (Mark, Gergo) NB. see module 'orbitcpp' for C++ bindings [!] + CORBA_Typecode API (Gergo) + IDL -> IInterface converter (Mark) + improved imodule handling (Mark) + more regression tests (Michael, James) + de-bloated IDL compiler -6k LOBC (Mark) ORBit2-2.4.3 * bug fixes + de-marshal sequences efficiently (Michael) + autotools versioning (Havoc Pennington) ORBit2-2.4.2 * bug fixes + '_' prefixes on Object builtins (Darren Kenny) + idl-compiler fixes for AIX (Laurent Vivier) + more regression tests (Michael) ORBit2-2.4.1 * bug fixes + parallel build fixage (Martin Pool) + lonely cnx crasher (Michael) + return sys ex on no method (Michael) + orbit-idl 'ns' fix (Murray Cumming, Felix Breuer) + cnx / buffer lifecycle fixes (Michael) + cmd line parsing regression (Gustavo Giráldez) + disable broken http: IOR code by default (Michael) + check send buffer alignment (Alex Larsson, Michael) + don't install various tests (Brian Cameron) + build fixage (Jacob Berkman, Alex, Bill Haneman) + debugging flag pokage fix (Mark McLouglin) + marshalling sequence shrinkage (Mark) + connection logic bug (Michael) + don't spew debug on destroy (Michael) + copy alias typecodes (Mark) * featurelets (Michael) + GIOP fragment handling + Security Audit + 'LocalOnly' mode + new ORBIT_DEBUG=errors spew + debug build debug hooks + more graceful OOM handling + blank uninitialized outgoing data + random keys re-hashed / accelerated + skeptical sequence de-marshling + configure time dofus detection + beefed up regression tests + various spoofing + randomized valid data + broken fragments ORBit2-2.4.0 * bug fixes + orbit-idl-2 knows its name (Michael) * featurelets + bin-compat fiddling (Michael) + accelerated object hashing (Michael) + orbhttp clean (Richard Kinder) + allow fast call disabling (Michael) + shrink stubs yet further (Michael) ORBit2-2.3.110 * leak fixes (Michael) + async code + connection dispose + GIOP 1.0 service contexts * trace cleanup (Sean Atkinson) + us timestamp printing + ellipsize long strings ORBit2-2.3.109 * Bug fixes + accept NULL async callbacks (Michael) + CosNaming mess fixups (Michael) + Java interop fix (Mark) + IDL compiler more type friendly (Gergo) ORBit2-2.3.108 * Bug fixes + fixed array marshaling (Gergo Erdi, Michael) + configure check pruning (Michael) + shutdown ORB atexit to avoid UDS leaks (Michael) + SSL build fixes (Michael, Colin Campbell) + C++ compiler cast bits (Gergo) + linkage fixes (Mark) + IDL compiler initialization fixes (Mark) * Featurelets + IDL compiler header guards (Murray Cumming) + more regression tests (Michael) ORBit2-2.3.107 * Marshal and de-marshal code sets component correctly (Mark) * TypeCode portability fix (Laca) * spec file re-write (Greg Leblanc) * Check recv buffer is correctly aligned (Dou Wen) ORBit2-2.3.106 * Support enum declaration within a union decl (Mark) * G_BEGIN_DECLise the headers (Sam Couter) * Make the macro's vaargs usage portable (Yanko Kaneti) * Fix several silly typos (Mark, Michael) * Forte compiler workaround (Mark) * autogen fixes (Jacob) ORBit2-2.3.105 * Changes + object debugging (Michael) + expand in-proc trace debugging (Michael) + genuid cleanups (Michael, Mark) + minor typecode idl comiler cleanup (Mark) * Bugs + Makefile.shared disting problem (Michael) + context removing bug (Michael) + various Any comparing bugs (Michael, Mark) ORBit2-2.3.104 * runtime GIOP debugging (Mark) * union, any and floats regression tests (Mark) * minor optimisations/rationalisations (Mark) * orb-core code cleanups (Mark) * removing deprecated glib functions (Shivram U) ORBit2-2.3.103 * Changes + big POA cleanup (Mark) + unique id generator re-write (Mark, Michael) + runtime debugging (Jacob Berkman, Mark) + idl compiler checks oneway's validity (Mark) + union marshalling cleanup (Mark) + allow multiple ORB:init calls (Michael) * Bugs + fix profile leaks (Michael) + fix screwy idl compiler output (Xiong Jiang) + bomb out if alingment checks fail (Mark) ORBit2-2.3.102 * Changes + re-enterancy various (Michael) + moved IDL install (Mark) + performance regression test (Michael, Mark) + fixed regression tests (Michael) ORBit2-2.3.101 * Features + configurable non-blocking IO with the new linc (Michael) + performance regression test (Michael, Mark, Laszlo Peter) + Name/Sock options for init connection (Roland Juelich) * IDL compiler + generate correct unsigned defines (Michael) + handle NULL obj / impl cleanly (Mark) * Misc. + more regression tests (Mark) + autoconf updates (Sam Couter) + IOP profile fixage (Roland Juelich, Marl) + spec fixage (Ross Golder) ORBit2-2.3.100 * Bugs + more regression tests (Michael) + IDL compiler fixage (Laszlo Peter, Michael) + FreeBSD build fixage (Theo Van Klaveren) + hashing issues (Michael) + union alignment fixage (Mark, Laszlo) + re-work debug code (Mark) + typecode marshaling byteswaps (Mark) + any de-marshaling byteswaps (Mark) + build fixage (Jacob) ORBit2-2.3.99 * Features * Speedups (Michael) + string marshaling + input handling + allocation + object duplicates * Misc (Michael, +) + extended purify cleanliness + loads more regression tests + add flags and spare fields to TypeCode + improved giop encapuslation (+Mark) + cleaned & radicaly simplified giop code + close cnx on GIOP_CLOSECONNECTION * Bugs * POA + exception fixes (Mark) + ref counting fixes (Mark, Michael) + stale ref on object fix (Michael, Mark) * ORB (Michael) + IIOP profile copy bug + is_equivalent issues + register local objrefs correctly in cache + cache connections correctly. + drop unexpected system ex's silently (Michael) * Misc + build warning fixage (Mark) + print only ascii in trace mode (Michael) + Build fixage (Johan Dahlin, Abel Cheung) ORBit2-2.14.19/depcomp0000755000175000001440000004426711450333734011243 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2009-04-28.21; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free # Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u="sed s,\\\\\\\\,/,g" depmode=msvisualcpp fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add `dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mechanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: ORBit2-2.14.19/config.h.in0000644000175000001440000001332711450333732011700 00000000000000/* config.h.in. Generated from configure.in by autoheader. */ /* Define if building universal (internal helper macro) */ #undef AC_APPLE_UNIVERSAL_BUILD /* Define if HTTP connections are available */ #undef ENABLE_HTTP /* Define to 1 if you have the header file. */ #undef HAVE_ARPA_INET_H /* Define to 1 if you have the header file. */ #undef HAVE_ARPA_NAMESER_H /* Define to 1 if you have the `basename' function. */ #undef HAVE_BASENAME /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ #undef HAVE_DOPRNT /* Define to 1 if you have the header file. */ #undef HAVE_ENDIAN_H /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* Define if getaddrinfo() is available */ #undef HAVE_GETADDRINFO /* Define if getnameinfo() is available */ #undef HAVE_GETNAMEINFO /* Define if inet_pton() is available */ #undef HAVE_INET_PTON /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `nsl' library (-lnsl). */ #undef HAVE_LIBNSL /* Define to 1 if you have the `resolv' library (-lresolv). */ #undef HAVE_LIBRESOLV /* Define to 1 if you have the `socket' library (-lsocket). */ #undef HAVE_LIBSOCKET /* Define to 1 if you have the header file. */ #undef HAVE_LINUX_SOCKET_H /* Define to 1 if you have the header file. */ #undef HAVE_MACHINE_ENDIAN_H /* Define to 1 if you have the header file. */ #undef HAVE_MACHINE_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the header file. */ #undef HAVE_NETDB_H /* Define to 1 if you have the header file. */ #undef HAVE_NETINET_IN_H /* Define to 1 if you have the header file. */ #undef HAVE_NETINET_TCP_H /* Define to 1 if you have the `poll' function. */ #undef HAVE_POLL /* Define to 1 if you have the header file. */ #undef HAVE_RESOLV_H /* Define if sockaddr has sa_len member */ #undef HAVE_SOCKADDR_SA_LEN /* Define to 1 if you have the header file. */ #undef HAVE_STDDEF_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYSLOG_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_ENDIAN_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_ISA_DEFS_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_MACHINE_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_POLL_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SELECT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SOCKET_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SOCKIO_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TIME_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_UIO_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_UN_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_UTIME_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_WAIT_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the header file. */ #undef HAVE_UTIME_H /* Define to 1 if you have the `vprintf' function. */ #undef HAVE_VPRINTF /* Define to 1 if you have the header file. */ #undef HAVE_WCHAR_H /* Define to 1 if you have the header file. */ #undef HAVE_WCSTR_H /* Define to 1 if you have the header file. */ #undef HAVE_WCTYPE_H /* Define to 1 if you have the header file. */ #undef HAVE_WINSOCK2_H /* Define to the sub-directory in which libtool stores uninstalled libraries. */ #undef LT_OBJDIR /* defined if purify is enabled */ #undef ORBIT_PURIFY /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel). */ #if defined AC_APPLE_UNIVERSAL_BUILD # if defined __BIG_ENDIAN__ # define WORDS_BIGENDIAN 1 # endif #else # ifndef WORDS_BIGENDIAN # undef WORDS_BIGENDIAN # endif #endif /* Define to empty if `const' does not conform to ANSI C. */ #undef const /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus #undef inline #endif /* Define to `unsigned int' if does not define. */ #undef size_t /* Define socklen_t to be of type size_t */ #undef socklen_t ORBit2-2.14.19/COPYING0000644000175000001440000004312211334247617010713 00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. ORBit2-2.14.19/orbit2-config.in0000644000175000001440000000510411334247617012652 00000000000000#! /bin/sh prefix=@prefix@ exec_prefix=@exec_prefix@ exec_prefix_set=no includedir=@includedir@ libdir=@libdir@ [ -z "$PKG_CONFIG" ] && PKG_CONFIG="pkg-config" usage() { cat <' header file. The option `-nodtk' can be used as a workaround. If GNU CC is not installed, it is therefore recommended to try ./configure CC="cc" and if that doesn't work, try ./configure CC="cc -nodtk" On Solaris, don't put `/usr/ucb' early in your `PATH'. This directory contains several dysfunctional programs; working variants of these programs are available in `/usr/bin'. So, if you need `/usr/ucb' in your `PATH', put it _after_ `/usr/bin'. On Haiku, software installed for all users goes in `/boot/common', not `/usr/local'. It is recommended to use the following options: ./configure --prefix=/boot/common Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option `--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Unfortunately, this technique does not work for `CONFIG_SHELL' due to an Autoconf bug. Until the bug is fixed you can use this workaround: CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of all of the options to `configure', and exit. `--help=short' `--help=recursive' Print a summary of the options unique to this package's `configure', and exit. The `short' variant lists options used only in the top level, while the `recursive' variant lists options also present in any nested packages. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--prefix=DIR' Use DIR as the installation prefix. *Note Installation Names:: for more details, including other options available for fine-tuning the installation locations. `--no-create' `-n' Run the configure checks, but stop before creating any output files. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. ORBit2-2.14.19/Makefile.shared0000644000175000001440000000133611334247617012566 00000000000000IDL_COMPILER = @IDL_COMPILER@ %-stubs.c %-skels.c %-common.c %-imodule.c %-skelimpl.c: %.h true %.h: $(IDL_DIR)%.idl $(IDL_COMPILER) -(rm -f $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c || true) > /dev/null $(IDL_COMPILER) $(IDL_FLAGS) --deps $(*D)/.deps/$(*F).idl.P $< for I in $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c; do \ if test -f $$I; then \ sed -e 's,OObject,Object,g' -e 's,TTypeCode,TypeCode,g' $$I > $$I.out; \ mv $$I.out $$I ; \ fi; \ done if MAINTAINER_MODE IDL_DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) IDL_DEP_FILES = $(IDL_FILES:%.idl=.deps/%.idl.P) -include $(IDL_DEP_FILES) endif distclean-local: -rm -rf .deps ORBit2-2.14.19/ORBit-CosNaming-2.0.pc.in0000644000175000001440000000045611334247617013744 00000000000000prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ Name: ORBit-CosNaming-2.0 Description: High-performance CORBA Object Request Broker - Naming Service. Version: @ORBIT_VERSION@ Requires: ORBit-2.0 Libs: -L${libdir} -lORBitCosNaming-2 Cflags: -I${includedir}/orbit-2.0 ORBit2-2.14.19/src/0000755000175000001440000000000011450334027010514 500000000000000ORBit2-2.14.19/src/idl-compiler/0000755000175000001440000000000011450334027013074 500000000000000ORBit2-2.14.19/src/idl-compiler/orbit-idl-c-skelimpl.c0000644000175000001440000004645111334247617017126 00000000000000#include "config.h" #include "orbit-idl-c-backend.h" /* This file copied from the old IDL compiler orbit-c-skelimpl.c, with minimal changes. */ static void orbit_cbe_write_skelimpl(FILE *outfile, IDL_tree tree, const char *hdrname); void orbit_idl_output_c_skelimpl(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { orbit_cbe_write_skelimpl(ci->fh, tree, ci->base_name); } #include #include #include #include #include #ifdef HAVE_UNISTD_H #include #endif /* Abbreviations used here: "cbe" stands for "C backend" "hdr" -> "header" (duh :) "of" -> "output file" "ns" -> "name space" */ typedef struct { FILE *of; IDL_tree tree; enum { PASS_SERVANTS, PASS_PROTOS, PASS_EPVS, PASS_VEPVS, PASS_IMPLSTUBS, PASS_LAST } pass; } CBESkelImplInfo; static const char *passnames[] = { "App-specific servant structures", "Implementation stub prototypes", "epv structures", "vepv structures", "Stub implementations", "Boohoo!" }; static void orbit_cbe_ski_process_piece(CBESkelImplInfo *ski); static void cbe_ski_do_list(CBESkelImplInfo *ski); static void cbe_ski_do_inherited_attr_dcl(CBESkelImplInfo *ski, IDL_tree current_interface); static void cbe_ski_do_attr_dcl(CBESkelImplInfo *ski); static void cbe_ski_do_inherited_op_dcl(CBESkelImplInfo *ski, IDL_tree current_interface); static void cbe_ski_do_op_dcl(CBESkelImplInfo *ski); static void cbe_ski_do_param_dcl(CBESkelImplInfo *ski); static void cbe_ski_do_interface(CBESkelImplInfo *ski); static void cbe_ski_do_module(CBESkelImplInfo *ski); static void orbit_cbe_write_skelimpl(FILE *outfile, IDL_tree tree, const char *hdrname) { CBESkelImplInfo ski = {NULL, NULL, PASS_SERVANTS}; ski.of = outfile; ski.tree = tree; g_return_if_fail(IDL_NODE_TYPE(tree) == IDLN_LIST); fprintf(outfile, "/* This is a template file generated by command */\n"); fprintf(outfile, "/* orbit-idl-2 --skeleton-impl %s.idl */\n", hdrname); fprintf(outfile, "/* User must edit this file, inserting servant */\n"); fprintf(outfile, "/* specific code between markers. */\n\n"); fprintf(outfile, "#include \"%s.h\"\n", hdrname); for(ski.pass = PASS_SERVANTS; ski.pass < PASS_LAST; ski.pass++) { fprintf(ski.of, "\n/*** %s ***/\n\n", passnames[ski.pass]); orbit_cbe_ski_process_piece(&ski); } } static void orbit_cbe_ski_process_piece(CBESkelImplInfo *ski) { /* I'm not implementing this as an array of function pointers because we may want to do special logic for particular cases in the future. Hope this is clear enough. -ECL */ switch(IDL_NODE_TYPE(ski->tree)) { case IDLN_ATTR_DCL: cbe_ski_do_attr_dcl(ski); break; case IDLN_INTERFACE: cbe_ski_do_interface(ski); break; case IDLN_LIST: cbe_ski_do_list(ski); break; case IDLN_MODULE: cbe_ski_do_module(ski); break; case IDLN_OP_DCL: cbe_ski_do_op_dcl(ski); break; case IDLN_PARAM_DCL: cbe_ski_do_param_dcl(ski); break; default: break; } } static void cbe_ski_do_module(CBESkelImplInfo *ski) { CBESkelImplInfo subski = *ski; subski.tree = IDL_MODULE(ski->tree).definition_list; cbe_ski_do_list(&subski); } /* Returns 1 if the previous character written to f */ /* was '\n', 0 otherwise. */ static inline unsigned char prev_char_is_nl(FILE *f) { char c; long pos; size_t count; unsigned char retv = 0; pos = ftell(f); if (pos < sizeof(char)) return 0; /* beginning of file */ if (fseek(f, (-1)*sizeof(char), SEEK_CUR)) goto out; count = fread((void*)&c, sizeof(char), 1, f); if (sizeof(char) == count) retv = ('\n' == c) ? 1 : 0; out: fseek(f, pos, SEEK_SET); return retv; } static void cbe_ski_do_list(CBESkelImplInfo *ski) { CBESkelImplInfo subski = *ski; IDL_tree curitem; for(curitem = ski->tree; curitem; curitem = IDL_LIST(curitem).next) { subski.tree = IDL_LIST(curitem).data; orbit_cbe_ski_process_piece(&subski); if(!prev_char_is_nl(ski->of)) fprintf(ski->of, "\n"); } } static void cbe_ski_do_attr_dcl_internal(CBESkelImplInfo *ski, IDL_tree current_interface, gboolean inherited) { IDL_tree curop, curitem; GString *attrname = g_string_new(NULL); CBESkelImplInfo subski = *ski; if(ski->pass == PASS_SERVANTS) { for(curitem = IDL_ATTR_DCL(ski->tree).simple_declarations; curitem; curitem = IDL_LIST(curitem).next) { orbit_cbe_write_typespec(ski->of, IDL_ATTR_DCL(ski->tree).param_type_spec); fprintf(ski->of, " attr_%s;\n", IDL_IDENT(IDL_LIST(curitem).data).str); } } for(curitem = IDL_ATTR_DCL(ski->tree).simple_declarations; curitem; curitem = IDL_LIST(curitem).next) { /* Fake the attribute get/set methods as operation declarations */ IDL_tree ident, ns_data_save; int i; for (i = 0; i < 2; ++i) { if (i && IDL_ATTR_DCL(ski->tree).f_readonly) break; /* Output the operation on this attribute */ g_string_printf(attrname, i ? "_set_%s" : "_get_%s", IDL_IDENT(IDL_LIST(curitem).data).str); ident = IDL_ident_new(g_strdup(attrname->str)); /* Tell the ident where our namespace node is, and request a return value if this is the _get operation */ IDL_IDENT_TO_NS(ident) = IDL_IDENT_TO_NS(IDL_LIST(curitem).data); curop = IDL_op_dcl_new(0, i == 0 ? IDL_ATTR_DCL(ski->tree).param_type_spec : NULL, ident, NULL, NULL, NULL); curop->up = ski->tree->up; subski.tree = curop; /* Save the namespace ident (IDL_GENTREE data) reference, assign back to the temporary tree, output the operation, then restore the namespace ident link */ ns_data_save = IDL_GENTREE(IDL_IDENT_TO_NS(IDL_LIST(curitem).data)).data; IDL_GENTREE(IDL_IDENT_TO_NS(IDL_LIST(curitem).data)).data = ident; if (i) { /* The set routine also needs the value, so we temporarily add that to the operation declaration */ IDL_OP_DCL(curop).parameter_dcls = IDL_list_new( IDL_param_dcl_new(IDL_PARAM_IN, IDL_ATTR_DCL(ski->tree).param_type_spec, IDL_ident_new(g_strdup("value")))); } if(inherited==TRUE) cbe_ski_do_inherited_op_dcl(&subski, current_interface); else orbit_cbe_ski_process_piece(&subski); /* Restore the fake link to the original in the namespace */ IDL_GENTREE(IDL_IDENT_TO_NS(IDL_LIST(curitem).data)).data = ns_data_save; if (i) { /* Free only what we've created for the fake node, so remove the attribute node element and then free the rest */ IDL_PARAM_DCL(IDL_LIST( IDL_OP_DCL(curop).parameter_dcls).data).param_type_spec = NULL; } /* Remove what we've "borrowed" from ATTR_DCL from the fake curop node then free the rest */ IDL_OP_DCL(curop).op_type_spec = NULL; IDL_tree_free(curop); } } g_string_free(attrname, TRUE); } static void cbe_ski_do_attr_dcl(CBESkelImplInfo *ski) { cbe_ski_do_attr_dcl_internal(ski, NULL, FALSE); } void cbe_ski_do_inherited_attr_dcl(CBESkelImplInfo *ski, IDL_tree current_interface) { cbe_ski_do_attr_dcl_internal(ski, current_interface, TRUE); } static void cbe_ski_do_op_dcl(CBESkelImplInfo *ski) { /* If you fix anything here, please also fix it in cbe_ski_do_inherited_op_dcl(), which is almost a cut-and-paste of this routine */ char *id, *id2; IDL_tree curitem, op; int level; CBESkelImplInfo subski = *ski; switch(ski->pass) { case PASS_PROTOS: case PASS_IMPLSTUBS: curitem = IDL_get_parent_node(ski->tree, IDLN_INTERFACE, &level); g_assert(curitem); id = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_OP_DCL(ski->tree).ident), "_", 0); id2 = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_INTERFACE(curitem).ident), "_", 0); /* protect with #ifdef block */ if(PASS_PROTOS == ski->pass) fprintf(ski->of, "#if !defined(_decl_impl_"); else fprintf(ski->of, "#if !defined(_impl_"); fprintf(ski->of, "%s_)\n", id); if(PASS_PROTOS == ski->pass) fprintf(ski->of, "#define _decl_impl_"); else fprintf(ski->of, "#define _impl_"); fprintf(ski->of, "%s_ 1\n", id); fprintf(ski->of, "static "); orbit_cbe_write_param_typespec(ski->of, ski->tree); fprintf(ski->of, "\nimpl_%s(impl_POA_%s *servant,\n", id, id2); g_free(id); g_free(id2); op = ski->tree; for(curitem = IDL_OP_DCL(ski->tree).parameter_dcls; curitem; curitem = IDL_LIST(curitem).next) { subski.tree = IDL_LIST(curitem).data; orbit_cbe_ski_process_piece(&subski); } if(IDL_OP_DCL(op).context_expr) fprintf(ski->of, "CORBA_Context ctx,\n"); fprintf(ski->of, "CORBA_Environment *ev)"); if(ski->pass == PASS_IMPLSTUBS) { fprintf(ski->of, "\n{\n"); if(IDL_OP_DCL(op).op_type_spec) { orbit_cbe_write_param_typespec(ski->of, ski->tree); fprintf(ski->of, " retval;\n"); fprintf(ski->of, " /* ------ insert method code here ------ */\n"); fprintf(ski->of, " /* ------ ---------- end ------------ ------ */\n"); fprintf(ski->of, "\nreturn retval;\n"); } else { fprintf(ski->of, " /* ------ insert method code here ------ */\n"); fprintf(ski->of, " /* ------ ---------- end ------------ ------ */\n"); } fprintf(ski->of, "}\n"); } else /* PASS_PROTOS */ fprintf(ski->of, ";\n"); fprintf(ski->of, "#endif\n\n"); /* end of protective #ifdef block */ break; /* End PASS_PROTOS | PASS_IMPLSTUBS */ case PASS_EPVS: id = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_OP_DCL(ski->tree).ident), "_", 0); fprintf(ski->of, "(gpointer)&impl_%s,\n", id); g_free(id); break; default: break; } } static void cbe_ski_do_inherited_op_dcl(CBESkelImplInfo *ski, IDL_tree current_interface) { char *id, *id2; IDL_tree ident, curitem, intf, op; int level; CBESkelImplInfo subski = *ski; id = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_INTERFACE(current_interface).ident), "_", 0); intf = IDL_get_parent_node(ski->tree, IDLN_INTERFACE, NULL); id2 = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_INTERFACE(intf).ident), "_", 0); ident=IDL_OP_DCL(ski->tree).ident; g_assert(ident); switch(ski->pass) { case PASS_PROTOS: case PASS_IMPLSTUBS: curitem = IDL_get_parent_node(ski->tree, IDLN_INTERFACE, &level); g_assert(curitem); /* protect with #ifdef block */ if(PASS_PROTOS == ski->pass) fprintf(ski->of, "#if !defined(_decl_impl_"); else fprintf(ski->of, "#if !defined(_impl_"); fprintf(ski->of, "%s_%s_)\n", id, IDL_IDENT(ident).str); if(PASS_PROTOS == ski->pass) fprintf(ski->of, "#define _decl_impl_"); else fprintf(ski->of, "#define _impl_"); fprintf(ski->of, "%s_%s_ 1\n", id, IDL_IDENT(ident).str); fprintf(ski->of, "static "); orbit_cbe_write_param_typespec(ski->of, ski->tree); fprintf(ski->of, "\nimpl_%s_%s(impl_POA_%s *servant,\n", id, IDL_IDENT(ident).str, id); op = ski->tree; for(curitem = IDL_OP_DCL(ski->tree).parameter_dcls; curitem; curitem = IDL_LIST(curitem).next) { subski.tree = IDL_LIST(curitem).data; orbit_cbe_ski_process_piece(&subski); } if(IDL_OP_DCL(op).context_expr) fprintf(ski->of, "CORBA_Context ctx,\n"); fprintf(ski->of, "CORBA_Environment *ev)"); if(ski->pass == PASS_IMPLSTUBS) { fprintf(ski->of, "\n{\n"); if(IDL_OP_DCL(op).op_type_spec) { orbit_cbe_write_param_typespec(ski->of, ski->tree); fprintf(ski->of, " retval;\n"); fprintf(ski->of, " /* ------ insert method code here ------ */\n"); fprintf(ski->of, " /* ------ ---------- end ------------ ------ */\n"); fprintf(ski->of, "\nreturn retval;\n"); } else { fprintf(ski->of, " /* ------ insert method code here ------ */\n"); fprintf(ski->of, " /* ------ ---------- end ------------ ------ */\n"); } fprintf(ski->of, "}\n"); } else /* PASS_PROTOS */ fprintf(ski->of, ";\n"); fprintf(ski->of, "#endif\n\n"); /* end of protective #ifdef block */ break; /* End PASS_PROTOS | PASS_IMPLSTUBS */ case PASS_EPVS: ident=IDL_OP_DCL(ski->tree).ident; g_assert(ident); fprintf(ski->of, "(gpointer)&impl_%s_%s,\n", id, IDL_IDENT(ident).str); default: break; } g_free(id); g_free(id2); } static void cbe_ski_do_param_dcl(CBESkelImplInfo *ski) { orbit_cbe_write_param_typespec(ski->of, ski->tree); fprintf(ski->of, " %s,\n", IDL_IDENT(IDL_PARAM_DCL(ski->tree).simple_declarator).str); } static void cbe_ski_do_interface_vepv_entry(IDL_tree interface, CBESkelImplInfo *ski) { char *id, *inherit_id; if(interface==ski->tree) { id = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_INTERFACE(ski->tree).ident), "_", 0); fprintf(ski->of, "&impl_%s_epv,\n", id); g_free(id); return; } id = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_INTERFACE(ski->tree).ident), "_", 0); inherit_id = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_INTERFACE(interface).ident), "_", 0); fprintf(ski->of, "&impl_%s_%s_epv,\n", id, inherit_id); g_free(id); g_free(inherit_id); } static void cbe_ski_do_inherited_methods(IDL_tree interface, CBESkelImplInfo *ski) { CBESkelImplInfo subski= *ski; IDL_tree curitem; char *id = NULL, *inherit_id = NULL; /* Quiet gcc */ if(interface==ski->tree) return; if(ski->pass==PASS_EPVS) { id = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_INTERFACE(ski->tree).ident), "_", 0); inherit_id = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_INTERFACE(interface).ident), "_", 0); /* protect with #ifdef block */ fprintf(ski->of, "#if !defined(_impl_%s_%s_epv_)\n", id, inherit_id); fprintf(ski->of, "#define _impl_%s_%s_epv_ 1\n", id, inherit_id); fprintf(ski->of, "static POA_%s__epv impl_%s_%s_epv = {\nNULL, /* _private */\n", inherit_id, id, inherit_id); } for(curitem = IDL_INTERFACE(interface).body; curitem; curitem=IDL_LIST(curitem).next) { subski.tree=IDL_LIST(curitem).data; switch(IDL_NODE_TYPE(IDL_LIST(curitem).data)) { case IDLN_OP_DCL: cbe_ski_do_inherited_op_dcl(&subski, ski->tree); break; case IDLN_ATTR_DCL: cbe_ski_do_inherited_attr_dcl(&subski, ski->tree); break; default: break; } } if(ski->pass==PASS_EPVS) { fprintf(ski->of, "};\n"); fprintf(ski->of, "#endif\n"); /* end of protective #ifdef block */ g_free(id); g_free(inherit_id); } } static void cbe_ski_do_interface(CBESkelImplInfo *ski) { char *id; CBESkelImplInfo subski = *ski; id = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_INTERFACE(ski->tree).ident), "_", 0); switch(ski->pass) { case PASS_SERVANTS: /* protect with #ifdef block */ fprintf(ski->of, "#if !defined(_typedef_impl_POA_%s_)\n", id); fprintf(ski->of, "#define _typedef_impl_POA_%s_ 1\n", id); fprintf(ski->of, "typedef struct {\nPOA_%s servant;\nPortableServer_POA poa;\n", id); subski.tree = IDL_INTERFACE(ski->tree).body; cbe_ski_do_list(&subski); IDL_tree_traverse_parents(ski->tree, (GFunc)&cbe_ski_do_inherited_methods, ski); fprintf(ski->of, " /* ------ add private attributes here ------ */\n"); fprintf(ski->of, " /* ------ ---------- end ------------ ------ */\n"); fprintf(ski->of, "} impl_POA_%s;\n", id); fprintf(ski->of, "#endif\n\n"); /* end of protective #ifdef block */ break; case PASS_EPVS: /* protect with #ifdef block */ fprintf(ski->of, "#if !defined(_impl_%s_base_epv_)\n", id); fprintf(ski->of, "#define _impl_%s_base_epv_ 1\n", id); fprintf(ski->of, "static PortableServer_ServantBase__epv impl_%s_base_epv = {\n", id); fprintf(ski->of, "NULL, /* _private data */\n"); fprintf(ski->of, "(gpointer) & impl_%s__destroy, /* finalize routine */\n", id); fprintf(ski->of, "NULL, /* default_POA routine */\n"); fprintf(ski->of, "};\n"); fprintf(ski->of, "#endif\n\n"); /* end of protective #ifdef block */ /* protect with #ifdef block */ fprintf(ski->of, "#if !defined(_impl_%s_epv_)\n", id); fprintf(ski->of, "#define _impl_%s_epv_ 1\n", id); fprintf(ski->of, "static POA_%s__epv impl_%s_epv = {\nNULL, /* _private */\n", id, id); subski.tree = IDL_INTERFACE(ski->tree).body; cbe_ski_do_list(&subski); fprintf(ski->of, "};\n"); fprintf(ski->of, "#endif\n\n"); /* end of protective #ifdef block */ IDL_tree_traverse_parents(ski->tree, (GFunc)&cbe_ski_do_inherited_methods, ski); break; case PASS_VEPVS: /* protect with #ifdef block */ fprintf(ski->of, "#if !defined(_impl_%s_vepv_)\n", id); fprintf(ski->of, "#define _impl_%s_vepv_ 1\n", id); fprintf(ski->of, "static POA_%s__vepv impl_%s_vepv = {\n", id, id); fprintf(ski->of, "&impl_%s_base_epv,\n", id); IDL_tree_traverse_parents(ski->tree, (GFunc)&cbe_ski_do_interface_vepv_entry, ski); fprintf(ski->of, "};\n"); fprintf(ski->of, "#endif\n\n"); /* end of protective #ifdef block */ break; case PASS_IMPLSTUBS: /* protect __create with #ifdef block */ fprintf(ski->of, "#if !defined(_impl_%s__create_)\n", id); fprintf(ski->of, "#define _impl_%s__create_ 1\n", id); fprintf(ski->of, "static %s impl_%s__create(PortableServer_POA poa, CORBA_Environment *ev)\n", id, id); fprintf(ski->of, "{\n%s retval;\nimpl_POA_%s *newservant;\nPortableServer_ObjectId *objid;\n\n", id, id); fprintf(ski->of, "newservant = g_new0(impl_POA_%s, 1);\n", id); fprintf(ski->of, "newservant->servant.vepv = &impl_%s_vepv;\n", id); fprintf(ski->of, "newservant->poa = (PortableServer_POA) CORBA_Object_duplicate((CORBA_Object)poa, ev);\n"); fprintf(ski->of, "POA_%s__init((PortableServer_Servant)newservant, ev);\n", id); fprintf(ski->of, " /* Before servant is going to be activated all\n"); fprintf(ski->of, " * private attributes must be initialized. */\n"); fprintf(ski->of, "\n"); fprintf(ski->of, " /* ------ init private attributes here ------ */\n"); fprintf(ski->of, " /* ------ ---------- end ------------- ------ */\n"); fprintf(ski->of, "\n"); fprintf(ski->of, "objid = PortableServer_POA_activate_object(poa, newservant, ev);\n"); fprintf(ski->of, "CORBA_free(objid);\n"); fprintf(ski->of, "retval = PortableServer_POA_servant_to_reference(poa, newservant, ev);\n"); fprintf(ski->of, "\nreturn retval;\n}\n"); fprintf(ski->of, "#endif\n\n"); /* end of protective #ifdef block */ /* protect __destroy with #ifdef block */ fprintf(ski->of, "#if !defined(_impl_%s__destroy_)\n", id); fprintf(ski->of, "#define _impl_%s__destroy_ 1\n", id); fprintf(ski->of, "static void\nimpl_%s__destroy(impl_POA_%s *servant, CORBA_Environment *ev)\n{\n", id, id); fprintf(ski->of, " CORBA_Object_release ((CORBA_Object) servant->poa, ev);\n\n"); fprintf(ski->of, " /* No further remote method calls are delegated to \n"); fprintf(ski->of, " * servant and you may free your private attributes. */\n"); fprintf(ski->of, " /* ------ free private attributes here ------ */\n"); fprintf(ski->of, " /* ------ ---------- end ------------- ------ */\n"); fprintf(ski->of, "\nPOA_%s__fini((PortableServer_Servant)servant, ev);\n", id); fprintf(ski->of, "\ng_free (servant);\n"); fprintf(ski->of, "}\n"); fprintf(ski->of, "#endif\n\n"); /* end of protective #ifdef block */ subski.tree = IDL_INTERFACE(ski->tree).body; cbe_ski_do_list(&subski); IDL_tree_traverse_parents(ski->tree, (GFunc)&cbe_ski_do_inherited_methods, ski); break; case PASS_PROTOS: /* protect __destroy declaration with #ifdef block */ fprintf(ski->of, "#if !defined(_decl_impl_%s__destroy_)\n", id); fprintf(ski->of, "#define _decl_impl_%s__destroy_ 1\n", id); fprintf(ski->of, "static void impl_%s__destroy(impl_POA_%s *servant,\nCORBA_Environment *ev);\n", id, id); fprintf(ski->of, "#endif\n\n"); /* end of protective #ifdef block */ subski.tree = IDL_INTERFACE(ski->tree).body; cbe_ski_do_list(&subski); IDL_tree_traverse_parents(ski->tree, (GFunc)&cbe_ski_do_inherited_methods, ski); break; default: break; } g_free(id); } ORBit2-2.14.19/src/idl-compiler/orbit-idl-c-imodule.c0000644000175000001440000001217011334247617016733 00000000000000#include "config.h" #include "orbit-idl-c-backend.h" #include static void ci_build_interfaces (OIDL_C_Info *ci, IDL_tree tree) { if (!tree) return; switch (IDL_NODE_TYPE (tree)) { case IDLN_MODULE: ci_build_interfaces ( ci, IDL_MODULE (tree).definition_list); break; case IDLN_LIST: { IDL_tree sub; for (sub = tree; sub; sub = IDL_LIST (sub).next) ci_build_interfaces ( ci, IDL_LIST (sub).data); break; } case IDLN_INTERFACE: { char *id; id = IDL_ns_ident_to_qstring (IDL_IDENT_TO_NS ( IDL_INTERFACE (tree).ident), "_", 0); fprintf (ci->fh, "\t&%s__iinterface,\n", id); g_free (id); ci_build_interfaces ( ci, IDL_INTERFACE(tree).body); break; } default: break; } } static void ci_build_types (OIDL_C_Info *ci, IDL_tree tree, guint *count) { if (!tree) return; switch (IDL_NODE_TYPE (tree)) { case IDLN_MODULE: ci_build_types ( ci, IDL_MODULE (tree).definition_list, count); break; case IDLN_LIST: { IDL_tree sub; for (sub = tree; sub; sub = IDL_LIST (sub).next) ci_build_types ( ci, IDL_LIST (sub).data, count); break; } case IDLN_INTERFACE: ci_build_types ( ci, IDL_INTERFACE(tree).body, count); break; case IDLN_TYPE_DCL: { IDL_tree sub; for (sub = IDL_TYPE_DCL (tree).dcls; sub; sub = IDL_LIST (sub).next) { IDL_tree ent = IDL_LIST (sub).data; gchar *id; id = orbit_cbe_get_typespec_str (ent); fprintf (ci->fh, "\tTC_%s,\n", id); (*count)++; g_free (id); } break; } case IDLN_TYPE_STRUCT: { gchar *id; IDL_tree l; id = orbit_cbe_get_typespec_str (tree); fprintf (ci->fh, "\tTC_%s,\n", id); (*count)++; g_free (id); /* check for nested structs/enums */ for (l = IDL_TYPE_STRUCT (tree).member_list; l; l = IDL_LIST (l).next) { IDL_tree dcl; g_assert (IDL_NODE_TYPE (IDL_LIST (l).data) == IDLN_MEMBER); dcl = IDL_MEMBER (IDL_LIST (l).data).type_spec; /* skip straight declarations */ if (IDL_NODE_TYPE(dcl) == IDLN_TYPE_STRUCT || IDL_NODE_TYPE(dcl) == IDLN_TYPE_UNION || IDL_NODE_TYPE(dcl) == IDLN_TYPE_ENUM) ci_build_types (ci, dcl, count); } break; }; case IDLN_TYPE_UNION: { gchar *id; IDL_tree l; id = orbit_cbe_get_typespec_str (tree); fprintf (ci->fh, "\tTC_%s,\n", id); (*count)++; g_free (id); /* if discriminator is an enum, register it */ if (IDL_NODE_TYPE (IDL_TYPE_UNION (tree).switch_type_spec) == IDLN_TYPE_ENUM) ci_build_types ( ci, IDL_TYPE_UNION (tree).switch_type_spec, count); /* check for nested structs/enums */ for (l = IDL_TYPE_UNION (tree).switch_body; l; l = IDL_LIST (l).next) { IDL_tree dcl; g_assert (IDL_NODE_TYPE (IDL_LIST (l).data) == IDLN_CASE_STMT); dcl = IDL_MEMBER ( IDL_CASE_STMT (IDL_LIST (l).data).element_spec).type_spec; if (IDL_NODE_TYPE(dcl) == IDLN_TYPE_STRUCT || IDL_NODE_TYPE(dcl) == IDLN_TYPE_UNION || IDL_NODE_TYPE(dcl) == IDLN_TYPE_ENUM) ci_build_types (ci, dcl, count); } break; } case IDLN_EXCEPT_DCL: { gchar *id; IDL_tree l; id = orbit_cbe_get_typespec_str (tree); fprintf (ci->fh, "\tTC_%s,\n", id); (*count)++; g_free (id); /* check for nested structs/enums */ for (l = IDL_EXCEPT_DCL (tree).members; l; l = IDL_LIST (l).next) { IDL_tree dcl; g_assert (IDL_NODE_TYPE (IDL_LIST (l).data) == IDLN_MEMBER); dcl = IDL_MEMBER (IDL_LIST (l).data).type_spec; /* skip straight declarations */ if (IDL_NODE_TYPE(dcl) == IDLN_TYPE_STRUCT || IDL_NODE_TYPE(dcl) == IDLN_TYPE_UNION || IDL_NODE_TYPE(dcl) == IDLN_TYPE_ENUM) ci_build_types (ci, dcl, count); } break; } case IDLN_TYPE_INTEGER: case IDLN_TYPE_ANY: case IDLN_TYPE_STRING: case IDLN_TYPE_WIDE_STRING: case IDLN_TYPE_CHAR: case IDLN_TYPE_WIDE_CHAR: case IDLN_TYPE_FLOAT: case IDLN_TYPE_BOOLEAN: case IDLN_TYPE_OCTET: case IDLN_TYPE_SEQUENCE: case IDLN_TYPE_ENUM: case IDLN_IDENT: case IDLN_FORWARD_DCL: case IDLN_TYPE_OBJECT: { gchar *id; id = orbit_cbe_get_typespec_str (tree); fprintf (ci->fh, "\tTC_%s,\n", id); (*count)++; g_free (id); break; } default: break; } } void orbit_idl_output_c_imodule (IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { guint count; fprintf (ci->fh, OIDL_C_WARNING); fprintf (ci->fh, "#include \n"); fprintf (ci->fh, "#define ORBIT_IDL_C_IMODULE_%s\n\n",ci->c_base_name); fprintf (ci->fh, "#include \"%s-common.c\"\n\n", ci->base_name); fprintf (ci->fh, "#include \n\n"); fprintf (ci->fh, "static CORBA_TypeCode %s__itypes[] = {\n", ci->c_base_name); count = 0; ci_build_types (ci, tree, &count); fprintf (ci->fh, "\tNULL\n};\n\n"); fprintf (ci->fh, "static ORBit_IInterface *%s__iinterfaces[] = {\n", ci->c_base_name); ci_build_interfaces (ci, tree); fprintf (ci->fh, "\tNULL\n};\n"); fprintf (ci->fh, "ORBit_IModule orbit_imodule_data = {\n"); fprintf (ci->fh, " %d,\n", ORBIT_CONFIG_SERIAL); fprintf (ci->fh, " %s__iinterfaces,\n", ci->c_base_name); fprintf (ci->fh, " { %u, %u, %s__itypes, FALSE }\n", count, count, ci->c_base_name); fprintf (ci->fh, "};\n\n"); } ORBit2-2.14.19/src/idl-compiler/orbit-idl-main.c0000644000175000001440000002462111334247617016005 00000000000000/************************************************************************** orbit-idl-main.c (Driver program for the IDL parser & backend) Copyright (C) 1999 Elliot Lee This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ ***************************************************************************/ #include "config.h" #include #include #include #include #include #include #include #include "orbit-idl2.h" #ifdef HAVE_UNISTD_H #include #endif /* FIXME: this program doesn't seem to support i18n? */ #ifndef GETTEXT_PACKAGE #define GETTEXT_PACKAGE NULL #endif /* Settings made from the command line (prefaced with cl_) */ static gboolean cl_disable_stubs = FALSE, cl_disable_skels = FALSE, cl_disable_common = FALSE, cl_disable_headers = FALSE, cl_enable_skeleton_impl = FALSE; static int cl_idlwarnlevel = 2; static int cl_debuglevel = 0; static int cl_is_pidl = 0; static int cl_disable_idata = 0; static int cl_enable_imodule = 0; static int cl_add_imodule = 0; static gboolean cl_disable_defs_skels = FALSE; static gboolean cl_showcpperrors = FALSE; static char *cl_output_lang = "c"; static char *cl_header_guard_prefix = ""; static char *cl_backend_dir = NULL; static gboolean cl_onlytop = FALSE; static char *cl_deps_file = NULL; static char *cl_output_directory = ""; static char **idl_files = NULL; #define BASE_CPP_ARGS "-D__ORBIT_IDL__ " static GString *cl_cpp_args; /* Callbacks for goption */ static gboolean cl_libIDL_version_callback (const char *option_name, const char *value, gpointer data, GError **error) { g_print("libIDL %s (CORBA %s)\n", IDL_get_libver_string(), IDL_get_IDLver_string()); exit(0); } static gboolean cl_cpp_define_callback (const char *option_name, const char *value, gpointer data, GError **error) { g_string_append_printf (cl_cpp_args, "-D%s ", value); return TRUE; } static gboolean cl_cpp_include_callback (const char *option_name, const char *value, gpointer data, GError **error) { g_string_append_printf (cl_cpp_args, "-I%s ", value); return TRUE; } static gboolean cl_version_callback (const char *option_name, const char *value, gpointer data, GError **error) { g_print ("orbit-idl-2 %s - serial %d\n", VERSION, ORBIT_CONFIG_SERIAL); exit(0); } static gboolean cl_c_output_formatter_callback (const char *option_name, const char *value, gpointer data, GError **error) { g_warning ("Do not use the 'c-output-formatter' option. It is ignored and will soon go away."); return TRUE; } static const GOptionEntry cl_libIDL_goptions[] = { { "libIDL-version", 0, 0, G_OPTION_ARG_CALLBACK, cl_libIDL_version_callback, N_("Show version of libIDL used"), NULL }, { NULL } }; static const GOptionEntry cl_cpp_goptions[] = { { "define", 'D', G_OPTION_FLAG_FILENAME, G_OPTION_ARG_CALLBACK, cl_cpp_define_callback, N_("Define value in preprocessor"), N_("DEFINE") }, { "include", 'I', G_OPTION_FLAG_FILENAME, G_OPTION_ARG_CALLBACK, cl_cpp_include_callback, N_("Add search path for include files"), N_("DIR") }, { NULL } }; static const GOptionEntry goptions[] = { { "version", 'v', 0, G_OPTION_ARG_CALLBACK, cl_version_callback, N_("Output compiler version and serial"), NULL }, { "lang", 'l', 0, G_OPTION_ARG_STRING, &cl_output_lang, N_("Output language (default is C)"), N_("LANG") }, { "debug", 'd', 0, G_OPTION_ARG_INT, &cl_debuglevel, N_("Debug level (0 to 4)"), N_("LEVEL") }, { "idlwarnlevel", 0, 0, G_OPTION_ARG_INT, &cl_idlwarnlevel, N_("IDL warning level (0 to 4, default is 2)"), N_("LEVEL") }, { "showcpperrors", 0, 0, G_OPTION_ARG_NONE, &cl_showcpperrors, N_("Show CPP errors"), NULL }, { "nostubs", 0, 0, G_OPTION_ARG_NONE, &cl_disable_stubs, N_("Don't output stubs"), NULL }, { "noskels", 0, 0, G_OPTION_ARG_NONE, &cl_disable_skels, N_("Don't output skels"), NULL }, { "nocommon", 0, 0, G_OPTION_ARG_NONE, &cl_disable_common, N_("Don't output common"), NULL }, { "noheaders", 0, 0, G_OPTION_ARG_NONE, &cl_disable_headers, N_("Don't output headers"), NULL }, { "noidata", 0, 0, G_OPTION_ARG_NONE, &cl_disable_idata, N_("Don't generate Interface type data"), NULL }, { "imodule", 'i', 0, G_OPTION_ARG_NONE, &cl_enable_imodule, N_("Output only an imodule file"), NULL }, { "add-imodule", 0, 0, G_OPTION_ARG_NONE, &cl_add_imodule, N_("Output an imodule file"), NULL }, { "skeleton-impl", 0, 0, G_OPTION_ARG_NONE, &cl_enable_skeleton_impl, N_("Output skeleton implementation"), NULL }, { "backenddir", 0, 0, G_OPTION_ARG_FILENAME, &cl_backend_dir, N_("Override IDL backend library directory"), N_("DIR") }, { "c-output-formatter", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_CALLBACK, &cl_c_output_formatter_callback, "DEPRECATED and IGNORED", "PROGRAM" }, { "onlytop", 0, 0, G_OPTION_ARG_NONE, &cl_onlytop, N_("Inhibit includes"), NULL }, { "pidl", 0, 0, G_OPTION_ARG_NONE, &cl_is_pidl, N_("Treat as Pseudo IDL"), NULL }, { "nodefskels", 0, 0, G_OPTION_ARG_NONE, &cl_disable_defs_skels, N_("Don't output defs for skels in header"), NULL }, { "deps", 0, 0, G_OPTION_ARG_FILENAME, &cl_deps_file, N_("Generate dependency info suitable for inclusion in Makefile"), N_("FILENAME") }, { "headerguardprefix", 0, 0, G_OPTION_ARG_STRING, &cl_header_guard_prefix, N_("Prefix for #ifdef header guards. Sometimes useful to avoid conflicts."), N_("PREFIX") }, { "output-dir", 0, 0, G_OPTION_ARG_FILENAME, &cl_output_directory, N_("Where to put generated files. This directory must exist."), N_("DIR") }, { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &idl_files, NULL, N_("") }, { NULL } }; /********** main routines **********/ int main(int argc, char *argv[]) { GOptionContext *context; GOptionGroup *group; GError *error = NULL; OIDL_Run_Info rinfo; GPtrArray *args; int retval = 0; gboolean result; gpointer freeme; guint i; /* Argument parsing, etc. */ cl_cpp_args = g_string_new("-D__ORBIT_IDL__ "); /* GOption cannot parse single-letter options without space * between option and argument (-I../dir) or single-dash options. * So fix those up before parsing, to retain command line compatibility * with previous popt based versions of orbit-idl-2 */ args = g_ptr_array_sized_new (2 * argc); g_ptr_array_add (args, g_strdup (argv[0])); for (i = 1; i < argc; ++i) { if (argv[i][0] == '-' && (argv[i][1] == 'D' || argv[i][1] == 'I') && argv[i][2] != '\0') { g_ptr_array_add (args, g_strndup (argv[i], 2)); g_ptr_array_add (args, g_strdup (argv[i] + 2)); } else if (strcmp (argv[i], "-define") == 0 || strcmp (argv[i], "-include") == 0) { g_ptr_array_add (args, g_strdup_printf ("-%s", argv[i])); } else { g_ptr_array_add (args, g_strdup (argv[i])); } } /* Parsing will modify the array; memdup it beforehand * so we can free it correctly */ argc = args->len; argv = freeme = g_memdup (args->pdata, argc * sizeof (gpointer)); g_ptr_array_add (args, NULL); /* so we can use g_strfreev */ /* Now parse the options */ context = g_option_context_new (""); g_option_context_add_main_entries (context, goptions, GETTEXT_PACKAGE); group = g_option_group_new ("libIDL", N_("libIDL options"), N_("Show libIDL options"), NULL, NULL); g_option_group_set_translation_domain (group, GETTEXT_PACKAGE); g_option_group_add_entries (group, cl_libIDL_goptions); g_option_context_add_group (context, group); group = g_option_group_new ("cpp", N_("Preprocessor options"), N_("Show preprocessor options"), NULL, NULL); g_option_group_set_translation_domain (group, GETTEXT_PACKAGE); g_option_group_add_entries (group, cl_cpp_goptions); g_option_context_add_group (context, group); result = g_option_context_parse (context, &argc, &argv, &error); g_option_context_free (context); g_strfreev ((char **) g_ptr_array_free (args, FALSE)); g_free (freeme); if (!result) { g_print ("orbit-idl-2: %s\n", error->message); g_error_free (error); exit (1); } if (!idl_files) { g_print ("No input files given!\n"); exit (1); } /* Prep our run info for the backend */ rinfo.cpp_args = cl_cpp_args->str; rinfo.debug_level = cl_debuglevel; rinfo.idl_warn_level = cl_idlwarnlevel; rinfo.show_cpp_errors = cl_showcpperrors; rinfo.is_pidl = cl_is_pidl; rinfo.do_skel_defs = !cl_disable_defs_skels; rinfo.enabled_passes = (cl_disable_stubs?0:OUTPUT_STUBS) |(cl_disable_skels?0:OUTPUT_SKELS) |(cl_disable_common?0:OUTPUT_COMMON) |(cl_disable_headers?0:OUTPUT_HEADERS) |(cl_enable_skeleton_impl?OUTPUT_SKELIMPL:0) |(cl_add_imodule?OUTPUT_IMODULE:0) |(cl_deps_file != NULL?OUTPUT_DEPS:0); rinfo.deps_file = cl_deps_file; if (cl_enable_imodule) /* clobber */ rinfo.enabled_passes = OUTPUT_COMMON | OUTPUT_HEADERS | OUTPUT_IMODULE; rinfo.output_language = cl_output_lang; rinfo.header_guard_prefix = cl_header_guard_prefix; rinfo.output_directory = cl_output_directory; rinfo.backend_directory = cl_backend_dir; rinfo.onlytop = cl_onlytop; rinfo.idata = !cl_disable_idata; printf ("orbit-idl-2 " VERSION " compiling\n"); printf (" %s mode, %s preprocessor errors, passes: %s%s%s%s%s%s\n\n", rinfo.is_pidl ? "pidl" : "", rinfo.show_cpp_errors ? "show" : "hide", cl_disable_stubs ? "" : "stubs ", cl_disable_skels ? "" : "skels ", cl_disable_common ? "" : "common ", cl_disable_headers ? "" : "headers ", cl_enable_skeleton_impl ? "skel_impl " : "", cl_enable_imodule ? "imodule" : ""); /* Do it */ for (i = 0; idl_files[i]; ++i) { g_print ("Processing file %s\n", idl_files[i]); rinfo.input_filename = idl_files[i]; if (!orbit_idl_to_backend(idl_files[i], &rinfo)) { g_warning("%s compilation failed", idl_files[i]); retval = 1; } } exit (retval); } ORBit2-2.14.19/src/idl-compiler/Makefile.am0000644000175000001440000000226111334247617015062 00000000000000bin_PROGRAMS = orbit-idl-2 orbit_backends_dir = $(libdir)/orbit-2.0/idl-backends INCLUDES = \ -I$(top_builddir) \ -I$(top_builddir)/include \ -I$(top_srcdir) \ -I$(top_srcdir)/include \ -DORBIT_BACKENDS_DIR="\"$(orbit_backends_dir)\"" \ -DVERSION=\"$(ORBIT_VERSION)\" \ -DORBIT2_INTERNAL_API \ $(WARN_CFLAGS) \ $(DISABLE_DEPRECATED_CFLAGS) \ $(ORBIT_IDL_CFLAGS) orbit_idl_2_LDADD = \ $(ORBIT_IDL_LIBS) \ $(LIBM) orbit_idl_2_SOURCES = \ orbit-idl-main.c \ orbit-idl-driver.c \ orbit-idl-backend.c \ orbit-idl-backend.h \ orbit-idl-utils.c \ orbit-idl2.h \ orbit-idl3-types.h \ orbit-idl-c-backend.h \ orbit-idl-c-backend.c \ orbit-idl-c-stubs.c \ orbit-idl-c-skels.c \ orbit-idl-c-headers.c \ orbit-idl-c-common.c \ orbit-idl-c-imodule.c \ orbit-idl-c-skelimpl.c \ orbit-idl-c-utils.c \ orbit-idl-c-typecode.c \ orbit-idl-c-deps.c \ orbit-idl2.h orbitidlincludedir = $(includedir)/orbit-2.0/orbit-idl orbitidlinclude_HEADERS = orbit-idl-backend.h pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = ORBit-idl-2.0.pc ORBit2-2.14.19/src/idl-compiler/Makefile.in0000644000175000001440000005570011450333733015073 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = orbit-idl-2$(EXEEXT) subdir = src/idl-compiler DIST_COMMON = $(orbitidlinclude_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/ORBit-idl-2.0.pc.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = ORBit-idl-2.0.pc CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkgconfigdir)" \ "$(DESTDIR)$(orbitidlincludedir)" PROGRAMS = $(bin_PROGRAMS) am_orbit_idl_2_OBJECTS = orbit-idl-main.$(OBJEXT) \ orbit-idl-driver.$(OBJEXT) orbit-idl-backend.$(OBJEXT) \ orbit-idl-utils.$(OBJEXT) orbit-idl-c-backend.$(OBJEXT) \ orbit-idl-c-stubs.$(OBJEXT) orbit-idl-c-skels.$(OBJEXT) \ orbit-idl-c-headers.$(OBJEXT) orbit-idl-c-common.$(OBJEXT) \ orbit-idl-c-imodule.$(OBJEXT) orbit-idl-c-skelimpl.$(OBJEXT) \ orbit-idl-c-utils.$(OBJEXT) orbit-idl-c-typecode.$(OBJEXT) \ orbit-idl-c-deps.$(OBJEXT) orbit_idl_2_OBJECTS = $(am_orbit_idl_2_OBJECTS) am__DEPENDENCIES_1 = orbit_idl_2_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(orbit_idl_2_SOURCES) DIST_SOURCES = $(orbit_idl_2_SOURCES) am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' DATA = $(pkgconfig_DATA) HEADERS = $(orbitidlinclude_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ orbit_backends_dir = $(libdir)/orbit-2.0/idl-backends INCLUDES = \ -I$(top_builddir) \ -I$(top_builddir)/include \ -I$(top_srcdir) \ -I$(top_srcdir)/include \ -DORBIT_BACKENDS_DIR="\"$(orbit_backends_dir)\"" \ -DVERSION=\"$(ORBIT_VERSION)\" \ -DORBIT2_INTERNAL_API \ $(WARN_CFLAGS) \ $(DISABLE_DEPRECATED_CFLAGS) \ $(ORBIT_IDL_CFLAGS) orbit_idl_2_LDADD = \ $(ORBIT_IDL_LIBS) \ $(LIBM) orbit_idl_2_SOURCES = \ orbit-idl-main.c \ orbit-idl-driver.c \ orbit-idl-backend.c \ orbit-idl-backend.h \ orbit-idl-utils.c \ orbit-idl2.h \ orbit-idl3-types.h \ orbit-idl-c-backend.h \ orbit-idl-c-backend.c \ orbit-idl-c-stubs.c \ orbit-idl-c-skels.c \ orbit-idl-c-headers.c \ orbit-idl-c-common.c \ orbit-idl-c-imodule.c \ orbit-idl-c-skelimpl.c \ orbit-idl-c-utils.c \ orbit-idl-c-typecode.c \ orbit-idl-c-deps.c \ orbit-idl2.h orbitidlincludedir = $(includedir)/orbit-2.0/orbit-idl orbitidlinclude_HEADERS = orbit-idl-backend.h pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = ORBit-idl-2.0.pc all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/idl-compiler/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/idl-compiler/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): ORBit-idl-2.0.pc: $(top_builddir)/config.status $(srcdir)/ORBit-idl-2.0.pc.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list orbit-idl-2$(EXEEXT): $(orbit_idl_2_OBJECTS) $(orbit_idl_2_DEPENDENCIES) @rm -f orbit-idl-2$(EXEEXT) $(LINK) $(orbit_idl_2_OBJECTS) $(orbit_idl_2_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-idl-backend.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-idl-c-backend.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-idl-c-common.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-idl-c-deps.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-idl-c-headers.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-idl-c-imodule.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-idl-c-skelimpl.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-idl-c-skels.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-idl-c-stubs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-idl-c-typecode.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-idl-c-utils.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-idl-driver.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-idl-main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-idl-utils.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-pkgconfigDATA: $(pkgconfig_DATA) @$(NORMAL_INSTALL) test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ done uninstall-pkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files install-orbitidlincludeHEADERS: $(orbitidlinclude_HEADERS) @$(NORMAL_INSTALL) test -z "$(orbitidlincludedir)" || $(MKDIR_P) "$(DESTDIR)$(orbitidlincludedir)" @list='$(orbitidlinclude_HEADERS)'; test -n "$(orbitidlincludedir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(orbitidlincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(orbitidlincludedir)" || exit $$?; \ done uninstall-orbitidlincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(orbitidlinclude_HEADERS)'; test -n "$(orbitidlincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(orbitidlincludedir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(orbitidlincludedir)" && rm -f $$files ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(DATA) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(orbitidlincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-orbitidlincludeHEADERS install-pkgconfigDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-orbitidlincludeHEADERS \ uninstall-pkgconfigDATA .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-orbitidlincludeHEADERS install-pdf install-pdf-am \ install-pkgconfigDATA install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-binPROGRAMS \ uninstall-orbitidlincludeHEADERS uninstall-pkgconfigDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/src/idl-compiler/orbit-idl-c-deps.c0000644000175000001440000000225511334247617016233 00000000000000/* * Copyright (C) 2001 Maciej Stachowiak, Ximian Inc. */ #include "config.h" #include "orbit-idl-c-backend.h" #include #include static void output_deps (IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { if (!tree) return; switch (IDL_NODE_TYPE (tree)) { case IDLN_SRCFILE: { char *idlfn = IDL_SRCFILE (tree).filename; fprintf (ci->fh, " \\\n\t%s", idlfn); break; } case IDLN_MODULE: output_deps (IDL_MODULE (tree).definition_list, rinfo, ci); break; case IDLN_LIST: { IDL_tree sub; for (sub = tree; sub; sub = IDL_LIST (sub).next) output_deps (IDL_LIST (sub).data, rinfo, ci); break; } case IDLN_INTERFACE: output_deps (IDL_INTERFACE (tree).body, rinfo, ci); break; default: break; } } void orbit_idl_output_c_deps (IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { int i; g_return_if_fail (ci->fh != NULL); for (i = 0; i < OUTPUT_NUM_PASSES - 1; i++) { char *name = orbit_idl_c_filename_for_pass ( rinfo->input_filename, 1 << i); fprintf (ci->fh, "%s ", name); g_free (name); } fprintf (ci->fh, ": "); output_deps (tree, rinfo, ci); fprintf (ci->fh, "\n"); } ORBit2-2.14.19/src/idl-compiler/orbit-idl-c-typecode.c0000644000175000001440000006142411334247617017117 00000000000000#include "orbit-idl-c-backend.h" #include typedef struct { IDL_tree ts; char *structname; char *substructname; int array_gen_ctr; } CBETCGenInfo; static int random_id = 0; static char *orbit_generate_tcstruct_name (IDL_tree ts); static void cbe_tc_generate (OIDL_C_Info *ci, CBETCGenInfo *tci); void orbit_output_typecode (OIDL_C_Info *ci, IDL_tree node) { CBETCGenInfo tci; switch (IDL_NODE_TYPE (node)) { case IDLN_TYPE_DCL: case IDLN_TYPE_STRUCT: case IDLN_TYPE_UNION: case IDLN_TYPE_ENUM: case IDLN_EXCEPT_DCL: case IDLN_TYPE_SEQUENCE: case IDLN_INTERFACE: break; default: g_error ("You can't produce a typecode for a %s", IDL_tree_type_names[IDL_NODE_TYPE (node)]); } tci.ts = node; tci.structname = orbit_generate_tcstruct_name (node); tci.substructname = NULL; tci.array_gen_ctr = 0; cbe_tc_generate (ci, &tci); g_free (tci.structname); } static char * orbit_generate_tcstruct_name (IDL_tree node) { GString *tmpstr; char *retval; tmpstr = g_string_new (NULL); switch (IDL_NODE_TYPE (node)) { case IDLN_TYPE_INTEGER: case IDLN_TYPE_ANY: case IDLN_TYPE_STRING: case IDLN_TYPE_WIDE_STRING: case IDLN_TYPE_CHAR: case IDLN_TYPE_WIDE_CHAR: case IDLN_TYPE_FLOAT: case IDLN_TYPE_BOOLEAN: case IDLN_TYPE_OCTET: case IDLN_TYPE_SEQUENCE: case IDLN_TYPE_STRUCT: case IDLN_TYPE_UNION: case IDLN_TYPE_ENUM: case IDLN_IDENT: case IDLN_EXCEPT_DCL: case IDLN_INTERFACE: case IDLN_FORWARD_DCL: case IDLN_TYPE_OBJECT: { char *typespec = orbit_cbe_get_typespec_str (node); g_string_printf (tmpstr, "TC_%s", typespec); g_free (typespec); } break; default: g_string_printf (tmpstr, "anonTC_%d", random_id++); break; } retval = tmpstr->str; g_string_free (tmpstr, FALSE); return retval; } static void orbit_output_tcstruct_anon_subnames_array (FILE *fh, IDL_tree node, int subnames_id) { IDL_tree l; switch (IDL_NODE_TYPE (node)) { case IDLN_TYPE_ENUM: if (!IDL_TYPE_ENUM (node).enumerator_list) break; fprintf (fh, "static const char *anon_subnames_array%d[] = {", subnames_id); for (l = IDL_TYPE_ENUM (node).enumerator_list; l; l = IDL_LIST (l).next) { g_assert (IDL_NODE_TYPE (IDL_LIST (l).data) == IDLN_IDENT); fprintf (fh, "\"%s\"", IDL_IDENT (IDL_LIST (l).data).str ); if (IDL_LIST (l).next) fprintf (fh, ", "); } fprintf (fh, "};\n"); break; case IDLN_EXCEPT_DCL: case IDLN_TYPE_STRUCT: if (!IDL_TYPE_STRUCT (node).member_list) break; fprintf (fh, "static const char *anon_subnames_array%d[] = {", subnames_id); for (l = IDL_TYPE_STRUCT (node).member_list; l; l = IDL_LIST (l).next) { IDL_tree dcl; g_assert (IDL_NODE_TYPE (IDL_LIST (l).data) == IDLN_MEMBER); for (dcl = IDL_MEMBER (IDL_LIST (l).data).dcls; dcl; dcl = IDL_LIST (dcl).next) { IDL_tree p = IDL_LIST (dcl).data; g_assert (IDL_NODE_TYPE (p) == IDLN_IDENT || IDL_NODE_TYPE (p) == IDLN_TYPE_ARRAY); if (IDL_NODE_TYPE (p) == IDLN_IDENT) fprintf (fh, "\"%s\"", IDL_IDENT (p).str); else /* IDLN_TYPE_ARRAY */ fprintf (fh, "\"%s\"", IDL_IDENT (IDL_TYPE_ARRAY (p).ident).str); if (IDL_LIST (dcl).next || IDL_LIST (l).next) fprintf (fh, ", "); } } fprintf (fh, "};\n"); break; case IDLN_TYPE_UNION: if (!IDL_TYPE_UNION (node).switch_body) break; fprintf (fh, "static const char * anon_subnames_array%d[] = {", subnames_id); for (l = IDL_TYPE_UNION (node).switch_body; l; l = IDL_LIST (l).next) { IDL_tree dcl, label; const char *subname; g_assert (IDL_NODE_TYPE (IDL_LIST (l).data) == IDLN_CASE_STMT); dcl = IDL_LIST (IDL_MEMBER ( IDL_CASE_STMT (IDL_LIST (l).data).element_spec).dcls).data; g_assert (IDL_NODE_TYPE (dcl) == IDLN_IDENT || IDL_NODE_TYPE (dcl) == IDLN_TYPE_ARRAY); if (IDL_NODE_TYPE (dcl) == IDLN_IDENT) subname = IDL_IDENT (dcl).str; else /* IDLN_TYPE_ARRAY */ subname = IDL_IDENT (IDL_TYPE_ARRAY (dcl).ident).str; /* output the name once for each label */ for (label = IDL_CASE_STMT (IDL_LIST (l).data).labels; label != NULL; label = IDL_LIST (label).next) { fprintf (fh, "\"%s\"", subname); if (IDL_LIST (label).next) fprintf (fh, ", "); } if (IDL_LIST (l).next) fprintf (fh, ", "); } fprintf (fh, "};\n"); break; default: break; } } static void orbit_output_tcstruct_anon_subtypes_array (FILE *fh, IDL_tree node, int subtypes_id, char *substructname) { IDL_tree l; switch (IDL_NODE_TYPE (node)) { case IDLN_EXCEPT_DCL: case IDLN_TYPE_STRUCT: if (!IDL_TYPE_STRUCT (node).member_list) break; fprintf (fh, "static ORBIT2_MAYBE_CONST CORBA_TypeCode anon_subtypes_array%d[] = {", subtypes_id); for (l = IDL_TYPE_STRUCT (node).member_list; l; l = IDL_LIST (l).next) { IDL_tree dcl; char *tmpstr; dcl = IDL_MEMBER (IDL_LIST (l).data).type_spec; switch (IDL_NODE_TYPE (dcl)) { case IDLN_IDENT: case IDLN_INTERFACE: case IDLN_TYPE_OBJECT: case IDLN_FORWARD_DCL: dcl = orbit_cbe_get_typespec (dcl); if (IDL_NODE_DECLSPEC (dcl) & IDLF_DECLSPEC_PIDL && (IDL_NODE_TYPE (dcl) == IDLN_INTERFACE || IDL_NODE_TYPE (dcl) == IDLN_FORWARD_DCL)) tmpstr = g_strdup ("Object"); else tmpstr = orbit_cbe_get_typespec_str ( IDL_MEMBER (IDL_LIST (l).data).type_spec); break; default: tmpstr = orbit_cbe_get_typespec_str ( IDL_MEMBER (IDL_LIST (l).data).type_spec); break; } g_assert (IDL_NODE_TYPE (IDL_LIST (l).data) == IDLN_MEMBER); for (dcl = IDL_MEMBER (IDL_LIST (l).data).dcls; dcl; dcl = IDL_LIST (dcl).next) { fprintf (fh, "(CORBA_TypeCode)&TC_%s_struct", tmpstr); if (IDL_LIST (dcl).next || IDL_LIST (l).next) fprintf (fh, ", "); } g_free (tmpstr); } fprintf (fh, "};\n"); break; case IDLN_TYPE_UNION: if (!IDL_TYPE_UNION (node).switch_body) break; fprintf (fh, "static ORBIT2_MAYBE_CONST CORBA_TypeCode anon_subtypes_array%d[] = {", subtypes_id); for (l = IDL_TYPE_UNION (node).switch_body; l; l = IDL_LIST (l).next) { IDL_tree label, dcl; char *tmpstr; g_assert (IDL_NODE_TYPE (IDL_LIST (l).data) == IDLN_CASE_STMT); dcl = IDL_MEMBER (IDL_CASE_STMT (IDL_LIST (l).data).element_spec).type_spec; switch (IDL_NODE_TYPE (orbit_cbe_get_typespec (dcl))) { case IDLN_INTERFACE: case IDLN_FORWARD_DCL: if (IDL_NODE_DECLSPEC (dcl) & IDLF_DECLSPEC_PIDL) tmpstr = g_strdup ( "Object"); else tmpstr = orbit_cbe_get_typespec_str (dcl); break; default: tmpstr = orbit_cbe_get_typespec_str (dcl); break; } for (label = IDL_CASE_STMT (IDL_LIST (l).data).labels; label; label = IDL_LIST (label).next) { fprintf (fh, "(CORBA_TypeCode)&TC_%s_struct", tmpstr); if (IDL_LIST (label).next || IDL_LIST (l).next) fprintf (fh, ", "); } g_free (tmpstr); } fprintf (fh, "};\n"); break; case IDLN_TYPE_SEQUENCE: { IDL_tree seqts; char *tmpstr; seqts = orbit_cbe_get_typespec (IDL_TYPE_SEQUENCE (node).simple_type_spec); fprintf (fh, "static ORBIT2_MAYBE_CONST CORBA_TypeCode anon_subtypes_array%d[] = ", subtypes_id); switch (IDL_NODE_TYPE (seqts)) { case IDLN_INTERFACE: case IDLN_FORWARD_DCL: if (IDL_NODE_DECLSPEC (seqts) && IDLF_DECLSPEC_PIDL) tmpstr = g_strdup ("Object"); else tmpstr = orbit_cbe_get_typespec_str ( IDL_TYPE_SEQUENCE (node).simple_type_spec); break; default: tmpstr = orbit_cbe_get_typespec_str ( IDL_TYPE_SEQUENCE (node).simple_type_spec); break; } fprintf (fh, "{(CORBA_TypeCode)&TC_%s_struct};\n", tmpstr); g_free (tmpstr); } break; case IDLN_TYPE_ARRAY: case IDLN_IDENT: fprintf (fh, "static ORBIT2_MAYBE_CONST CORBA_TypeCode anon_subtypes_array%d[] = ", subtypes_id); fprintf (fh, "{(CORBA_TypeCode)&%s_struct};\n", substructname); break; default: break; } } static int orbit_output_tcstruct_anon_sublabels_array (FILE *fh, IDL_tree node, int sublabels_id) { IDL_tree l, label; int index = 0; int default_index = -1; if (IDL_NODE_TYPE (node) != IDLN_TYPE_UNION || !IDL_TYPE_UNION (node).switch_body) return default_index; fprintf (fh, "static ORBIT2_MAYBE_CONST CORBA_long anon_sublabels_array%d[] = {", sublabels_id); for (l = IDL_TYPE_UNION (node).switch_body; l; l = IDL_LIST (l).next) for (label = IDL_CASE_STMT (IDL_LIST (l).data).labels; label; label = IDL_LIST (label).next, index++) { if (IDL_LIST (label).data) { fprintf (fh, "(CORBA_long) "); orbit_cbe_write_const (fh, IDL_LIST (label).data); } else { /* default case */ fprintf (fh, "-1"); default_index = index; } if (IDL_LIST (label).next || IDL_LIST (l).next) fprintf (fh, ", "); } fprintf (fh, "};\n"); return default_index; } static void orbit_output_tcstruct_parent (FILE *fh) { fprintf (fh, "{&ORBit_TypeCode_epv, ORBIT_REFCOUNT_STATIC}"); } static void orbit_output_tcstruct_kind (FILE *fh, IDL_tree node, int array_gen_ctr) { switch (IDL_NODE_TYPE (node)) { case IDLN_TYPE_ARRAY: if (array_gen_ctr) fprintf (fh, "CORBA_tk_array"); else fprintf (fh, "CORBA_tk_alias"); break; case IDLN_IDENT: fprintf (fh, "CORBA_tk_alias"); break; case IDLN_TYPE_STRUCT: fprintf (fh, "CORBA_tk_struct"); break; case IDLN_TYPE_UNION: fprintf (fh, "CORBA_tk_union"); break; case IDLN_TYPE_ENUM: fprintf (fh, "CORBA_tk_enum"); break; case IDLN_TYPE_OBJECT: case IDLN_INTERFACE: case IDLN_FORWARD_DCL: fprintf (fh, "CORBA_tk_objref"); break; case IDLN_EXCEPT_DCL: fprintf (fh, "CORBA_tk_except"); break; case IDLN_TYPE_INTEGER: fprintf (fh, "CORBA_tk_"); if (!IDL_TYPE_INTEGER (node).f_signed) fprintf (fh, "u"); switch (IDL_TYPE_INTEGER (node).f_type) { case IDL_INTEGER_TYPE_SHORT: fprintf (fh, "short"); break; case IDL_INTEGER_TYPE_LONG: fprintf (fh, "long"); break; case IDL_INTEGER_TYPE_LONGLONG: fprintf (fh, "longlong"); break; } break; case IDLN_TYPE_FLOAT: fprintf (fh, "CORBA_tk_"); switch (IDL_TYPE_FLOAT (node).f_type) { case IDL_FLOAT_TYPE_FLOAT: fprintf (fh, "float"); break; case IDL_FLOAT_TYPE_DOUBLE: fprintf (fh, "double"); break; case IDL_FLOAT_TYPE_LONGDOUBLE: fprintf (fh, "longdouble"); break; } break; case IDLN_TYPE_BOOLEAN: fprintf (fh, "CORBA_tk_boolean"); break; case IDLN_TYPE_OCTET: fprintf (fh, "CORBA_tk_octet"); break; case IDLN_TYPE_STRING: fprintf (fh, "CORBA_tk_string"); break; case IDLN_TYPE_WIDE_STRING: fprintf (fh, "CORBA_tk_wstring"); break; case IDLN_TYPE_CHAR: fprintf (fh, "CORBA_tk_char"); break; case IDLN_TYPE_WIDE_CHAR: fprintf (fh, "CORBA_tk_wchar"); break; case IDLN_TYPE_ANY: fprintf (fh, "CORBA_tk_any"); break; case IDLN_TYPE_SEQUENCE: fprintf (fh, "CORBA_tk_sequence"); break; default: g_message ("Type %s has no tk constant!", IDL_tree_type_names[IDL_NODE_TYPE (node)]); } } static void orbit_output_tcstruct_name (FILE *fh, IDL_tree node, int array_gen_ctr) { switch (IDL_NODE_TYPE (node)) { case IDLN_TYPE_STRUCT: fprintf (fh, "(char *)\"%s\"", IDL_IDENT (IDL_TYPE_STRUCT (node).ident).str); break; case IDLN_TYPE_UNION: fprintf (fh, "(char *)\"%s\"", IDL_IDENT (IDL_TYPE_UNION (node).ident).str); break; case IDLN_TYPE_ENUM: fprintf (fh, "(char *)\"%s\"", IDL_IDENT (IDL_TYPE_ENUM (node).ident).str); break; case IDLN_INTERFACE: case IDLN_FORWARD_DCL: fprintf (fh, "(char *)\"%s\"", IDL_IDENT (IDL_INTERFACE (node).ident).str); break; case IDLN_EXCEPT_DCL: fprintf (fh, "(char *)\"%s\"", IDL_IDENT (IDL_EXCEPT_DCL (node).ident).str); break; case IDLN_IDENT: fprintf (fh, "(char *)\"%s\"", IDL_IDENT (node).str); break; case IDLN_TYPE_ARRAY: if (!array_gen_ctr) fprintf (fh, "(char *)\"%s\"", IDL_IDENT (IDL_TYPE_ARRAY (node).ident).str); else fprintf (fh, "NULL"); break; default: fprintf (fh, "NULL"); break; } } static void orbit_output_tcstruct_repo_id (FILE *fh, IDL_tree node, int array_gen_ctr) { switch (IDL_NODE_TYPE (node)) { case IDLN_TYPE_STRUCT: fprintf (fh, "(char *)\"%s\"", IDL_IDENT (IDL_TYPE_STRUCT (node).ident).repo_id); break; case IDLN_TYPE_UNION: fprintf (fh, "(char *)\"%s\"", IDL_IDENT (IDL_TYPE_UNION (node).ident).repo_id); break; case IDLN_TYPE_ENUM: fprintf (fh, "(char *)\"%s\"", IDL_IDENT (IDL_TYPE_ENUM (node).ident).repo_id); break; case IDLN_INTERFACE: case IDLN_FORWARD_DCL: fprintf (fh, "(char *)\"%s\"", IDL_IDENT (IDL_INTERFACE (node).ident).repo_id); break; case IDLN_EXCEPT_DCL: fprintf (fh, "(char *)\"%s\"", IDL_IDENT (IDL_EXCEPT_DCL (node).ident).repo_id); break; case IDLN_IDENT: fprintf (fh, "(char *)\"%s\"", IDL_IDENT (node).repo_id); break; case IDLN_TYPE_ARRAY: if (!array_gen_ctr) fprintf (fh, "(char *)\"%s\"", IDL_IDENT (IDL_TYPE_ARRAY (node).ident).repo_id); else fprintf (fh, "NULL"); break; default: fprintf (fh, "NULL"); break; } } static void orbit_output_tcstruct_length (FILE *fh, IDL_tree node, int array_gen_ctr) { int length = 0; switch (IDL_NODE_TYPE (node)) { case IDLN_TYPE_SEQUENCE: if (IDL_TYPE_SEQUENCE (node).positive_int_const) length = IDL_INTEGER (IDL_TYPE_SEQUENCE (node).positive_int_const).value; break; case IDLN_TYPE_STRING: if (IDL_TYPE_STRING (node).positive_int_const) length = IDL_INTEGER (IDL_TYPE_STRING (node).positive_int_const).value; break; case IDLN_TYPE_WIDE_STRING: if (IDL_TYPE_WIDE_STRING (node).positive_int_const) length = IDL_INTEGER (IDL_TYPE_STRING (node).positive_int_const).value; break; case IDLN_TYPE_ARRAY: if (array_gen_ctr) { IDL_tree sizer; sizer = IDL_list_nth (IDL_TYPE_ARRAY (node).size_list, array_gen_ctr - 1); g_assert (IDL_NODE_TYPE (IDL_LIST (sizer).data) == IDLN_INTEGER); length = IDL_INTEGER (IDL_LIST (sizer).data).value; } break; default: length = 0; break; } fprintf (fh, "%d", length); } static void orbit_output_tcstruct_sub_parts (FILE *fh, IDL_tree node) { int length = 0; switch (IDL_NODE_TYPE (node)) { case IDLN_TYPE_STRUCT: case IDLN_EXCEPT_DCL: { IDL_tree l; for (l = IDL_TYPE_STRUCT (node).member_list; l; l = IDL_LIST (l).next) { IDL_tree member; member = IDL_LIST (l).data; g_assert (IDL_NODE_TYPE (member) == IDLN_MEMBER); length += IDL_list_length (IDL_MEMBER (member).dcls); } } break; case IDLN_TYPE_UNION: { IDL_tree l; for (l = IDL_TYPE_UNION (node).switch_body; l; l = IDL_LIST (l).next) { IDL_tree case_stmt; case_stmt = IDL_LIST (l).data; g_assert (IDL_NODE_TYPE (case_stmt) == IDLN_CASE_STMT); length += IDL_list_length (IDL_CASE_STMT (case_stmt).labels); } } break; case IDLN_TYPE_ENUM: length = IDL_list_length (IDL_TYPE_ENUM (node).enumerator_list); break; case IDLN_IDENT: case IDLN_TYPE_SEQUENCE: case IDLN_TYPE_ARRAY: length = 1; break; default: length = 0; break; } fprintf (fh, "%d\n", length); } static void orbit_output_tcstruct_subnames (FILE *fh, IDL_tree node, int subnames_id) { switch (IDL_NODE_TYPE (node)) { case IDLN_TYPE_ENUM: if (IDL_TYPE_ENUM (node).enumerator_list) fprintf (fh, "(char **)anon_subnames_array%d", subnames_id); else fprintf (fh, "NULL"); break; case IDLN_TYPE_UNION: if (IDL_TYPE_UNION (node).switch_body) fprintf (fh, "(char **)anon_subnames_array%d", subnames_id); else fprintf (fh, "NULL"); break; case IDLN_TYPE_STRUCT: case IDLN_EXCEPT_DCL: if (IDL_TYPE_STRUCT (node).member_list) fprintf (fh, "(char **)anon_subnames_array%d", subnames_id); else fprintf (fh, "NULL"); break; default: fprintf (fh, "NULL"); break; } } static void orbit_output_tcstruct_subtypes (FILE *fh, IDL_tree node, int subtypes_id) { switch (IDL_NODE_TYPE (node)) { case IDLN_EXCEPT_DCL: case IDLN_TYPE_STRUCT: if (IDL_TYPE_STRUCT (node).member_list) fprintf (fh, "(CORBA_TypeCode *)anon_subtypes_array%d", subtypes_id); else fprintf (fh, "NULL"); break; case IDLN_TYPE_UNION: if (IDL_TYPE_UNION (node).switch_body) fprintf (fh, "(CORBA_TypeCode *)anon_subtypes_array%d", subtypes_id); else fprintf (fh, "NULL"); break; case IDLN_TYPE_SEQUENCE: case IDLN_TYPE_ARRAY: case IDLN_IDENT: fprintf (fh, "(CORBA_TypeCode *)anon_subtypes_array%d", subtypes_id); break; default: fprintf (fh, "NULL"); break; } } static void orbit_output_tcstruct_sublabels (FILE *fh, IDL_tree node, int sublabels_id) { switch (IDL_NODE_TYPE (node)) { case IDLN_TYPE_UNION: fprintf (fh, "(CORBA_long *)anon_sublabels_array%d", sublabels_id); break; default: fprintf (fh, "NULL"); break; } } static void orbit_output_tcstruct_discriminator (FILE *fh, IDL_tree node) { switch (IDL_NODE_TYPE (node)) { case IDLN_TYPE_UNION: { char *switch_type_spec_str; switch_type_spec_str = orbit_cbe_get_typespec_str (IDL_TYPE_UNION (node).switch_type_spec); fprintf (fh, "(CORBA_TypeCode)&TC_%s_struct", switch_type_spec_str); g_free (switch_type_spec_str); } break; default: fprintf (fh, "CORBA_OBJECT_NIL"); break; } } static void orbit_output_tcstruct_recurse_depth (FILE *fh) { fprintf (fh, "0"); } static void orbit_output_tcstruct_default_index (FILE *fh, int union_default_index) { fprintf (fh, "%d", union_default_index); } static void orbit_output_tcstruct_digits_scale (FILE *fh, IDL_tree node) { if (IDL_NODE_TYPE (node) == IDLN_TYPE_FIXED) { fprintf (fh, "%" IDL_LL "d, %" IDL_LL "d" , IDL_INTEGER (IDL_TYPE_FIXED (node).positive_int_const).value, IDL_INTEGER (IDL_TYPE_FIXED (node).integer_lit).value); } else fprintf (fh, "0, 0"); } static void orbit_add_align (GSList **max, const char *str) { GSList *l; for (l = *max; l; l = l->next) { if (!strcmp (l->data, str)) return; } *max = g_slist_prepend (*max, (gpointer) str); } static GSList * orbit_find_c_align (GSList *max, IDL_tree node) { node = orbit_cbe_get_typespec (node); switch (IDL_NODE_TYPE (node)) { case IDLN_TYPE_INTEGER: switch (IDL_TYPE_INTEGER (node).f_type) { case IDL_INTEGER_TYPE_SHORT: orbit_add_align (&max, "ORBIT_ALIGNOF_CORBA_SHORT"); break; case IDL_INTEGER_TYPE_LONG: orbit_add_align (&max, "ORBIT_ALIGNOF_CORBA_LONG"); break; case IDL_INTEGER_TYPE_LONGLONG: orbit_add_align (&max, "ORBIT_ALIGNOF_CORBA_LONG_LONG"); break; } break; case IDLN_TYPE_FLOAT: switch (IDL_TYPE_FLOAT (node).f_type) { case IDL_FLOAT_TYPE_FLOAT: orbit_add_align (&max, "ORBIT_ALIGNOF_CORBA_FLOAT"); break; case IDL_FLOAT_TYPE_DOUBLE: orbit_add_align (&max, "ORBIT_ALIGNOF_CORBA_DOUBLE"); break; case IDL_FLOAT_TYPE_LONGDOUBLE: orbit_add_align (&max, "ORBIT_ALIGNOF_CORBA_LONG_DOUBLE"); break; } break; case IDLN_TYPE_ENUM: orbit_add_align (&max, "ORBIT_ALIGNOF_CORBA_LONG"); break; case IDLN_TYPE_CHAR: /* drop through */ case IDLN_TYPE_BOOLEAN: case IDLN_TYPE_OCTET: orbit_add_align (&max, "ORBIT_ALIGNOF_CORBA_CHAR"); break; case IDLN_TYPE_WIDE_CHAR: orbit_add_align (&max, "ORBIT_ALIGNOF_CORBA_SHORT"); break; case IDLN_TYPE_UNION: { IDL_tree l = IDL_TYPE_UNION (node).switch_body; orbit_add_align (&max, "ORBIT_ALIGNOF_CORBA_STRUCT"); for (; l; l = IDL_LIST (l).next) { IDL_tree subtype = IDL_MEMBER (IDL_CASE_STMT ( IDL_LIST (l).data).element_spec).type_spec; max = orbit_find_c_align (max, subtype); } break; } case IDLN_EXCEPT_DCL: /* drop through */ case IDLN_TYPE_STRUCT: { IDL_tree l = IDL_TYPE_STRUCT (node).member_list; for (; l; l = IDL_LIST (l).next) { IDL_tree member = IDL_MEMBER (IDL_LIST (l).data).type_spec; max = orbit_find_c_align (max, member); } break; } case IDLN_TYPE_STRING: /* drop through */ case IDLN_TYPE_WIDE_STRING: case IDLN_TYPE_OBJECT: case IDLN_TYPE_TYPECODE: case IDLN_FORWARD_DCL: case IDLN_INTERFACE: orbit_add_align (&max, "ORBIT_ALIGNOF_CORBA_POINTER"); break; case IDLN_TYPE_ARRAY: { IDL_tree subtype = IDL_TYPE_DCL ( IDL_get_parent_node (node, IDLN_TYPE_DCL, NULL)).type_spec; max = orbit_find_c_align (max, subtype); break; } case IDLN_TYPE_SEQUENCE: orbit_add_align (&max, "ORBIT_ALIGNOF_CORBA_STRUCT"); orbit_add_align (&max, "ORBIT_ALIGNOF_CORBA_LONG"); orbit_add_align (&max, "ORBIT_ALIGNOF_CORBA_POINTER"); break; case IDLN_TYPE_ANY: orbit_add_align (&max, "ORBIT_ALIGNOF_CORBA_STRUCT"); orbit_add_align (&max, "ORBIT_ALIGNOF_CORBA_POINTER"); break; default: g_error ("Can't find alignment %s\n", IDL_tree_type_names[IDL_NODE_TYPE (node)]); break; } return max; } static void orbit_output_tcstruct_c_align (FILE *fh, IDL_tree node) { GSList *max; GString *str = g_string_sized_new (120); max = orbit_find_c_align (NULL, node); if (!max) g_string_append (str, "1"); else if (!max->next) g_string_append (str, max->data); else { int i = 0; GSList *l; for (l = max; l; l = l->next) { g_string_append (str, "MAX ("); g_string_append (str, l->data); g_string_append (str, ", "); i++; } g_string_append (str, "1"); for (; i > 0; i--) g_string_append_c (str, ')'); } fprintf (fh, "%s", str->str); g_string_free (str, TRUE); } static void cbe_tc_generate (OIDL_C_Info *ci, CBETCGenInfo *tci) { CBETCGenInfo subtci; IDL_tree curitem; char *ctmp; int union_default_index = -1, subnames_id = random_id++, subtypes_id = random_id++, sublabels_id = random_id++; if (strncmp (tci->structname, "anon", 4)) { fprintf (ci->fh, "#if "); orbit_cbe_id_cond_hack (ci->fh, "TC_IMPL", tci->structname, ci->c_base_name); fprintf (ci->fh, " && !defined(TC_DEF_%s)\n", tci->structname); fprintf (ci->fh, "#define TC_DEF_%s 1\n", tci->structname); } if (IDL_NODE_TYPE (tci->ts) == IDLN_TYPE_DCL) { subtci = *tci; curitem = IDL_TYPE_DCL (tci->ts).type_spec; subtci.substructname = ctmp = orbit_generate_tcstruct_name (curitem); /* * The only type not already defined elsewhere * that can be in the left half of a TypeCode. */ if (IDL_NODE_TYPE (curitem) == IDLN_TYPE_SEQUENCE) { subtci.structname = ctmp; subtci.ts = curitem; cbe_tc_generate (ci, &subtci); } for (curitem = IDL_TYPE_DCL (tci->ts).dcls; curitem; curitem = IDL_LIST (curitem).next) { subtci.ts = IDL_LIST (curitem).data; if (IDL_NODE_TYPE (subtci.ts) == IDLN_TYPE_ARRAY) subtci.structname = orbit_generate_tcstruct_name ( IDL_TYPE_ARRAY (subtci.ts).ident); else subtci.structname = orbit_generate_tcstruct_name (subtci.ts); cbe_tc_generate (ci, &subtci); g_free (subtci.structname); } g_free (ctmp); return; } /* Do magic here - nesting of typecodes for arrays */ if (IDL_NODE_TYPE (tci->ts) == IDLN_TYPE_ARRAY && (IDL_list_length (IDL_TYPE_ARRAY (tci->ts).size_list) > tci->array_gen_ctr)) { curitem = IDL_list_nth (IDL_TYPE_ARRAY (tci->ts).size_list, tci->array_gen_ctr - 1); subtci = *tci; subtci.structname = ctmp = orbit_generate_tcstruct_name (curitem); subtci.array_gen_ctr++; cbe_tc_generate (ci, &subtci); tci->substructname = ctmp; /* FIXME: memory leak */ } orbit_output_tcstruct_anon_subnames_array (ci->fh, tci->ts, subnames_id); orbit_output_tcstruct_anon_subtypes_array (ci->fh, tci->ts, subtypes_id, tci->substructname); union_default_index = orbit_output_tcstruct_anon_sublabels_array ( ci->fh, tci->ts, sublabels_id); if (!strncmp (tci->structname, "anon", 4)) fprintf (ci->fh, "static "); else { fprintf (ci->fh, "#ifdef ORBIT_IDL_C_IMODULE_%s\n", ci->c_base_name); fprintf (ci->fh, "static\n"); fprintf (ci->fh, "#endif\n"); } fprintf (ci->fh, "ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct %s_struct = {\n", tci->structname); orbit_output_tcstruct_parent (ci->fh); fprintf (ci->fh, ",\n"); orbit_output_tcstruct_kind (ci->fh, tci->ts, tci->array_gen_ctr); fprintf (ci->fh, ",\n"); /* flags */ fprintf (ci->fh, "0,\n"); /* c_length */ fprintf (ci->fh, "0,\n"); orbit_output_tcstruct_c_align (ci->fh, tci->ts); fprintf (ci->fh, ",\n"); orbit_output_tcstruct_length (ci->fh, tci->ts, tci->array_gen_ctr); fprintf (ci->fh, ",\n"); orbit_output_tcstruct_sub_parts (ci->fh, tci->ts); fprintf (ci->fh, ",\n"); orbit_output_tcstruct_subtypes (ci->fh, tci->ts, subtypes_id); fprintf (ci->fh, ",\n"); orbit_output_tcstruct_discriminator (ci->fh, tci->ts); fprintf (ci->fh, ",\n"); orbit_output_tcstruct_name (ci->fh, tci->ts, tci->array_gen_ctr); fprintf (ci->fh, ",\n"); orbit_output_tcstruct_repo_id (ci->fh, tci->ts, tci->array_gen_ctr); fprintf (ci->fh, ",\n"); orbit_output_tcstruct_subnames (ci->fh, tci->ts, subnames_id); fprintf (ci->fh, ",\n"); orbit_output_tcstruct_sublabels (ci->fh, tci->ts, sublabels_id); fprintf (ci->fh, ",\n"); orbit_output_tcstruct_default_index (ci->fh, union_default_index); fprintf (ci->fh, ",\n"); orbit_output_tcstruct_recurse_depth (ci->fh); fprintf (ci->fh, ",\n"); orbit_output_tcstruct_digits_scale (ci->fh, tci->ts); fprintf (ci->fh, "\n};\n"); if (strncmp (tci->structname, "anon", 4)) fprintf (ci->fh, "#endif\n"); } ORBit2-2.14.19/src/idl-compiler/ORBit-idl-2.0.pc.in0000644000175000001440000000045211334247617016001 00000000000000prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ backendsdir=@libdir@/orbit-2.0/idl-backends Name: ORBit-idl-2.0 Description: ORBit-2.0 IDL Compiler Backend Interface Version: @ORBIT_VERSION@ Requires: libIDL-2.0 Libs: Cflags: -I${includedir}/orbit-2.0/orbit-idl ORBit2-2.14.19/src/idl-compiler/orbit-idl-c-skels.c0000644000175000001440000002103111334247617016412 00000000000000#include "config.h" #include "orbit-idl-c-backend.h" #include typedef struct { OIDL_C_Info *ci; GSList *oplist; int curlevel; } CBESkelInterfaceTraverseInfo; typedef struct { char *iface_id; char *opname; IDL_tree op; int idx; } CBESkelOpInfo; static void cbe_skel_do_interface(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci); static void ck_output_poastuff(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { if( !tree || (tree->declspec & IDLF_DECLSPEC_PIDL)!=0 ) return; switch(IDL_NODE_TYPE(tree)) { case IDLN_MODULE: ck_output_poastuff(IDL_MODULE(tree).definition_list, rinfo, ci); break; case IDLN_LIST: { IDL_tree sub; for(sub = tree; sub; sub = IDL_LIST(sub).next) { ck_output_poastuff(IDL_LIST(sub).data, rinfo, ci); } } break; case IDLN_INTERFACE: cbe_skel_do_interface(tree, rinfo, ci); break; default: break; } } static gint cbe_skel_compare_op_dcls(CBESkelOpInfo *op1, CBESkelOpInfo *op2) { return strcmp(op1->opname, op2->opname); } static void cbe_skel_free_op_info(CBESkelOpInfo *op) { g_free(op->opname); g_free(op->iface_id); g_free(op); } static void cbe_skel_interface_add_relayer (IDL_tree intf, CBESkelInterfaceTraverseInfo *iti) { CBESkelOpInfo *newopi; IDL_tree curitem, curdcl, curattr, curattrdcl; char *iface_id; int idx = 0; iface_id = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_INTERFACE(intf).ident), "_", 0); for(curitem = IDL_INTERFACE(intf).body; curitem; curitem = IDL_LIST(curitem).next) { curdcl = IDL_LIST(curitem).data; switch(IDL_NODE_TYPE(curdcl)) { case IDLN_OP_DCL: newopi = g_new0(CBESkelOpInfo, 1); newopi->iface_id = g_strdup(iface_id); newopi->opname = g_strdup(IDL_IDENT(IDL_OP_DCL(curdcl).ident).str); newopi->idx = idx++; iti->oplist = g_slist_insert_sorted(iti->oplist, newopi, (GCompareFunc)cbe_skel_compare_op_dcls); break; case IDLN_ATTR_DCL: for(curattr = IDL_ATTR_DCL(curdcl).simple_declarations; curattr; curattr = IDL_LIST(curattr).next) { curattrdcl = IDL_LIST(curattr).data; newopi = g_new0(CBESkelOpInfo, 1); newopi->iface_id = g_strdup(iface_id); newopi->opname = g_strdup_printf("_get_%s", IDL_IDENT(curattrdcl).str); newopi->idx = idx++; iti->oplist = g_slist_insert_sorted(iti->oplist, newopi, (GCompareFunc)cbe_skel_compare_op_dcls); if(!IDL_ATTR_DCL(curdcl).f_readonly) { newopi = g_new0(CBESkelOpInfo, 1); newopi->iface_id = g_strdup(iface_id); newopi->opname = g_strdup_printf("_set_%s", IDL_IDENT(curattrdcl).str); newopi->idx = idx++; iti->oplist = g_slist_insert_sorted(iti->oplist, newopi, (GCompareFunc)cbe_skel_compare_op_dcls); } } break; default: break; } } g_free(iface_id); } static void cbe_skel_interface_print_relayers(const CBESkelInterfaceTraverseInfo *iti) { CBESkelInterfaceTraverseInfo subiti = *iti; GSList *curnode; CBESkelOpInfo *opi; char curchar; curnode = iti->oplist; subiti.curlevel = iti->curlevel+1; fprintf(iti->ci->fh, "switch(opname[%d]) {\n", iti->curlevel); while(curnode) { opi = (CBESkelOpInfo *)curnode->data; if(iti->curlevel > strlen(opi->opname)) { curnode = g_slist_next(curnode); continue; } curchar = opi->opname[iti->curlevel]; if(curchar) fprintf(iti->ci->fh, "case '%c':\n", curchar); else fprintf(iti->ci->fh, "case '\\0':\n"); subiti.oplist = NULL; while(curnode && ((CBESkelOpInfo *)curnode->data)->opname[iti->curlevel] == curchar) { subiti.oplist = g_slist_append(subiti.oplist, curnode->data); curnode = g_slist_next(curnode); } if(g_slist_length(subiti.oplist) > 1) { if(curchar) cbe_skel_interface_print_relayers(&subiti); else g_error("two ops with same name!!!!"); } else { if(strlen(opi->opname + iti->curlevel)) fprintf(iti->ci->fh, "if(strcmp((opname + %d), \"%s\")) break;\n", iti->curlevel + 1, opi->opname + iti->curlevel+1); fprintf(iti->ci->fh, "*impl = (gpointer)servant->vepv->%s_epv->%s;\n", opi->iface_id, opi->opname); fprintf(iti->ci->fh, "{ORBit_IInterface *volatile _t_=&%s__iinterface;*m_data = (gpointer)&_t_->methods._buffer [%d];}\n", opi->iface_id, opi->idx); fprintf(iti->ci->fh, "return (ORBitSmallSkeleton)_ORBIT_skel_small_%s_%s;\n", opi->iface_id, opi->opname); } fprintf(iti->ci->fh, "break;\n"); g_slist_free(subiti.oplist); } fprintf(iti->ci->fh, "default: break; \n}\n"); } static void cbe_skel_interface_print_relayer(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { char *id; CBESkelInterfaceTraverseInfo iti; id = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_INTERFACE(tree).ident), "_", 0); fprintf(ci->fh, "static ORBitSmallSkeleton get_skel_small_%s(POA_%s *servant,\nconst char *opname," "gpointer *m_data, gpointer *impl)\n{\n", id, id); iti.ci = ci; iti.oplist = NULL; iti.curlevel = 0; IDL_tree_traverse_parents(tree, (GFunc)cbe_skel_interface_add_relayer, &iti); cbe_skel_interface_print_relayers(&iti); g_slist_foreach(iti.oplist, (GFunc)cbe_skel_free_op_info, NULL); g_slist_free(iti.oplist); fprintf(ci->fh, "return NULL;\n"); fprintf(ci->fh, "}\n\n"); g_free(id); } typedef struct { OIDL_C_Info *ci; const char *for_id; } CBESkelVEPVMapTraverseInfo; static void cbe_skel_interface_print_vepvmap_offsets (IDL_tree node, CBESkelVEPVMapTraverseInfo *ti) { char *id; id = IDL_ns_ident_to_qstring (IDL_IDENT_TO_NS (IDL_INTERFACE (node).ident), "_", 0); fprintf (ti->ci->fh, "(CORBA_unsigned_long) %s__classid,\n", id); fprintf (ti->ci->fh, "ORBIT_VEPV_OFFSET (POA_%s__vepv, %s_epv),\n", ti->for_id, id); g_free (id); } static void cbe_skel_do_interface(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { char *id, *id2; IDL_tree curitem, pnt; int i; CBESkelVEPVMapTraverseInfo ti; /* PIDL methods dont have normal skel functions. */ for ( pnt=tree; pnt; pnt=IDL_NODE_UP(pnt) ) { if ( pnt->declspec & IDLF_DECLSPEC_PIDL ) return; } id = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_INTERFACE(tree).ident), "_", 0); cbe_skel_interface_print_relayer(tree, rinfo, ci); fprintf(ci->fh, "void POA_%s__init(PortableServer_Servant servant,\nCORBA_Environment *env)\n", id); fprintf(ci->fh, "{\n"); fprintf(ci->fh," static PortableServer_ClassInfo class_info = {"); fprintf(ci->fh, "NULL, (ORBit_small_impl_finder)&get_skel_small_%s, ", id); fprintf(ci->fh,"\"%s\", &%s__classid, NULL, &%s__iinterface};\n", IDL_IDENT(IDL_INTERFACE(tree).ident).repo_id, id, id); fprintf(ci->fh," PortableServer_ServantBase__init (" " ((PortableServer_ServantBase *)servant), env);\n"); for(curitem = IDL_INTERFACE(tree).inheritance_spec; curitem; curitem = IDL_LIST(curitem).next) { id2 = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_LIST(curitem).data), "_", 0); fprintf(ci->fh, " POA_%s__init(servant, env);\n", id2); g_free(id2); } /* registering after other __inits() makes the classids increment nicely. */ fprintf (ci->fh, " ORBit_skel_class_register (&class_info,\n"); fprintf (ci->fh, " (PortableServer_ServantBase *)servant, POA_%s__fini,\n", id); fprintf (ci->fh, " ORBIT_VEPV_OFFSET (POA_%s__vepv, %s_epv),\n", id, id); ti.for_id = id; ti.ci = ci; IDL_tree_traverse_parents_full (tree, (GFunc) cbe_skel_interface_print_vepvmap_offsets, &ti, FALSE); fprintf (ci->fh, " (CORBA_unsigned_long) 0);"); fprintf(ci->fh, "}\n\n"); fprintf(ci->fh, "void POA_%s__fini(PortableServer_Servant servant,\nCORBA_Environment *env)\n", id); fprintf(ci->fh, "{\n"); if(IDL_INTERFACE(tree).inheritance_spec) { for(i = IDL_list_length(IDL_INTERFACE(tree).inheritance_spec) - 1; i >= 0; i--) { curitem = IDL_list_nth(IDL_INTERFACE(tree).inheritance_spec, i); id2 = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_LIST(curitem).data), "_", 0); /* XXX fixme - this is going to call ServantBase__fini multiple times */ fprintf(ci->fh, " POA_%s__fini(servant, env);\n", id2); g_free(id2); } } fprintf(ci->fh, " PortableServer_ServantBase__fini(servant, env);\n"); fprintf(ci->fh, "}\n\n"); g_free(id); } void orbit_idl_output_c_skeletons (IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { fprintf (ci->fh, OIDL_C_WARNING); fprintf (ci->fh, "#include \n"); fprintf (ci->fh, "#define ORBIT2_STUBS_API\n"); fprintf (ci->fh, "#include \"%s.h\"\n\n", ci->base_name); ck_output_poastuff (tree, rinfo, ci); } ORBit2-2.14.19/src/idl-compiler/orbit-idl-c-backend.c0000644000175000001440000000725211334247617016671 00000000000000#include "config.h" #include "orbit-idl-c-backend.h" #include #include #include #include #include #include #include static FILE *out_for_pass(const char *input_filename, int pass, OIDL_Run_Info *rinfo); gboolean orbit_idl_output_c (IDL_tree tree, OIDL_Run_Info *rinfo) { int i; char *ctmp; OIDL_C_Info ci; ci.base_name = g_path_get_basename(rinfo->input_filename); ctmp = strrchr(ci.base_name, '.'); g_assert(ctmp); *ctmp = '\0'; ci.c_base_name = g_strdup(ci.base_name); if(!isalpha((guchar)ci.c_base_name[0])) ci.c_base_name[0] = '_'; for(i = 0; ci.c_base_name[i]; i++) { if(!isalnum((guchar)ci.c_base_name[i])) ci.c_base_name[i] = '_'; } ci.ext_dcls = g_string_new(NULL); ci.do_impl_hack = 1; ci.do_skel_defs = rinfo->do_skel_defs; for(i = 0; i < OUTPUT_NUM_PASSES; i++) { if( (1 << i) & rinfo->enabled_passes) { ci.fh = out_for_pass(rinfo->input_filename, 1 << i, rinfo); switch(1 << i) { case OUTPUT_STUBS: orbit_idl_output_c_stubs(tree, rinfo, &ci); break; case OUTPUT_SKELS: orbit_idl_output_c_skeletons(tree, rinfo, &ci); break; case OUTPUT_COMMON: orbit_idl_output_c_common(tree, rinfo, &ci); break; case OUTPUT_HEADERS: orbit_idl_output_c_headers(tree, rinfo, &ci); break; case OUTPUT_SKELIMPL: orbit_idl_output_c_skelimpl(tree, rinfo, &ci); break; case OUTPUT_IMODULE: orbit_idl_output_c_imodule(tree, rinfo, &ci); break; case OUTPUT_DEPS: orbit_idl_output_c_deps(tree, rinfo, &ci); break; } fclose(ci.fh); } } g_string_free(ci.ext_dcls,TRUE); return TRUE; } char * orbit_idl_c_filename_for_pass (const char *input_filename, int pass) { char *filename; char *basename; char *dot; const char *tack_on = NULL; basename = g_path_get_basename (input_filename); dot = strrchr (basename, '.'); if (dot != NULL) *dot = '\0'; switch (pass) { case OUTPUT_STUBS: tack_on = "-stubs.c"; break; case OUTPUT_SKELS: tack_on = "-skels.c"; break; case OUTPUT_COMMON: tack_on = "-common.c"; break; case OUTPUT_HEADERS: tack_on = ".h"; break; case OUTPUT_SKELIMPL: tack_on = "-skelimpl.c"; break; case OUTPUT_IMODULE: tack_on = "-imodule.c"; break; default: g_error("Unknown output pass"); break; } filename = g_strconcat (basename, tack_on, NULL); g_free (basename); return filename; } static FILE * out_for_pass (const char *input_filename, int pass, OIDL_Run_Info *rinfo) { FILE *fp; char *output_filename; gchar *output_full_path = NULL; if ((strlen(rinfo->output_directory)) && (!g_file_test (rinfo->output_directory, G_FILE_TEST_IS_DIR))) { g_error ("ouput directory '%s' does not exist", rinfo->output_directory); return NULL; } if (pass == OUTPUT_DEPS) { if (!g_file_test (".deps", G_FILE_TEST_IS_DIR)) { if (g_mkdir (".deps", 0775) < 0) { g_warning ("failed to create '.deps' directory '%s'", g_strerror (errno)); return NULL; } } if (rinfo->deps_file) fp = g_fopen (rinfo->deps_file, "w"); else fp = NULL; if (fp == NULL) g_warning ("failed to open '%s': %s\n", rinfo->deps_file, g_strerror (errno)); } else { output_filename = orbit_idl_c_filename_for_pass (input_filename, pass); output_full_path = g_build_path (G_DIR_SEPARATOR_S, rinfo->output_directory, output_filename, NULL); g_free (output_filename); fp = g_fopen (output_full_path, "w+"); if (fp == NULL) g_error ("failed to fopen '%s': %s\n", output_full_path, g_strerror(errno)); g_free (output_full_path); } return fp; } ORBit2-2.14.19/src/idl-compiler/orbit-idl3-types.h0000644000175000001440000000205411334247617016311 00000000000000#ifndef ORBIT_IDL3_TYPES_H #define ORBIT_IDL3_TYPES_H 1 #include #include #include #include #include typedef struct _OIDL_Marshal_Context OIDL_Marshal_Context; #define OUTPUT_NUM_PASSES 7 typedef struct { char *cpp_args; int debug_level; int idl_warn_level; int show_cpp_errors; int is_pidl; int do_skel_defs; /* gen defs within the header file */ enum { OUTPUT_STUBS=1<<0, OUTPUT_SKELS=1<<1, OUTPUT_COMMON=1<<2, OUTPUT_HEADERS=1<<3, OUTPUT_SKELIMPL=1<<4, OUTPUT_IMODULE=1<<5, OUTPUT_DEPS=1<<6 /* Make sure this is always the last pass or dep output will break. */ } enabled_passes; char *output_language; char *input_filename; char *backend_directory; char *deps_file; char *header_guard_prefix; char *output_directory; gboolean onlytop; gboolean idata; IDL_ns ns; /* Use ns instead of namespace because that's a C++ reserved keyword */ } OIDL_Run_Info; typedef struct { IDL_tree op1; IDL_tree op2; } OIDL_Attr_Info; #endif ORBit2-2.14.19/src/idl-compiler/orbit-idl-backend.h0000644000175000001440000000374311334247617016457 00000000000000/* * orbit-idl-backend.h: * * Copyright (C) 2002 Sun Microsystems, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. * * Authors: * Mark McLoughlin */ #ifndef __ORBIT_IDL_BACKEND_H__ #define __ORBIT_IDL_BACKEND_H__ #include #include G_BEGIN_DECLS typedef struct { IDL_tree tree; char *filename; guint do_stubs : 1; guint do_skels : 1; guint do_common : 1; } ORBitIDLBackendContext; /* Define a function with this signature and named "orbit_idl_backend_func" * in the module. * * The module should be named libORBit-idl-backend-$(language).so. $(language) * is defined with the --lang idl-compiler command line option. * * Modules are searched for in the following order: * 1. The directory specified by the --backenddir option. * 2. %(prefix)/lib/orbit-2.0/idl-backends/, where $(prefix) is the prefix * ORBit2 was installed in. * 3. For each $(path) in the $ORBIT_BACKENDS_PATH environment variable, * the module is searched for in $(path)/lib/orbit-2.0/idl-backends/ * 4. For each $(path) in the $GNOME2_PATH environment variable, * the module is searched for in $(path)/lib/orbit-2.0/idl-backends/ */ typedef gboolean (*ORBitIDLBackendFunc) (ORBitIDLBackendContext *context); G_END_DECLS #endif ORBit2-2.14.19/src/idl-compiler/orbit-idl-c-common.c0000644000175000001440000003540211334247617016570 00000000000000#include "config.h" #include "orbit-idl-c-backend.h" #include typedef struct { IDL_tree tree; GSList *methods; /* IDLN_OP_DCLs */ } Interface; typedef struct { FILE *of; IDL_tree cur_node; /* Current Interface */ char *cur_id; guint parents; } CCSmallInterfaceTraverseInfo; /* TypeCodes */ static void cc_output_typecodes (IDL_tree tree, OIDL_C_Info *ci); static void cc_typecode_prep_sequence (IDL_tree tree, OIDL_C_Info *ci) { IDL_tree seq_type; IDL_tree fake_seq_type = NULL; char *type_str; char *seq_type_str; seq_type = orbit_cbe_get_typespec (IDL_TYPE_SEQUENCE (tree).simple_type_spec); if (IDL_NODE_TYPE (seq_type) != IDLN_INTERFACE) seq_type_str = orbit_cbe_get_typespec_str (seq_type); else { seq_type_str = g_strdup ("CORBA_Object"); fake_seq_type = IDL_type_object_new (); } type_str = orbit_cbe_get_typespec_str (IDL_TYPE_SEQUENCE (tree).simple_type_spec); if (strcmp (type_str, seq_type_str)) { IDL_tree fake_seq; fake_seq = IDL_type_sequence_new ( fake_seq_type ? fake_seq_type : seq_type, NULL); IDL_NODE_UP (fake_seq) = IDL_NODE_UP (tree); cc_output_typecodes (fake_seq, ci); IDL_TYPE_SEQUENCE (fake_seq).simple_type_spec = NULL; IDL_tree_free (fake_seq); } if (fake_seq_type) IDL_tree_free (fake_seq_type); g_free (type_str); g_free (seq_type_str); } static gboolean cc_output_tc_walker (IDL_tree_func_data *tfd, OIDL_C_Info *ci) { IDL_tree tree = tfd->tree; switch(IDL_NODE_TYPE (tree)) { case IDLN_CONST_DCL: case IDLN_ATTR_DCL: case IDLN_OP_DCL: return FALSE; /* dont recurse into these */ case IDLN_TYPE_SEQUENCE: if (!tfd->step) { cc_typecode_prep_sequence (tree, ci); break; } /* drop through */ case IDLN_INTERFACE: case IDLN_EXCEPT_DCL: case IDLN_TYPE_STRUCT: case IDLN_TYPE_UNION: case IDLN_TYPE_DCL: case IDLN_TYPE_ENUM: case IDLN_TYPE_FIXED: if (tfd->step) orbit_output_typecode (ci, tree); break; default: break; } return TRUE; /* continue walking */ } static void cc_output_typecodes (IDL_tree tree, OIDL_C_Info *ci) { IDL_tree_walk2 (tree, NULL, IDL_WalkF_TypespecOnly, (IDL_tree_func) cc_output_tc_walker, (IDL_tree_func) cc_output_tc_walker, ci); } /* class ids */ static void cc_output_class_id (IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { char *iface_id; iface_id = IDL_ns_ident_to_qstring ( IDL_IDENT_TO_NS (IDL_INTERFACE (tree).ident), "_", 0); fprintf (ci->fh, "\n#ifndef ORBIT_IDL_C_IMODULE_%s\n",ci->c_base_name); fprintf (ci->fh, "CORBA_unsigned_long %s__classid = 0;\n", iface_id); fprintf (ci->fh, "#endif\n"); g_free (iface_id); } static void cc_output_class_ids (IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { if (!tree || (tree->declspec & IDLF_DECLSPEC_PIDL)) return; switch (IDL_NODE_TYPE (tree)) { case IDLN_MODULE: cc_output_class_ids (IDL_MODULE (tree).definition_list, rinfo, ci); break; case IDLN_LIST: { IDL_tree node; for (node = tree; node; node = IDL_LIST (node).next) cc_output_class_ids (IDL_LIST (node).data, rinfo, ci); break; } case IDLN_INTERFACE: cc_output_class_id (tree, rinfo, ci); break; default: break; } } /* IInterfaces */ static void cc_output_iargs (FILE *of, const char *method, IDL_tree tree) { IDL_tree sub; int arg_count = 0; /* Build a list of IArgs */ for (sub = IDL_OP_DCL (tree).parameter_dcls; sub; sub = IDL_LIST (sub).next) { IDL_tree parm; char *tc; if (!arg_count) fprintf (of, "static ORBit_IArg %s__arginfo [] = {\n", method); parm = IDL_LIST(sub).data; fprintf (of, "\t{ "); /* TypeCode tc */ tc = orbit_cbe_get_typecode_name ( IDL_PARAM_DCL (parm).param_type_spec); if (!tc) { g_warning ("Can't get typecode"); tc = g_strdup ("NULL /* no typecode */"); } fprintf (of, "%s, ", tc); /* IArgFlag flags */ switch (IDL_PARAM_DCL (parm).attr) { case IDL_PARAM_IN: fprintf (of, " ORBit_I_ARG_IN "); break; case IDL_PARAM_OUT: fprintf (of, " ORBit_I_ARG_OUT "); break; case IDL_PARAM_INOUT: fprintf (of, " ORBit_I_ARG_INOUT "); break; } if (orbit_cbe_type_is_fixed_length ( IDL_PARAM_DCL (parm).param_type_spec)) fprintf (of, "| ORBit_I_COMMON_FIXED_SIZE"); else if (IDL_PARAM_DCL(parm).attr == IDL_PARAM_OUT) { IDL_tree ts = orbit_cbe_get_typespec ( IDL_PARAM_DCL (parm).param_type_spec); switch(IDL_NODE_TYPE (ts)) { case IDLN_TYPE_STRUCT: case IDLN_TYPE_UNION: case IDLN_TYPE_ARRAY: /* fprintf (of, "| ORBIT_I_ARG_FIXED");*/ break; default: break; }; } fprintf (of, ", "); /* string name */ fprintf (of, "(char *)\"%s\"", IDL_IDENT (IDL_PARAM_DCL ( IDL_LIST (sub).data).simple_declarator).str); fprintf (of, " }%s\n", IDL_LIST (sub).next ? "," : ""); g_free (tc); arg_count++; } if (arg_count) fprintf (of, "};\n"); } static void cc_output_contexts (FILE *of, const char *method, IDL_tree tree) { /* Build a list of contest names */ if (IDL_OP_DCL (tree).context_expr) { IDL_tree curitem; fprintf (of, "/* Exceptions */\n"); fprintf (of, "static CORBA_string %s__contextinfo [] = {\n", method); for (curitem = IDL_OP_DCL (tree).context_expr; curitem; curitem = IDL_LIST (curitem).next) { fprintf (of, "\"%s\"%c", IDL_STRING (IDL_LIST (curitem).data).value, IDL_LIST (curitem).next ? ',' : ' '); } fprintf (of, "};\n"); } } static void cc_output_exceptinfo (FILE *of, const char *method, IDL_tree tree) { /* Build a list of exception typecodes */ if (IDL_OP_DCL (tree).raises_expr) { IDL_tree curitem; fprintf (of, "/* Exceptions */\n"); fprintf (of, "static CORBA_TypeCode %s__exceptinfo [] = {\n", method); for (curitem = IDL_OP_DCL (tree).raises_expr; curitem; curitem = IDL_LIST(curitem).next) { char *type_id; IDL_tree curnode = IDL_LIST(curitem).data; type_id = orbit_cbe_get_typecode_name (curnode); fprintf (of, "\t%s,\n", type_id); g_free (type_id); } fprintf (of, "\tNULL\n};\n"); } } static void cc_output_method_bits (IDL_tree tree, const char *id, OIDL_C_Info *ci) { FILE *of = ci->fh; char *fullname; fullname = g_strconcat (id, "_", IDL_IDENT ( IDL_OP_DCL (tree).ident).str, NULL); cc_output_iargs (of, fullname, tree); cc_output_contexts (of, fullname, tree); cc_output_exceptinfo (of, fullname, tree); g_free (fullname); } static void cc_output_method (FILE *of, IDL_tree tree, const char *id) { int arg_count; int except_count; int context_count; const char *method; char *fullname; fullname = g_strconcat (id, "_", IDL_IDENT ( IDL_OP_DCL (tree).ident).str, NULL); arg_count = IDL_list_length (IDL_OP_DCL (tree).parameter_dcls); except_count = IDL_list_length (IDL_OP_DCL (tree).raises_expr); context_count = IDL_list_length (IDL_OP_DCL (tree).context_expr); fprintf (of, "\t{\n"); /* IArgs arguments */ if (arg_count) fprintf (of, "\t\t{ %d, %d, %s__arginfo, FALSE },\n", arg_count, arg_count, fullname); else fprintf (of, "\t\t{ 0, 0, NULL, FALSE },\n"); /* IContexts contexts */ if (context_count) fprintf (of, "\t\t{ %d, %d, %s__contextinfo, FALSE },\n", context_count, context_count, fullname); else fprintf (of, "\t\t{ 0, 0, NULL, FALSE },\n"); /* ITypes exceptions */ if (IDL_OP_DCL (tree).raises_expr) fprintf (of, "\t\t{ %d, %d, %s__exceptinfo, FALSE },\n", except_count, except_count, fullname); else fprintf (of, "\t\t{ 0, 0, NULL, FALSE },\n"); /* TypeCode ret */ if (IDL_OP_DCL (tree).op_type_spec) { char *type_id; type_id = orbit_cbe_get_typespec_str ( IDL_OP_DCL (tree).op_type_spec); fprintf (of, "\t\tTC_%s, ", type_id); g_free (type_id); } else fprintf (of, "TC_void, "); /* string name, long name_len */ method = IDL_IDENT (IDL_OP_DCL (tree).ident).str; fprintf (of, "(char *)\"%s\", %d,\n", method, strlen (method)); /* IMethodFlags flags */ fprintf (of, "\t\t0"); if (IDL_OP_DCL(tree).f_oneway) fprintf (of, " | ORBit_I_METHOD_1_WAY"); /* FIXME: re-scan for no_out */ /* if (no_out) fprintf (of, " | ORBit_I_METHOD_NO_OUT");*/ if (IDL_OP_DCL (tree).op_type_spec && orbit_cbe_type_is_fixed_length ( IDL_OP_DCL (tree).op_type_spec)) fprintf (of, "| ORBit_I_COMMON_FIXED_SIZE"); if (IDL_OP_DCL(tree).context_expr) fprintf (of, "| ORBit_I_METHOD_HAS_CONTEXT"); fprintf (of, "\n}\n"); g_free (fullname); } static void cc_output_base_itypes(IDL_tree node, CCSmallInterfaceTraverseInfo *iti) { if (iti->cur_node == node) return; fprintf (iti->of, "(char *)\"%s\",\n", IDL_IDENT(IDL_INTERFACE(node).ident).repo_id); iti->parents++; } static void cc_output_itypes (GSList *list, OIDL_C_Info *ci) { GSList *l; FILE *of = ci->fh; for (l = list; l; l = l->next) { CCSmallInterfaceTraverseInfo iti; Interface *i = l->data; char *id; GSList *m; id = IDL_ns_ident_to_qstring (IDL_IDENT_TO_NS ( IDL_INTERFACE (i->tree).ident), "_", 0); for (m = i->methods; m; m = m->next) cc_output_method_bits (m->data, id, ci); if (i->methods) { fprintf (of, "\n#ifdef ORBIT_IDL_C_IMODULE_%s\n", ci->c_base_name); fprintf (of, "static\n"); fprintf (of, "#endif\n"); fprintf (of, "ORBit_IMethod %s__imethods [] = {\n", id); if (!(m = i->methods)) fprintf (of, "{{0}}"); else for (; m; m = m->next) { cc_output_method (of, m->data, id); if (m->next) fprintf(of, ", "); } fprintf (of, "};\n\n"); } fprintf (of, "static CORBA_string %s__base_itypes[] = {\n", id); iti.of = of; iti.cur_node = i->tree; iti.cur_id = id; iti.parents = 0; IDL_tree_traverse_parents(i->tree, (GFunc)cc_output_base_itypes, &iti); fprintf (of, "(char *)\"IDL:omg.org/CORBA/Object:1.0\"\n};"); fprintf (of, "\n#ifdef ORBIT_IDL_C_IMODULE_%s\n", ci->c_base_name); fprintf (of, "static\n"); fprintf (of, "#endif\n"); fprintf (of, "ORBit_IInterface %s__iinterface = {\n", id); fprintf (of, "TC_%s,", id); fprintf (of, "{%d, %d, %s__imethods, FALSE},\n", g_slist_length (i->methods), g_slist_length (i->methods), id); fprintf (of, "{%d, %d, %s__base_itypes, FALSE}\n", iti.parents + 1, iti.parents + 1, id); fprintf (of, "};\n\n"); g_free (id); } for (l = list; l; l = l->next) { g_slist_free (((Interface *)l->data)->methods); g_free (l->data); } g_slist_free (list); } static GSList * cc_build_interfaces (GSList *list, IDL_tree tree) { if (!tree) return list; switch (IDL_NODE_TYPE (tree)) { case IDLN_MODULE: list = cc_build_interfaces ( list, IDL_MODULE (tree).definition_list); break; case IDLN_LIST: { IDL_tree sub; for (sub = tree; sub; sub = IDL_LIST (sub).next) list = cc_build_interfaces ( list, IDL_LIST (sub).data); break; } case IDLN_ATTR_DCL: { IDL_tree curitem; for (curitem = IDL_ATTR_DCL (tree).simple_declarations; curitem; curitem = IDL_LIST (curitem).next) { OIDL_Attr_Info *ai = IDL_LIST (curitem).data->data; list = cc_build_interfaces (list, ai->op1); if (ai->op2) list = cc_build_interfaces (list, ai->op2); } break; } case IDLN_INTERFACE: { Interface *i = g_new0 (Interface, 1); i->tree = tree; list = g_slist_append (list, i); list = cc_build_interfaces (list, IDL_INTERFACE(tree).body); break; } case IDLN_OP_DCL: { Interface *i; g_return_val_if_fail (list != NULL, NULL); i = ( g_slist_last(list) )->data; i->methods = g_slist_append (i->methods, tree); break; } case IDLN_EXCEPT_DCL: break; default: break; } return list; } static void cc_output_skel (IDL_tree tree, OIDL_C_Info *ci, int *idx) { IDL_tree intf; gboolean has_retval; char *opname; char *ifname; g_return_if_fail (idx != NULL); intf = IDL_get_parent_node (tree, IDLN_INTERFACE, NULL); has_retval = IDL_OP_DCL (tree).op_type_spec != NULL; opname = IDL_ns_ident_to_qstring (IDL_IDENT_TO_NS (IDL_OP_DCL (tree).ident), "_", 0); ifname = IDL_ns_ident_to_qstring (IDL_IDENT_TO_NS (IDL_INTERFACE (intf).ident), "_", 0); fprintf (ci->fh, "void _ORBIT_skel_small_%s(" "POA_%s *_o_servant, " "gpointer _o_retval," "gpointer *_o_args," "CORBA_Context _o_ctx," "CORBA_Environment *_o_ev,\n", opname, ifname); orbit_cbe_op_write_proto (ci->fh, tree, "_impl_", TRUE); fprintf (ci->fh, ") {\n"); if (has_retval) { fprintf (ci->fh, "*("); orbit_cbe_write_param_typespec (ci->fh, tree); fprintf (ci->fh, " *)_o_retval = "); } fprintf (ci->fh, "_impl_%s (_o_servant, ", IDL_IDENT (IDL_OP_DCL (tree).ident).str); orbit_cbe_unflatten_args (tree, ci->fh, "_o_args"); if (IDL_OP_DCL (tree).context_expr) fprintf (ci->fh, "_o_ctx, "); fprintf (ci->fh, "_o_ev);\n"); fprintf (ci->fh, "}\n"); g_free (opname); g_free (ifname); (*idx)++; } static void cc_output_skels (IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci, int *idx) { if (!tree || (tree->declspec & IDLF_DECLSPEC_PIDL)) return; switch (IDL_NODE_TYPE (tree)) { case IDLN_MODULE: cc_output_skels (IDL_MODULE (tree).definition_list, rinfo, ci, idx); break; case IDLN_LIST: { IDL_tree node; for (node = tree; node; node = IDL_LIST (node).next) cc_output_skels (IDL_LIST (node).data, rinfo, ci, idx); break; } case IDLN_ATTR_DCL: { OIDL_Attr_Info *ai = tree->data; IDL_tree node; for (node = IDL_ATTR_DCL (tree).simple_declarations; node; node = IDL_LIST (node).next) { ai = IDL_LIST (node).data->data; cc_output_skels (ai->op1, rinfo, ci, idx); if (ai->op2) cc_output_skels (ai->op2, rinfo, ci, idx); } break; } case IDLN_INTERFACE: { int real_idx = 0; cc_output_skels (IDL_INTERFACE (tree).body, rinfo, ci, &real_idx); } break; case IDLN_OP_DCL: cc_output_skel (tree, ci, idx); break; default: break; } } void orbit_idl_output_c_common (IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { fprintf (ci->fh, OIDL_C_WARNING); fprintf (ci->fh, "#include \n"); fprintf (ci->fh, "#define ORBIT2_STUBS_API\n"); fprintf (ci->fh, "#define ORBIT_IDL_C_COMMON\n"); fprintf (ci->fh, "#define %s_COMMON\n", ci->c_base_name); fprintf (ci->fh, "#include \"%s.h\"\n\n", ci->base_name); fprintf (ci->fh, "static const CORBA_unsigned_long ORBit_zero_int = 0;\n"); /* FIXME: this is slightly nasty, but we need these in common, and this fixes an internal build issue */ if (rinfo->enabled_passes & OUTPUT_SKELS || rinfo->enabled_passes & OUTPUT_STUBS) { fprintf (ci->fh, "\n#ifndef ORBIT_IDL_C_IMODULE_%s\n",ci->c_base_name); cc_output_skels (tree, rinfo, ci, NULL); fprintf (ci->fh, "\n#endif\n"); } cc_output_typecodes (tree, ci); cc_output_class_ids (tree, rinfo, ci); if (rinfo->idata) { GSList *list = NULL; fprintf (ci->fh, "\n/* Interface type data */\n\n"); list = cc_build_interfaces (list, tree); cc_output_itypes (list, ci); } } ORBit2-2.14.19/src/idl-compiler/orbit-idl2.h0000644000175000001440000000240711334247617015150 00000000000000#ifndef ORBIT_IDL2_H #define ORBIT_IDL2_H 1 #include "orbit-idl3-types.h" gboolean orbit_idl_to_backend (const char *filename, OIDL_Run_Info *rinfo); gboolean orbit_idl_backend_output (OIDL_Run_Info *rinfo, IDL_tree tree); /* Utils */ void orbit_idl_attr_fake_ops (IDL_tree attr, IDL_ns ns); void orbit_idl_print_node (IDL_tree node, int indent_level); void IDL_tree_traverse_parents (IDL_tree p, GFunc f, gconstpointer func_data); void IDL_tree_traverse_parents_full (IDL_tree p, GFunc f, gconstpointer func_data, gboolean include_self); gboolean orbit_cbe_type_contains_complex (IDL_tree ts); void orbit_idl_check_oneway_op (IDL_tree op); typedef enum { DATA_IN=1, DATA_INOUT=2, DATA_OUT=4, DATA_RETURN=8 } IDL_ParamRole; gint oidl_param_info(IDL_tree param, IDL_ParamRole role, gboolean *isSlice); gboolean orbit_cbe_type_is_fixed_length(IDL_tree ts); IDL_tree orbit_cbe_get_typespec(IDL_tree node); IDL_ParamRole oidl_attr_to_paramrole(enum IDL_param_attr attr); #define ORBIT_RETVAL_VAR_NAME "_ORBIT_retval" #define ORBIT_EPV_VAR_NAME "_ORBIT_epv" #endif /* ORBIT_IDL2_H */ ORBit2-2.14.19/src/idl-compiler/orbit-idl-c-backend.h0000644000175000001440000000503311334247617016671 00000000000000#ifndef ORBIT_IDL_C_BACKEND_H #define ORBIT_IDL_C_BACKEND_H #include "orbit-idl2.h" #define OIDL_C_WARNING "/*\n * This file was generated by orbit-idl-2 - DO NOT EDIT!\n */\n\n" typedef struct { char *base_name; char *c_base_name; FILE *fh; GString *ext_dcls; gboolean do_impl_hack; gboolean do_skel_defs; } OIDL_C_Info; gboolean orbit_idl_output_c (IDL_tree tree, OIDL_Run_Info *rinfo); void orbit_idl_output_c_headers (IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci); void orbit_idl_output_c_stubs (IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci); void orbit_idl_output_c_skeletons (IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci); void orbit_idl_output_c_common (IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci); void orbit_idl_output_c_skelimpl (IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci); void orbit_idl_output_c_imodule (IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci); void orbit_idl_output_c_deps (IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci); void orbit_output_typecode (OIDL_C_Info *ci, IDL_tree ts); char *orbit_idl_c_filename_for_pass (const char *input_filename, int pass); /* utils */ char *orbit_cbe_get_typespec_str (IDL_tree tree); void orbit_cbe_write_typespec (FILE *of, IDL_tree tree); void orbit_cbe_write_param_typespec (FILE *of, IDL_tree tree); void orbit_cbe_op_write_proto (FILE *of, IDL_tree op, const char *nom_prefix, gboolean for_epv); IDL_tree orbit_cbe_get_typespec (IDL_tree tree); void orbit_cbe_write_const (FILE *of, IDL_tree tree); gboolean orbit_cbe_type_is_fixed_length (IDL_tree ts); gboolean orbit_cbe_type_is_builtin (IDL_tree tree); void orbit_cbe_id_define_hack (FILE *fh, const char *def_prefix, const char *def_name, const char *def_value); void orbit_cbe_id_cond_hack (FILE *fh, const char *def_prefix, const char *def_name, const char *def_value); char *orbit_cbe_get_typecode_name (IDL_tree tree); void orbit_cbe_flatten_args (IDL_tree tree, FILE *of, const char *name); void orbit_cbe_unflatten_args (IDL_tree tree, FILE *of, const char *name); #endif ORBit2-2.14.19/src/idl-compiler/orbit-idl-c-headers.c0000644000175000001440000010071411334247617016712 00000000000000#include "config.h" #include "orbit-idl-c-backend.h" #include #include /* ch = C header */ static void ch_output_types(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci); static void ch_output_poa(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci); static void ch_output_itypes (IDL_tree tree, OIDL_C_Info *ci); static void ch_output_stub_protos(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci); static void ch_output_skel_protos(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci); static GSList *ch_build_interfaces (GSList *list, IDL_tree tree); static void ch_output_method (FILE *of, IDL_tree tree, const char *id); static void ch_output_imethods_index (GSList *list, OIDL_C_Info *ci); typedef struct { IDL_tree tree; GSList *methods; /* IDLN_OP_DCLs */ } Interface; /* this is hardcopy from cc_build_interfaces() defined in orbit-idl-c-common.c */ static GSList * ch_build_interfaces (GSList *list, IDL_tree tree) { if (!tree) return list; switch (IDL_NODE_TYPE (tree)) { case IDLN_MODULE: list = ch_build_interfaces ( list, IDL_MODULE (tree).definition_list); break; case IDLN_LIST: { IDL_tree sub; for (sub = tree; sub; sub = IDL_LIST (sub).next) list = ch_build_interfaces ( list, IDL_LIST (sub).data); break; } case IDLN_ATTR_DCL: { IDL_tree curitem; for (curitem = IDL_ATTR_DCL (tree).simple_declarations; curitem; curitem = IDL_LIST (curitem).next) { OIDL_Attr_Info *ai = IDL_LIST (curitem).data->data; list = ch_build_interfaces (list, ai->op1); if (ai->op2) list = ch_build_interfaces (list, ai->op2); } break; } case IDLN_INTERFACE: { Interface *i = g_new0 (Interface, 1); i->tree = tree; list = g_slist_append (list, i); list = ch_build_interfaces (list, IDL_INTERFACE(tree).body); break; } case IDLN_OP_DCL: { Interface *i; g_return_val_if_fail (list != NULL, NULL); i = ( g_slist_last(list) )->data; i->methods = g_slist_append (i->methods, tree); break; } case IDLN_EXCEPT_DCL: break; default: break; } return list; } static void ch_output_method (FILE *of, IDL_tree tree, const char *id) { char *fullname = NULL; fullname = g_strconcat (id, "_", IDL_IDENT ( IDL_OP_DCL (tree).ident).str, NULL); fprintf (of, "\t%s__imethods_index", fullname); g_free (fullname); } static void ch_output_imethods_index (GSList *list, OIDL_C_Info *ci) { GSList *l; FILE *of = ci->fh; for (l = list; l; l = l->next) { Interface *i = l->data; char *id; GSList *m; id = IDL_ns_ident_to_qstring (IDL_IDENT_TO_NS ( IDL_INTERFACE (i->tree).ident), "_", 0); if (i->methods) { fprintf (of, "#ifndef __%s__imethods_index\n", id); fprintf (of, "#define __%s__imethods_index\n", id); fprintf (of, "typedef enum {\n"); for (m = i->methods; m; m = m->next) { ch_output_method (of, m->data, id); if (m->next) fprintf(of, ",\n"); else fprintf(of, "\n"); } fprintf (of, "} %s__imethods_index;\n", id); fprintf (of, "#endif /* __%s__imethods_index */\n\n", id); } g_free (id); } for (l = list; l; l = l->next) { g_slist_free (((Interface *)l->data)->methods); g_free (l->data); } g_slist_free (list); } void orbit_idl_output_c_headers (IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { fprintf (ci->fh, OIDL_C_WARNING); fprintf(ci->fh, "#ifndef %s%s_H\n", rinfo->header_guard_prefix, ci->c_base_name); fprintf(ci->fh, "#define %s%s_H 1\n", rinfo->header_guard_prefix, ci->c_base_name); fprintf(ci->fh, "#include \n"); fprintf(ci->fh, "#define ORBIT_IDL_SERIAL %d\n", ORBIT_CONFIG_SERIAL); fprintf(ci->fh, "#include \n\n"); fprintf(ci->fh, "#ifdef __cplusplus\n"); fprintf(ci->fh, "extern \"C\" {\n"); fprintf(ci->fh, "#endif /* __cplusplus */\n\n"); /* Do all the typedefs, etc. */ fprintf(ci->fh, "\n/** typedefs **/\n"); ch_output_types(tree, rinfo, ci); if ( ci->do_skel_defs ) { /* Do all the POA structures, etc. */ fprintf(ci->fh, "\n/** POA structures **/\n"); ch_output_poa(tree, rinfo, ci); fprintf(ci->fh, "\n/** skel prototypes **/\n"); ch_output_skel_protos(tree, rinfo, ci); } fprintf(ci->fh, "\n/** stub prototypes **/\n"); ch_output_stub_protos(tree, rinfo, ci); if ( ci->ext_dcls && ci->ext_dcls->str ) fputs( ci->ext_dcls->str, ci->fh); /* this may be huge! */ if (rinfo->idata) { /* FIXME: hackish ? */ fprintf(ci->fh, "#include \n\n"); ch_output_itypes(tree, ci); } if (rinfo->idata) { GSList *list = NULL; fprintf (ci->fh, "\n/** IMethods index */\n\n"); list = ch_build_interfaces (list, tree); ch_output_imethods_index (list, ci); } fprintf(ci->fh, "#ifndef __ORBIT_IMETHODS_INDEX\n"); fprintf(ci->fh, "#define __ORBIT_IMETHODS_INDEX\n"); fprintf(ci->fh, "#define ORBIT_IMETHODS_INDEX(m) (m ## __imethods_index)\n"); fprintf(ci->fh, "#endif /* __ORBIT_IMETHODS_INDEX */\n\n"); fprintf(ci->fh, "#ifdef __cplusplus\n"); fprintf(ci->fh, "}\n"); fprintf(ci->fh, "#endif /* __cplusplus */\n\n"); fprintf(ci->fh, "#ifndef EXCLUDE_ORBIT_H\n"); fprintf(ci->fh, "#include \n\n"); fprintf(ci->fh, "#endif /* EXCLUDE_ORBIT_H */\n"); fprintf(ci->fh, "#endif\n"); fprintf(ci->fh, "#undef ORBIT_IDL_SERIAL\n"); } static void ch_output_var(IDL_tree val, IDL_tree name, OIDL_C_Info *ci) { orbit_cbe_write_typespec(ci->fh, val); fprintf(ci->fh, " "); switch(IDL_NODE_TYPE(name)) { case IDLN_IDENT: fprintf(ci->fh, "%s", IDL_IDENT(name).str); break; case IDLN_TYPE_ARRAY: { IDL_tree curitem; fprintf(ci->fh, "%s", IDL_IDENT(IDL_TYPE_ARRAY(name).ident).str); for(curitem = IDL_TYPE_ARRAY(name).size_list; curitem; curitem = IDL_LIST(curitem).next) { fprintf(ci->fh, "[%" IDL_LL "d]", IDL_INTEGER(IDL_LIST(curitem).data).value); } } break; default: g_error("Weird varname - %s", IDL_tree_type_names[IDL_NODE_TYPE(name)]); break; } fprintf(ci->fh, ";\n"); } static void ch_output_interface(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci); static void ch_output_type_struct(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci); static void ch_output_type_enum(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci); static void ch_output_type_dcl(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci); static void ch_output_native(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci); static void ch_output_type_union(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci); static void ch_output_codefrag(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci); static void ch_output_const_dcl(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci); static void ch_prep(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci); static void ch_type_alloc_and_tc(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci, gboolean do_alloc); static void ch_output_types (IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { if (!tree) return; switch (IDL_NODE_TYPE (tree)) { case IDLN_EXCEPT_DCL: { char *id; id = IDL_ns_ident_to_qstring ( IDL_IDENT_TO_NS (IDL_EXCEPT_DCL (tree).ident), "_", 0); fprintf (ci->fh, "#undef ex_%s\n", id); fprintf (ci->fh, "#define ex_%s \"%s\"\n", id, IDL_IDENT (IDL_EXCEPT_DCL (tree).ident).repo_id); g_free (id); ch_output_type_struct (tree, rinfo, ci); } break; case IDLN_FORWARD_DCL: case IDLN_INTERFACE: ch_output_interface (tree, rinfo, ci); break; case IDLN_TYPE_STRUCT: ch_output_type_struct (tree, rinfo, ci); break; case IDLN_TYPE_ENUM: ch_output_type_enum (tree, rinfo, ci); break; case IDLN_TYPE_DCL: ch_output_type_dcl (tree, rinfo, ci); break; case IDLN_TYPE_UNION: ch_output_type_union (tree, rinfo, ci); break; case IDLN_CODEFRAG: ch_output_codefrag (tree, rinfo, ci); break; case IDLN_SRCFILE: { if (rinfo->onlytop) { char *idlfn = IDL_SRCFILE (tree).filename; if (!IDL_SRCFILE (tree).seenCnt && !IDL_SRCFILE(tree).isTop && !IDL_SRCFILE(tree).wasInhibit) { gchar *hfn, *htail; hfn = g_path_get_basename (idlfn); htail = strrchr (hfn,'.'); g_assert (htail && strlen (htail) >= 2); htail [1] = 'h'; htail [2] = 0; fprintf (ci->fh, "#include \"%s\"\n", hfn); g_free (hfn); } fprintf (ci->fh, "/* from IDL source file \"%s\" " "(seen %d, isTop %d, wasInhibit %d) */ \n", idlfn, IDL_SRCFILE (tree).seenCnt, IDL_SRCFILE (tree).isTop, IDL_SRCFILE (tree).wasInhibit); } } break; case IDLN_CONST_DCL: ch_output_const_dcl (tree, rinfo, ci); break; case IDLN_NATIVE: ch_output_native (tree, rinfo, ci); break; default: break; } switch (IDL_NODE_TYPE (tree)) { case IDLN_MODULE: ch_output_types (IDL_MODULE (tree).definition_list, rinfo, ci); break; case IDLN_LIST: { IDL_tree sub; for (sub = tree; sub; sub = IDL_LIST (sub).next) { ch_output_types (IDL_LIST (sub).data, rinfo, ci); } } break; case IDLN_INTERFACE: ch_output_types (IDL_INTERFACE (tree).body, rinfo, ci); break; default: break; } } static void ch_output_interface(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { char *fullname; fullname = orbit_cbe_get_typespec_str(tree); fprintf(ci->fh, "#if !defined(ORBIT_DECL_%s) && !defined(_%s_defined)\n#define ORBIT_DECL_%s 1\n#define _%s_defined 1\n", fullname, fullname, fullname, fullname); if ( tree->declspec & IDLF_DECLSPEC_PIDL ) { /* PIDL interfaces are not normal CORBA Objects */ fprintf(ci->fh, "typedef struct %s_type *%s;\n", fullname, fullname); fprintf(ci->fh, "#ifndef TC_%s\n", fullname); fprintf(ci->fh, "# define TC_%s TC_CORBA_Object\n", fullname); fprintf(ci->fh, "#endif\n"); } else { fprintf(ci->fh, "#define %s__freekids CORBA_Object__freekids\n", fullname); fprintf(ci->fh, "typedef CORBA_Object %s;\n", fullname); fprintf(ci->fh, "extern CORBA_unsigned_long %s__classid;\n", fullname); ch_type_alloc_and_tc(tree, rinfo, ci, FALSE); } fprintf(ci->fh, "#endif\n"); g_free(fullname); } static void ch_output_type_enum (IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { IDL_tree l; char *enumid; /* CORBA spec says to do * typedef unsigned int enum_name; * and then #defines for each enumerator. * This works just as well and seems cleaner. */ enumid = IDL_ns_ident_to_qstring ( IDL_IDENT_TO_NS (IDL_TYPE_ENUM (tree).ident), "_", 0); fprintf (ci->fh, "#if !defined(_%s_defined)\n#define _%s_defined 1\n", enumid, enumid); fprintf (ci->fh, "typedef enum {\n"); for (l = IDL_TYPE_ENUM (tree).enumerator_list; l; l = IDL_LIST (l).next) { char *id; id = IDL_ns_ident_to_qstring ( IDL_IDENT_TO_NS (IDL_LIST (l).data), "_", 0); fprintf (ci->fh, " %s%s\n", id, IDL_LIST (l).next ? "," : ""); g_free (id); } fprintf (ci->fh, "} %s;\n", enumid); ch_type_alloc_and_tc (tree, rinfo, ci, FALSE); fprintf (ci->fh, "#endif\n"); g_free (enumid); } static void ch_output_type_dcl(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { IDL_tree l; ch_prep (IDL_TYPE_DCL (tree).type_spec, rinfo, ci); for (l = IDL_TYPE_DCL (tree).dcls; l; l = IDL_LIST (l).next) { char *ctmp = NULL; IDL_tree ent = IDL_LIST (l).data; switch (IDL_NODE_TYPE(ent)) { case IDLN_IDENT: ctmp = IDL_ns_ident_to_qstring ( IDL_IDENT_TO_NS (ent), "_", 0); break; case IDLN_TYPE_ARRAY: ctmp = IDL_ns_ident_to_qstring ( IDL_IDENT_TO_NS (IDL_TYPE_ARRAY (ent).ident), "_", 0); break; default: g_assert_not_reached (); break; } fprintf (ci->fh, "#if !defined(_%s_defined)\n#define _%s_defined 1\n", ctmp, ctmp); fprintf (ci->fh, "typedef "); orbit_cbe_write_typespec (ci->fh, IDL_TYPE_DCL (tree).type_spec); switch (IDL_NODE_TYPE (ent)) { case IDLN_IDENT: fprintf (ci->fh, " %s;\n", ctmp); fprintf (ci->fh, "#define %s_marshal(x,y,z) ", ctmp); orbit_cbe_write_typespec (ci->fh, IDL_TYPE_DCL (tree).type_spec); fprintf (ci->fh, "_marshal((x),(y),(z))\n"); fprintf (ci->fh, "#define %s_demarshal(x,y,z,i) ", ctmp); orbit_cbe_write_typespec (ci->fh, IDL_TYPE_DCL (tree).type_spec); fprintf (ci->fh, "_demarshal((x),(y),(z),(i))\n"); break; case IDLN_TYPE_ARRAY: { IDL_tree sub; fprintf (ci->fh, " %s", ctmp); for (sub = IDL_TYPE_ARRAY (ent).size_list; sub; sub = IDL_LIST (sub).next) fprintf (ci->fh, "[%" IDL_LL "d]", IDL_INTEGER (IDL_LIST (sub).data).value); fprintf (ci->fh, ";\n"); fprintf (ci->fh, "typedef "); orbit_cbe_write_typespec (ci->fh, IDL_TYPE_DCL (tree).type_spec); fprintf (ci->fh, " %s_slice", ctmp); for (sub = IDL_LIST (IDL_TYPE_ARRAY (ent).size_list).next; sub; sub = IDL_LIST (sub).next) fprintf (ci->fh, "[%" IDL_LL "d]", IDL_INTEGER (IDL_LIST (sub).data).value); fprintf(ci->fh, ";\n"); } break; default: break; } ch_type_alloc_and_tc (ent, rinfo, ci, TRUE); fprintf (ci->fh, "#endif\n"); g_free (ctmp); } } static void ch_output_native(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { char *ctmp; IDL_tree id = IDL_NATIVE(tree).ident; ctmp = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(id), "_", 0); fprintf(ci->fh, "#if !defined(_%s_defined)\n#define _%s_defined 1\n", ctmp, ctmp); fprintf(ci->fh, "typedef struct %s_type *%s;\n", ctmp, ctmp); /* Dont even think about emitting a typecode. */ fprintf(ci->fh, "#endif\n"); g_free(ctmp); } static void ch_output_type_struct(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { char *id; IDL_tree cur, curmem; id = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_TYPE_STRUCT(tree).ident), "_", 0); fprintf(ci->fh, "#if !defined(_%s_defined)\n#define _%s_defined 1\n", id, id); /* put typedef out first for recursive seq */ fprintf(ci->fh, "typedef struct %s_type %s;\n", id, id); /* Scan for any nested decls */ for(cur = IDL_TYPE_STRUCT(tree).member_list; cur; cur = IDL_LIST(cur).next) { IDL_tree ts; ts = IDL_MEMBER(IDL_LIST(cur).data).type_spec; ch_prep(ts, rinfo, ci); } fprintf(ci->fh, "struct %s_type {\n", id); for(cur = IDL_TYPE_STRUCT(tree).member_list; cur; cur = IDL_LIST(cur).next) { for(curmem = IDL_MEMBER(IDL_LIST(cur).data).dcls; curmem; curmem = IDL_LIST(curmem).next) { ch_output_var(IDL_MEMBER(IDL_LIST(cur).data).type_spec, IDL_LIST(curmem).data, ci); } } if(!IDL_TYPE_STRUCT(tree).member_list) fprintf(ci->fh, "int dummy;\n"); fprintf(ci->fh, "};\n\n"); ch_type_alloc_and_tc(tree, rinfo, ci, TRUE); fprintf(ci->fh, "#endif\n"); g_free(id); } static void ch_output_type_union(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { char *id; IDL_tree curitem; if (IDL_NODE_TYPE (IDL_TYPE_UNION (tree).switch_type_spec) == IDLN_TYPE_ENUM) ch_output_type_enum (IDL_TYPE_UNION (tree).switch_type_spec, rinfo, ci); id = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_TYPE_UNION(tree).ident), "_", 0); fprintf(ci->fh, "#if !defined(_%s_defined)\n#define _%s_defined 1\n", id, id); fprintf(ci->fh, "typedef struct %s_type %s;\n", id, id); /* Scan for any nested decls */ for(curitem = IDL_TYPE_UNION(tree).switch_body; curitem; curitem = IDL_LIST(curitem).next) { IDL_tree member = IDL_CASE_STMT(IDL_LIST(curitem).data).element_spec; ch_prep(IDL_MEMBER(member).type_spec, rinfo, ci); } fprintf(ci->fh, "struct %s_type {\n", id); orbit_cbe_write_typespec(ci->fh, IDL_TYPE_UNION(tree).switch_type_spec); fprintf(ci->fh, " _d;\nunion {\n"); for(curitem = IDL_TYPE_UNION(tree).switch_body; curitem; curitem = IDL_LIST(curitem).next) { IDL_tree member; member = IDL_CASE_STMT(IDL_LIST(curitem).data).element_spec; ch_output_var(IDL_MEMBER(member).type_spec, IDL_LIST(IDL_MEMBER(member).dcls).data, ci); } fprintf(ci->fh, "} _u;\n};\n"); ch_type_alloc_and_tc(tree, rinfo, ci, TRUE); fprintf(ci->fh, "#endif\n"); g_free(id); } static void ch_output_codefrag(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { GSList *list; char *ctmp; for(list = IDL_CODEFRAG(tree).lines; list; list = g_slist_next(list)) { ctmp = list->data; if(!strncmp(ctmp, "#pragma", sizeof("#pragma")-1)) { ctmp += sizeof("#pragma")-1; if (*ctmp && (isspace((int)*ctmp))) { while(*ctmp && (isspace((int)*ctmp))) ctmp++; if(!strncmp(ctmp, "include_defs", sizeof("include_defs")-1)) { char *cte; ctmp += sizeof("include_defs")-1; while(*ctmp && (isspace((int)*ctmp) || *ctmp == '"')) ctmp++; cte = ctmp; while(*cte && !isspace((int)*cte) && *cte != '"') cte++; *cte = '\0'; fprintf(ci->fh, "#include <%s>\n", ctmp); continue; } } } fprintf(ci->fh, "%s\n", (char *)list->data); } } static void ch_output_const_dcl(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { char *id; IDL_tree ident; IDL_tree typespec; ident = IDL_CONST_DCL (tree).ident; id = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS (ident), "_", 0); fprintf(ci->fh, "#ifndef %s\n", id); fprintf(ci->fh, "#define %s ", id); orbit_cbe_write_const(ci->fh, IDL_CONST_DCL(tree).const_exp); typespec = orbit_cbe_get_typespec (IDL_CONST_DCL(tree).const_type); if (IDL_NODE_TYPE (typespec) == IDLN_TYPE_INTEGER && !IDL_TYPE_INTEGER (typespec).f_signed) fprintf(ci->fh, "U"); fprintf(ci->fh, "\n"); fprintf(ci->fh, "#endif /* !%s */\n\n", id); g_free(id); } static void ch_prep_fixed(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { char *ctmp; ctmp = orbit_cbe_get_typespec_str(tree); fprintf(ci->fh, "typedef struct { CORBA_unsigned_short _digits; CORBA_short _scale; CORBA_char _value[%d]; } %s;\n", (int) (IDL_INTEGER(IDL_TYPE_FIXED(tree).positive_int_const).value + 2)/2, ctmp); g_free(ctmp); ch_type_alloc_and_tc(tree, rinfo, ci, TRUE); } static void ch_prep_sequence(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { char *ctmp, *fullname, *fullname_def, *ctmp2; IDL_tree tts; gboolean separate_defs, fake_if; IDL_tree fake_seq = NULL; tts = orbit_cbe_get_typespec(IDL_TYPE_SEQUENCE(tree).simple_type_spec); ctmp = orbit_cbe_get_typespec_str(IDL_TYPE_SEQUENCE(tree).simple_type_spec); ctmp2 = orbit_cbe_get_typespec_str(tts); fake_if = (IDL_NODE_TYPE(tts) == IDLN_INTERFACE); if(fake_if) { g_free(ctmp2); ctmp2 = g_strdup("CORBA_Object"); } separate_defs = strcmp(ctmp, ctmp2); fullname = orbit_cbe_get_typespec_str(tree); if(separate_defs) { if(fake_if) tts = IDL_type_object_new(); fake_seq = IDL_type_sequence_new(tts, NULL); IDL_NODE_UP(fake_seq) = IDL_NODE_UP(tree); ch_prep_sequence(fake_seq, rinfo, ci); fullname_def = g_strdup_printf("CORBA_sequence_%s", ctmp2); if(!fake_if) IDL_TYPE_SEQUENCE(fake_seq).simple_type_spec = NULL; } else fullname_def = g_strdup(fullname); if(IDL_NODE_TYPE(IDL_TYPE_SEQUENCE(tree).simple_type_spec) == IDLN_TYPE_SEQUENCE) ch_prep_sequence(IDL_TYPE_SEQUENCE(tree).simple_type_spec, rinfo, ci); /* NOTE: ORBIT_DECL_%s protects redef of everything (struct,TC,externs) * while _%s_defined protects only the struct */ fprintf(ci->fh, "#if !defined(ORBIT_DECL_%s)\n#define ORBIT_DECL_%s 1\n", fullname, fullname); if ( ci->do_impl_hack ) orbit_cbe_id_define_hack(ci->fh, "ORBIT_IMPL", fullname, ci->c_base_name); if(separate_defs) { fprintf(ci->fh, "#if !defined(_%s_defined)\n#define _%s_defined 1\n", fullname, fullname); if(!strcmp(ctmp, "CORBA_RepositoryId")) fprintf(ci->fh, "/* CRACKHEADS */\n"); fprintf(ci->fh, "typedef %s %s;\n", fullname_def, fullname); fprintf(ci->fh, "#endif\n"); ch_type_alloc_and_tc(tree, rinfo, ci, FALSE); fprintf(ci->fh, "#define %s__alloc %s__alloc\n", fullname, fullname_def); fprintf(ci->fh, "#define %s__freekids %s__freekids\n", fullname, fullname_def); fprintf(ci->fh, "#define CORBA_sequence_%s_allocbuf CORBA_sequence_%s_allocbuf\n", ctmp, ctmp2); fprintf(ci->fh, "#define %s_marshal(x,y,z) %s_marshal((x),(y),(z))\n", fullname, fullname_def); fprintf(ci->fh, "#define %s_demarshal(x,y,z,i) %s_demarshal((x),(y),(z),(i))\n", fullname, fullname_def); IDL_tree_free(fake_seq); } else { char *tc, *member_type; fprintf(ci->fh, "#if !defined(_%s_defined)\n#define _%s_defined 1\n", fullname, fullname); fprintf(ci->fh, "typedef struct { CORBA_unsigned_long _maximum, _length; "); orbit_cbe_write_typespec(ci->fh, IDL_TYPE_SEQUENCE(tree).simple_type_spec); fprintf(ci->fh, "* _buffer; CORBA_boolean _release; } "); orbit_cbe_write_typespec(ci->fh, tree); fprintf(ci->fh, ";\n#endif\n"); ch_type_alloc_and_tc(tree, rinfo, ci, TRUE); tc = orbit_cbe_get_typecode_name (orbit_cbe_get_typespec (tree)); member_type = orbit_cbe_type_is_builtin (IDL_TYPE_SEQUENCE (tree).simple_type_spec) ? ctmp + strlen ("CORBA_") : ctmp; fprintf (ci->fh, "#define CORBA_sequence_%s_allocbuf(l) " "((%s*)ORBit_small_allocbuf (%s, (l)))\n", member_type, member_type, tc); g_free (tc); } fprintf(ci->fh, "#endif\n"); g_free(ctmp2); g_free(ctmp); g_free(fullname); g_free(fullname_def); } static void ch_prep (IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { switch (IDL_NODE_TYPE (tree)) { case IDLN_TYPE_SEQUENCE: ch_prep_sequence (tree, rinfo, ci); break; case IDLN_TYPE_FIXED: ch_prep_fixed (tree, rinfo, ci); break; case IDLN_TYPE_STRUCT: ch_output_type_struct (tree, rinfo, ci); break; case IDLN_TYPE_ENUM: ch_output_type_enum (tree, rinfo, ci); break; default: break; } } static void ch_type_alloc_and_tc(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci, gboolean do_alloc) { char *ctmp; IDL_tree tts; ctmp = orbit_cbe_get_typespec_str(tree); if ( ci->do_impl_hack ) { fprintf(ci->fh, "#if !defined(TC_IMPL_TC_%s_0)\n", ctmp); orbit_cbe_id_define_hack(ci->fh, "TC_IMPL_TC", ctmp, ci->c_base_name); } fprintf (ci->fh, "#ifdef ORBIT_IDL_C_IMODULE_%s\n", ci->c_base_name); fprintf (ci->fh, "static\n"); fprintf (ci->fh, "#else\n"); fprintf (ci->fh, "extern\n"); fprintf (ci->fh, "#endif\n"); fprintf (ci->fh, "ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_%s_struct;\n", ctmp); fprintf (ci->fh, "#define TC_%s ((CORBA_TypeCode)&TC_%s_struct)\n", ctmp, ctmp); if (ci->do_impl_hack) fprintf (ci->fh, "#endif\n"); if(do_alloc) { char *tc; tts = orbit_cbe_get_typespec(tree); tc = orbit_cbe_get_typecode_name (tts); fprintf (ci->fh, "#define %s__alloc() ((%s%s *)ORBit_small_alloc (%s))\n", ctmp, ctmp, (IDL_NODE_TYPE(tree) == IDLN_TYPE_ARRAY)?"_slice":"", tc); fprintf (ci->fh, "#define %s__freekids(m,d) ORBit_small_freekids (%s,(m),(d))\n", ctmp, tc); if ( IDL_NODE_TYPE(tts) == IDLN_TYPE_SEQUENCE ) { char *member_type = orbit_cbe_get_typespec_str(IDL_TYPE_SEQUENCE(tts).simple_type_spec); char *member_name = orbit_cbe_type_is_builtin (IDL_TYPE_SEQUENCE (tts).simple_type_spec) ? member_type + strlen ("CORBA_") : member_type; fprintf (ci->fh, "#define %s_allocbuf(l) " "((%s*)ORBit_small_allocbuf (%s, (l)))\n", ctmp, member_name, tc); g_free (member_type); } g_free (tc); } g_free(ctmp); } /************************/ static void cbe_header_interface_print_vepv(IDL_tree node, FILE *of) { char *id = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_INTERFACE(node).ident), "_", 0); fprintf(of, " POA_%s__epv *%s_epv;\n", id, id); g_free(id); } static void ch_output_poa(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { if(!tree) return; if ( tree->declspec & IDLF_DECLSPEC_PIDL ) return; switch(IDL_NODE_TYPE(tree)) { case IDLN_MODULE: ch_output_poa(IDL_MODULE(tree).definition_list, rinfo, ci); break; case IDLN_LIST: { IDL_tree sub; for(sub = tree; sub; sub = IDL_LIST(sub).next) { ch_output_poa(IDL_LIST(sub).data, rinfo, ci); } } break; case IDLN_INTERFACE: { IDL_tree sub; char *id; id = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_INTERFACE(tree).ident), "_", 0); fprintf(ci->fh, "#ifndef _defined_POA_%s\n#define _defined_POA_%s 1\n", id, id); /* First, do epv for this interface, then vepv, then servant */ fprintf(ci->fh, "typedef struct {\n"); fprintf(ci->fh, " void *_private;\n"); for(sub = IDL_INTERFACE(tree).body; sub; sub = IDL_LIST(sub).next) { IDL_tree cur; cur = IDL_LIST(sub).data; switch(IDL_NODE_TYPE(cur)) { case IDLN_OP_DCL: orbit_cbe_op_write_proto(ci->fh, cur, "", TRUE); fprintf(ci->fh, ";\n"); break; case IDLN_ATTR_DCL: { OIDL_Attr_Info *ai; IDL_tree curitem; for(curitem = IDL_ATTR_DCL(cur).simple_declarations; curitem; curitem = IDL_LIST(curitem).next) { ai = IDL_LIST(curitem).data->data; orbit_cbe_op_write_proto(ci->fh, ai->op1, "", TRUE); fprintf(ci->fh, ";\n"); if(ai->op2) { orbit_cbe_op_write_proto(ci->fh, ai->op2, "", TRUE); fprintf(ci->fh, ";\n"); } } } break; default: break; } } fprintf(ci->fh, "} POA_%s__epv;\n", id); fprintf(ci->fh, "typedef struct {\n"); fprintf(ci->fh, " PortableServer_ServantBase__epv *_base_epv;\n"); IDL_tree_traverse_parents(tree, (GFunc)cbe_header_interface_print_vepv, ci->fh); fprintf(ci->fh, "} POA_%s__vepv;\n", id); fprintf(ci->fh, "typedef struct {\n"); fprintf(ci->fh, " void *_private;\n"); fprintf(ci->fh, " POA_%s__vepv *vepv;\n", id); fprintf(ci->fh, "} POA_%s;\n", id); fprintf(ci->fh, "extern void POA_%s__init(PortableServer_Servant servant, CORBA_Environment *ev);\n", id); fprintf(ci->fh, "extern void POA_%s__fini(PortableServer_Servant servant, CORBA_Environment *ev);\n", id); fprintf(ci->fh, "#endif /* _defined_POA_%s */\n", id); g_free(id); } break; default: break; } } /************************/ typedef struct { FILE *of; IDL_tree realif; } InheritedOutputInfo; static void ch_output_inherited_protos(IDL_tree curif, InheritedOutputInfo *ioi); static void ch_output_stub_protos(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { if(!tree) return; switch(IDL_NODE_TYPE(tree)) { case IDLN_MODULE: ch_output_stub_protos(IDL_MODULE(tree).definition_list, rinfo, ci); break; case IDLN_LIST: { IDL_tree sub; for(sub = tree; sub; sub = IDL_LIST(sub).next) { ch_output_stub_protos(IDL_LIST(sub).data, rinfo, ci); } } break; case IDLN_INTERFACE: { IDL_tree sub; if(IDL_INTERFACE(tree).inheritance_spec) { InheritedOutputInfo ioi; ioi.of = ci->fh; ioi.realif = tree; IDL_tree_traverse_parents(IDL_INTERFACE(tree).inheritance_spec, (GFunc)ch_output_inherited_protos, &ioi); } for(sub = IDL_INTERFACE(tree).body; sub; sub = IDL_LIST(sub).next) { IDL_tree cur; cur = IDL_LIST(sub).data; switch(IDL_NODE_TYPE(cur)) { case IDLN_OP_DCL: orbit_idl_check_oneway_op (cur); orbit_cbe_op_write_proto(ci->fh, cur, "", FALSE); fprintf(ci->fh, ";\n"); break; case IDLN_ATTR_DCL: { OIDL_Attr_Info *ai; IDL_tree curitem; for(curitem = IDL_ATTR_DCL(cur).simple_declarations; curitem; curitem = IDL_LIST(curitem).next) { ai = IDL_LIST(curitem).data->data; orbit_cbe_op_write_proto(ci->fh, ai->op1, "", FALSE); fprintf(ci->fh, ";\n"); if(ai->op2) { orbit_cbe_op_write_proto(ci->fh, ai->op2, "", FALSE); fprintf(ci->fh, ";\n"); } } } break; default: break; } } } break; default: break; } } static void ch_output_inherited_protos(IDL_tree curif, InheritedOutputInfo *ioi) { char *id, *realid; IDL_tree curitem; if(curif == ioi->realif) return; realid = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_INTERFACE(ioi->realif).ident), "_", 0); id = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_INTERFACE(curif).ident), "_", 0); for(curitem = IDL_INTERFACE(curif).body; curitem; curitem = IDL_LIST(curitem).next) { IDL_tree curop = IDL_LIST(curitem).data; switch(IDL_NODE_TYPE(curop)) { case IDLN_OP_DCL: fprintf(ioi->of, "#define %s_%s %s_%s\n", realid, IDL_IDENT(IDL_OP_DCL(curop).ident).str, id, IDL_IDENT(IDL_OP_DCL(curop).ident).str); break; case IDLN_ATTR_DCL: { IDL_tree curitem; /* We don't use OIDL_Attr_Info here because inherited ops may go back into trees that are output-inhibited and therefore don't have the OIDL_Attr_Info generated on them */ for(curitem = IDL_ATTR_DCL(curop).simple_declarations; curitem; curitem = IDL_LIST(curitem).next) { IDL_tree ident; ident = IDL_LIST(curitem).data; fprintf(ioi->of, "#define %s__get_%s %s__get_%s\n", realid, IDL_IDENT(ident).str, id, IDL_IDENT(ident).str); if(!IDL_ATTR_DCL(curop).f_readonly) fprintf(ioi->of, "#define %s__set_%s %s__set_%s\n", realid, IDL_IDENT(ident).str, id, IDL_IDENT(ident).str); } } break; default: break; } } g_free(id); g_free(realid); } static void doskel(IDL_tree cur, OIDL_Run_Info *rinfo, char *ifid, OIDL_C_Info *ci) { char *id; id = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_OP_DCL(cur).ident), "_", 0); fprintf(ci->fh, "void _ORBIT_skel_small_%s(" "POA_%s *_ORBIT_servant, " "gpointer _ORBIT_retval, " "gpointer *_ORBIT_args, " "CORBA_Context ctx," "CORBA_Environment *ev, ", id, ifid); orbit_cbe_op_write_proto(ci->fh, cur, "_impl_", TRUE); fprintf(ci->fh, ");\n"); g_free(id); } static void ch_output_skel_protos(IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { if(!tree) return; if ( tree->declspec & IDLF_DECLSPEC_PIDL ) return; switch(IDL_NODE_TYPE(tree)) { case IDLN_MODULE: ch_output_skel_protos(IDL_MODULE(tree).definition_list, rinfo, ci); break; case IDLN_LIST: { IDL_tree sub; for(sub = tree; sub; sub = IDL_LIST(sub).next) { ch_output_skel_protos(IDL_LIST(sub).data, rinfo, ci); } } break; case IDLN_INTERFACE: { IDL_tree sub; char *ifid; ifid = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_INTERFACE(tree).ident), "_", 0); for(sub = IDL_INTERFACE(tree).body; sub; sub = IDL_LIST(sub).next) { IDL_tree cur; cur = IDL_LIST(sub).data; switch(IDL_NODE_TYPE(cur)) { case IDLN_OP_DCL: doskel(cur, rinfo, ifid, ci); break; case IDLN_ATTR_DCL: { OIDL_Attr_Info *ai = cur->data; IDL_tree curitem; for(curitem = IDL_ATTR_DCL(cur).simple_declarations; curitem; curitem = IDL_LIST(curitem).next) { ai = IDL_LIST(curitem).data->data; doskel(ai->op1, rinfo, ifid, ci); if(ai->op2) doskel(ai->op2, rinfo, ifid, ci); } } break; default: break; } } g_free(ifid); } break; default: break; } } static void ch_output_itypes (IDL_tree tree, OIDL_C_Info *ci) { static int num_methods = 0; if (!tree) return; switch(IDL_NODE_TYPE(tree)) { case IDLN_MODULE: ch_output_itypes (IDL_MODULE(tree).definition_list, ci); break; case IDLN_LIST: { IDL_tree sub; for (sub = tree; sub; sub = IDL_LIST(sub).next) ch_output_itypes (IDL_LIST(sub).data, ci); } break; case IDLN_ATTR_DCL: { OIDL_Attr_Info *ai = tree->data; IDL_tree curitem; for(curitem = IDL_ATTR_DCL(tree).simple_declarations; curitem; curitem = IDL_LIST(curitem).next) { ai = IDL_LIST(curitem).data->data; ch_output_itypes (ai->op1, ci); if(ai->op2) ch_output_itypes (ai->op2, ci); } } break; case IDLN_INTERFACE: { char *id; id = IDL_ns_ident_to_qstring (IDL_IDENT_TO_NS ( IDL_INTERFACE (tree).ident), "_", 0); ch_output_itypes (IDL_INTERFACE(tree).body, ci); fprintf (ci->fh, "#ifdef ORBIT_IDL_C_IMODULE_%s\n", ci->c_base_name); fprintf (ci->fh, "static \n"); fprintf (ci->fh, "#else\n"); fprintf (ci->fh, "extern \n"); fprintf (ci->fh, "#endif\n"); fprintf (ci->fh, "ORBit_IInterface %s__iinterface;\n", id); fprintf (ci->fh, "#define %s_IMETHODS_LEN %d\n", id, num_methods); if (num_methods == 0) fprintf (ci->fh, "#define %s__imethods (ORBit_IMethod*) NULL\n", id); else { fprintf (ci->fh, "#ifdef ORBIT_IDL_C_IMODULE_%s\n", ci->c_base_name); fprintf (ci->fh, "static \n"); fprintf (ci->fh, "#else\n"); fprintf (ci->fh, "extern \n"); fprintf (ci->fh, "#endif\n"); fprintf (ci->fh, "ORBit_IMethod %s__imethods[%s_IMETHODS_LEN];\n", id, id); } num_methods = 0; break; } case IDLN_OP_DCL: num_methods++; break; default: break; } } ORBit2-2.14.19/src/idl-compiler/orbit-idl-driver.c0000644000175000001440000000476611334247617016364 00000000000000/************************************************************************** orbit-idl-driver.c (Dispatch parsed tree to various backends) Copyright (C) 1999 Elliot Lee This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. $Id$ ***************************************************************************/ #include "config.h" #include "orbit-idl2.h" #include "orbit-idl-backend.h" #include "orbit-idl-c-backend.h" #include static void orbit_idl_tree_fake_ops (IDL_tree tree, IDL_ns ns) { IDL_tree node; if (!tree) return; switch(IDL_NODE_TYPE(tree)) { case IDLN_MODULE: orbit_idl_tree_fake_ops (IDL_MODULE (tree).definition_list, ns); break; case IDLN_INTERFACE: orbit_idl_tree_fake_ops (IDL_INTERFACE (tree).body, ns); break; case IDLN_LIST: for (node = tree; node; node = IDL_LIST (node).next) orbit_idl_tree_fake_ops (IDL_LIST (node).data, ns); break; case IDLN_ATTR_DCL: orbit_idl_attr_fake_ops (tree, ns); break; default: break; } } gboolean orbit_idl_to_backend (const char *filename, OIDL_Run_Info *rinfo) { IDL_ns ns; IDL_tree tree; int errcode; gboolean retval; errcode = IDL_parse_filename ( filename, rinfo->cpp_args, NULL, &tree, &ns, (rinfo->show_cpp_errors ? IDLF_SHOW_CPP_ERRORS : 0) | (rinfo->is_pidl ? IDLF_XPIDL : 0) | (rinfo->onlytop ? IDLF_INHIBIT_INCLUDES : 0) | IDLF_TYPECODES | IDLF_SRCFILES | IDLF_CODEFRAGS, rinfo->idl_warn_level); rinfo->ns = ns; if (rinfo->debug_level > 3) orbit_idl_print_node (tree, 0); if (errcode != IDL_SUCCESS) { if (errcode == -1) g_warning ("Parse of %s failed: %s", filename, g_strerror (errno)); return 0; } orbit_idl_tree_fake_ops (tree, ns); if (!strcmp (rinfo->output_language, "c")) retval = orbit_idl_output_c (tree, rinfo); else retval = orbit_idl_backend_output (rinfo, tree); return retval; } ORBit2-2.14.19/src/idl-compiler/orbit-idl-c-utils.c0000644000175000001440000004274511334247617016450 00000000000000#include "config.h" #include "orbit-idl-c-backend.h" #include char * orbit_cbe_get_typecode_name (IDL_tree tree) { if (!tree) return g_strdup ("TC_FIXME"); else return g_strconcat ("TC_", orbit_cbe_get_typespec_str (tree), NULL); } gboolean orbit_cbe_type_is_builtin(IDL_tree tree) { return FALSE; switch(IDL_NODE_TYPE(tree)) { case IDLN_LIST: case IDLN_GENTREE: case IDLN_MEMBER: case IDLN_NATIVE: case IDLN_CASE_STMT: case IDLN_MODULE: case IDLN_BINOP: case IDLN_UNARYOP: case IDLN_CODEFRAG: g_error("Strange type for being a builtin"); break; case IDLN_INTEGER: case IDLN_STRING: case IDLN_WIDE_STRING: case IDLN_CHAR: case IDLN_WIDE_CHAR: case IDLN_FIXED: case IDLN_FLOAT: case IDLN_BOOLEAN: case IDLN_CONST_DCL: case IDLN_TYPE_INTEGER: case IDLN_TYPE_FLOAT: case IDLN_TYPE_CHAR: case IDLN_TYPE_WIDE_CHAR: case IDLN_TYPE_STRING: case IDLN_TYPE_WIDE_STRING: case IDLN_TYPE_BOOLEAN: case IDLN_TYPE_OCTET: case IDLN_TYPE_ANY: case IDLN_TYPE_OBJECT: case IDLN_TYPE_TYPECODE: case IDLN_TYPE_ENUM: return TRUE; break; case IDLN_TYPE_DCL: case IDLN_EXCEPT_DCL: case IDLN_ATTR_DCL: case IDLN_OP_DCL: case IDLN_PARAM_DCL: case IDLN_TYPE_FIXED: case IDLN_TYPE_SEQUENCE: case IDLN_TYPE_ARRAY: case IDLN_TYPE_STRUCT: case IDLN_TYPE_UNION: case IDLN_IDENT: case IDLN_INTERFACE: case IDLN_FORWARD_DCL: default: return FALSE; break; } return FALSE; } /** Gets the "type" of {tree} as known in C. The return value was alloc'd via g_malloc, and must be g_free'd. **/ char * orbit_cbe_get_typespec_str(IDL_tree tree) { char *retval = NULL; GString *tmpstr = NULL; if(!tree) { return g_strdup("void"); } switch(IDL_NODE_TYPE(tree)) { case IDLN_MEMBER: return orbit_cbe_get_typespec_str(IDL_MEMBER(tree).type_spec); break; case IDLN_TYPE_ANY: retval = "CORBA_any"; break; case IDLN_TYPE_FLOAT: switch(IDL_TYPE_FLOAT(tree).f_type) { case IDL_FLOAT_TYPE_FLOAT: retval = "CORBA_float"; break; case IDL_FLOAT_TYPE_DOUBLE: retval = "CORBA_double"; break; case IDL_FLOAT_TYPE_LONGDOUBLE: retval = "CORBA_long_double"; break; } break; case IDLN_TYPE_FIXED: return g_strdup_printf( "CORBA_fixed_%" IDL_LL "d_%" IDL_LL "d", IDL_INTEGER(IDL_TYPE_FIXED(tree).positive_int_const).value, IDL_INTEGER(IDL_TYPE_FIXED(tree).integer_lit).value); break; case IDLN_TYPE_INTEGER: tmpstr = g_string_new(NULL); g_string_append(tmpstr, "CORBA_"); if(!IDL_TYPE_INTEGER(tree).f_signed) g_string_append(tmpstr, "unsigned_"); switch(IDL_TYPE_INTEGER(tree).f_type) { case IDL_INTEGER_TYPE_SHORT: g_string_append(tmpstr, "short"); break; case IDL_INTEGER_TYPE_LONGLONG: g_string_append(tmpstr, "long_"); /* FALLTHROUGH */ case IDL_INTEGER_TYPE_LONG: g_string_append(tmpstr, "long"); break; } break; case IDLN_TYPE_STRING: retval = "CORBA_string"; /* this is non-standard! */ break; case IDLN_TYPE_OCTET: retval = "CORBA_octet"; break; case IDLN_TYPE_WIDE_STRING: retval = "CORBA_wstring"; /* this is non-standard! */ break; case IDLN_TYPE_CHAR: retval = "CORBA_char"; break; case IDLN_TYPE_WIDE_CHAR: retval = "CORBA_wchar"; break; case IDLN_TYPE_BOOLEAN: retval = "CORBA_boolean"; break; case IDLN_TYPE_STRUCT: return orbit_cbe_get_typespec_str(IDL_TYPE_STRUCT(tree).ident); case IDLN_EXCEPT_DCL: return orbit_cbe_get_typespec_str(IDL_EXCEPT_DCL(tree).ident); case IDLN_TYPE_ARRAY: return orbit_cbe_get_typespec_str(IDL_TYPE_ARRAY(tree).ident); case IDLN_TYPE_UNION: return orbit_cbe_get_typespec_str(IDL_TYPE_UNION(tree).ident); case IDLN_TYPE_ENUM: return orbit_cbe_get_typespec_str(IDL_TYPE_ENUM(tree).ident); case IDLN_IDENT: return IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(tree), "_", 0); case IDLN_PARAM_DCL: return orbit_cbe_get_typespec_str(IDL_PARAM_DCL(tree).param_type_spec); case IDLN_TYPE_SEQUENCE: { IDL_tree subtype = IDL_TYPE_SEQUENCE(tree).simple_type_spec; char *ctmp, *base; ctmp = orbit_cbe_get_typespec_str(subtype); /* We should have built-in alias to make this next line not needed */ base = orbit_cbe_type_is_builtin(subtype) ? ctmp + strlen("CORBA_") : ctmp; retval = g_strdup_printf( "CORBA_sequence_%s", base); g_free(ctmp); return retval; } break; case IDLN_NATIVE: retval = "gpointer"; break; case IDLN_FORWARD_DCL: case IDLN_INTERFACE: return orbit_cbe_get_typespec_str(IDL_INTERFACE(tree).ident); case IDLN_TYPE_OBJECT: retval = "CORBA_Object"; break; case IDLN_TYPE_TYPECODE: retval = "CORBA_TypeCode"; break; default: g_error("We were asked to get a typename for a %s", IDL_tree_type_names[IDL_NODE_TYPE(tree)]); break; } if (retval) return g_strdup (retval); else return g_string_free (tmpstr, FALSE); } void orbit_cbe_write_typespec(FILE *of, IDL_tree tree) { char *name = orbit_cbe_get_typespec_str(tree); fprintf(of, "%s", name); g_free(name); } /** Parameters (e.g., arguments to methods, and the return value have some complicated rules in the C mapping for how many levels of pointer and the exact type involved. This function generates the externally visible parameter type. Note the hack below because "const CORBA_string" is not promotable to "const CORBA_char*" (the later the standard to which apps are written, while the former is what would be produced without the hack). **/ static char * orbit_cbe_write_param_typespec_str(IDL_tree ts, IDL_ParamRole role) { int i, n; gboolean isSlice; char *name; GString *str = g_string_sized_new (23); IDL_tree typedef_spec; char *typedef_name; n = oidl_param_info (ts, role, &isSlice); name = orbit_cbe_get_typespec_str (ts); if ( role == DATA_IN ) { /* We want to check if this is a typedef for CORBA_string so we can do special handling * in that case. */ typedef_spec = orbit_cbe_get_typespec (ts); typedef_name = orbit_cbe_get_typespec_str (typedef_spec); g_string_printf (str, "const %s", !strcmp (typedef_name, "CORBA_string") ? "CORBA_char *" : name); g_free (typedef_name); } else g_string_printf (str, "%s", name); g_free (name); if ( isSlice ) g_string_append (str, "_slice"); for (i = 0; i < n; i++) g_string_append_c (str, '*'); return g_string_free (str, FALSE); } static void orbit_cbe_write_param_typespec_raw (FILE *of, IDL_tree ts, IDL_ParamRole role) { char *str; str = orbit_cbe_write_param_typespec_str (ts, role); fprintf (of, "%s", str); g_free (str); } void orbit_cbe_write_param_typespec(FILE *of, IDL_tree tree) { IDL_tree ts = NULL /* Quiet gcc */; IDL_ParamRole role = 0 /* Quiet gcc */; switch ( IDL_NODE_TYPE(tree) ) { case IDLN_OP_DCL: /* means return value of method */ ts = IDL_OP_DCL(tree).op_type_spec; role = DATA_RETURN; break; case IDLN_PARAM_DCL: /* one of the parameters */ ts = IDL_PARAM_DCL(tree).param_type_spec; role = oidl_attr_to_paramrole(IDL_PARAM_DCL(tree).attr); break; default: g_assert_not_reached(); } orbit_cbe_write_param_typespec_raw(of, ts, role); } void orbit_cbe_op_write_proto (FILE *of, IDL_tree op, const char *nom_prefix, gboolean for_epv) { IDL_tree sub; char *id; g_assert (IDL_NODE_TYPE(op) == IDLN_OP_DCL); orbit_cbe_write_param_typespec (of, op); id = IDL_ns_ident_to_qstring ( IDL_IDENT_TO_NS (IDL_INTERFACE ( IDL_get_parent_node (op, IDLN_INTERFACE, NULL)).ident), "_", 0); if (for_epv) fprintf (of, " (*%s%s)", nom_prefix ? nom_prefix : "", IDL_IDENT(IDL_OP_DCL(op).ident).str); else fprintf (of, " %s%s_%s", nom_prefix ? nom_prefix : "", id, IDL_IDENT (IDL_OP_DCL (op).ident).str); fprintf (of, "("); if (for_epv) fprintf (of, "PortableServer_Servant _servant, "); else fprintf (of, "%s _obj, ", id); g_free (id); for (sub = IDL_OP_DCL (op).parameter_dcls; sub; sub = IDL_LIST (sub).next) { IDL_tree parm = IDL_LIST (sub).data; orbit_cbe_write_param_typespec (of, parm); fprintf (of, " %s, ", IDL_IDENT (IDL_PARAM_DCL (parm).simple_declarator).str); } if (IDL_OP_DCL (op).context_expr) fprintf (of, "CORBA_Context _ctx, "); fprintf (of, "CORBA_Environment *ev)"); } /* Writes the value of the constant in 'tree' to file handle 'of' */ static char * orbit_cbe_get_const(IDL_tree tree) { char *opc = NULL, *retval, *ctmp; GString *tmpstr = g_string_new(NULL); switch(IDL_NODE_TYPE(tree)) { case IDLN_BOOLEAN: g_string_printf(tmpstr, "%s", IDL_BOOLEAN(tree).value?"CORBA_TRUE":"CORBA_FALSE"); break; case IDLN_CHAR: g_string_printf(tmpstr, "'\\x%X'", *(unsigned char *)IDL_CHAR(tree).value); break; case IDLN_FLOAT: g_string_printf(tmpstr, "%f", IDL_FLOAT(tree).value); break; case IDLN_INTEGER: g_string_printf(tmpstr, "%" IDL_LL "d", IDL_INTEGER(tree).value); break; case IDLN_STRING: g_string_printf(tmpstr, "\"%s\"", IDL_STRING(tree).value); break; case IDLN_WIDE_CHAR: g_string_printf(tmpstr, "L'%ls'", IDL_WIDE_CHAR(tree).value); break; case IDLN_WIDE_STRING: g_string_printf(tmpstr, "L\"%ls\"", IDL_WIDE_STRING(tree).value); break; case IDLN_BINOP: g_string_printf(tmpstr, "("); ctmp = orbit_cbe_get_const(IDL_BINOP(tree).left); g_string_append(tmpstr, ctmp); g_free(ctmp); switch(IDL_BINOP(tree).op) { case IDL_BINOP_OR: opc = "|"; break; case IDL_BINOP_XOR: opc = "^"; break; case IDL_BINOP_AND: opc = "&"; break; case IDL_BINOP_SHR: opc = ">>"; break; case IDL_BINOP_SHL: opc = "<<"; break; case IDL_BINOP_ADD: opc = "+"; break; case IDL_BINOP_SUB: opc = "-"; break; case IDL_BINOP_MULT: opc = "*"; break; case IDL_BINOP_DIV: opc = "/"; break; case IDL_BINOP_MOD: opc = "%"; break; } g_string_append_printf(tmpstr, " %s ", opc); ctmp = orbit_cbe_get_const(IDL_BINOP(tree).right); g_string_append_printf(tmpstr, "%s)", ctmp); g_free(ctmp); break; case IDLN_UNARYOP: switch(IDL_UNARYOP(tree).op) { case IDL_UNARYOP_PLUS: opc = "+"; break; case IDL_UNARYOP_MINUS: opc = "-"; break; case IDL_UNARYOP_COMPLEMENT: opc = "~"; break; } ctmp = orbit_cbe_get_const(IDL_UNARYOP(tree).operand); g_string_printf(tmpstr, "%s%s", opc, ctmp); g_free(ctmp); break; case IDLN_IDENT: { char *id; id = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(tree), "_", 0); g_string_printf(tmpstr, "%s", id); g_free(id); } break; default: g_error("We were asked to print a constant for %s", IDL_tree_type_names[tree->_type]); break; } retval = tmpstr->str; g_string_free(tmpstr, FALSE); return retval; } void orbit_cbe_write_const(FILE *of, IDL_tree tree) { char *ctmp; ctmp = orbit_cbe_get_const(tree); fprintf(of, "%s", ctmp); g_free(ctmp); } /* This is the WORST HACK in the WORLD, really truly, but the C preprocessor doesn't allow us to use strings, so we have to work around it by using individual characters. */ void orbit_cbe_id_define_hack(FILE *fh, const char *def_prefix, const char *def_name, const char *def_value) { int i, n; n = strlen(def_value); for(i = 0; i < n; i++) fprintf(fh, "#define %s_%s_%d '%c'\n", def_prefix, def_name, i, def_value[i]); } void orbit_cbe_id_cond_hack(FILE *fh, const char *def_prefix, const char *def_name, const char *def_value) { int i, n; n = strlen(def_value); if(n <= 0) return; fprintf(fh, "("); for(i = 0; i < n; i++) fprintf(fh, "%s (%s_%s_%d == '%c') \\\n", i?"&&":"", def_prefix, def_name, i, def_value[i]); fprintf(fh, ")"); } #define BASE_TYPES \ IDLN_TYPE_INTEGER: \ case IDLN_TYPE_FLOAT: \ case IDLN_TYPE_ENUM: \ case IDLN_TYPE_BOOLEAN: \ case IDLN_TYPE_CHAR: \ case IDLN_TYPE_WIDE_CHAR: \ case IDLN_TYPE_OCTET #define STRING_TYPES \ IDLN_TYPE_STRING: \ case IDLN_TYPE_WIDE_STRING #define OBJREF_TYPES \ IDLN_TYPE_OBJECT: \ case IDLN_INTERFACE: \ case IDLN_FORWARD_DCL static const char * orbit_cbe_flatten_ref (IDL_ParamRole role, IDL_tree typespec) { gboolean is_fixed; is_fixed = orbit_cbe_type_is_fixed_length (typespec); switch (role) { case DATA_IN: switch (IDL_NODE_TYPE (typespec)) { case BASE_TYPES: case STRING_TYPES: case OBJREF_TYPES: case IDLN_TYPE_TYPECODE: case IDLN_NATIVE: return "(gpointer)&"; case IDLN_TYPE_STRUCT: case IDLN_TYPE_UNION: case IDLN_TYPE_ANY: case IDLN_TYPE_SEQUENCE: case IDLN_TYPE_ARRAY: return "(gpointer)"; default: case IDLN_TYPE_FIXED: g_error ("Hit evil type %d", IDL_NODE_TYPE (typespec)); }; return NULL; case DATA_INOUT: switch (IDL_NODE_TYPE (typespec)) { case BASE_TYPES: case STRING_TYPES: case OBJREF_TYPES: case IDLN_TYPE_TYPECODE: case IDLN_TYPE_STRUCT: case IDLN_TYPE_UNION: case IDLN_TYPE_ARRAY: case IDLN_NATIVE: case IDLN_TYPE_ANY: case IDLN_TYPE_SEQUENCE: return ""; default: case IDLN_TYPE_FIXED: g_error ("Hit evil type %d", IDL_NODE_TYPE (typespec)); }; return NULL; case DATA_OUT: switch (IDL_NODE_TYPE (typespec)) { case BASE_TYPES: case STRING_TYPES: case OBJREF_TYPES: case IDLN_TYPE_TYPECODE: case IDLN_NATIVE: return "&"; case IDLN_TYPE_STRUCT: case IDLN_TYPE_UNION: case IDLN_TYPE_ARRAY: if (is_fixed) return "&"; else /* drop through */ case IDLN_TYPE_SEQUENCE: case IDLN_TYPE_ANY: return ""; default: case IDLN_TYPE_FIXED: g_error ("Hit evil type %d", IDL_NODE_TYPE (typespec)); }; return NULL; case DATA_RETURN: g_error ("No data return handler"); return NULL; } return NULL; } void orbit_cbe_flatten_args (IDL_tree tree, FILE *of, const char *name) { int i = 0; IDL_tree l; for (l = IDL_OP_DCL(tree).parameter_dcls; l; l = IDL_LIST(l).next) i++; fprintf (of, "gpointer %s[%d];\n", name, i); i = 0; for (l = IDL_OP_DCL(tree).parameter_dcls; l; l = IDL_LIST(l).next) { IDL_tree decl = IDL_LIST (l).data; IDL_tree tspec = orbit_cbe_get_typespec (decl); IDL_ParamRole r = 0; switch(IDL_PARAM_DCL(decl).attr) { case IDL_PARAM_IN: r = DATA_IN; break; case IDL_PARAM_INOUT: r = DATA_INOUT; break; case IDL_PARAM_OUT: r = DATA_OUT; break; default: g_error("Unknown IDL_PARAM type"); } fprintf (of, "%s[%d] = %s%s;\n", name, i, orbit_cbe_flatten_ref (r, tspec), IDL_IDENT (IDL_PARAM_DCL (decl).simple_declarator).str); i++; } } static char * orbit_cbe_unflatten_ref (IDL_ParamRole role, IDL_tree typespec) { gboolean is_fixed; char *typestr; char *retval; is_fixed = orbit_cbe_type_is_fixed_length (typespec); typestr = orbit_cbe_write_param_typespec_str (typespec, role); switch (role) { case DATA_IN: switch (IDL_NODE_TYPE (typespec)) { case BASE_TYPES: case STRING_TYPES: case OBJREF_TYPES: case IDLN_TYPE_TYPECODE: case IDLN_NATIVE: retval = g_strdup_printf ("*(%s *)", typestr); break; case IDLN_TYPE_ARRAY: retval = g_strdup_printf ("(%s_slice *)", typestr); break; case IDLN_TYPE_STRUCT: case IDLN_TYPE_UNION: case IDLN_TYPE_ANY: case IDLN_TYPE_SEQUENCE: retval = g_strdup_printf ("(%s)", typestr); break; default: case IDLN_TYPE_FIXED: g_error ("Hit evil type %d", IDL_NODE_TYPE (typespec)); retval = NULL; break; }; break; case DATA_INOUT: switch (IDL_NODE_TYPE (typespec)) { case IDLN_TYPE_ARRAY: retval = g_strdup_printf ("(%s_slice *)", typestr); break; case BASE_TYPES: case STRING_TYPES: case OBJREF_TYPES: case IDLN_TYPE_TYPECODE: case IDLN_TYPE_STRUCT: case IDLN_TYPE_UNION: case IDLN_NATIVE: case IDLN_TYPE_ANY: case IDLN_TYPE_SEQUENCE: retval = g_strdup_printf ("(%s)", typestr); break; default: case IDLN_TYPE_FIXED: g_error ("Hit evil type %d", IDL_NODE_TYPE (typespec)); retval = NULL; break; }; break; case DATA_OUT: switch (IDL_NODE_TYPE (typespec)) { case BASE_TYPES: case STRING_TYPES: case OBJREF_TYPES: case IDLN_TYPE_TYPECODE: case IDLN_NATIVE: retval = g_strdup_printf ("*(%s *)", typestr); break; case IDLN_TYPE_ARRAY: if (is_fixed) { retval = g_strdup_printf ("*(%s_slice **)", typestr); break; } /* drop through */ case IDLN_TYPE_STRUCT: case IDLN_TYPE_UNION: if (is_fixed) { retval = g_strdup_printf ("*(%s *)", typestr); break; } /* drop through */ case IDLN_TYPE_SEQUENCE: case IDLN_TYPE_ANY: retval = g_strdup_printf ("(%s)", typestr); break; default: case IDLN_TYPE_FIXED: g_error ("Hit evil type %d", IDL_NODE_TYPE (typespec)); retval = NULL; break; }; break; case DATA_RETURN: default: g_error ("No data return handler"); retval = NULL; break; } g_free (typestr); return retval; } void orbit_cbe_unflatten_args (IDL_tree tree, FILE *of, const char *name) { IDL_tree l; int i = 0; for (l = IDL_OP_DCL(tree).parameter_dcls; l; l = IDL_LIST(l).next) { IDL_tree decl = IDL_LIST (l).data; IDL_tree tspec = orbit_cbe_get_typespec (decl); IDL_ParamRole r = 0; char *unflatten; switch(IDL_PARAM_DCL(decl).attr) { case IDL_PARAM_IN: r = DATA_IN; break; case IDL_PARAM_INOUT: r = DATA_INOUT; break; case IDL_PARAM_OUT: r = DATA_OUT; break; default: g_error("Unknown IDL_PARAM type"); } unflatten = orbit_cbe_unflatten_ref (r, tspec); fprintf (of, "%s%s[%d], ", unflatten, name, i++); g_free (unflatten); } } ORBit2-2.14.19/src/idl-compiler/orbit-idl-utils.c0000644000175000001440000005374211334247617016227 00000000000000#include "config.h" #include "orbit-idl2.h" #include void orbit_idl_check_oneway_op (IDL_tree op) { g_assert (IDL_NODE_TYPE(op) == IDLN_OP_DCL); if (IDL_OP_DCL (op).f_oneway) { IDL_tree sub; for (sub = IDL_OP_DCL (op).parameter_dcls; sub; sub = IDL_LIST (sub).next) { IDL_tree param = IDL_LIST (sub).data; if (IDL_PARAM_DCL (param).attr == IDL_PARAM_OUT || IDL_PARAM_DCL (param).attr == IDL_PARAM_INOUT) { g_warning ("Out or Inout parameter in declaration of oneway '%s'", IDL_IDENT(IDL_OP_DCL(op).ident).str); break; } } if (IDL_OP_DCL (op).op_type_spec) g_warning ("Return value in declaration of oneway '%s'", IDL_IDENT(IDL_OP_DCL(op).ident).str); } } void orbit_idl_attr_fake_ops(IDL_tree attr, IDL_ns ns) { IDL_tree attr_name, ident, curnode, op1, op2, intf; GString *attrname; OIDL_Attr_Info *setme; g_assert(attr && IDL_NODE_TYPE(attr) == IDLN_ATTR_DCL); attrname = g_string_new(NULL); for(curnode = IDL_ATTR_DCL(attr).simple_declarations; curnode; curnode = IDL_LIST(curnode).next) { op1 = op2 = NULL; attr_name = IDL_LIST(curnode).data; g_string_printf(attrname, "_get_%s", IDL_IDENT(attr_name).str); ident = IDL_ident_new(g_strdup(attrname->str)); IDL_IDENT_TO_NS(ident) = IDL_IDENT_TO_NS(attr_name); op1 = IDL_op_dcl_new(0, IDL_ATTR_DCL(attr).param_type_spec, ident, NULL, NULL, NULL); IDL_NODE_UP(op1) = IDL_NODE_UP(attr); intf = IDL_NODE_UP (IDL_NODE_UP (op1)); IDL_NS(ns).current = IDL_IDENT_TO_NS (IDL_INTERFACE (intf).ident); IDL_ns_place_new(ns, ident); if(!IDL_ATTR_DCL(attr).f_readonly) { g_string_printf(attrname, "_set_%s", IDL_IDENT(attr_name).str); ident = IDL_ident_new(g_strdup(attrname->str)); IDL_IDENT_TO_NS(ident) = IDL_IDENT_TO_NS(attr_name); op2 = IDL_op_dcl_new(0, NULL, ident, NULL, NULL, NULL); IDL_NODE_UP(op2) = IDL_NODE_UP(attr); intf = IDL_NODE_UP (IDL_NODE_UP (op2)); IDL_NS(ns).current = IDL_IDENT_TO_NS (IDL_INTERFACE (intf).ident); IDL_ns_place_new(ns, ident); IDL_OP_DCL(op2).parameter_dcls = IDL_list_new( IDL_param_dcl_new(IDL_PARAM_IN, IDL_ATTR_DCL(attr).param_type_spec, IDL_ident_new(g_strdup("value")))); } setme = g_new0(OIDL_Attr_Info, 1); setme->op1 = op1; setme->op2 = op2; attr_name->data = setme; } g_string_free(attrname, TRUE); } #define INDENT_INCREMENT_1 2 #define INDENT_INCREMENT_2 4 static void do_indent(int level) { int i; for(i = 0; i < level; i++) g_print(" "); } void orbit_idl_print_node(IDL_tree node, int indent_level) { IDL_tree curnode; char *s; do_indent(indent_level); if(node == NULL) { g_print("(null)\n"); return; } g_print("[%d] ", IDL_NODE_REFS(node)); switch(IDL_NODE_TYPE(node)) { case IDLN_NONE: g_print("NONE\n"); break; case IDLN_LIST: g_print("LIST:\n"); for(curnode = node; curnode; curnode = IDL_LIST(curnode).next) { orbit_idl_print_node(IDL_LIST(curnode).data, indent_level + INDENT_INCREMENT_1); } break; case IDLN_GENTREE: break; case IDLN_INTEGER: g_print("INTEGER: %" IDL_LL "d\n", IDL_INTEGER(node).value); break; case IDLN_STRING: g_print("STRING: %s\n", IDL_STRING(node).value); break; case IDLN_WIDE_STRING: g_print("WIDE STRING: %ls\n", IDL_WIDE_STRING(node).value); break; case IDLN_CHAR: g_print("CHAR: %s\n", IDL_CHAR(node).value); break; case IDLN_WIDE_CHAR: g_print("WIDE CHAR: %ls\n", IDL_WIDE_CHAR(node).value); break; case IDLN_FIXED: g_print("FIXED: %s\n", IDL_FIXED(node).value); break; case IDLN_FLOAT: g_print("FLOAT: %f\n", IDL_FLOAT(node).value); break; case IDLN_BOOLEAN: g_print("BOOLEAN: %s\n", (IDL_BOOLEAN(node).value)?"True":"False"); break; case IDLN_IDENT: s = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(node), "_", 0); g_print("IDENT: %s NSQ: %s RID: \"%s\"\n", IDL_IDENT(node).str, s, IDL_IDENT_REPO_ID(node) ? IDL_IDENT_REPO_ID(node) : ""); g_free(s); break; case IDLN_TYPE_DCL: g_print("TYPE DCL:\n"); orbit_idl_print_node(IDL_TYPE_DCL(node).type_spec, indent_level + INDENT_INCREMENT_1); do_indent(indent_level + INDENT_INCREMENT_1); g_print("decls:\n"); orbit_idl_print_node(IDL_TYPE_DCL(node).dcls, indent_level + INDENT_INCREMENT_2); break; case IDLN_CONST_DCL: g_print("CONST DCL:\n"); orbit_idl_print_node(IDL_CONST_DCL(node).const_type, indent_level + INDENT_INCREMENT_1); do_indent(indent_level + INDENT_INCREMENT_1); g_print("ident:\n"); orbit_idl_print_node(IDL_CONST_DCL(node).ident, indent_level + INDENT_INCREMENT_2); do_indent(indent_level + INDENT_INCREMENT_1); g_print("const_exp:\n"); orbit_idl_print_node(IDL_CONST_DCL(node).const_exp, indent_level + INDENT_INCREMENT_2); break; case IDLN_EXCEPT_DCL: g_print("EXCEPT DCL:\n"); orbit_idl_print_node(IDL_EXCEPT_DCL(node).ident, indent_level + INDENT_INCREMENT_1); do_indent(indent_level + INDENT_INCREMENT_1); g_print("members:\n"); orbit_idl_print_node(IDL_EXCEPT_DCL(node).members, indent_level + INDENT_INCREMENT_2); break; case IDLN_ATTR_DCL: g_print("ATTR_DCL (%s):\n", (IDL_ATTR_DCL(node).f_readonly)?"readonly":"rw"); orbit_idl_print_node(IDL_ATTR_DCL(node).param_type_spec, indent_level + INDENT_INCREMENT_1); do_indent(indent_level + INDENT_INCREMENT_1); g_print("simple_declarations:\n"); orbit_idl_print_node(IDL_ATTR_DCL(node).simple_declarations, indent_level + INDENT_INCREMENT_2); break; case IDLN_OP_DCL: g_print("OP DCL (%s):\n", (IDL_OP_DCL(node).f_oneway)?"oneway":"normal"); orbit_idl_print_node(IDL_OP_DCL(node).ident, indent_level + INDENT_INCREMENT_1); do_indent(indent_level + INDENT_INCREMENT_1); g_print("op_type_spec:\n"); orbit_idl_print_node(IDL_OP_DCL(node).op_type_spec, indent_level + INDENT_INCREMENT_2); do_indent(indent_level + INDENT_INCREMENT_1); g_print("parameter_dcls:\n"); orbit_idl_print_node(IDL_OP_DCL(node).parameter_dcls, indent_level + INDENT_INCREMENT_2); do_indent(indent_level + INDENT_INCREMENT_1); g_print("raises_expr:\n"); orbit_idl_print_node(IDL_OP_DCL(node).raises_expr, indent_level + INDENT_INCREMENT_2); do_indent(indent_level + INDENT_INCREMENT_1); g_print("context_expr:\n"); orbit_idl_print_node(IDL_OP_DCL(node).context_expr, indent_level + INDENT_INCREMENT_2); break; case IDLN_PARAM_DCL: g_print("PARAM DCL: "); switch(IDL_PARAM_DCL(node).attr) { case IDL_PARAM_IN: g_print("(in)\n"); break; case IDL_PARAM_OUT: g_print("(out)\n"); break; case IDL_PARAM_INOUT: g_print("(inout)\n"); break; } orbit_idl_print_node(IDL_PARAM_DCL(node).param_type_spec, indent_level + INDENT_INCREMENT_1); do_indent(indent_level + INDENT_INCREMENT_1); g_print("simple_declarator:\n"); orbit_idl_print_node(IDL_PARAM_DCL(node).simple_declarator, indent_level + INDENT_INCREMENT_2); break; case IDLN_FORWARD_DCL: g_print("FORWARD DCL:\n"); orbit_idl_print_node(IDL_FORWARD_DCL(node).ident, indent_level + INDENT_INCREMENT_1); break; case IDLN_INTERFACE: g_print("INTERFACE:\n"); orbit_idl_print_node(IDL_INTERFACE(node).ident, indent_level + INDENT_INCREMENT_1); do_indent(indent_level + INDENT_INCREMENT_1); g_print("inheritance_spec:\n"); orbit_idl_print_node(IDL_INTERFACE(node).inheritance_spec, indent_level + INDENT_INCREMENT_2); do_indent(indent_level + INDENT_INCREMENT_1); g_print("body:\n"); orbit_idl_print_node(IDL_INTERFACE(node).body, indent_level + INDENT_INCREMENT_2); break; case IDLN_MODULE: g_print("MODULE:\n"); orbit_idl_print_node(IDL_MODULE(node).ident, indent_level + INDENT_INCREMENT_1); do_indent(indent_level + INDENT_INCREMENT_1); g_print("definition_list:\n"); orbit_idl_print_node(IDL_MODULE(node).definition_list, indent_level + INDENT_INCREMENT_2); break; case IDLN_TYPE_INTEGER: if(!IDL_TYPE_INTEGER(node).f_signed) g_print("TYPE unsigned "); switch(IDL_TYPE_INTEGER(node).f_type) { case IDL_INTEGER_TYPE_SHORT: g_print("short\n"); break; case IDL_INTEGER_TYPE_LONG: g_print("long\n"); break; case IDL_INTEGER_TYPE_LONGLONG: g_print("long long\n"); break; } break; case IDLN_TYPE_FLOAT: switch(IDL_TYPE_FLOAT(node).f_type) { case IDL_FLOAT_TYPE_FLOAT: g_print("TYPE float\n"); break; case IDL_FLOAT_TYPE_DOUBLE: g_print("TYPE double\n"); break; case IDL_FLOAT_TYPE_LONGDOUBLE: g_print("TYPE long double\n"); break; } break; case IDLN_TYPE_FIXED: g_print("TYPE fixed:\n"); orbit_idl_print_node(IDL_TYPE_FIXED(node).positive_int_const, indent_level + INDENT_INCREMENT_1); orbit_idl_print_node(IDL_TYPE_FIXED(node).integer_lit, indent_level + INDENT_INCREMENT_1); break; case IDLN_TYPE_STRING: g_print("TYPE string:\n"); orbit_idl_print_node(IDL_TYPE_STRING(node).positive_int_const, indent_level + INDENT_INCREMENT_1); break; case IDLN_TYPE_WIDE_STRING: g_print("TYPE wide string:\n"); orbit_idl_print_node(IDL_TYPE_WIDE_STRING(node).positive_int_const, indent_level + INDENT_INCREMENT_1); break; case IDLN_TYPE_ENUM: g_print("TYPE enum:\n"); orbit_idl_print_node(IDL_TYPE_ENUM(node).ident, indent_level + INDENT_INCREMENT_1); do_indent(indent_level + INDENT_INCREMENT_1); g_print("enumerator_list:\n"); orbit_idl_print_node(IDL_TYPE_ENUM(node).enumerator_list, indent_level + INDENT_INCREMENT_2); break; case IDLN_TYPE_ARRAY: g_print("TYPE array:\n"); orbit_idl_print_node(IDL_TYPE_ARRAY(node).ident, indent_level + INDENT_INCREMENT_1); do_indent(indent_level + INDENT_INCREMENT_1); g_print("size_list:\n"); orbit_idl_print_node(IDL_TYPE_ARRAY(node).size_list, indent_level + INDENT_INCREMENT_2); break; case IDLN_TYPE_SEQUENCE: g_print("TYPE sequence:\n"); orbit_idl_print_node(IDL_TYPE_SEQUENCE(node).simple_type_spec, indent_level + INDENT_INCREMENT_1); do_indent(indent_level + INDENT_INCREMENT_1); g_print("positive_int_const:\n"); orbit_idl_print_node(IDL_TYPE_SEQUENCE(node).positive_int_const, indent_level + INDENT_INCREMENT_2); break; case IDLN_TYPE_STRUCT: g_print("TYPE struct:\n"); orbit_idl_print_node(IDL_TYPE_STRUCT(node).ident, indent_level + INDENT_INCREMENT_1); do_indent(indent_level + INDENT_INCREMENT_1); g_print("member_list:\n"); orbit_idl_print_node(IDL_TYPE_STRUCT(node).member_list, indent_level + INDENT_INCREMENT_2); break; case IDLN_TYPE_UNION: g_print("TYPE union:\n"); orbit_idl_print_node(IDL_TYPE_UNION(node).ident, indent_level + INDENT_INCREMENT_1); do_indent(indent_level + INDENT_INCREMENT_1); g_print("switch_type_spec:\n"); orbit_idl_print_node(IDL_TYPE_UNION(node).switch_type_spec, indent_level + INDENT_INCREMENT_2); do_indent(indent_level + INDENT_INCREMENT_1); g_print("switch_body:\n"); orbit_idl_print_node(IDL_TYPE_UNION(node).switch_body, indent_level + INDENT_INCREMENT_2); break; case IDLN_MEMBER: g_print("MEMBER:\n"); orbit_idl_print_node(IDL_MEMBER(node).type_spec, indent_level + INDENT_INCREMENT_1); do_indent(indent_level + INDENT_INCREMENT_1); g_print("dcls:\n"); orbit_idl_print_node(IDL_MEMBER(node).dcls, indent_level + INDENT_INCREMENT_2); break; case IDLN_CASE_STMT: g_print("CASE_STMT:\n"); orbit_idl_print_node(IDL_CASE_STMT(node).labels, indent_level + INDENT_INCREMENT_1); do_indent(indent_level + INDENT_INCREMENT_1); g_print("element_spec:\n"); orbit_idl_print_node(IDL_CASE_STMT(node).element_spec, indent_level + INDENT_INCREMENT_2); break; case IDLN_BINOP: g_print("BINOP "); switch(IDL_BINOP(node).op) { case IDL_BINOP_OR: g_print("or:\n"); break; case IDL_BINOP_XOR: g_print("xor:\n"); break; case IDL_BINOP_AND: g_print("and:\n"); break; case IDL_BINOP_SHR: g_print("shr:\n"); break; case IDL_BINOP_SHL: g_print("shl:\n"); break; case IDL_BINOP_ADD: g_print("add:\n"); break; case IDL_BINOP_SUB: g_print("sub:\n"); break; case IDL_BINOP_MULT: g_print("mult:\n"); break; case IDL_BINOP_DIV: g_print("div:\n"); break; case IDL_BINOP_MOD: g_print("mod:\n"); break; } do_indent(indent_level + INDENT_INCREMENT_1); g_print("left:\n"); orbit_idl_print_node(IDL_BINOP(node).left, indent_level + INDENT_INCREMENT_2); do_indent(indent_level + INDENT_INCREMENT_1); g_print("right:\n"); orbit_idl_print_node(IDL_BINOP(node).right, indent_level + INDENT_INCREMENT_2); break; case IDLN_UNARYOP: g_print("UNARYOP "); switch(IDL_UNARYOP(node).op) { case IDL_UNARYOP_PLUS: g_print("plus:\n"); break; case IDL_UNARYOP_MINUS: g_print("minus:\n"); break; case IDL_UNARYOP_COMPLEMENT: g_print("complement:\n"); break; } orbit_idl_print_node(IDL_UNARYOP(node).operand, indent_level + INDENT_INCREMENT_1); break; case IDLN_TYPE_CHAR: g_print("TYPE char\n"); break; case IDLN_TYPE_WIDE_CHAR: g_print("TYPE wide char\n"); break; case IDLN_TYPE_BOOLEAN: g_print("TYPE boolean\n"); break; case IDLN_TYPE_OCTET: g_print("TYPE octet\n"); break; case IDLN_TYPE_OBJECT: g_print("TYPE object\n"); break; case IDLN_TYPE_ANY: g_print("TYPE any\n"); break; case IDLN_TYPE_TYPECODE: g_print("TYPE TypeCode\n"); break; case IDLN_CODEFRAG: g_print("CODEFRAG\n"); break; default: g_print("unhandled %d\n", IDL_NODE_TYPE(node)); } } static void IDL_tree_traverse_helper(IDL_tree p, GFunc f, gconstpointer func_data, GHashTable *visited_nodes, gboolean include_self) { IDL_tree curitem; if (g_hash_table_lookup (visited_nodes, p)) return; g_hash_table_insert (visited_nodes, p, ((gpointer)1)); for (curitem = IDL_INTERFACE (p).inheritance_spec; curitem; curitem = IDL_LIST (curitem).next) { IDL_tree_traverse_helper (IDL_get_parent_node (IDL_LIST (curitem).data, IDLN_INTERFACE, NULL), f, func_data, visited_nodes, TRUE); } if (include_self) f(p, (gpointer)func_data); } void IDL_tree_traverse_parents_full (IDL_tree p, GFunc f, gconstpointer func_data, gboolean include_self) { GHashTable *visited_nodes = g_hash_table_new (NULL, g_direct_equal); if (!(p && f)) return; if (IDL_NODE_TYPE(p) != IDLN_INTERFACE) p = IDL_get_parent_node (p, IDLN_INTERFACE, NULL); if (!p) return; IDL_tree_traverse_helper (p, f, func_data, visited_nodes, include_self); g_hash_table_destroy (visited_nodes); } void IDL_tree_traverse_parents (IDL_tree p, GFunc f, gconstpointer func_data) { IDL_tree_traverse_parents_full (p, f, func_data, TRUE); } /* For use by below function */ static const int * orbit_cbe_get_typeoffsets_table (void) { static int typeoffsets[IDLN_LAST]; static gboolean initialized = FALSE; if (!initialized) { int i; for (i = 0; i < IDLN_LAST; ++i) typeoffsets[i] = -1; typeoffsets[IDLN_FORWARD_DCL] = 8; /* (same as objref) */ typeoffsets[IDLN_TYPE_INTEGER] = 0; typeoffsets[IDLN_TYPE_FLOAT] = 0; typeoffsets[IDLN_TYPE_FIXED] = 3; typeoffsets[IDLN_TYPE_CHAR] = 5; typeoffsets[IDLN_TYPE_WIDE_CHAR] = 6; typeoffsets[IDLN_TYPE_STRING] = 12; typeoffsets[IDLN_TYPE_WIDE_STRING] = 13; typeoffsets[IDLN_TYPE_BOOLEAN] = 4; typeoffsets[IDLN_TYPE_OCTET] = 7; typeoffsets[IDLN_TYPE_ANY] = 16; typeoffsets[IDLN_TYPE_OBJECT] = 9; typeoffsets[IDLN_TYPE_TYPECODE] = 9; typeoffsets[IDLN_TYPE_ENUM] = 8; typeoffsets[IDLN_TYPE_SEQUENCE] = 14; typeoffsets[IDLN_TYPE_ARRAY] = 15; typeoffsets[IDLN_TYPE_STRUCT] = 10; typeoffsets[IDLN_TYPE_UNION] = 11; typeoffsets[IDLN_NATIVE] = 15; /* no pointers ever, same as fixed array */ typeoffsets[IDLN_INTERFACE] = 9; /* (same as objref) */ initialized = TRUE; } return typeoffsets; } /** This is a rather hairy function. Its purpose is to output the required number of *'s that indicate the amount of indirection for input, output, & input-output parameters, and return values. We do this by having a table of the number of *'s for each type and purpose (nptrrefs_required), taken from 19.20 of the CORBA 2.2 spec, and then having a table that translates from the IDLN_* enums into an index into nptrrefs_required (typeoffsets) **/ gint oidl_param_info(IDL_tree in_param, IDL_ParamRole role, gboolean *isSlice) { IDL_tree param; const int * const typeoffsets = orbit_cbe_get_typeoffsets_table (); const int nptrrefs_required[][4] = { {0,1,1,0} /* float */, {0,1,1,0} /* double */, {0,1,1,0} /* long double */, {1,1,1,0} /* fixed_d_s 3 */, {0,1,1,0} /* boolean */, {0,1,1,0} /* char */, {0,1,1,0} /* wchar */, {0,1,1,0} /* octet */, {0,1,1,0} /* enum */, {0,1,1,0} /* objref */, {1,1,1,0} /* fixed struct 10 */, {1,1,1,0} /* fixed union */, {0,1,1,0} /* string */, {0,1,1,0} /* wstring */, {1,1,2,1} /* sequence */, {0,0,0,0} /* fixed array */, {1,1,2,1} /* any 16 */ }; int retval = 0; int typeidx; *isSlice = FALSE; if(!in_param) return 0; /* void */ /* Now, how do we use this table? :) */ param = orbit_cbe_get_typespec (in_param); g_assert (param); switch (IDL_NODE_TYPE (param)) { case IDLN_TYPE_STRUCT: case IDLN_TYPE_UNION: if (((role == DATA_RETURN) || (role == DATA_OUT)) && !orbit_cbe_type_is_fixed_length(param)) retval++; break; case IDLN_TYPE_ARRAY: if ( role == DATA_RETURN ) { *isSlice = TRUE; retval = 1; } else if (role == DATA_OUT && !orbit_cbe_type_is_fixed_length (param)) { *isSlice = TRUE; retval = 2; } break; case IDLN_NATIVE: if ( IDL_NATIVE (param).user_type && strcmp (IDL_NATIVE (param).user_type, "IDL_variable_length_struct") == 0 ) return role == DATA_OUT ? 2 : 1; break; case IDLN_EXCEPT_DCL: fprintf (stderr, "Error: exception declared at '%s:%d' cannot be " "used as a method parameter\n", in_param->_file, in_param->_line); exit (1); break; default: break; } /* ERROR ! */ typeidx = typeoffsets [IDL_NODE_TYPE (param)]; g_assert (typeidx >= 0); switch (role) { case DATA_IN: role = 0; break; case DATA_INOUT: role = 1; break; case DATA_OUT: role = 2; break; case DATA_RETURN: role = 3; break; default: g_assert_not_reached (); break; } retval += nptrrefs_required [typeidx] [role]; return retval; } /** Fixed-length-ness is a property that CORBA defines, and it is a property of each type, not each kind. Furthermore, it doesnt depend on the language mapping. Generally, the GIOP coding a fixed length variable will be a known length (determined by the TC), regardless of the data within the variable. With the C mapping, fixed --> nothing to free in this node Note that in the C mapping, everything is a struct and is fixed length in that sense. Thus variable length types show up in C as pointers. Recursive types introduced by sequences are not a problem for this func, because sequences are not fixed length, and terminate the recursion. **/ gboolean orbit_cbe_type_is_fixed_length(IDL_tree ts) { gboolean is_fixed = TRUE; IDL_tree curitem; ts = orbit_cbe_get_typespec(ts); switch(IDL_NODE_TYPE(ts)) { case IDLN_TYPE_FLOAT: case IDLN_TYPE_INTEGER: case IDLN_TYPE_ENUM: case IDLN_TYPE_CHAR: case IDLN_TYPE_WIDE_CHAR: case IDLN_TYPE_OCTET: case IDLN_TYPE_BOOLEAN: return TRUE; break; case IDLN_TYPE_SEQUENCE: case IDLN_TYPE_STRING: case IDLN_TYPE_WIDE_STRING: case IDLN_TYPE_OBJECT: case IDLN_FORWARD_DCL: case IDLN_INTERFACE: case IDLN_TYPE_ANY: case IDLN_NATIVE: case IDLN_TYPE_TYPECODE: return FALSE; break; case IDLN_TYPE_UNION: for(curitem = IDL_TYPE_UNION(ts).switch_body; curitem; curitem = IDL_LIST(curitem).next) { is_fixed &= orbit_cbe_type_is_fixed_length(IDL_LIST(IDL_CASE_STMT(IDL_LIST(curitem).data).element_spec).data); } return is_fixed; break; case IDLN_EXCEPT_DCL: case IDLN_TYPE_STRUCT: for(curitem = IDL_TYPE_STRUCT(ts).member_list; curitem; curitem = IDL_LIST(curitem).next) { is_fixed &= orbit_cbe_type_is_fixed_length(IDL_LIST(curitem).data); } return is_fixed; break; case IDLN_TYPE_ARRAY: return orbit_cbe_type_is_fixed_length(IDL_TYPE_DCL(IDL_get_parent_node(ts, IDLN_TYPE_DCL, NULL)).type_spec); break; case IDLN_TYPE_DCL: return orbit_cbe_type_is_fixed_length(IDL_TYPE_DCL(ts).type_spec); break; case IDLN_IDENT: case IDLN_LIST: return orbit_cbe_type_is_fixed_length(IDL_NODE_UP(ts)); break; case IDLN_MEMBER: return orbit_cbe_type_is_fixed_length(IDL_MEMBER(ts).type_spec); break; default: g_warning("I'm not sure if type %s is fixed-length", IDL_tree_type_names[IDL_NODE_TYPE(ts)]); return FALSE; } } IDL_tree orbit_cbe_get_typespec(IDL_tree node) { if(node == NULL) return NULL; switch(IDL_NODE_TYPE(node)) { case IDLN_TYPE_INTEGER: case IDLN_TYPE_FLOAT: case IDLN_TYPE_FIXED: case IDLN_TYPE_CHAR: case IDLN_TYPE_WIDE_CHAR: case IDLN_TYPE_STRING: case IDLN_TYPE_WIDE_STRING: case IDLN_TYPE_BOOLEAN: case IDLN_TYPE_OCTET: case IDLN_TYPE_ANY: case IDLN_TYPE_OBJECT: case IDLN_TYPE_ENUM: case IDLN_TYPE_SEQUENCE: case IDLN_TYPE_ARRAY: case IDLN_TYPE_STRUCT: case IDLN_TYPE_UNION: case IDLN_EXCEPT_DCL: case IDLN_FORWARD_DCL: case IDLN_INTERFACE: case IDLN_NATIVE: case IDLN_TYPE_TYPECODE: return node; break; case IDLN_TYPE_DCL: return orbit_cbe_get_typespec(IDL_TYPE_DCL(node).type_spec); break; case IDLN_PARAM_DCL: return orbit_cbe_get_typespec(IDL_PARAM_DCL(node).param_type_spec); break; case IDLN_MEMBER: return orbit_cbe_get_typespec(IDL_MEMBER(node).type_spec); break; case IDLN_LIST: case IDLN_IDENT: return orbit_cbe_get_typespec(IDL_get_parent_node(node, IDLN_ANY, NULL)); break; default: g_error("Unhandled node type %s!", IDL_tree_type_names[IDL_NODE_TYPE(node)]); return NULL; } } IDL_ParamRole oidl_attr_to_paramrole(enum IDL_param_attr attr) { switch(attr) { case IDL_PARAM_IN: return DATA_IN; case IDL_PARAM_OUT: return DATA_OUT; case IDL_PARAM_INOUT: return DATA_INOUT; default: g_warning("Unknown IDL_param_attr %d", attr); return -1; } } ORBit2-2.14.19/src/idl-compiler/orbit-idl-backend.c0000644000175000001440000000606011334247617016445 00000000000000/* * orbit-idl-backend.c: * * Copyright (C) 2002 Sun Microsystems, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. * * Authors: * Mark McLoughlin */ #include "config.h" #include "orbit-idl-backend.h" #include "orbit-idl2.h" #include #include static GSList * prepend_from_env_var (GSList *paths, const char *env_var) { char *val; char **strv; int i; if (!(val = getenv ("GNOME2_PATH"))) return paths; strv = g_strsplit (val, ";", -1); for (i = 0; strv [i]; i++) paths = g_slist_prepend ( paths, g_strconcat (strv [i], "/lib/orbit-2.0/idl-backends", NULL)); g_strfreev (strv); return paths; } static ORBitIDLBackendFunc load_language_backend (const char *path, const char *language) { ORBitIDLBackendFunc retval = NULL; GModule *module; char *modname; char *modpath; modname = g_strconcat ("ORBit-idl-backend-", language, NULL); modpath = g_module_build_path (path, modname); g_free (modname); if (!(module = g_module_open (modpath, G_MODULE_BIND_LAZY))) { g_free (modpath); return NULL; } if (!g_module_symbol (module, "orbit_idl_backend_func", (gpointer *) &retval)) g_warning ("backend %s has no \"orbit_idl_backend_func\" defined", modpath); g_free (modpath); return retval; } gboolean orbit_idl_backend_output (OIDL_Run_Info *rinfo, IDL_tree tree) { ORBitIDLBackendFunc func = NULL; ORBitIDLBackendContext context; GSList *paths = NULL; GSList *l; paths = prepend_from_env_var (paths, "GNOME2_PATH"); paths = prepend_from_env_var (paths, "ORBIT_BACKENDS_PATH"); paths = g_slist_prepend (paths, g_strdup (ORBIT_BACKENDS_DIR)); if (rinfo->backend_directory) paths = g_slist_prepend (paths, g_strdup (rinfo->backend_directory)); for (l = paths; l; l = l->next) { func = load_language_backend (l->data, rinfo->output_language); g_free (l->data); if (func) break; } g_slist_free (paths); if (!func) { g_warning("idl-compiler backend not found."); return FALSE; } context.tree = tree; context.filename = rinfo->input_filename; context.do_stubs = (rinfo->enabled_passes & OUTPUT_STUBS ? 1 : 0); context.do_skels = (rinfo->enabled_passes & OUTPUT_SKELS ? 1 : 0); context.do_common = (rinfo->enabled_passes & OUTPUT_COMMON ? 1 : 0); return func (&context); } ORBit2-2.14.19/src/idl-compiler/orbit-idl-c-stubs.c0000644000175000001440000001034011334247617016432 00000000000000#include "config.h" #include "orbit-idl-c-backend.h" #include static void cs_output_stub (IDL_tree tree, OIDL_C_Info *ci, int *idx) { FILE *of = ci->fh; char *iface_id; char *opname; gboolean has_retval, has_args; g_return_if_fail (idx != NULL); iface_id = IDL_ns_ident_to_qstring ( IDL_IDENT_TO_NS (IDL_INTERFACE ( IDL_get_parent_node (tree, IDLN_INTERFACE, NULL) ).ident), "_", 0); opname = IDL_ns_ident_to_qstring (IDL_IDENT_TO_NS (IDL_OP_DCL (tree).ident), "_", 0); has_retval = IDL_OP_DCL (tree).op_type_spec != NULL; has_args = IDL_OP_DCL (tree).parameter_dcls != NULL; orbit_cbe_op_write_proto (of, tree, "", FALSE); fprintf (of, "{\n"); if (has_retval) { orbit_cbe_write_param_typespec (of, tree); fprintf (of, " " ORBIT_RETVAL_VAR_NAME ";\n"); } #if 0 fprintf (ci->fh, "POA_%s__epv *%s;\n", iface_id, ORBIT_EPV_VAR_NAME); fprintf (ci->fh, "gpointer _ORBIT_servant;\n"); /* in-proc part */ fprintf (ci->fh, "if ((%s = ORBit_c_stub_invoke\n", ORBIT_EPV_VAR_NAME); fprintf (ci->fh, " (_obj, %s__classid, &_ORBIT_servant,\n", iface_id); fprintf (ci->fh, " G_STRUCT_OFFSET (POA_%s__epv, %s)))) {\n", iface_id, IDL_IDENT (IDL_OP_DCL (tree).ident).str); fprintf (ci->fh, "if (ORBit_small_flags & ORBIT_SMALL_FAST_LOCALS && \n"); fprintf (ci->fh, " ORBIT_STUB_IsBypass (_obj, %s__classid) && \n", iface_id); fprintf (ci->fh, " (%s = (POA_%s__epv*) ORBIT_STUB_GetEpv (_obj, %s__classid))->%s) {\n", ORBIT_EPV_VAR_NAME, iface_id, iface_id, IDL_IDENT (IDL_OP_DCL (tree).ident).str); fprintf (ci->fh, "ORBIT_STUB_PreCall (_obj);\n"); fprintf (ci->fh, "%s%s->%s (_ORBIT_servant, ", IDL_OP_DCL (tree).op_type_spec? ORBIT_RETVAL_VAR_NAME " = ":"", ORBIT_EPV_VAR_NAME, IDL_IDENT (IDL_OP_DCL (tree).ident).str); for (node = IDL_OP_DCL (tree).parameter_dcls; node; node = IDL_LIST (node).next) fprintf (ci->fh, "%s, ", IDL_IDENT (IDL_PARAM_DCL (IDL_LIST (node).data).simple_declarator).str); if (IDL_OP_DCL (tree).context_expr) fprintf (ci->fh, "_ctx, "); fprintf (ci->fh, "ev);\n"); fprintf (ci->fh, "ORBit_stub_post_invoke (_obj, %s);\n", ORBIT_EPV_VAR_NAME); fprintf (of, " } else { /* remote marshal */\n"); #endif /* remote invocation part */ if (has_args) orbit_cbe_flatten_args (tree, of, "_args"); fprintf (of, "ORBit_c_stub_invoke (_obj, " "&%s__iinterface.methods, %d, ", iface_id, *idx); if (has_retval) fprintf (of, "&_ORBIT_retval, "); else fprintf (of, "NULL, "); if (has_args) fprintf (of, "_args, "); else fprintf (of, "NULL, "); if (IDL_OP_DCL (tree).context_expr) fprintf (ci->fh, "_ctx, "); else fprintf (ci->fh, "NULL, "); fprintf (of, "ev, "); fprintf (of, "%s__classid, G_STRUCT_OFFSET (POA_%s__epv, %s),\n", iface_id, iface_id, IDL_IDENT (IDL_OP_DCL (tree).ident).str); fprintf (of, "(ORBitSmallSkeleton) _ORBIT_skel_small_%s);\n\n", opname); if (has_retval) fprintf (of, "return " ORBIT_RETVAL_VAR_NAME ";\n"); fprintf (of, "}\n"); g_free (iface_id); (*idx)++; } static void cs_output_stubs (IDL_tree tree, OIDL_C_Info *ci, int *idx) { if (!tree) return; switch (IDL_NODE_TYPE (tree)) { case IDLN_MODULE: cs_output_stubs (IDL_MODULE (tree).definition_list, ci, idx); break; case IDLN_LIST: { IDL_tree sub; for (sub = tree; sub; sub = IDL_LIST (sub).next) cs_output_stubs (IDL_LIST (sub).data, ci, idx); break; } case IDLN_ATTR_DCL: { IDL_tree node; for (node = IDL_ATTR_DCL (tree).simple_declarations; node; node = IDL_LIST (node).next) { OIDL_Attr_Info *ai; ai = IDL_LIST (node).data->data; cs_output_stubs (ai->op1, ci, idx); if (ai->op2) cs_output_stubs (ai->op2, ci, idx); } break; } case IDLN_INTERFACE: { int real_idx = 0; cs_output_stubs (IDL_INTERFACE (tree).body, ci, &real_idx); break; } case IDLN_OP_DCL: cs_output_stub (tree, ci, idx); break; default: break; } } void orbit_idl_output_c_stubs (IDL_tree tree, OIDL_Run_Info *rinfo, OIDL_C_Info *ci) { fprintf (ci->fh, OIDL_C_WARNING); fprintf (ci->fh, "#include \n"); fprintf (ci->fh, "#define ORBIT2_STUBS_API\n"); fprintf (ci->fh, "#include \"%s.h\"\n\n", ci->base_name); cs_output_stubs (tree, ci, NULL); } ORBit2-2.14.19/src/Makefile.am0000644000175000001440000000004711334247617012502 00000000000000SUBDIRS=idl-compiler idl orb services ORBit2-2.14.19/src/Makefile.in0000644000175000001440000004370111450333733012511 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = idl-compiler idl orb services all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/src/idl/0000755000175000001440000000000011450334027011264 500000000000000ORBit2-2.14.19/src/idl/Makefile.am0000644000175000001440000000004611334247617013251 00000000000000SUBDIRS=CORBA CORBA_PIDL interop misc ORBit2-2.14.19/src/idl/Makefile.in0000644000175000001440000004371511450333733013266 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/idl DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = CORBA CORBA_PIDL interop misc all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/idl/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/idl/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/src/idl/CORBA_PIDL/0000755000175000001440000000000011450334027012722 500000000000000ORBit2-2.14.19/src/idl/CORBA_PIDL/Makefile.am0000644000175000001440000000032711334247617014711 00000000000000EXTRA_DIST=\ CORBA_Context.idl \ CORBA_Interceptor.idl \ CORBA_NVList.idl \ CORBA_ORB.idl \ CORBA_ORB_init.idl \ CORBA_Object.idl \ CORBA_Request.idl \ CORBA_ServerRequest.idl \ CORBA_ValueBase.idl \ pseudo_orb.idl ORBit2-2.14.19/src/idl/CORBA_PIDL/CORBA_Object.idl0000644000175000001440000000352211334247617015463 00000000000000// File: CORBA_Object.idl // CORBA 3.0, Chapter 4 //PIDL struct NamedValue { Identifier name; // argument name any argument; // argument long len; // length/count of argument value Flags arg_modes; // argument mode flags }; enum SetOverrideType {SET_OVERRIDE, ADD_OVERRIDE}; interface Object { // PIDL InterfaceDef get_interface (); boolean is_nil(); Object duplicate (); void release (); boolean is_a ( in string logical_type_id ); boolean non_existent(); boolean is_equivalent ( in Object other_object ); unsigned long hash( in unsigned long maximum ); void create_request ( in Context ctx, in Identifier operation, in NVList arg_list, inout NamedValue result, out Request request, in Flags req_flag ); Policy get_policy ( in PolicyType policy_type ); DomainManagersList get_domain_managers (); Object set_policy_overrides( in PolicyList policies, in SetOverrideType set_add ) raises(InvalidPolicies); Policy get_client_policy( in PolicyType type ); PolicyList get_policy_overrides( in PolicyTypeSeq types ); boolean validate_connection( out PolicyList inconsistent_policies ); Object get_component (); }; ORBit2-2.14.19/src/idl/CORBA_PIDL/Makefile.in0000644000175000001440000002612211450333733014715 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/idl/CORBA_PIDL DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = \ CORBA_Context.idl \ CORBA_Interceptor.idl \ CORBA_NVList.idl \ CORBA_ORB.idl \ CORBA_ORB_init.idl \ CORBA_Object.idl \ CORBA_Request.idl \ CORBA_ServerRequest.idl \ CORBA_ValueBase.idl \ pseudo_orb.idl all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/idl/CORBA_PIDL/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/idl/CORBA_PIDL/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/src/idl/CORBA_PIDL/CORBA_Interceptor.idl0000644000175000001440000000122111334247617016545 00000000000000// File: CORBA_interceptor.idl // CORBA 2.3, Chapter 21 interface Interceptor { }; interface RequestInterceptor: Interceptor {// PIDL void client_invoke ( inout Request request ); void target_invoke ( inout Request request ); }; interface MessageInterceptor: Interceptor {// PIDL native Message; void send_message ( in Object target, in Message msg ); void receive_message ( in Object target, in Message msg ); }; ORBit2-2.14.19/src/idl/CORBA_PIDL/pseudo_orb.idl0000644000175000001440000001102611334247617015506 00000000000000// File: pseudo_orb.idl // From CORBA 3.0 #ifndef _PSEUDO_ORB_IDL_ #define _PSEUDO_ORB_IDL_ #include // This module brings together all the pseudo IDL in the definition // of the CORBA module. (May heaven have mercy on us.) // Why? Just to see if it can be done. Well, maybe a little more. // The PIDL interfaces are included in this file for the purpose // of testing the syntax (for all the good that does) and for // completeness. Including them serves as documentation of // the intent of the CORBA specification. // This file should never be copied (or #included) into a real IDL // file for a couple reasons. First, the only reason this compiles // is a couple tricks played, as you will see below. The tricks // are necessary because there are PIDL definition of entities // whose names conflict with IDL keywords (Object, ValueBase, and // Context); the tricks essentially negate any pseudo-benefit that // might accrue from pseudo-compiling the PIDL. Finally, PIDL does // not define a full CORBA object. These pseudo-objects are // implemented as purely local entities; the ORB provides the // implementation. An invocation on a pseudo-object goes directly // to a language entity; specifically, it doesn't go through the // full remote invocation process (avoiding infinite regress). As // a result, the generated stubs wouldn't get to the right code // even if used by a client program and the skeletons aren't of // use to anybody. // For the definitions that an application needs corresponding to, // the PIDL in this file, an ORB provides a special stub (header // file, whatever) corresponding to the custom mapping of the // PIDL for that language. It's as if the ORB vendor compiled // this PIDL using a PIDL compiler. // Most IDL compilers don't accept the "native" keyword in application IDL // files. In order to compile an IDL (really PIDL) file that has it, the // following trick can be used: change what the compiler sees. Instead // of letting the compiler see the keyword "native", use a preprocessor // definition that results in valid IDL, even if it doesn't yield // useful stubs and skeletons. Of course, PIDL never results in // the standard stubs so that's not a problem. // // Set the variable _MASK_NATIVE_ in the IDL compiler to enable it to // parse this file. #ifdef _MASK_NATIVE_ #define native typedef long #endif // _MASK_NATIVE_ module CORBA { // The following forward references list *all* the PIDL interfaces and // valuetypes in the CORBA module. This serves two purposes: documentation // and compilability. Documentation is nice: since some of the interfaces // must be declared as forward references, it is more consistent to // declare them all. // // As far as compilability, it might be possible to avoid having to declare // many of the forward reference by rearranging the order of the interface // declarations, but there's no reason to do bother doing that since // that's the reason forward references were invented. Doing a forward // reference allows the definition order to be relatively logical.In // particular, it allows the "include"s to be done in chapter order // (almost), the only exception being the InterfaceRepository (Chapter 10). // It contains some data definitions needed by Chapter 4 interfaces. // The other reason not to try to rearrange the order is that it's hard. // Forward references, alphabetically interface Context; // Chapter 7, CORBA_Context.idl interface NVList; // Chapter 7, CORBA_NVList.idl interface Object; // Chapter 4, CORBA_Object.idl interface ORB; // Chapter 4, CORBA_ORB.idl interface Request; // Chapter 7, CORBA_Request.idl interface ServerRequest; // Chapter 8, CORBA_ServerRequest.idl #ifndef _ORBIT2_ valuetype ValueBase; // Chapter 4, CORBA_ValueBase.idl #endif typedef unsigned long Flags; // Chapter 4: ORB Interface #include #include #ifndef _ORBIT2_ // Chapter 5: Value Type Semantics #include #endif // Chapter 7: Dynamic Invocation Interface #include #include #include // Chapter 8: Dynamic Skeleton Interface #include }; #endif // _PSEUDO_ORB_IDL_ ORBit2-2.14.19/src/idl/CORBA_PIDL/CORBA_ORB.idl0000644000175000001440000001602711334247617014703 00000000000000// File CORBA_ORB.idl // CORBA 3.0, Chapter 4 typedef sequence RequestSeq; native AbstractBase; typedef unsigned short ServiceType; typedef unsigned long ServiceOption; typedef unsigned long ServiceDetailType; const ServiceType Security = 1; struct ServiceDetail { ServiceDetailType service_detail_type; sequence service_detail; }; struct ServiceInformation { sequence service_options; sequence service_details; }; native ValueFactory; typedef string ORBid; // frehberg@gnome-de.org exception WrongTransaction {}; interface ORB { // PIDL typedef string ObjectId; typedef sequence ObjectIdList; exception InvalidName {}; ORBid id(); string object_to_string ( in Object obj ); Object string_to_object ( in string str ); // Dynamic Invocation related operations void create_list ( in long count, out NVList new_list ); void create_operation_list ( in OperationDef oper, out NVList new_list ); void get_default_context ( out Context ctx ); void send_multiple_requests_oneway( in RequestSeq req ); void send_multiple_requests_deferred( in RequestSeq req ); boolean poll_next_response(); void get_next_response( out Request req ) raises (WrongTransaction); // Service information operations boolean get_service_information ( in ServiceType service_type, out ServiceInformation service_information ); ObjectIdList list_initial_services (); // Initial reference operation Object resolve_initial_references ( in ObjectId identifier ) raises (InvalidName); // Type code creation operations TypeCode create_struct_tc ( in RepositoryId id, in Identifier name, in StructMemberSeq members ); TypeCode create_union_tc ( in RepositoryId id, in Identifier name, in TypeCode discriminator_type, in UnionMemberSeq members ); TypeCode create_enum_tc ( in RepositoryId id, in Identifier name, in EnumMemberSeq members ); TypeCode create_alias_tc ( in RepositoryId id, in Identifier name, in TypeCode original_type ); TypeCode create_exception_tc ( in RepositoryId id, in Identifier name, in StructMemberSeq members ); TypeCode create_interface_tc ( in RepositoryId id, in Identifier name ); TypeCode create_string_tc ( in unsigned long bound ); TypeCode create_wstring_tc ( in unsigned long bound ); TypeCode create_fixed_tc ( in unsigned short digits, in short scale ); TypeCode create_sequence_tc ( in unsigned long bound, in TypeCode element_type ); TypeCode create_recursive_sequence_tc( // deprecated in unsigned long bound, in unsigned long offset ); TypeCode create_array_tc ( in unsigned long length, in TypeCode element_type ); TypeCode create_value_tc ( in RepositoryId id, in Identifier name, in ValueModifier type_modifier, in TypeCode concrete_base, in ValueMemberSeq members ); TypeCode create_value_box_tc ( in RepositoryId id, in Identifier name, in TypeCode boxed_type ); TypeCode create_native_tc ( in RepositoryId id, in Identifier name ); TypeCode create_recursive_tc( in RepositoryId id ); TypeCode create_abstract_interface_tc( in RepositoryId id, in Identifier name ); TypeCode create_local_interface_tc( in RepositoryId id, in Identifier name ); TypeCode create_component_tc ( in RepositoryId id, in Identifier name ); TypeCode create_home_tc ( in RepositoryId id, in Identifier name ); TypeCode create_event_tc ( in RepositoryId id, in Identifier name, in ValueModifier type_modifier, in TypeCode concrete_base, in ValueMemberSeq members ); // Thread related operations boolean work_pending( ); void perform_work(); void run(); void shutdown( in boolean wait_for_completion ); void destroy(); // Policy related operations Policy create_policy( in PolicyType type, in any val ) raises (PolicyError); // Dynamic Any related operations deprecated and removed // from primary list of ORB operations // Value factory operations ValueFactory register_value_factory( in RepositoryId id, in ValueFactory _factory ); void unregister_value_factory( in RepositoryId id); ValueFactory lookup_value_factory( in RepositoryId id); // Portable Interceptor related operations void register_initial_reference( in ObjectId id, in Object obj ) raises (InvalidName); }; ORBit2-2.14.19/src/idl/CORBA_PIDL/CORBA_ORB_init.idl0000644000175000001440000000072711334247617015726 00000000000000// File: CORBA_ORB_init.idl // CORBA 3.0, Chapter 4 // Note: This PIDL does not compile. Don't even try. // It defines an operation not in an interface, which is illegal. // As a result, this file is not "included" anywhere. // It is included for completeness' sake. // PIDL module CORBA { typedef string ORBid; typedef sequence arg_list; ORB ORB_init (inout arg_list argv, in ORBid orb_identifier); }; ORBit2-2.14.19/src/idl/CORBA_PIDL/CORBA_Context.idl0000644000175000001440000000167011334247617015703 00000000000000// File: CORBA_Context.idl // From CORBA 3.0, Chapter 4 interface Context { // PIDL void set_one_value ( in Identifier prop_name, // property name to add in string value // property value to add ); void set_values ( in NVList values // property values to be changed ); void get_values ( in Identifier start_scope, // search scope in Flags op_flags, // operation flags in Identifier prop_name, // name of property(s) to retrieve out NVList values // requested property(s) ); void delete_values ( in Identifier prop_name // name of property(s) to delete ); void create_child ( in Identifier ctx_name, // name of context object out Context child_ctx // newly created context object ); void delete ( in Flags del_flags // flags controlling deletion ); }; ORBit2-2.14.19/src/idl/CORBA_PIDL/CORBA_Request.idl0000644000175000001440000000166311334247617015711 00000000000000// File: CORBA_Request.idl // CORBA 3.0, Chapter 7 native OpaqueValue; interface Request { // PIDL void add_arg ( in Identifier name, // argument name in TypeCode arg_type, // argument datatype in OpaqueValue value, // argument value to be added in long len, // length/count of argument value in Flags arg_flags // argument flags ); void invoke ( in Flags invoke_flags // invocation flags ); void delete (); void send ( in Flags invoke_flags // invocation flags ); void get_response () raises (WrongTransaction); boolean poll_response(); Object sendp(); void prepare(in Object p); void sendc(in Object handler); }; ORBit2-2.14.19/src/idl/CORBA_PIDL/CORBA_ValueBase.idl0000644000175000001440000000020711334247617016121 00000000000000// File: CORBA_ValueBase.idl // CORBA 3.0, Chapter 5 valuetype ValueBase{ //PIDL ValueDef get_value_def(); }; ORBit2-2.14.19/src/idl/CORBA_PIDL/CORBA_NVList.idl0000644000175000001440000000122111334247617015426 00000000000000// File: CORBA_NVList.idl // CORBA 3.0, Chapter 7 interface NVList { // PIDL void add_item ( in Identifier item_name, // name of item in TypeCode item_type, // item datatype in OpaqueValue value, // item value in long value_len, // length of item value in Flags item_flags // item flags ); void free ( ); void free_memory ( ); void get_count ( out long count // number of entries in the list ); }; ORBit2-2.14.19/src/idl/CORBA_PIDL/CORBA_ServerRequest.idl0000644000175000001440000000055211334247617017074 00000000000000// File: ServerRequest.idl // CORBA 3.0, Chapter 8 interface ServerRequest { // PIDL readonly attribute Identifier operation; void arguments (inout NVList nv); Context ctx(); void set_result (in any val); void set_exception(in any val); }; ORBit2-2.14.19/src/idl/interop/0000755000175000001440000000000011450334027012744 500000000000000ORBit2-2.14.19/src/idl/interop/CSI.idl0000644000175000001440000001740111334247617014010 00000000000000// // CSI.idl // CORBA Core 3.0 Chapter 24 #ifndef _CSI_IDL_ #define _CSI_IDL_ #ifdef _PRE_3_0_COMPILER_ #pragma prefix "omg.org" #else #endif // _PRE_3_0_COMPILER_ module CSI { #ifndef _PRE_3_0_COMPILER_ typeprefix CSI "omg.org"; #endif // _PRE_3_0_COMPILER_ // The OMG VMCID; same value as CORBA::OMGVMCID. Do not change ever. const unsigned long OMGVMCID = 0x4F4D0; // An X509CertificateChain contains an ASN.1 BER encoded SEQUENCE // [1..MAX] OF X.509 certificates encapsulated in a sequence of octets. The // subject's certificate shall come first in the list. Each following // certificate shall directly certify the one preceding it. The ASN.1 // representation of Certificate is as defined in [IETF RFC 2459]. typedef sequence X509CertificateChain; // an X.501 type name or Distinguished Name encapsulated in a sequence of // octets containing the ASN.1 encoding. typedef sequence X501DistinguishedName; // UTF-8 Encoding of String typedef sequence UTF8String; // ASN.1 Encoding of an OBJECT IDENTIFIER typedef sequence OID; typedef sequence OIDList; // A sequence of octets containing a GSStoken. Initial context tokens are // ASN.1 encoded as defined in [IETF RFC 2743] Section 3.1, // "Mechanism-Independent token Format", pp. 81-82. Initial context tokens // contain an ASN.1 tag followed by a token length, a mechanism identifier, // and a mechanism-specific token (i.e. a GSSUP::InitialContextToken). The // encoding of all other GSS tokens (e.g. error tokens and final context // tokens) is mechanism dependent. typedef sequence GSSToken; // An encoding of a GSS Mechanism-Independent Exported Name Object as // defined in [IETF RFC 2743] Section 3.2, "GSS Mechanism-Independent // Exported Name Object Format," p. 84. typedef sequence GSS_NT_ExportedName; typedef sequence GSS_NT_ExportedNameList; // The MsgType enumeration defines the complete set of service context // message types used by the CSI context management protocols, including // those message types pertaining only to the stateful application of the // protocols (to insure proper alignment of the identifiers between // stateless and stateful implementations). Specifically, the // MTMessageInContext is not sent by stateless clients (although it may // be received by stateless targets). typedef short MsgType; const MsgType MTEstablishContext = 0; const MsgType MTCompleteEstablishContext = 1; const MsgType MTContextError = 4; const MsgType MTMessageInContext = 5; // The ContextId type is used carry session identifiers. A stateless // application of the service context protocol is indicated by a session // identifier value of 0. typedef unsigned long long ContextId; // The AuthorizationElementType defines the contents and encoding of // the_element field of the AuthorizationElement. // The high order 20-bits of each AuthorizationElementType constant // shall contain the Vendor Minor Codeset ID (VMCID) of the // organization that defined the element type. The low order 12 bits // shall contain the organization-scoped element type identifier. The // high-order 20 bits of all element types defined by the OMG shall // contain the VMCID allocated to the OMG (that is, 0x4F4D0). typedef unsigned long AuthorizationElementType; // An AuthorizationElementType of X509AttributeCertChain indicates that // the_element field of the AuthorizationElement contains an ASN.1 BER // SEQUENCE composed of an (X.509) AttributeCertificate followed by a // SEQUENCE OF (X.509) Certificate. The two-part SEQUENCE is encapsulated // in an octet stream. The chain of identity certificates is provided // to certify the attribute certificate. Each certificate in the chain // shall directly certify the one preceding it. The first certificate // in the chain shall certify the attribute certificate. The ASN.1 // representation of (X.509) Certificate is as defined in [IETF RFC 2459]. // The ASN.1 representation of (X.509) AtributeCertificate is as defined // in [IETF ID PKIXAC]. const AuthorizationElementType X509AttributeCertChain = OMGVMCID | 1; typedef sequence AuthorizationElementContents; // The AuthorizationElement contains one element of an authorization token. // Each element of an authorization token is logically a PAC. struct AuthorizationElement { AuthorizationElementType the_type; AuthorizationElementContents the_element; }; // The AuthorizationToken is made up of a sequence of // AuthorizationElements typedef sequence AuthorizationToken; typedef unsigned long IdentityTokenType; // Additional standard identity token types shall only be defined by the // OMG. All IdentityTokenType constants shall be a power of 2. const IdentityTokenType ITTAbsent = 0; const IdentityTokenType ITTAnonymous = 1; const IdentityTokenType ITTPrincipalName = 2; const IdentityTokenType ITTX509CertChain = 4; const IdentityTokenType ITTDistinguishedName = 8; typedef sequence IdentityExtension; union IdentityToken switch ( IdentityTokenType ) { case ITTAbsent: boolean absent; case ITTAnonymous: boolean anonymous; case ITTPrincipalName: GSS_NT_ExportedName principal_name; case ITTX509CertChain: X509CertificateChain certificate_chain; case ITTDistinguishedName: X501DistinguishedName dn; default: IdentityExtension id; }; struct EstablishContext { ContextId client_context_id; AuthorizationToken authorization_token; IdentityToken identity_token; GSSToken client_authentication_token; }; struct CompleteEstablishContext { ContextId client_context_id; boolean context_stateful; GSSToken final_context_token; }; struct ContextError { ContextId client_context_id; long major_status; long minor_status; GSSToken error_token; }; // Not sent by stateless clients. If received by a stateless server, a // ContextError message should be returned, indicating the session does // not exist. struct MessageInContext { ContextId client_context_id; boolean discard_context; }; union SASContextBody switch ( MsgType ) { case MTEstablishContext: EstablishContext establish_msg; case MTCompleteEstablishContext: CompleteEstablishContext complete_msg; case MTContextError: ContextError error_msg; case MTMessageInContext: MessageInContext in_context_msg; }; // The following type represents the string representation of an ASN.1 // OBJECT IDENTIFIER (OID). OIDs are represented by the string "oid:" // followed by the integer base 10 representation of the OID separated // by dots. For example, the OID corresponding to the OMG is represented // as: "oid:2.23.130" typedef string StringOID; // The GSS Object Identifier for the KRB5 mechanism is: // { iso(1) member-body(2) United States(840) mit(113554) infosys(1) // gssapi(2) krb5(2) } const StringOID KRB5MechOID = "oid:1.2.840.113554.1.2.2"; // The GSS Object Identifier for name objects of the Mechanism-idependent // Exported Name Object type is: // { iso(1) org(3) dod(6) internet(1) security(5) nametypes(6) // gss-api-exported-name(4) } const StringOID GSS_NT_Export_Name_OID = "oid:1.3.6.1.5.6.4"; // The GSS Object Identifier for the scoped-username name form is: // { iso-itu-t (2) international-organization (23) omg (130) security (1) // naming (2) scoped-username(1) } const StringOID GSS_NT_Scoped_Username_OID = "oid:2.23.130.1.2.1"; }; // CSI #endif ORBit2-2.14.19/src/idl/interop/Makefile.am0000644000175000001440000000025111334247617014727 00000000000000EXTRA_DIST=\ BiDirPolicy.idl \ GIOP.idl \ IIOP.idl \ IOP.idl \ IOP_DCE.idl \ SendingContext.idl \ conv_frame.idl \ orbit-specific.idl \ CSI.idl \ CSIIOP.idl \ GSSUP.idl ORBit2-2.14.19/src/idl/interop/Makefile.in0000644000175000001440000002603311450333733014740 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/idl/interop DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = \ BiDirPolicy.idl \ GIOP.idl \ IIOP.idl \ IOP.idl \ IOP_DCE.idl \ SendingContext.idl \ conv_frame.idl \ orbit-specific.idl \ CSI.idl \ CSIIOP.idl \ GSSUP.idl all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/idl/interop/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/idl/interop/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/src/idl/interop/conv_frame.idl0000644000175000001440000000121011334247617015500 00000000000000// File: CONV_FRAME.idl // From CORBA 2.3: Chapter 13, Interoperability Architecture #ifndef _CONV_FRAME_IDL #define _CONV_FRAME_IDL #pragma prefix "omg.org" module CONV_FRAME { typedef unsigned long CodeSetId; struct CodeSetComponent { CodeSetId native_code_set; sequence conversion_code_sets; }; struct CodeSetComponentInfo { CodeSetComponent ForCharData; CodeSetComponent ForWcharData; }; struct CodeSetContext { CodeSetId char_data; CodeSetId wchar_data; }; }; #endif // _CONV_FRAME_IDL ORBit2-2.14.19/src/idl/interop/IIOP.idl0000644000175000001440000000254511334247617014135 00000000000000// File: IIOP.idl // From CORBA 3.0: Chapter 15, General Inter-ORB Protocol #ifndef _IIOP_IDL_ #define _IIOP_IDL_ #ifdef _PRE_3_0_COMPILER_ #pragma prefix "omg.org" #include #else import ::IOP; #endif // _PRE_3_0_COMPILER_ module IIOP { // IDL extended for version 1.1 and 1.2 #ifndef _PRE_3_0_COMPILER_ typeprefix IIOP "omg.org"; #endif // _PRE_3_0_COMPILER_ struct Version { octet major; octet minor; }; struct ProfileBody_1_0 {// renamed from ProfileBody Version iiop_version; string host; unsigned short port; sequence object_key; }; struct ProfileBody_1_1 {// also used for 1.2 Version iiop_version; string host; unsigned short port; sequence object_key; // Added in 1.1 unchanged for 1.2 sequence components; }; // BiDirectional IIOP struct ListenPoint { string host; unsigned short port; }; typedef sequence ListenPointList; struct BiDirIIOPServiceContext {// BI_DIR_IIOP Service Context ListenPointList listen_points; }; }; #endif // _IIOP_IDL_ ORBit2-2.14.19/src/idl/interop/IOP.idl0000644000175000001440000001415211334247617014021 00000000000000// File: IOP.idl // From CORBA 3.0: Chapter 13, ORB Interoperability Achitecture #ifndef _IOP_IDL_ #define _IOP_IDL_ #ifdef _PRE_3_0_COMPILER_ #pragma prefix "omg.org" #include #else import ::CORBA; #endif // _PRE_3_0_COMPILER_ module IOP { #ifndef _PRE_3_0_COMPILER_ typeprefix IOP "omg.org"; #endif // _PRE_3_0_COMPILER_ // IOR Profiles // Standard Protocol Profile tag values typedef unsigned long ProfileId; const ProfileId TAG_INTERNET_IOP = 0; const ProfileId TAG_MULTIPLE_COMPONENTS = 1; const ProfileId TAG_SCCP_IOP = 2; struct TaggedProfile { ProfileId tag; sequence profile_data; }; // The IOR // an Interoperable Object Reference is a sequence of // object-specific protocol profiles, plus a type ID. struct IOR { string type_id; sequence profiles; }; // IOR Components // Standard way of representing multicomponent profiles. // This would be encapsulated in a TaggedProfile. typedef unsigned long ComponentId; struct TaggedComponent { ComponentId tag; sequence component_data; }; typedef sequence MultipleComponentProfile; const ComponentId TAG_ORB_TYPE = 0; const ComponentId TAG_CODE_SETS = 1; const ComponentId TAG_POLICIES = 2; const ComponentId TAG_ALTERNATE_IIOP_ADDRESS = 3; const ComponentId TAG_ASSOCIATION_OPTIONS = 13; const ComponentId TAG_SEC_NAME = 14; const ComponentId TAG_SPKM_1_SEC_MECH = 15; const ComponentId TAG_SPKM_2_SEC_MECH = 16; const ComponentId TAG_KerberosV5_SEC_MECH = 17; const ComponentId TAG_CSI_ECMA_Secret_SEC_MECH= 18; const ComponentId TAG_CSI_ECMA_Hybrid_SEC_MECH= 19; const ComponentId TAG_SSL_SEC_TRANS = 20; const ComponentId TAG_CSI_ECMA_Public_SEC_MECH= 21; const ComponentId TAG_GENERIC_SEC_MECH = 22; const ComponentId TAG_FIREWALL_TRANS = 23; const ComponentId TAG_SCCP_CONTACT_INFO = 24; const ComponentId TAG_JAVA_CODEBASE = 25; const ComponentId TAG_TRANSACTION_POLICY = 26; const ComponentId TAG_MESSAGE_ROUTER = 30; const ComponentId TAG_OTS_POLICY = 31; const ComponentId TAG_INV_POLICY = 32; const ComponentId TAG_CSI_SEC_MECH_LIST = 33; const ComponentId TAG_NULL_TAG = 34; const ComponentId TAG_SECIOP_SEC_TRANS = 35; const ComponentId TAG_TLS_SEC_TRANS = 36; const ComponentId TAG_ACTIVITY_POLICY = 37; const ComponentId TAG_COMPLETE_OBJECT_KEY = 5; const ComponentId TAG_ENDPOINT_ID_POSITION = 6; const ComponentId TAG_LOCATION_POLICY = 12; const ComponentId TAG_DCE_STRING_BINDING = 100; const ComponentId TAG_DCE_BINDING_NAME = 101; const ComponentId TAG_DCE_NO_PIPES = 102; const ComponentId TAG_DCE_SEC_MECH = 103; const ComponentId TAG_INET_SEC_TRANS = 123; // Service Contexts typedef unsigned long ServiceId; struct ServiceContext { ServiceId context_id; sequence context_data; }; typedef sequence ServiceContextList; const ServiceId TransactionService = 0; const ServiceId CodeSets = 1; const ServiceId ChainBypassCheck = 2; const ServiceId ChainBypassInfo = 3; const ServiceId LogicalThreadId = 4; const ServiceId BI_DIR_IIOP = 5; const ServiceId SendingContextRunTime = 6; const ServiceId INVOCATION_POLICIES = 7; const ServiceId FORWARDED_IDENTITY = 8; const ServiceId UnknownExceptionInfo = 9; const ServiceId RTCorbaPriority = 10; const ServiceId RTCorbaPriorityRange = 11; const ServiceId FT_GROUP_VERSION = 12; const ServiceId FT_REQUEST = 13; const ServiceId ExceptionDetailMessage = 14; const ServiceId SecurityAttributeService = 15; const ServiceId ActivityService = 16; // Coder Decoder from Portable Interceptor local interface Codec { exception InvalidTypeForEncoding {}; exception FormatMismatch {}; exception TypeMismatch {}; CORBA::OctetSeq encode (in any data) raises (InvalidTypeForEncoding); any decode (in CORBA::OctetSeq data) raises (FormatMismatch); CORBA::OctetSeq encode_value (in any data) raises (InvalidTypeForEncoding); any decode_value ( in CORBA::OctetSeq data, in CORBA::TypeCode tc) raises (FormatMismatch, TypeMismatch); }; // Codec Factory typedef short EncodingFormat; const EncodingFormat ENCODING_CDR_ENCAPS = 0; struct Encoding { EncodingFormat format; octet major_version; octet minor_version; }; local interface CodecFactory { exception UnknownEncoding {}; Codec create_codec (in Encoding enc) raises (UnknownEncoding); }; }; // #include #endif // _IOP_IDL_ ORBit2-2.14.19/src/idl/interop/GSSUP.idl0000644000175000001440000000337211334247617014275 00000000000000// // File: GSSUP.idl // CORBA 3.0 Chapter 24 #ifndef _GSSUP_IDL_ #define _GSSUP_IDL_ #ifdef _PRE_3_0_COMPILER_ #include #pragma prefix "omg.org" #else import ::CSI; #endif // _PRE_3_0_COMPILER_ module GSSUP { #ifndef _PRE_3_0_COMPILER_ typeprefix GSSUP "omg.org"; #endif // _PRE_3_0_COMPILER_ // The GSS Object Identifier allocated for the // username/password mechanism is defined below. // // { iso-itu-t (2) international-organization (23) omg (130) // security (1) authentication (1) gssup-mechanism (1) } const CSI::StringOID GSSUPMechOID = "oid:2.23.130.1.1.1"; // The following structure defines the inner contents of the // username password initial context token. This structure is // CDR encapsulated and appended at the end of the // username/password GSS (initial context) Token. struct InitialContextToken { CSI::UTF8String username; CSI::UTF8String password; CSI::GSS_NT_ExportedName target_name; }; typedef unsigned long ErrorCode; // GSSUP Mechanism-Specific Error Token struct ErrorToken { ErrorCode error_code; }; // The context validator has chosen not to reveal the GSSUP // specific cause of the failure. const ErrorCode GSS_UP_S_G_UNSPECIFIED = 1; // The user identified in the username field of the // GSSUP::InitialContextToken is unknown to the target. const ErrorCode GSS_UP_S_G_NOUSER = 2; // The password supplied in the GSSUP::InitialContextToken was // incorrect. const ErrorCode GSS_UP_S_G_BAD_PASSWORD = 3; // The target_name supplied in the GSSUP::InitialContextToken does // not match a target_name in a mechanism definition of the target. const ErrorCode GSS_UP_S_G_BAD_TARGET = 4; }; // GSSUP #endif ORBit2-2.14.19/src/idl/interop/GIOP.idl0000644000175000001440000001611211334247617014126 00000000000000// File: GIOP.idl // From CORBA 3.0: Chapter 15, General Inter-ORB Protocol // To compiler this for #ifndef _GIOP_IDL_ #define _GIOP_IDL_ #ifdef _PRE_3_0_COMPILER_ #include #pragma prefix "omg.org" #else import ::IOP; #endif // _PRE_3_0_COMPILER_ module GIOP { // IDL extended for version 1.1 and 1.2 #ifndef _PRE_3_0_COMPILER_ typeprefix GIOP "omg.org"; #endif // _PRE_3_0_COMPILER_ struct Version { octet major; octet minor; }; // Note: Principal is not used in V1.2 and beyond. However, it must // be available for V1.0 and V1.1 typedef sequence Principal; // GIOP 1.1 enum MsgType_1_1 { Request, Reply, CancelRequest, LocateRequest, LocateReply, CloseConnection, MessageError, Fragment // GIOP 1.1 addition }; typedef GIOP::MsgType_1_1 MsgType_1_2; typedef GIOP::MsgType_1_1 MsgType_1_3; // GIOP 1.0 struct MessageHeader_1_0 {// Renamed from MessageHeader char magic [4]; Version GIOP_version; boolean byte_order; octet message_type; unsigned long message_size; }; // GIOP 1.1 struct MessageHeader_1_1 { char magic [4]; Version GIOP_version; octet flags; // GIOP 1.1 change octet message_type; unsigned long message_size; }; // GIOP 1.2 typedef MessageHeader_1_1 MessageHeader_1_2; // GIOP 1.3 typedef MessageHeader_1_1 MessageHeader_1_3; // GIOP 1.0 struct RequestHeader_1_0 { IOP::ServiceContextList service_context; unsigned long request_id; boolean response_expected; sequence object_key; string operation; Principal requesting_principal; }; // GIOP 1.1 struct RequestHeader_1_1 { IOP::ServiceContextList service_context; unsigned long request_id; boolean response_expected; octet reserved[3]; // Added in GIOP 1.1 sequence object_key; string operation; Principal requesting_principal; }; // GIOP 1.2 typedef short AddressingDisposition; const short KeyAddr = 0; const short ProfileAddr = 1; const short ReferenceAddr = 2; struct IORAddressingInfo { unsigned long selected_profile_index; IOP::IOR ior; }; union TargetAddress switch (AddressingDisposition) { case KeyAddr: sequence object_key; case ProfileAddr: IOP::TaggedProfile profile; case ReferenceAddr: IORAddressingInfo ior; }; struct RequestHeader_1_2 { unsigned long request_id; octet response_flags; octet reserved[3]; TargetAddress target; string operation; // Principal not in GIOP 1.2 IOP::ServiceContextList service_context; // 1.2 change }; // GIOP 1.3 typedef RequestHeader_1_2 RequestHeader_1_3; #ifndef GIOP_1_2 // GIOP 1.0 and 1.1 enum ReplyStatusType_1_0 {// Renamed from ReplyStatusType NO_EXCEPTION, USER_EXCEPTION, SYSTEM_EXCEPTION, LOCATION_FORWARD }; // GIOP 1.0 struct ReplyHeader_1_0 {// Renamed from ReplyHeader IOP::ServiceContextList service_context; unsigned long request_id; ReplyStatusType_1_0 reply_status; }; // GIOP 1.1 typedef ReplyHeader_1_0 ReplyHeader_1_1; // Same Header contents for 1.0 and 1.1 #else // GIOP 1.2 enum ReplyStatusType_1_2 { NO_EXCEPTION, USER_EXCEPTION, SYSTEM_EXCEPTION, LOCATION_FORWARD, LOCATION_FORWARD_PERM, // new value for 1.2 NEEDS_ADDRESSING_MODE // new value for 1.2 }; struct ReplyHeader_1_2 { unsigned long request_id; ReplyStatusType_1_2 reply_status; IOP::ServiceContextList service_context; // 1.2 change }; // GIOP 1.3 typedef ReplyHeader_1_2 ReplyHeader_1_3; #endif // GIOP_1_2 struct SystemExceptionReplyBody { string exception_id; unsigned long minor_code_value; unsigned long completion_status; }; struct CancelRequestHeader { unsigned long request_id; }; // GIOP 1.0 struct LocateRequestHeader_1_0 {// Renamed LocationRequestHeader unsigned long request_id; sequence object_key; }; // GIOP 1.1 typedef LocateRequestHeader_1_0 LocateRequestHeader_1_1; // Same Header contents for 1.0 and 1.1 // GIOP 1.2 struct LocateRequestHeader_1_2 { unsigned long request_id; TargetAddress target; }; // GIOP 1.3 typedef LocateRequestHeader_1_2 LocateRequestHeader_1_3; #ifndef GIOP_1_2 // GIOP 1.0 and 1.1 enum LocateStatusType_1_0 {// Renamed from LocateStatusType UNKNOWN_OBJECT, OBJECT_HERE, OBJECT_FORWARD }; // GIOP 1.0 struct LocateReplyHeader_1_0 {// Renamed from LocateReplyHeader unsigned long request_id; LocateStatusType_1_0 locate_status; }; // GIOP 1.1 typedef LocateReplyHeader_1_0 LocateReplyHeader_1_1; // same Header contents for 1.0 and 1.1 #else // GIOP 1.2 enum LocateStatusType_1_2 { UNKNOWN_OBJECT, OBJECT_HERE, OBJECT_FORWARD, OBJECT_FORWARD_PERM, // new value for GIOP 1.2 LOC_SYSTEM_EXCEPTION, // new value for GIOP 1.2 LOC_NEEDS_ADDRESSING_MODE // new value for GIOP 1.2 }; struct LocateReplyHeader_1_2 { unsigned long request_id; LocateStatusType_1_2 locate_status; }; // GIOP 1.3 typedef LocateReplyHeader_1_2 LocateReplyHeader_1_3; #endif // GIOP_1_2 // GIOP 1.2 struct FragmentHeader_1_2 { unsigned long request_id; }; // GIOP 1.3 typedef FragmentHeader_1_2 FragmentHeader_1_3; }; #endif // _GIOP_IDL_ ORBit2-2.14.19/src/idl/interop/CSIIOP.idl0000644000175000001440000001075211334247617014362 00000000000000// // File: CSIIOP.idl // CORBA 3.0, Chapter 22 #ifndef _CSIIOP_IDL_ #define _CSIIOP_IDL_ #ifdef _PRE_3_0_COMPILER_ #pragma prefix "omg.org" #include #include #else import ::IOP; import ::CSI; #endif // _PRE_3_0_COMPILER_ module CSIIOP { #ifndef _PRE_3_0_COMPILER_ typeprefix CSIIOP "omg.org"; #endif // _PRE_3_0_COMPILER_ // Association options typedef unsigned short AssociationOptions; const AssociationOptions NoProtection = 1; const AssociationOptions Integrity = 2; const AssociationOptions Confidentiality = 4; const AssociationOptions DetectReplay = 8; const AssociationOptions DetectMisordering = 16; const AssociationOptions EstablishTrustInTarget = 32; const AssociationOptions EstablishTrustInClient = 64; const AssociationOptions NoDelegation = 128; const AssociationOptions SimpleDelegation = 256; const AssociationOptions CompositeDelegation = 512; const AssociationOptions IdentityAssertion = 1024; const AssociationOptions DelegationByClient = 2048; // The high order 20-bits of each ServiceConfigurationSyntax constant // shall contain the Vendor Minor Codeset ID (VMCID) of the // organization that defined the syntax. The low order 12 bits shall // contain the organization-scoped syntax identifier. The high-order 20 // bits of all syntaxes defined by the OMG shall contain the VMCID // allocated to the OMG (that is, 0x4F4D0). typedef unsigned long ServiceConfigurationSyntax; const ServiceConfigurationSyntax SCS_GeneralNames = CSI::OMGVMCID | 0; const ServiceConfigurationSyntax SCS_GSSExportedName = CSI::OMGVMCID | 1; typedef sequence ServiceSpecificName; // The name field of the ServiceConfiguration structure identifies a // privilege authority in the format identified in the syntax field. If the // syntax is SCS_GeneralNames, the name field contains an ASN.1 (BER) // SEQUENCE [1..MAX] OF GeneralName, as defined by the type GeneralNames in // [IETF RFC 2459]. If the syntax is SCS_GSSExportedName, the name field // contains a GSS exported name encoded according to the rules in // [IETF RFC 2743] Section 3.2, "Mechanism-Independent Exported Name // Object Format," p. 84. struct ServiceConfiguration { ServiceConfigurationSyntax syntax; ServiceSpecificName name; }; typedef sequence ServiceConfigurationList; // The body of the TAG_NULL_TAG component is a sequence of octets of // length 0. // type used to define AS layer functionality within a compound mechanism // definition struct AS_ContextSec { AssociationOptions target_supports; AssociationOptions target_requires; CSI::OID client_authentication_mech; CSI::GSS_NT_ExportedName target_name; }; // type used to define SAS layer functionality within a compound mechanism // definition struct SAS_ContextSec { AssociationOptions target_supports; AssociationOptions target_requires; ServiceConfigurationList privilege_authorities; CSI::OIDList supported_naming_mechanisms; CSI::IdentityTokenType supported_identity_types; }; // type used in the body of a TAG_CSI_SEC_MECH_LIST component to // describe a compound mechanism struct CompoundSecMech { AssociationOptions target_requires; IOP::TaggedComponent transport_mech; AS_ContextSec as_context_mech; SAS_ContextSec sas_context_mech; }; typedef sequence CompoundSecMechanisms; // type corresponding to the body of a TAG_CSI_SEC_MECH_LIST // component struct CompoundSecMechList { boolean stateful; CompoundSecMechanisms mechanism_list; }; struct TransportAddress { string host_name; unsigned short port; }; typedef sequence TransportAddressList; // Tagged component for configuring SECIOP as a CSIv2 transport mechanism const IOP::ComponentId TAG_SECIOP_SEC_TRANS = 35; struct SECIOP_SEC_TRANS { AssociationOptions target_supports; AssociationOptions target_requires; CSI::OID mech_oid; CSI::GSS_NT_ExportedName target_name; TransportAddressList addresses; }; // tagged component for configuring TLS/SSL as a CSIv2 transport mechanism const IOP::ComponentId TAG_TLS_SEC_TRANS = 36; struct TLS_SEC_TRANS { AssociationOptions target_supports; AssociationOptions target_requires; TransportAddressList addresses; }; }; //CSIIOP #endif // _CSIIOP_IDL_ ORBit2-2.14.19/src/idl/interop/SendingContext.idl0000644000175000001440000000340511334247617016325 00000000000000// File: SendingContext.idl // CORBA 2.5.1, Chapter 5 #ifndef _SENDING_CONTEXT_IDL_ #define _SENDING_CONTEXT_IDL_ #ifdef _PRE_3_0_COMPILER_ #include #pragma prefix "omg.org" #else import ::CORBA; #endif // _PRE_3_0_COMPILER_ module SendingContext { #ifndef _PRE_3_0_COMPILER_ typeprefix SendingContext "omg.org"; #endif // _PRE_3_0_COMPILER_ interface RunTime {}; // so that we can provide more // sending context run time // services in the future interface CodeBase: RunTime { typedef string URL; // blank-separated list of one or more URLs typedef sequence URLSeq; typedef sequence ValueDescSeq; // Operation to obtain the IR from the sending context CORBA::Repository get_ir(); // Operations to obtain a location of the implementation code URL implementation( in CORBA::RepositoryId x); URL implementationx( in CORBA::RepositoryId x); URLSeq implementations( in CORBA::RepositoryIdSeq x); // Operations to obtain complete meta information about a Value // This is just a performance optimization the IR can provide // the same information CORBA::ValueDef::FullValueDescription meta( in CORBA::RepositoryId x); ValueDescSeq metas(in CORBA::RepositoryIdSeq x); // To obtain a type graph for a value type // same comment as before the IR can provide similar // information CORBA::RepositoryIdSeq bases( in CORBA::RepositoryId x); }; }; #endif // _SENDING_CONTEXT_IDL_ ORBit2-2.14.19/src/idl/interop/IOP_DCE.idl0000644000175000001440000000107611334247617014475 00000000000000// File: IOP-DCE.idl // From CORBA 3.0: Chapter 13, ORB Interoperability Achitecture // if you want to copile this file then uncomment the line including // this file that reads "#include " in IOP.idl #ifndef _IOP_DCE_IDL_ #define _IOP_DCE_IDL_ module IOP { struct EndpointIdPositionComponent { unsigned short begin; unsigned short end; }; // IDL does not support octet constants #define LOCATE_NEVER 0 #define LOCATE_OBJECT 1 #define LOCATE_OPERATION 2 #define LOCATE_ALWAYS 3 }; #endif // _IOP_DCE_IDL_ ORBit2-2.14.19/src/idl/interop/orbit-specific.idl0000644000175000001440000000112611334247617016271 00000000000000module IOP { const ProfileId TAG_ORBIT_SPECIFIC = 0xBADFAECA; const ProfileId TAG_GENERIC_IOP = 0x4f425400; const ComponentId TAG_GENERIC_SSL_SEC_TRANS = 0x4f425400; struct ORBitSpecificProfileBody { string unix_sock_path; unsigned short ipv6_port; sequence object_key; }; struct GenericIOPProfileBody { IIOP::Version iiop_version; string protocol; string host; string service; /* Use TAG_COMPLETE_OBJECT_KEY to get the object key */ sequence components; }; struct SSLGenericComponent { string service; }; }; ORBit2-2.14.19/src/idl/interop/BiDirPolicy.idl0000644000175000001440000000153411334247617015543 00000000000000// File: BiDirPolicy.idl // From CORBA 3.0: Chapter 15, General Inter-ORB Protocol #ifndef _BIDIR_POLICY_IDL_ #define _BIDIR_POLICY_IDL_ #ifdef _PRE_3_0_COMPILER_ #pragma prefix "omg.org" #include #else import ::CORBA; #endif // _PRE_3_0_COMPILER_ // Self contained module for Bi-directional GIOP policy module BiDirPolicy { #ifndef _PRE_3_0_COMPILER_ typeprefix BiDirPolicy "omg.org"; #endif // _PRE_3_0_COMPILER_ typedef unsigned short BidirectionalPolicyValue; const BidirectionalPolicyValue NORMAL = 0; const BidirectionalPolicyValue BOTH = 1; const CORBA::PolicyType BIDIRECTIONAL_POLICY_TYPE = 37; interface BidirectionalPolicy : CORBA::Policy { readonly attribute BidirectionalPolicyValue value; }; }; #endif // _BIDIR_POLICY_IDL_ ORBit2-2.14.19/src/idl/CORBA/0000755000175000001440000000000011450334027012112 500000000000000ORBit2-2.14.19/src/idl/CORBA/CORBA_StandardExceptions.idl0000644000175000001440000000741511334247617017254 00000000000000// File: CORBA_StandardExceptions.idl // CORBA 3.0, Chapter 4 const unsigned long OMGVMCID = 0x4f4d0000; #define ex_body {unsigned long minor; completion_status completed;} enum completion_status {COMPLETED_YES, COMPLETED_NO, COMPLETED_MAYBE}; enum exception_type { NO_EXCEPTION, USER_EXCEPTION, SYSTEM_EXCEPTION}; exception UNKNOWN ex_body; // the unknown exception exception BAD_PARAM ex_body; // an invalid parameter was // passed exception NO_MEMORY ex_body; // dynamic memory allocation // failure exception IMP_LIMIT ex_body; // violated implementation // limit exception COMM_FAILURE ex_body; // communication failure exception INV_OBJREF ex_body; // invalid object reference exception NO_PERMISSION ex_body; // no permission for // attempted op. exception INTERNAL ex_body; // ORB internal error exception MARSHAL ex_body; // error marshaling // param/result exception INITIALIZE ex_body; // ORB initialization failure exception NO_IMPLEMENT ex_body; // operation implementation // unavailable exception BAD_TYPECODE ex_body; // bad typecode exception BAD_OPERATION ex_body; // invalid operation exception NO_RESOURCES ex_body; // insufficient resources // for req. exception NO_RESPONSE ex_body; // response to req. not yet // available exception PERSIST_STORE ex_body; // persistent storage failure exception BAD_INV_ORDER ex_body; // routine invocations // out of order exception TRANSIENT ex_body; // transient failure - reissue // request exception FREE_MEM ex_body; // cannot free memory exception INV_IDENT ex_body; // invalid identifier syntax exception INV_FLAG ex_body; // invalid flag was specified exception INTF_REPOS ex_body; // error accessing interface // repository exception BAD_CONTEXT ex_body; // error processing context // object exception OBJ_ADAPTER ex_body; // failure detected by object // adapter exception DATA_CONVERSION ex_body; // data conversion error exception OBJECT_NOT_EXIST ex_body; // non-existent object, // delete reference exception TRANSACTION_REQUIRED ex_body; // transaction required exception TRANSACTION_ROLLEDBACK ex_body; // transaction rolled back exception INVALID_TRANSACTION ex_body; // invalid transaction exception INV_POLICY ex_body; // invalid policy exception CODESET_INCOMPATIBLE ex_body; // incompatible code set exception REBIND ex_body; // rebind needed exception TIMEOUT ex_body; // operation timed out exception TRANSACTION_UNAVAILABLE ex_body; // no transaction exception TRANSACTION_MODE ex_body; // invalid transaction mode exception BAD_QOS ex_body; // bad quality of service ORBit2-2.14.19/src/idl/CORBA/CORBA_Current.idl0000644000175000001440000000020711334247617015064 00000000000000// File: CORBA_Current.idl // CORBA 3.0, Chapter 4 // interface for the Current object local interface Current { }; ORBit2-2.14.19/src/idl/CORBA/Makefile.am0000644000175000001440000000035411334247617014101 00000000000000EXTRA_DIST=\ CORBA_Current.idl \ CORBA_CustomMarshal.idl \ CORBA_DomainManager.idl \ CORBA_InterfaceRepository.idl \ CORBA_Policy.idl \ CORBA_Pollable.idl \ CORBA_StandardExceptions.idl \ CORBA_Stream.idl \ CORBA_TypeCode.idl \ orb.idl ORBit2-2.14.19/src/idl/CORBA/CORBA_DomainManager.idl0000644000175000001440000000077411334247617016155 00000000000000// File: CORBA_DomainManager.idl // CORBA 3.0, Chapter 4 interface DomainManager { Policy get_domain_policy ( in PolicyType policy_type ); }; const PolicyType SecConstruction = 11; interface ConstructionPolicy: Policy { void make_domain_manager( in CORBA::InterfaceDef object_type, in boolean constr_policy ); }; typedef sequence DomainManagersList; ORBit2-2.14.19/src/idl/CORBA/Makefile.in0000644000175000001440000002613011450333733014104 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/idl/CORBA DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = \ CORBA_Current.idl \ CORBA_CustomMarshal.idl \ CORBA_DomainManager.idl \ CORBA_InterfaceRepository.idl \ CORBA_Policy.idl \ CORBA_Pollable.idl \ CORBA_StandardExceptions.idl \ CORBA_Stream.idl \ CORBA_TypeCode.idl \ orb.idl all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/idl/CORBA/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/idl/CORBA/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/src/idl/CORBA/CORBA_Pollable.idl0000644000175000001440000000161511334247617015200 00000000000000// File: CORBA_Pollable.idl // CORBA 3.0, Chapter 7 // interface for the Pollable sets of invocations local interface PollableSet; abstract valuetype Pollable { boolean is_ready( in unsigned long timeout ); PollableSet create_pollable_set(); }; abstract valuetype DIIPollable : Pollable {}; local interface PollableSet { exception NoPossiblePollable {}; exception UnknownPollable {}; DIIPollable create_dii_pollable(); void add_pollable( in Pollable potential ); Pollable get_ready_pollable( in unsigned long timeout ) raises(NoPossiblePollable); void remove( in Pollable potential ) raises(UnknownPollable); unsigned short number_left(); }; ORBit2-2.14.19/src/idl/CORBA/CORBA_Policy.idl0000644000175000001440000000146611334247617014711 00000000000000// File: CORBA_Policy.idl // CORBA 3.0, Chapter 4 typedef unsigned long PolicyType; // Basic IDL definition interface Policy { readonly attribute PolicyType policy_type; Policy copy(); void destroy(); }; typedef sequence PolicyList; typedef sequence PolicyTypeSeq; // InvalidPolicies added by frehberg@gnome-de.org exception InvalidPolicies { sequence indices; }; typedef short PolicyErrorCode; exception PolicyError {PolicyErrorCode reason;}; const PolicyErrorCode BAD_POLICY = 0; const PolicyErrorCode UNSUPPORTED_POLICY = 1; const PolicyErrorCode BAD_POLICY_TYPE = 2; const PolicyErrorCode BAD_POLICY_VALUE = 3; const PolicyErrorCode UNSUPPORTED_POLICY_VALUE = 4; ORBit2-2.14.19/src/idl/CORBA/CORBA_Stream.idl0000644000175000001440000002441211334247617014701 00000000000000// File: CORBA_Stream.idl // CORBA 3.0, Chapter 5 typedef sequence AnySeq; typedef sequence BooleanSeq; typedef sequence CharSeq; typedef sequence WCharSeq; typedef sequence OctetSeq; typedef sequence ShortSeq; typedef sequence UShortSeq; typedef sequence LongSeq; typedef sequence ULongSeq; typedef sequence LongLongSeq; typedef sequence ULongLongSeq; typedef sequence FloatSeq; typedef sequence DoubleSeq; typedef sequence LongDoubleSeq; typedef sequence StringSeq; typedef sequence WStringSeq; exception BadFixedValue { unsigned long offset; }; #ifndef _ORBIT2_ abstract valuetype DataOutputStream { void write_any (in any value); void write_boolean (in boolean value); void write_char (in char value); void write_wchar (in wchar value); void write_octet (in octet value); void write_short (in short value); void write_ushort (in unsigned short value); void write_long (in long value); void write_ulong (in unsigned long value); void write_longlong (in long long value); void write_ulonglong (in unsigned long long value); void write_float (in float value); void write_double (in double value); void write_longdouble (in long double value); void write_string (in string value); void write_wstring (in wstring value); void write_Object (in Object value); void write_Abstract (in AbstractBase value); void write_Value (in ValueBase value); void write_TypeCode (in TypeCode value); void write_any_array (in AnySeq seq, in unsigned long offset, in unsigned long length); void write_boolean_array (in BooleanSeq seq, in unsigned long offset, in unsigned long length); void write_char_array (in CharSeq seq, in unsigned long offset, in unsigned long length); void write_wchar_array (in WCharSeq seq, in unsigned long offset, in unsigned long length); void write_octet_array (in OctetSeq seq, in unsigned long offset, in unsigned long length); void write_short_array (in ShortSeq seq, in unsigned long offset, in unsigned long length); void write_ushort_array (in UShortSeq seq, in unsigned long offset, in unsigned long length); void write_long_array (in LongSeq seq, in unsigned long offset, in unsigned long length); void write_ulong_array (in ULongSeq seq, in unsigned long offset, in unsigned long length); void write_ulonglong_array (in ULongLongSeq seq, in unsigned long offset, in unsigned long length); void write_longlong_array (in LongLongSeq seq, in unsigned long offset, in unsigned long length); void write_float_array (in FloatSeq seq, in unsigned long offset, in unsigned long length); void write_double_array (in DoubleSeq seq, in unsigned long offset, in unsigned long length); void write_long_double_array( in LongDoubleSeq seq, in unsigned long offset, in unsigned long length); void write_fixed ( in any fixed_value ) raises (BadFixedValue); void write_fixed_array ( in AnySeq seq, in unsigned long offset, in unsigned long length ) raises (BadFixedValue); }; abstract valuetype DataInputStream { any read_any(); boolean read_boolean(); char read_char(); wchar read_wchar(); octet read_octet(); short read_short(); unsigned short read_ushort(); long read_long(); unsigned long read_ulong(); long long read_longlong(); unsigned long long read_ulonglong(); float read_float(); double read_double(); long double read_longdouble(); string read_string(); wstring read_wstring(); Object read_Object(); AbstractBase read_Abstract(); ValueBase read_Value(); TypeCode read_TypeCode(); void read_any_array ( inout AnySeq seq, in unsigned long offset, in unsigned long length); void read_boolean_array ( inout BooleanSeq seq, in unsigned long offset, in unsigned long length); void read_char_array ( inout CharSeq seq, in unsigned long offset, in unsigned long length); void read_wchar_array ( inout WCharSeq seq, in unsigned long offset, in unsigned long length); void read_octet_array ( inout OctetSeq seq, in unsigned long offset, in unsigned long length); void read_short_array ( inout ShortSeq seq, in unsigned long offset, in unsigned long length); void read_ushort_array ( inout UShortSeq seq, in unsigned long offset, in unsigned long length); void read_long_array ( inout LongSeq seq, in unsigned long offset, in unsigned long length); void read_ulong_array ( inout ULongSeq seq, in unsigned long offset, in unsigned long length); void read_ulonglong_array ( inout ULongLongSeq seq, in unsigned long offset, in unsigned long length); void read_longlong_array ( inout LongLongSeq seq, in unsigned long offset, in unsigned long length); void read_float_array ( inout FloatSeq seq, in unsigned long offset, in unsigned long length); void read_double_array ( inout DoubleSeq seq, in unsigned long offset, in unsigned long length); void read_long_double_array( inout DoubleSeq seq, in unsigned long offset, in unsigned long length); any read_fixed ( in unsigned short digits, in short scale ) raises (BadFixedValue); void read_fixed_array ( inout AnySeq seq, in unsigned long offset, in unsigned long length, in unsigned short digits, in short scale ) raises (BadFixedValue); }; #endif ORBit2-2.14.19/src/idl/CORBA/CORBA_InterfaceRepository.idl0000644000175000001440000007160111334247617017450 00000000000000// File: CORBA_InterfaceRepository.idl // CORBA 3.0, Chapter 10 #ifdef _PRE_3_0_COMPILER_ #pragma prefix "omg.org" #else typeprefix CORBA "omg.org" #endif typedef string ScopedName; typedef string RepositoryId; enum DefinitionKind { dk_none, dk_all, dk_Attribute, dk_Constant, dk_Exception, dk_Interface, dk_Module, dk_Operation, dk_Typedef, dk_Alias, dk_Struct, dk_Union, dk_Enum, dk_Primitive, dk_String, dk_Sequence, dk_Array, dk_Repository, dk_Wstring, dk_Fixed, dk_Value, dk_ValueBox, dk_ValueMember, dk_Native, dk_AbstractInterface, dk_LocalInterface, dk_Component, dk_Home, dk_Factory, dk_Finder, dk_Emits, dk_Publishes, dk_Consumes, dk_Provides, dk_Uses, dk_Event }; interface IRObject { // read interface readonly attribute DefinitionKind def_kind; // write interface void destroy (); }; typedef string VersionSpec; interface Contained : IRObject { // read/write interface attribute RepositoryId id; attribute Identifier name; attribute VersionSpec version; // read interface readonly attribute Container defined_in; readonly attribute ScopedName absolute_name; readonly attribute Repository containing_repository; struct Description { DefinitionKind kind; any value; }; Description describe (); // write interface void move ( in Container new_container, in Identifier new_name, in VersionSpec new_version ); }; interface ModuleDef; interface ConstantDef; interface IDLType; interface StructDef; interface UnionDef; interface EnumDef; interface AliasDef; interface ExceptionDef; interface NativeDef; interface InterfaceDef; typedef sequence InterfaceDefSeq; interface ValueDef; typedef sequence ValueDefSeq; interface ValueBoxDef; interface AbstractInterfaceDef; typedef sequence AbstractInterfaceDefSeq; interface LocalInterfaceDef; typedef sequence LocalInterfaceDefSeq; interface ExtInterfaceDef; typedef sequence ExtInterfaceDefSeq; interface ExtValueDef; typedef sequence ExtValueDefSeq; interface ExtAbstractInterfaceDef; typedef sequence ExtAbstractInterfaceDefSeq; interface ExtLocalInterfaceDef; typedef sequence ExtLocalInterfaceDefSeq; typedef sequence ContainedSeq; struct StructMember { Identifier name; TypeCode type; IDLType type_def; }; typedef sequence StructMemberSeq; struct Initializer { StructMemberSeq members; Identifier name; }; typedef sequence InitializerSeq; struct UnionMember { Identifier name; any label; TypeCode type; IDLType type_def; }; struct ExceptionDescription { Identifier name; RepositoryId id; RepositoryId defined_in; VersionSpec version; TypeCode type; }; typedef sequence ExcDescriptionSeq; struct ExtInitializer { StructMemberSeq members; ExcDescriptionSeq exceptions; Identifier name; }; typedef sequence ExtInitializerSeq; typedef sequence UnionMemberSeq; typedef sequence EnumMemberSeq; interface Container : IRObject { // read interface Contained lookup ( in ScopedName search_name); ContainedSeq contents ( in DefinitionKind limit_type, in boolean exclude_inherited ); ContainedSeq lookup_name ( in Identifier search_name, in long levels_to_search, in DefinitionKind limit_type, in boolean exclude_inherited ); struct Description { Contained contained_object; DefinitionKind kind; any value; }; typedef sequence DescriptionSeq; DescriptionSeq describe_contents ( in DefinitionKind limit_type, in boolean exclude_inherited, in long max_returned_objs ); // write interface ModuleDef create_module ( in RepositoryId id, in Identifier name, in VersionSpec version ); ConstantDef create_constant ( in RepositoryId id, in Identifier name, in VersionSpec version, in IDLType type, in any value ); StructDef create_struct ( in RepositoryId id, in Identifier name, in VersionSpec version, in StructMemberSeq members ); UnionDef create_union ( in RepositoryId id, in Identifier name, in VersionSpec version, in IDLType discriminator_type, in UnionMemberSeq members ); EnumDef create_enum ( in RepositoryId id, in Identifier name, in VersionSpec version, in EnumMemberSeq members ); AliasDef create_alias ( in RepositoryId id, in Identifier name, in VersionSpec version, in IDLType original_type ); InterfaceDef create_interface ( in RepositoryId id, in Identifier name, in VersionSpec version, in InterfaceDefSeq base_interfaces, in boolean is_abstract ); ValueDef create_value( in RepositoryId id, in Identifier name, in VersionSpec version, in boolean is_custom, in boolean is_abstract, in ValueDef base_value, in boolean is_truncatable, in ValueDefSeq abstract_base_values, in InterfaceDefSeq supported_interfaces, in InitializerSeq initializers ); ValueBoxDef create_value_box( in RepositoryId id, in Identifier name, in VersionSpec version, in IDLType original_type_def ); ExceptionDef create_exception( in RepositoryId id, in Identifier name, in VersionSpec version, in StructMemberSeq members ); NativeDef create_native( in RepositoryId id, in Identifier name, in VersionSpec version ); AbstractInterfaceDef create_abstract_interface ( in RepositoryId id, in Identifier name, in VersionSpec version, in AbstractInterfaceDefSeq base_interfaces ); LocalInterfaceDef create_local_interface ( in RepositoryId id, in Identifier name, in VersionSpec version, in InterfaceDefSeq base_interfaces ); ExtValueDef create_ext_value ( in RepositoryId id, in Identifier name, in VersionSpec version, in boolean is_custom, in boolean is_abstract, in ValueDef base_value, in boolean is_truncatable, in ValueDefSeq abstract_base_values, in InterfaceDefSeq supported_interfaces, in ExtInitializerSeq initializers ); }; interface IDLType : IRObject { readonly attribute TypeCode type; }; enum PrimitiveKind { pk_null, pk_void, pk_short, pk_long, pk_ushort, pk_ulong, pk_float, pk_double, pk_boolean, pk_char, pk_octet, pk_any, pk_TypeCode, pk_Principal, pk_string, pk_objref, pk_longlong,pk_ulonglong, pk_longdouble, pk_wchar, pk_wstring, pk_value_base }; interface Repository : Container { // read interface Contained lookup_id (in RepositoryId search_id); TypeCode get_canonical_typecode (in TypeCode tc); PrimitiveDef get_primitive (in PrimitiveKind kind); // write interface StringDef create_string (in unsigned long bound); WstringDef create_wstring (in unsigned long bound); SequenceDef create_sequence (in unsigned long bound, in IDLType element_type ); ArrayDef create_array (in unsigned long length, in IDLType element_type ); FixedDef create_fixed (in unsigned short digits, in short scale ); }; interface ModuleDef : Container, Contained { }; struct ModuleDescription { Identifier name; RepositoryId id; RepositoryId defined_in; VersionSpec version; }; interface ConstantDef : Contained { readonly attribute TypeCode type; attribute IDLType type_def; attribute any value; }; struct ConstantDescription { Identifier name; RepositoryId id; RepositoryId defined_in; VersionSpec version; TypeCode type; any value; }; interface TypedefDef : Contained, IDLType { }; struct TypeDescription { Identifier name; RepositoryId id; RepositoryId defined_in; VersionSpec version; TypeCode type; }; interface StructDef : TypedefDef, Container { attribute StructMemberSeq members; }; interface UnionDef : TypedefDef, Container { readonly attribute TypeCode discriminator_type; attribute IDLType discriminator_type_def; attribute UnionMemberSeq members; }; interface EnumDef : TypedefDef { attribute EnumMemberSeq members; }; interface AliasDef : TypedefDef { attribute IDLType original_type_def; }; interface NativeDef : TypedefDef { }; interface PrimitiveDef: IDLType { readonly attribute PrimitiveKind kind; }; interface StringDef : IDLType { attribute unsigned long bound; }; interface WstringDef : IDLType { attribute unsigned long bound; }; interface FixedDef : IDLType { attribute unsigned short digits; attribute short scale; }; interface SequenceDef : IDLType { attribute unsigned long bound; readonly attribute TypeCode element_type; attribute IDLType element_type_def; }; interface ArrayDef : IDLType { attribute unsigned long length; readonly attribute TypeCode element_type; attribute IDLType element_type_def; }; interface ExceptionDef : Contained, Container { readonly attribute TypeCode type; attribute StructMemberSeq members; }; enum AttributeMode {ATTR_NORMAL, ATTR_READONLY}; interface AttributeDef : Contained { readonly attribute TypeCode type; attribute IDLType type_def; attribute AttributeMode mode; }; struct AttributeDescription { Identifier name; RepositoryId id; RepositoryId defined_in; VersionSpec version; TypeCode type; AttributeMode mode; }; struct ExtAttributeDescription { Identifier name; RepositoryId id; RepositoryId defined_in; VersionSpec version; TypeCode type; AttributeMode mode; ExcDescriptionSeq get_exceptions; ExcDescriptionSeq put_exceptions; }; interface ExtAttributeDef : AttributeDef { // read/write interface attribute ExcDescriptionSeq get_exceptions; attribute ExcDescriptionSeq set_exceptions; // read interface ExtAttributeDescription describe_attribute (); }; enum OperationMode {OP_NORMAL, OP_ONEWAY}; enum ParameterMode {PARAM_IN, PARAM_OUT, PARAM_INOUT}; struct ParameterDescription { Identifier name; TypeCode type; IDLType type_def; ParameterMode mode; }; typedef sequence ParDescriptionSeq; typedef Identifier ContextIdentifier; typedef sequence ContextIdSeq; typedef sequence ExceptionDefSeq; interface OperationDef : Contained { readonly attribute TypeCode result; attribute IDLType result_def; attribute ParDescriptionSeq params; attribute OperationMode mode; attribute ContextIdSeq contexts; attribute ExceptionDefSeq exceptions; }; struct OperationDescription { Identifier name; RepositoryId id; RepositoryId defined_in; VersionSpec version; TypeCode result; OperationMode mode; ContextIdSeq contexts; ParDescriptionSeq parameters; ExcDescriptionSeq exceptions; }; typedef sequence RepositoryIdSeq; typedef sequence OpDescriptionSeq; typedef sequence AttrDescriptionSeq; typedef sequence ExtAttrDescriptionSeq; interface InterfaceDef : Container, Contained, IDLType { // read/write interface attribute InterfaceDefSeq base_interfaces; attribute boolean is_abstract; // read interface boolean is_a (in RepositoryId interface_id ); struct FullInterfaceDescription { Identifier name; RepositoryId id; RepositoryId defined_in; VersionSpec version; OpDescriptionSeq operations; AttrDescriptionSeq attributes; RepositoryIdSeq base_interfaces; TypeCode type; boolean is_abstract; }; FullInterfaceDescription describe_interface(); // write interface AttributeDef create_attribute ( in RepositoryId id, in Identifier name, in VersionSpec version, in IDLType type, in AttributeMode mode ); OperationDef create_operation ( in RepositoryId id, in Identifier name, in VersionSpec version, in IDLType result, in OperationMode mode, in ParDescriptionSeq params, in ExceptionDefSeq exceptions, in ContextIdSeq contexts ); }; struct InterfaceDescription { Identifier name; RepositoryId id; RepositoryId defined_in; VersionSpec version; RepositoryIdSeq base_interfaces; boolean is_abstract; }; interface InterfaceAttrExtension { // read interface struct ExtFullInterfaceDescription { Identifier name; RepositoryId id; RepositoryId defined_in; VersionSpec version; OpDescriptionSeq operations; ExtAttrDescriptionSeq attributes; RepositoryIdSeq base_interfaces; TypeCode type; }; ExtFullInterfaceDescription describe_ext_interface (); // write interface ExtAttributeDef create_ext_attribute ( in RepositoryId id, in Identifier name, in VersionSpec version, in IDLType type, in AttributeMode mode, in ExceptionDefSeq get_exceptions, in ExceptionDefSeq set_exceptions ); }; interface ExtInterfaceDef : InterfaceDef, InterfaceAttrExtension {}; typedef short Visibility; const Visibility PRIVATE_MEMBER = 0; const Visibility PUBLIC_MEMBER = 1; struct ValueMember { Identifier name; RepositoryId id; RepositoryId defined_in; VersionSpec version; TypeCode type; IDLType type_def; Visibility access; }; typedef sequence ValueMemberSeq; interface ValueMemberDef : Contained { readonly attribute TypeCode type; attribute IDLType type_def; attribute Visibility access; }; interface ValueDef : Container, Contained, IDLType { // read/write interface attribute InterfaceDefSeq supported_interfaces; attribute InitializerSeq initializers; attribute ValueDef base_value; attribute ValueDefSeq abstract_base_values; attribute boolean is_abstract; attribute boolean is_custom; attribute boolean is_truncatable; // read interface boolean is_a(in RepositoryId id); struct FullValueDescription { Identifier name; RepositoryId id; boolean is_abstract; boolean is_custom; RepositoryId defined_in; VersionSpec version; OpDescriptionSeq operations; AttrDescriptionSeq attributes; ValueMemberSeq members; InitializerSeq initializers; RepositoryIdSeq supported_interfaces; RepositoryIdSeq abstract_base_values; boolean is_truncatable; RepositoryId base_value; TypeCode type; }; FullValueDescription describe_value(); ValueMemberDef create_value_member( in RepositoryId id, in Identifier name, in VersionSpec version, in IDLType type, in Visibility access ); AttributeDef create_attribute( in RepositoryId id, in Identifier name, in VersionSpec version, in IDLType type, in AttributeMode mode ); OperationDef create_operation ( in RepositoryId id, in Identifier name, in VersionSpec version, in IDLType result, in OperationMode mode, in ParDescriptionSeq params, in ExceptionDefSeq exceptions, in ContextIdSeq contexts ); }; struct ValueDescription { Identifier name; RepositoryId id; boolean is_abstract; boolean is_custom; RepositoryId defined_in; VersionSpec version; RepositoryIdSeq supported_interfaces; RepositoryIdSeq abstract_base_values; boolean is_truncatable; RepositoryId base_value; }; interface ExtValueDef : ValueDef { // read/write interface attribute ExtInitializerSeq ext_initializers; // read interface struct ExtFullValueDescription { Identifier name; RepositoryId id; boolean is_abstract; boolean is_custom; RepositoryId defined_in; VersionSpec version; OpDescriptionSeq operations; ExtAttrDescriptionSeq attributes; ValueMemberSeq members; ExtInitializerSeq initializers; RepositoryIdSeq supported_interfaces; RepositoryIdSeq abstract_base_values; boolean is_truncatable; RepositoryId base_value; TypeCode type; }; ExtFullValueDescription describe_ext_value (); // write interface ExtAttributeDef create_ext_attribute ( in RepositoryId id, in Identifier name, in VersionSpec version, in IDLType type, in AttributeMode mode, in ExceptionDefSeq get_exceptions, in ExceptionDefSeq set_exceptions ); }; interface ValueBoxDef : TypedefDef { attribute IDLType original_type_def; }; interface AbstractInterfaceDef : InterfaceDef { }; interface ExtAbstractInterfaceDef : AbstractInterfaceDef, InterfaceAttrExtension { }; interface LocalInterfaceDef : InterfaceDef { }; interface ExtLocalInterfaceDef : LocalInterfaceDef, InterfaceAttrExtension { }; #ifdef _COMPONENT_REPOSITORY_ module ComponentIR { typeprefix ComponentIR "omg.org"; interface ComponentDef; interface HomeDef; interface EventDef : ExtValueDef {}; interface Container{ ComponentDef create_component ( in RepositoryId id, in Identifier name, in VersionSpec version, in ComponentDef base_component, in InterfaceDefSeq supports_interfaces ); HomeDef create_home ( in RepositoryId id, in Identifier name, in VersionSpec version, in HomeDef base_home, in ComponentDef managed_component, in InterfaceDefSeq supports_interfaces, in ValueDef primary_key ); EventDef create_event ( in RepositoryId id, in Identifier name, in VersionSpec version, in boolean is_custom, in boolean is_abstract, in ValueDef base_value, in boolean is_truncatable, in ValueDefSeq abstract_base_values, in InterfaceDefSeq supported_interfaces, in ExtInitializerSeq initializers ); }; interface ModuleDef : CORBA::ModuleDef, Container{}; interface Repository : CORBA::Repository, Container{}; interface ProvidesDef : Contained { attribute InterfaceDef interface_type; }; struct ProvidesDescription { Identifier name; RepositoryId id; RepositoryId defined_in; VersionSpec version; RepositoryId interface_type; }; interface UsesDef : Contained { attribute InterfaceDef interface_type; attribute boolean is_multiple; }; struct UsesDescription { Identifier name; RepositoryId id; RepositoryId defined_in; VersionSpec version; RepositoryId interface_type; boolean is_multiple; }; interface EventPortDef : Contained { // read/write interface attribute EventDef event; // read interface boolean is_a (in RepositoryId event_id); }; struct EventPortDescription { Identifier name; RepositoryId id; RepositoryId defined_in; VersionSpec version; RepositoryId event; }; interface EmitsDef : EventPortDef {}; interface PublishesDef : EventPortDef {}; interface ConsumesDef : EventPortDef {}; interface ComponentDef : ExtInterfaceDef { // read/write interface attribute ComponentDef base_component; attribute InterfaceDefSeq supported_interfaces; // write interface ProvidesDef create_provides ( in RepositoryId id, in Identifier name, in VersionSpec version, in InterfaceDef interface_type ); UsesDef create_uses ( in RepositoryId id, in Identifier name, in VersionSpec version, in InterfaceDef interface_type, in boolean is_multiple ); EmitsDef create_emits ( in RepositoryId id, in Identifier name, in VersionSpec version, in EventDef event ); PublishesDef create_publishes ( in RepositoryId id, in Identifier name, in VersionSpec version, in EventDef event ); ConsumesDef create_consumes ( in RepositoryId id, in Identifier name, in VersionSpec version, in EventDef event ); }; typedef sequence ProvidesDescriptionSeq; typedef sequence UsesDescriptionSeq; typedef sequence EventPortDescriptionSeq; struct ComponentDescription { Identifier name; RepositoryId id; RepositoryId defined_in; VersionSpec version; RepositoryId base_component; RepositoryIdSeq supported_interfaces; ProvidesDescriptionSeq provided_interfaces; UsesDescriptionSeq used_interfaces; EventPortDescriptionSeq emits_events; EventPortDescriptionSeq publishes_events; EventPortDescriptionSeq consumes_events; ExtAttrDescriptionSeq attributes; TypeCode type; }; interface FactoryDef : OperationDef {}; interface FinderDef : OperationDef {}; interface HomeDef : ExtInterfaceDef { // read/write interface attribute HomeDef base_home; attribute InterfaceDefSeq supported_interfaces; attribute ComponentDef managed_component; attribute ValueDef primary_key; // write interface FactoryDef create_factory ( in RepositoryId id, in Identifier name, in VersionSpec version, in ParDescriptionSeq params, in ExceptionDefSeq exceptions ); FinderDef create_finder ( in RepositoryId id, in Identifier name, in VersionSpec version, in ParDescriptionSeq params, in ExceptionDefSeq exceptions ); }; struct HomeDescription { Identifier name; RepositoryId id; RepositoryId defined_in; VersionSpec version; RepositoryId base_home; RepositoryId managed_component; ValueDescription primary_key; OpDescriptionSeq factories; OpDescriptionSeq finders; OpDescriptionSeq operations; ExtAttrDescriptionSeq attributes; TypeCode type; }; }; #endif // _COMPONENT_REPOSITORY_ ORBit2-2.14.19/src/idl/CORBA/orb.idl0000644000175000001440000001035211334247617013320 00000000000000// File: orb.idl // From CORBA 3.0 #ifndef _ORB_IDL_ #define _ORB_IDL_ // settings for ORBit2 compliance #ifndef _PRE_3_0_COMPILER_ #define _PRE_3_0_COMPILER_ #endif #ifndef _NO_LOCAL_ #define _NO_LOCAL_ #endif #ifndef _ORBIT2_ #define _ORBIT2_ #endif // end settings for ORBit2 compliance #ifdef _PRE_3_0_COMPILER_ #pragma prefix "omg.org" #else typeprefix CORBA "omg.org" #endif #ifdef _PRE_3_0_COMPILER_ #ifdef _NO_LOCAL_ #define local #endif #endif // This module brings together many files defining the CORBA module // (It really ought to be called CORBA.idl, but that's history.) // This file includes only the "real" interfaces that are included // in the "orb.idl" interface supplied by every ORB and that can be // brought into an IDL compilation by "import ::CORBA" // or in pre-3.0 IDL compilers by the include directive // "#include ". module CORBA { // The following forward references list *all* the interfaces and valuetypes // defined in the CORBA module. This serves two purposes: documentation // and compilability. Documentation is nice: since some of the interfaces // must be declared as forward references, it is more consistent to // declare them all. // // As far as compilability, it might be possible to avoid having to declare // many of the forward reference by rearranging the order of the interface // declarations, but there's no reason to do bother doing that. After all, // that's the reason for the design of forward references. Doing a forward // reference allows the definition order to be relatively logical.In // particular, it allows the "include"s to be done in chapter order // (almost), the only exception being the InterfaceRepository (Chapter 10). // It contains some data definitions needed by Chapter 4 interfaces. // The other reason not to try to rearrange the order is that it's hard. // Forward references, alphabetically interface ConstructionPolicy; // Chapter 4, CORBA_DomainManager.idl local interface Current; // Chapter 4, CORBA_Current.idl interface DomainManager; // Chapter 4, CORBA_DomainManager.idl interface Policy; // Chapter 4, CORBA_Policy.idl #ifndef _ORBIT2_ local interface PollableSet; // Chapter 7, CORBA_Pollable.idl abstract valuetype CustomMarshal; // Chapter 5, CORBA_valuetype.idl abstract valuetype DataInputStream; // Chapter 5, CORBA_Stream.idl abstract valuetype DataOutputStream; // Chapter 5, CORBA_Stream.idl #endif // Forward references to Chapter 10, CORBA_InterfaceRepository.idl interface AbstractInterfaceDef; interface AliasDef; interface ArrayDef; interface AttributeDef; interface ConstantDef; interface Contained; interface Container; interface EnumDef; interface ExceptionDef; interface ExtInterfaceDef; interface ExtValueDef; interface ExtAbstractInterfaceDef; interface ExtLocalInterfaceDef; interface FixedDef; interface IDLType; interface InterfaceDef; interface IRObject; interface LocalInterfaceDef; interface ModuleDef; interface NativeDef; interface OperationDef; interface PrimitiveDef; interface Repository; interface SequenceDef; interface StringDef; interface StructDef; interface TypeCode; interface TypedefDef; interface UnionDef; interface ValueDef; interface ValueBoxDef; interface ValueMemberDef; interface WstringDef; typedef string Identifier; // Chapter 3: IDL Syntax and Semantics #include // Chapter 4: ORB Interface #include #include #include #ifndef _ORBIT2_ // Chapter 7: Pollable #include #endif // Chapter 10: The Interface Repository #include // more Chapter 4: ORB Interface // CORBA_TypeCode.idl depends on CORBA_InterfaceRepository.idl #include #ifndef _ORBIT2_ // Chapter 5: Value Type Semantics #include #endif #include }; #endif // _ORB_IDL_ ORBit2-2.14.19/src/idl/CORBA/CORBA_CustomMarshal.idl0000644000175000001440000000033711334247617016230 00000000000000// File: CORBA_CustomMarshal.idl // CORBA 3.0, Chapter 5 // depends on CORBA_Stream.idl abstract valuetype CustomMarshal { void marshal (in DataOutputStream os); void unmarshal (in DataInputStream is); }; ORBit2-2.14.19/src/idl/CORBA/CORBA_TypeCode.idl0000644000175000001440000000630411334247617015162 00000000000000// File CORBA_TypeCode.idl // CORBA 3.0 Chapter 4 #ifdef _PRE_3_0_COMPILER_ #pragma prefix "omg.org" #else typeprefix CORBA "omg.org"; #endif enum TCKind { tk_null, tk_void, tk_short, tk_long, tk_ushort, tk_ulong, tk_float, tk_double, tk_boolean, tk_char, tk_octet, tk_any, tk_TypeCode,tk_Principal, tk_objref, tk_struct, tk_union, tk_enum, tk_string, tk_sequence,tk_array, tk_alias, tk_except, tk_longlong,tk_ulonglong, tk_longdouble, tk_wchar, tk_wstring, tk_fixed, tk_value, tk_value_box, tk_native, tk_abstract_interface, tk_local_interface, tk_component, tk_home, tk_event }; typedef short ValueModifier; const ValueModifier VM_NONE = 0; const ValueModifier VM_CUSTOM = 1; const ValueModifier VM_ABSTRACT = 2; const ValueModifier VM_TRUNCATABLE = 3; interface TypeCode { exception Bounds {}; exception BadKind {}; // for all TypeCode kinds boolean equal (in TypeCode tc); boolean equivalent (in TypeCode tc); TypeCode get_compact_typecode(); TCKind kind (); // for tk_objref, tk_struct, tk_union, tk_enum, tk_alias, // tk_value, tk_value_box, tk_native, tk_abstract_interface // and tk_except RepositoryId id () raises (BadKind); // for tk_objref, tk_struct, tk_union, tk_enum, tk_alias, // tk_value, tk_value_box, tk_native, tk_abstract_interface // and tk_except Identifier name () raises (BadKind); // for tk_struct, tk_union, tk_enum, tk_value, // and tk_except unsigned long member_count () raises (BadKind); Identifier member_name (in unsigned long index) raises (BadKind, Bounds); // for tk_struct, tk_union, tk_value, and tk_except TypeCode member_type (in unsigned long index) raises (BadKind, Bounds); // for tk_union any member_label (in unsigned long index) raises (BadKind, Bounds); TypeCode discriminator_type () raises (BadKind); long default_index () raises (BadKind); // for tk_string, tk_sequence, and tk_array unsigned long length () raises (BadKind); // for tk_sequence, tk_array, tk_value_box, and tk_alias TypeCode content_type () raises (BadKind); // for tk_fixed unsigned short fixed_digits() raises (BadKind); short fixed_scale() raises (BadKind); // for tk_value Visibility member_visibility(in unsigned long index) raises(BadKind, Bounds); ValueModifier type_modifier() raises(BadKind); TypeCode concrete_base_type() raises(BadKind); }; ORBit2-2.14.19/src/idl/misc/0000755000175000001440000000000011450334027012217 500000000000000ORBit2-2.14.19/src/idl/misc/Makefile.am0000644000175000001440000000006111334247617014201 00000000000000EXTRA_DIST=\ DynamicAny.idl \ PortableServer.idl ORBit2-2.14.19/src/idl/misc/Makefile.in0000644000175000001440000002563211450333733014217 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/idl/misc DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = \ DynamicAny.idl \ PortableServer.idl all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/idl/misc/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/idl/misc/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/src/idl/misc/DynamicAny.idl0000644000175000001440000003046711334247617014710 00000000000000// File: DynamicAny.idl // CORBA 3.0, Chapter 9 #ifndef _DYNAMIC_ANY_IDL_ #define _DYNAMIC_ANY_IDL_ #ifdef _PRE_3_0_COMPILER_ #pragma prefix "omg.org" #include #else import ::CORBA; #endif // _PRE_3_0_COMPILER_ module DynamicAny { #ifndef _PRE_3_0_COMPILER_ typeprefix DynamicAny "omg.org"; #endif // _PRE_3_0_COMPILER_ local interface DynAny { exception InvalidValue {}; exception TypeMismatch {}; CORBA::TypeCode type(); void assign( in DynAny dyn_any) raises(TypeMismatch); void from_any( in any value) raises(TypeMismatch, InvalidValue); any to_any(); boolean equal( in DynAny dyn_any); void destroy(); DynAny copy(); void insert_boolean(in boolean value) raises(TypeMismatch, InvalidValue); void insert_octet( in octet value) raises(TypeMismatch, InvalidValue); void insert_char( in char value) raises(TypeMismatch, InvalidValue); void insert_short( in short value) raises(TypeMismatch, InvalidValue); void insert_ushort( in unsigned short value) raises(TypeMismatch, InvalidValue); void insert_long( in long value) raises(TypeMismatch, InvalidValue); void insert_ulong( in unsigned long value) raises(TypeMismatch, InvalidValue); void insert_float( in float value) raises(TypeMismatch, InvalidValue); void insert_double( in double value) raises(TypeMismatch, InvalidValue); void insert_string( in string value) raises(TypeMismatch, InvalidValue); void insert_reference(in CORBA::Object value) raises(TypeMismatch, InvalidValue); void insert_typecode(in CORBA::TypeCode value) raises(TypeMismatch, InvalidValue); void insert_longlong(in long long value) raises(TypeMismatch, InvalidValue); void insert_ulonglong(in unsigned long long value) raises(TypeMismatch, InvalidValue); void insert_longdouble(in long double value) raises(TypeMismatch, InvalidValue); void insert_wchar( in wchar value) raises(TypeMismatch, InvalidValue); void insert_wstring(in wstring value) raises(TypeMismatch, InvalidValue); void insert_any( in any value) raises(TypeMismatch, InvalidValue); void insert_dyn_any(in DynAny value) raises(TypeMismatch, InvalidValue); #ifndef _ORBIT2_ void insert_val( in ValueBase value) raises(TypeMismatch, InvalidValue); #endif boolean get_boolean() raises(TypeMismatch, InvalidValue); octet get_octet() raises(TypeMismatch, InvalidValue); char get_char() raises(TypeMismatch, InvalidValue); short get_short() raises(TypeMismatch, InvalidValue); unsigned short get_ushort() raises(TypeMismatch, InvalidValue); long get_long() raises(TypeMismatch, InvalidValue); unsigned long get_ulong() raises(TypeMismatch, InvalidValue); float get_float() raises(TypeMismatch, InvalidValue); double get_double() raises(TypeMismatch, InvalidValue); string get_string() raises(TypeMismatch, InvalidValue); CORBA::Object get_reference() raises(TypeMismatch, InvalidValue); CORBA::TypeCode get_typecode() raises(TypeMismatch, InvalidValue); long long get_longlong() raises(TypeMismatch, InvalidValue); unsigned long long get_ulonglong() raises(TypeMismatch, InvalidValue); long double get_longdouble() raises(TypeMismatch, InvalidValue); wchar get_wchar() raises(TypeMismatch, InvalidValue); wstring get_wstring() raises(TypeMismatch, InvalidValue); any get_any() raises(TypeMismatch, InvalidValue); DynAny get_dyn_any() raises(TypeMismatch, InvalidValue); #ifndef _ORBIT2_ ValueBase get_val() raises(TypeMismatch, InvalidValue); #endif boolean seek(in long index); void rewind(); boolean next(); unsigned long component_count(); DynAny current_component() raises(TypeMismatch); void insert_abstract(in CORBA::AbstractBase value) raises(TypeMismatch, InvalidValue); CORBA::AbstractBase get_abstract() raises(TypeMismatch, InvalidValue); void insert_boolean_seq(in CORBA::BooleanSeq value) raises(TypeMismatch, InvalidValue); void insert_octet_seq(in CORBA::OctetSeq value) raises(TypeMismatch, InvalidValue); void insert_char_seq(in CORBA::CharSeq value) raises(TypeMismatch, InvalidValue); void insert_short_seq(in CORBA::ShortSeq value) raises(TypeMismatch, InvalidValue); void insert_ushort_seq(in CORBA::UShortSeq value) raises(TypeMismatch, InvalidValue); void insert_long_seq(in CORBA::LongSeq value) raises(TypeMismatch, InvalidValue); void insert_ulong_seq(in CORBA::ULongSeq value) raises(TypeMismatch, InvalidValue); void insert_float_seq(in CORBA::FloatSeq value) raises(TypeMismatch, InvalidValue); void insert_double_seq(in CORBA::DoubleSeq value) raises(TypeMismatch, InvalidValue); void insert_longlong_seq(in CORBA::LongLongSeq value) raises(TypeMismatch, InvalidValue); void insert_ulonglong_seq(in CORBA::ULongLongSeq value) raises(TypeMismatch, InvalidValue); void insert_longdouble_seq(in CORBA::LongDoubleSeq value) raises(TypeMismatch, InvalidValue); void insert_wchar_seq(in CORBA::WCharSeq value) raises(TypeMismatch, InvalidValue); CORBA::BooleanSeq get_boolean_seq() raises(TypeMismatch, InvalidValue); CORBA::OctetSeq get_octet_seq() raises(TypeMismatch, InvalidValue); CORBA::CharSeq get_char_seq() raises(TypeMismatch, InvalidValue); CORBA::ShortSeq get_short_seq() raises(TypeMismatch, InvalidValue); CORBA::UShortSeq get_ushort_seq() raises(TypeMismatch, InvalidValue); CORBA::LongSeq get_long_seq() raises(TypeMismatch, InvalidValue); CORBA::ULongSeq get_ulong_seq() raises(TypeMismatch, InvalidValue); CORBA::FloatSeq get_float_seq() raises(TypeMismatch, InvalidValue); CORBA::DoubleSeq get_double_seq() raises(TypeMismatch, InvalidValue); CORBA::LongLongSeq get_longlong_seq() raises(TypeMismatch, InvalidValue); CORBA::ULongLongSeq get_ulonglong_seq() raises(TypeMismatch, InvalidValue); CORBA::LongDoubleSeq get_longdouble_seq() raises(TypeMismatch, InvalidValue); CORBA::WCharSeq get_wchar_seq() raises(TypeMismatch, InvalidValue); }; local interface DynFixed : DynAny { string get_value(); boolean set_value(in string val) raises(TypeMismatch, InvalidValue); }; local interface DynEnum : DynAny { string get_as_string(); void set_as_string(in string value) raises(InvalidValue); unsigned long get_as_ulong(); void set_as_ulong( in unsigned long value) raises(InvalidValue); }; typedef string FieldName; struct NameValuePair { FieldName id; any value; }; typedef sequence NameValuePairSeq; struct NameDynAnyPair { FieldName id; DynAny value; }; typedef sequence NameDynAnyPairSeq; local interface DynStruct : DynAny { FieldName current_member_name() raises(TypeMismatch, InvalidValue); CORBA::TCKind current_member_kind() raises(TypeMismatch, InvalidValue); NameValuePairSeq get_members(); void set_members(in NameValuePairSeq value) raises(TypeMismatch, InvalidValue); NameDynAnyPairSeq get_members_as_dyn_any(); void set_members_as_dyn_any(in NameDynAnyPairSeq value) raises(TypeMismatch, InvalidValue); }; local interface DynUnion : DynAny { DynAny get_discriminator(); void set_discriminator(in DynAny d) raises(TypeMismatch); void set_to_default_member() raises(TypeMismatch); void set_to_no_active_member() raises(TypeMismatch); boolean has_no_active_member(); CORBA::TCKind discriminator_kind(); DynAny member() raises(InvalidValue); FieldName member_name() raises(InvalidValue); CORBA::TCKind member_kind() raises(InvalidValue); }; typedef sequence AnySeq; typedef sequence DynAnySeq; local interface DynSequence : DynAny { unsigned long get_length(); void set_length(in unsigned long len) raises(InvalidValue); AnySeq get_elements(); void set_elements(in AnySeq value) raises(TypeMismatch, InvalidValue); DynAnySeq get_elements_as_dyn_any(); void set_elements_as_dyn_any(in DynAnySeq value) raises(TypeMismatch, InvalidValue); }; local interface DynArray : DynAny { AnySeq get_elements(); void set_elements(in AnySeq value) raises(TypeMismatch, InvalidValue); DynAnySeq get_elements_as_dyn_any(); void set_elements_as_dyn_any(in DynAnySeq value) raises(TypeMismatch, InvalidValue); }; local interface DynValueCommon : DynAny { boolean is_null(); void set_to_null(); void set_to_value(); }; local interface DynValue : DynValueCommon { FieldName current_member_name() raises(TypeMismatch, InvalidValue); CORBA::TCKind current_member_kind() raises(TypeMismatch, InvalidValue); NameValuePairSeq get_members() raises(InvalidValue); void set_members(in NameValuePairSeq value) raises(TypeMismatch, InvalidValue); NameDynAnyPairSeq get_members_as_dyn_any() raises(InvalidValue); void set_members_as_dyn_any(in NameDynAnyPairSeq value) raises(TypeMismatch, InvalidValue); }; local interface DynValueBox : DynValueCommon { any get_boxed_value() raises(InvalidValue); void set_boxed_value(in any boxed) raises(TypeMismatch, InvalidValue); DynAny get_boxed_value_as_dyn_any() raises(InvalidValue); void set_boxed_value_as_dyn_any(in DynAny boxed) raises(TypeMismatch); }; exception MustTruncate { }; local interface DynAnyFactory { exception InconsistentTypeCode {}; DynAny create_dyn_any(in any value) raises(InconsistentTypeCode); DynAny create_dyn_any_from_type_code(in CORBA::TypeCode type) raises(InconsistentTypeCode); DynAny create_dyn_any_without_truncation(in any value) raises(InconsistentTypeCode, MustTruncate); DynAnySeq create_multiple_dyn_anys( in AnySeq values, in boolean allow_truncate) raises(InconsistentTypeCode, MustTruncate); AnySeq create_multiple_anys(in DynAnySeq values); }; }; // module DynamicAny #endif // _DYNAMIC_ANY_IDL_ ORBit2-2.14.19/src/idl/misc/PortableServer.idl0000644000175000001440000002534711334247617015614 00000000000000// File: PortableServer.idl // CORBA 3.0, Chapter 11 #ifndef _PORTABLE_SERVER_IDL_ #define _PORTABLE_SERVER_IDL_ #ifdef _PRE_3_0_COMPILER_ #pragma prefix "omg.org" #include #else import ::CORBA; #endif // _PRE_3_0_COMPILER_ // Most IDL compilers don't accept the "native" keyword in application IDL // files. In order to compile an IDL (really PIDL) file that has it, the // following trick can be used: change what the compiler sees. Instead // of letting the compiler see the keyword "native", use a preprocessor // definition that results in valid IDL, even if it doesn't yield // useful stubs and skeletons. Of course, PIDL never results in // the standard stubs so that's not a problem. // // Set the variable _MASK_NATIVE_ in the IDL compiler to enable it to // parse this file. #ifdef _MASK_NATIVE_ #define native typedef long #endif // _MASK_NATIVE_ module PortableServer { #ifndef _PRE_3_0_COMPILER_ typeprefix PortableServer "omg.org"; #endif // _PRE_3_0_COMPILER_ local interface POA; // forward declaration typedef sequence POAList; native Servant; typedef CORBA::OctetSeq ObjectId; exception ForwardRequest { CORBA::Object forward_reference; }; // Policy interfaces const CORBA::PolicyType THREAD_POLICY_ID = 16; const CORBA::PolicyType LIFESPAN_POLICY_ID = 17; const CORBA::PolicyType ID_UNIQUENESS_POLICY_ID = 18; const CORBA::PolicyType ID_ASSIGNMENT_POLICY_ID = 19; const CORBA::PolicyType IMPLICIT_ACTIVATION_POLICY_ID = 20; const CORBA::PolicyType SERVANT_RETENTION_POLICY_ID = 21; const CORBA::PolicyType REQUEST_PROCESSING_POLICY_ID = 22; enum ThreadPolicyValue { ORB_CTRL_MODEL, SINGLE_THREAD_MODEL, MAIN_THREAD_MODEL }; local interface ThreadPolicy : CORBA::Policy { readonly attribute ThreadPolicyValue value; }; enum LifespanPolicyValue { TRANSIENT, PERSISTENT }; local interface LifespanPolicy : CORBA::Policy { readonly attribute LifespanPolicyValue value; }; enum IdUniquenessPolicyValue { UNIQUE_ID, MULTIPLE_ID }; local interface IdUniquenessPolicy : CORBA::Policy { readonly attribute IdUniquenessPolicyValue value; }; enum IdAssignmentPolicyValue { USER_ID, SYSTEM_ID }; local interface IdAssignmentPolicy : CORBA::Policy { readonly attribute IdAssignmentPolicyValue value; }; enum ImplicitActivationPolicyValue { IMPLICIT_ACTIVATION, NO_IMPLICIT_ACTIVATION }; local interface ImplicitActivationPolicy : CORBA::Policy { readonly attribute ImplicitActivationPolicyValue value; }; enum ServantRetentionPolicyValue { RETAIN, NON_RETAIN }; local interface ServantRetentionPolicy : CORBA::Policy { readonly attribute ServantRetentionPolicyValue value; }; enum RequestProcessingPolicyValue { USE_ACTIVE_OBJECT_MAP_ONLY, USE_DEFAULT_SERVANT, USE_SERVANT_MANAGER }; local interface RequestProcessingPolicy : CORBA::Policy { readonly attribute RequestProcessingPolicyValue value; }; // POAManager interface local interface POAManager { exception AdapterInactive{}; enum State {HOLDING, ACTIVE, DISCARDING, INACTIVE}; void activate() raises(AdapterInactive); void hold_requests( in boolean wait_for_completion) raises(AdapterInactive); void discard_requests( in boolean wait_for_completion) raises(AdapterInactive); void deactivate( in boolean etherealize_objects, in boolean wait_for_completion) raises(AdapterInactive); State get_state(); string get_id(); }; // PoaManagerFactory local interface POAManagerFactory { typedef sequence POAManagerSeq; exception ManagerAlreadyExists {}; POAManager create_POAManager( in string id, in CORBA::PolicyList policies ) raises(ManagerAlreadyExists, CORBA::PolicyError); POAManagerSeq list(); POAManager find( in string id); }; // AdapterActivator interface local interface AdapterActivator { boolean unknown_adapter(in POA parent, in string name); }; // ServantManager interface local interface ServantManager{ }; local interface ServantActivator : ServantManager { Servant incarnate ( in ObjectId oid, in POA adapter) raises (ForwardRequest); void etherealize ( in ObjectId oid, in POA adapter, in Servant serv, in boolean cleanup_in_progress, in boolean remaining_activations); }; local interface ServantLocator : ServantManager { native Cookie; Servant preinvoke( in ObjectId oid, in POA adapter, in CORBA::Identifier operation, out Cookie the_cookie) raises (ForwardRequest); void postinvoke( in ObjectId oid, in POA adapter, in CORBA::Identifier operation, in Cookie the_cookie, in Servant the_servant ); }; local interface POA { exception AdapterAlreadyExists {}; exception AdapterNonExistent {}; exception InvalidPolicy {unsigned short index;}; exception NoServant {}; exception ObjectAlreadyActive {}; exception ObjectNotActive {}; exception ServantAlreadyActive {}; exception ServantNotActive {}; exception WrongAdapter {}; exception WrongPolicy {}; // POA creation and destruction POA create_POA( in string adapter_name, in POAManager a_POAManager, in CORBA::PolicyList policies) raises (AdapterAlreadyExists, InvalidPolicy); POA find_POA( in string adapter_name, in boolean activate_it) raises (AdapterNonExistent); void destroy( in boolean etherealize_objects, in boolean wait_for_completion); // Factories for Policy objects ThreadPolicy create_thread_policy(in ThreadPolicyValue value); LifespanPolicy create_lifespan_policy(in LifespanPolicyValue value); IdUniquenessPolicy create_id_uniqueness_policy( in IdUniquenessPolicyValue value); IdAssignmentPolicy create_id_assignment_policy( in IdAssignmentPolicyValue value); ImplicitActivationPolicy create_implicit_activation_policy( in ImplicitActivationPolicyValue value); ServantRetentionPolicy create_servant_retention_policy( in ServantRetentionPolicyValue value); RequestProcessingPolicy create_request_processing_policy( in RequestProcessingPolicyValue value); // POA attributes readonly attribute string the_name; readonly attribute POA the_parent; readonly attribute POAList the_children; readonly attribute POAManager the_POAManager; attribute AdapterActivator the_activator; // Servant Manager registration: ServantManager get_servant_manager() raises (WrongPolicy); void set_servant_manager(in ServantManager imgr) raises (WrongPolicy); // operations for the USE_DEFAULT_SERVANT policy Servant get_servant() raises (NoServant, WrongPolicy); void set_servant( in Servant p_servant) raises (WrongPolicy); // object activation and deactivation ObjectId activate_object(in Servant p_servant) raises (ServantAlreadyActive, WrongPolicy); void activate_object_with_id(in ObjectId id, in Servant p_servant) raises (ServantAlreadyActive, ObjectAlreadyActive, WrongPolicy); void deactivate_object( in ObjectId oid) raises (ObjectNotActive, WrongPolicy); // reference creation operations CORBA::Object create_reference ( in CORBA::RepositoryId intf) raises (WrongPolicy); CORBA::Object create_reference_with_id ( in ObjectId oid, in CORBA::RepositoryId intf); // Identity mapping operations: ObjectId servant_to_id( in Servant p_servant) raises (ServantNotActive, WrongPolicy); CORBA::Object servant_to_reference(in Servant p_servant) raises (ServantNotActive, WrongPolicy); Servant reference_to_servant(in CORBA::Object reference) raises(ObjectNotActive, WrongAdapter, WrongPolicy); ObjectId reference_to_id( in CORBA::Object reference) raises (WrongAdapter, WrongPolicy); Servant id_to_servant( in ObjectId oid) raises (ObjectNotActive, WrongPolicy); CORBA::Object id_to_reference( in ObjectId oid) raises (ObjectNotActive, WrongPolicy); readonly attribute CORBA::OctetSeq id; readonly attribute POAManagerFactory the_POAManagerFactory; }; // Current interface local interface Current : CORBA::Current { exception NoContext { }; POA get_POA() raises (NoContext); ObjectId get_object_id() raises (NoContext); CORBA::Object get_reference() raises (NoContext); Servant get_servant() raises (NoContext); }; }; #endif // _PORTABLE_SERVER_IDL_ ORBit2-2.14.19/src/orb/0000755000175000001440000000000011450334027011276 500000000000000ORBit2-2.14.19/src/orb/include/0000755000175000001440000000000011450334027012721 500000000000000ORBit2-2.14.19/src/orb/include/Makefile.am0000644000175000001440000000010211334247617014677 00000000000000 all: (cd $(top_builddir)/include; $(MAKE)) check install : all ORBit2-2.14.19/src/orb/include/Makefile.in0000644000175000001440000002566111450333734014724 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/orb/include DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/orb/include/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/orb/include/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am all: (cd $(top_builddir)/include; $(MAKE)) check install : all # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/src/orb/dynamic/0000755000175000001440000000000011450334030012714 500000000000000ORBit2-2.14.19/src/orb/dynamic/Makefile.am0000644000175000001440000000162311334247617014711 00000000000000noinst_LTLIBRARIES=liborb-dynamic.la DYNAMIC_IDLOUT=dynamic-defs-common.c liborb_dynamic_la_SOURCES= \ $(DYNAMIC_IDLOUT) \ dynany.c INCLUDES = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/src/orb \ -I$(top_builddir)/include \ -I$(top_builddir)/include/orbit/dynamic \ -DORBIT2_INTERNAL_API \ $(WARN_CFLAGS) \ $(DISABLE_DEPRECATED_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_CFLAGS) IDL_FLAGS= -I$(top_srcdir)/src/idl/CORBA_PIDL \ --define=Object=OObject --define=TypeCode=TTypeCode \ -I$(top_srcdir)/src/idl/CORBA \ -I$(top_srcdir)/src/idl/misc \ -I$(top_srcdir)/src/orb/orb-core \ --noskels --nodefskels --nostubs --noidata --noheaders \ --showcpperrors IDL_FILES=dynamic-defs.idl include $(top_srcdir)/Makefile.shared BUILT_SOURCES = $(DYNAMIC_IDLOUT) CLEANFILES = $(BUILT_SOURCES) EXTRA_DIST = $(IDL_FILES) dist-hook: cd $(distdir); rm -f $(BUILT_SOURCES) ORBit2-2.14.19/src/orb/dynamic/Makefile.in0000644000175000001440000004277611450333734014733 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/Makefile.shared subdir = src/orb/dynamic ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) liborb_dynamic_la_LIBADD = am__objects_1 = dynamic-defs-common.lo am_liborb_dynamic_la_OBJECTS = $(am__objects_1) dynany.lo liborb_dynamic_la_OBJECTS = $(am_liborb_dynamic_la_OBJECTS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(liborb_dynamic_la_SOURCES) DIST_SOURCES = $(liborb_dynamic_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_LTLIBRARIES = liborb-dynamic.la DYNAMIC_IDLOUT = dynamic-defs-common.c liborb_dynamic_la_SOURCES = \ $(DYNAMIC_IDLOUT) \ dynany.c INCLUDES = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/src/orb \ -I$(top_builddir)/include \ -I$(top_builddir)/include/orbit/dynamic \ -DORBIT2_INTERNAL_API \ $(WARN_CFLAGS) \ $(DISABLE_DEPRECATED_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_CFLAGS) IDL_FLAGS = -I$(top_srcdir)/src/idl/CORBA_PIDL \ --define=Object=OObject --define=TypeCode=TTypeCode \ -I$(top_srcdir)/src/idl/CORBA \ -I$(top_srcdir)/src/idl/misc \ -I$(top_srcdir)/src/orb/orb-core \ --noskels --nodefskels --nostubs --noidata --noheaders \ --showcpperrors IDL_FILES = dynamic-defs.idl @MAINTAINER_MODE_TRUE@IDL_DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) @MAINTAINER_MODE_TRUE@IDL_DEP_FILES = $(IDL_FILES:%.idl=.deps/%.idl.P) BUILT_SOURCES = $(DYNAMIC_IDLOUT) CLEANFILES = $(BUILT_SOURCES) EXTRA_DIST = $(IDL_FILES) all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.shared $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/orb/dynamic/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/orb/dynamic/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done liborb-dynamic.la: $(liborb_dynamic_la_OBJECTS) $(liborb_dynamic_la_DEPENDENCIES) $(LINK) $(liborb_dynamic_la_OBJECTS) $(liborb_dynamic_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dynamic-defs-common.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dynany.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-local distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES ctags dist-hook \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-local distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am %-stubs.c %-skels.c %-common.c %-imodule.c %-skelimpl.c: %.h true %.h: $(IDL_DIR)%.idl $(IDL_COMPILER) -(rm -f $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c || true) > /dev/null $(IDL_COMPILER) $(IDL_FLAGS) --deps $(*D)/.deps/$(*F).idl.P $< for I in $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c; do \ if test -f $$I; then \ sed -e 's,OObject,Object,g' -e 's,TTypeCode,TypeCode,g' $$I > $$I.out; \ mv $$I.out $$I ; \ fi; \ done @MAINTAINER_MODE_TRUE@-include $(IDL_DEP_FILES) distclean-local: -rm -rf .deps dist-hook: cd $(distdir); rm -f $(BUILT_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/src/orb/dynamic/dynamic-defs.idl0000644000175000001440000000020111334247617015701 00000000000000#pragma inhibit push #include "corba-defs.idl" #pragma inhibit pop #pragma pidl push #include "DynamicAny.idl" #pragma pidl pop ORBit2-2.14.19/src/orb/dynamic/dynany.c0000644000175000001440000013365411334247617014335 00000000000000/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * ORBit: A CORBA v2.2 ORB * * Copyright (C) 1998 Richard H. Porter, Red Hat Software * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * Author: Dick Porter * Elliot Lee * */ #include #include #include "config.h" #include "orbit/orbit.h" #include "orb-core/orb-core-private.h" #include "../orbit-init.h" #include "../util/orbit-purify.h" #define o_return_val_if_fail(expr, val) if(!(expr)) { CORBA_exception_set_system (ev, ex_CORBA_BAD_PARAM, CORBA_COMPLETED_NO); return (val); } #define o_return_if_fail(expr) if(!(expr)) { CORBA_exception_set_system (ev, ex_CORBA_BAD_PARAM, CORBA_COMPLETED_NO); return; } #define b_return_val_if_fail(expr, val) if(!(expr)) { CORBA_exception_set_system (ev, ex_CORBA_OBJECT_NOT_EXIST, CORBA_COMPLETED_NO); return (val); } #define b_return_if_fail(expr) if(!(expr)) { CORBA_exception_set_system (ev, ex_CORBA_OBJECT_NOT_EXIST, CORBA_COMPLETED_NO); return; } /* CORBA_tk_null: case CORBA_tk_void: case CORBA_tk_short: case CORBA_tk_long: case CORBA_tk_ushort: case CORBA_tk_ulong: case CORBA_tk_float: case CORBA_tk_double: case CORBA_tk_boolean: case CORBA_tk_char: case CORBA_tk_octet: case CORBA_tk_any: case CORBA_tk_TypeCode: case CORBA_tk_Principal: case CORBA_tk_objref: case CORBA_tk_struct: case CORBA_tk_union: case CORBA_tk_enum: case CORBA_tk_string: case CORBA_tk_sequence: case CORBA_tk_array: case CORBA_tk_alias: case CORBA_tk_except: case CORBA_tk_longlong: case CORBA_tk_ulonglong: case CORBA_tk_longdouble: case CORBA_tk_wchar: case CORBA_tk_wstring: case CORBA_tk_fixed: case CORBA_tk_recursive: */ #define DYNANY_TYPE_SINGLE \ CORBA_tk_null: \ case CORBA_tk_void: \ case CORBA_tk_short: \ case CORBA_tk_long: \ case CORBA_tk_ushort: \ case CORBA_tk_ulong: \ case CORBA_tk_float: \ case CORBA_tk_double: \ case CORBA_tk_boolean: \ case CORBA_tk_char: \ case CORBA_tk_octet: \ case CORBA_tk_string: \ case CORBA_tk_longlong: \ case CORBA_tk_ulonglong: \ case CORBA_tk_longdouble: \ case CORBA_tk_wchar: \ case CORBA_tk_wstring: \ case CORBA_tk_objref: \ case CORBA_tk_any: \ case CORBA_tk_TypeCode: \ case CORBA_tk_Principal #define DYNANY_TYPE_RELEASED \ CORBA_tk_struct: \ case CORBA_tk_union: \ case CORBA_tk_sequence: \ case CORBA_tk_array: \ case CORBA_tk_alias: \ case CORBA_tk_objref: \ case CORBA_tk_any: \ case CORBA_tk_TypeCode: \ case CORBA_tk_Principal #define PTR_PLUS(ptr, offset) \ ((gpointer) (((guchar *)(ptr)) + (offset))) /* FIXME: ported very quickly from stable */ struct DynamicAny_DynAny_type { struct ORBit_RootObject_struct parent; gpointer data; }; typedef struct _DynAny DynAny; struct _DynAny { /* * This stores the DynAny's typecode, which is * always valid unless OBJECT_NOT_EXIST should * be fired. any->_value points to the value; * the validity of this is enforced. */ CORBA_any *any; int idx; /* * These are validated when something bad * happens such as changing a union's discriminator * or shrinking a sequence. */ GSList *children; /* DynAny *'s */ int parent_idx; /* To allow de-registration */ DynAny *parent; }; /* * All clever validation happens parent -> child * children use their parent simply to deregister themselfs; */ static void dynany_invalidate (DynAny *d, gboolean invalidate_cur, gboolean lock) { if (invalidate_cur) { if (d->parent) { d->parent->children = g_slist_remove ( d->parent->children, d); d->parent = NULL; g_assert (!d->any->_release); } if (d->any->_release) { if (lock) ORBit_free (d->any); else ORBit_free_T (d->any); } d->any = NULL; } while (d->children) dynany_invalidate (d->children->data, TRUE, lock); } #define GET_DYNANY(obj) ((DynAny *)((struct DynamicAny_DynAny_type *)(obj))->data) static void DynamicAny_DynAny_release_fn (ORBit_RootObject robj) { DynAny *dynany; g_return_if_fail (robj != NULL); dynany = GET_DYNANY (robj); dynany_invalidate (dynany, FALSE, FALSE); if (dynany->any) ORBit_free_T (dynany->any); dynany->any = NULL; g_slist_free (dynany->children); dynany->children = NULL; g_free (dynany); p_free (robj, struct DynamicAny_DynAny_type); } static CORBA_TypeCode dynany_get_cur_type (DynAny *dynany) { CORBA_TypeCode tc = dynany->any->_type; find_type: switch (tc->kind) { case DYNANY_TYPE_SINGLE: case CORBA_tk_fixed: case CORBA_tk_enum: return tc; case CORBA_tk_sequence: case CORBA_tk_array: return tc->subtypes [0]; case CORBA_tk_struct: case CORBA_tk_except: if (dynany->idx >= 0 && dynany->idx < tc->sub_parts) return tc->subtypes [dynany->idx]; else return CORBA_OBJECT_NIL; case CORBA_tk_union: if (dynany->idx == 0) return tc->discriminator; else g_warning ("Union body type checking unimplemented"); break; case CORBA_tk_alias: tc = tc->subtypes [0]; goto find_type; default: g_warning ("Unknown kind '%u'", tc->kind); break; } return CORBA_OBJECT_NIL; } static gboolean dynany_type_mismatch (DynAny *dynany, CORBA_TypeCode assign, CORBA_Environment *ev) { gboolean equal; CORBA_TypeCode tc = dynany_get_cur_type (dynany); if (tc != CORBA_OBJECT_NIL) { equal = CORBA_TypeCode_equal (tc, assign, ev); if (ev->_major != CORBA_NO_EXCEPTION) return TRUE; } else equal = FALSE; if (!equal) CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_TypeMismatch, NULL); return !equal; } static gboolean dynany_kind_mismatch (DynAny *dynany, CORBA_TCKind kind, CORBA_Environment *ev) { CORBA_TypeCode real_tc; real_tc = dynany->any->_type; while (real_tc->kind == CORBA_tk_alias) real_tc = real_tc->subtypes [0]; if (real_tc->kind != kind) { CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_TypeMismatch, NULL); return TRUE; } return FALSE; } static void dynany_init_default (gpointer *val, const CORBA_TypeCode tc) { int i; size_t size; size = ORBit_gather_alloc_info (tc); *val = ALIGN_ADDRESS (*val, tc->c_align); /*g_warning ("Creating '%s' at %p", ORBit_tk_to_name (tc->kind), *val);*/ switch (tc->kind) { case CORBA_tk_null: break; case CORBA_tk_long: case CORBA_tk_ulong: case CORBA_tk_enum: case CORBA_tk_short: case CORBA_tk_ushort: case CORBA_tk_wchar: case CORBA_tk_boolean: case CORBA_tk_char: case CORBA_tk_octet: case CORBA_tk_longlong: case CORBA_tk_ulonglong: case CORBA_tk_fixed: memset (*val, 0, size); *val = ((guchar *)*val) + size; break; case CORBA_tk_wstring: case CORBA_tk_string: *(CORBA_char **) *val = CORBA_string_dup (""); *val = ((guchar *)*val) + size; break; case CORBA_tk_float: *(CORBA_float *) *val = 0.0; *val = ((guchar *)*val) + size; break; case CORBA_tk_double: *(CORBA_double *) *val = 0.0; *val = ((guchar *)*val) + size; break; case CORBA_tk_longdouble: *(CORBA_long_double *) *val = 0.0; *val = ((guchar *)*val) + size; break; case CORBA_tk_objref: *(CORBA_Object *) *val = CORBA_OBJECT_NIL; *val = ((guchar *)*val) + size; break; case CORBA_tk_any: { CORBA_any *any = (CORBA_any *) *val; any->_type = (CORBA_TypeCode) CORBA_Object_duplicate ( (CORBA_Object) TC_null, NULL); any->_value = NULL; CORBA_any_set_release (any, CORBA_TRUE); *val = ((guchar *)*val) + size; break; } case CORBA_tk_TypeCode: *(CORBA_Object *) *val = CORBA_Object_duplicate ( (CORBA_Object) TC_null, NULL); *val = ((guchar *)*val) + size; break; case CORBA_tk_sequence: { CORBA_sequence_CORBA_octet *s; s = (CORBA_sequence_CORBA_octet *) *val; s->_maximum = tc->length; s->_length = 0; s->_buffer = NULL; s->_release = CORBA_TRUE; *val = ((guchar *)*val) + sizeof (CORBA_sequence_CORBA_octet); break; } case CORBA_tk_array: for (i = 0; i < tc->length; i++) dynany_init_default (val, tc->subtypes [0]); break; case CORBA_tk_except: case CORBA_tk_struct: for (i = 0; i < tc->sub_parts; i++) dynany_init_default (val, tc->subtypes [i]); break; case CORBA_tk_union: { gpointer oldval = *val; dynany_init_default (val, tc->discriminator); dynany_init_default (val, tc->subtypes [0]); *val = ((guchar *)oldval) + size; break; } case CORBA_tk_alias: dynany_init_default (val, tc->subtypes [0]); break; default: g_warning ("Unhandled typecode"); break; } } static gpointer dynany_any_new_default (const CORBA_TypeCode tc) { gpointer value; gpointer p; p = value = ORBit_alloc_by_tc (tc); dynany_init_default (&p, tc); return value; } gpointer ORBit_dynany_new_default (const CORBA_TypeCode tc) { return dynany_any_new_default (tc); } static gboolean dynany_sequence_realloc_to (CORBA_sequence_CORBA_octet *s, CORBA_TypeCode sequence_tc, long len, CORBA_Environment *ev) { CORBA_TypeCode tc = sequence_tc->subtypes [0]; gpointer buf, old_buf, b; gconstpointer a; CORBA_unsigned_long old_len; int i; buf = ORBit_alloc_tcval (tc, len); if (!buf) return FALSE; old_buf = s->_buffer; old_len = s->_length; s->_buffer = buf; s->_length = len; b = buf; if (old_buf) { a = old_buf; for (i = 0; i < old_len; i++) ORBit_copy_value_core (&a, &b, tc); ORBit_free (old_buf); } for (i = old_len; i < len; i++) dynany_init_default (&b, tc); return TRUE; } #define DYNANY_GET_OFFSET(p,i,tc) \ ((gpointer) (((guchar *) (p)) + ORBit_gather_alloc_info (tc) * (i))) /** * dynany_get_value: * @dynany: dynany * @ev: exception environment * * Calculates the address of the current component's * value data; ie. for a _tk_long we return a CORBA_long * * * Return value: as above, or NULL on exception. **/ static gpointer dynany_get_value (DynAny *dynany, CORBA_Environment *ev) { gpointer value; CORBA_any *any = dynany->any; CORBA_TypeCode tc = any->_type; get_from_typecode: switch (tc->kind) { case DYNANY_TYPE_SINGLE: case CORBA_tk_fixed: case CORBA_tk_enum: value = any->_value; break; default: if (dynany->idx < 0) { CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_InvalidValue, NULL); return NULL; } switch (tc->kind) { case CORBA_tk_sequence: { CORBA_sequence_CORBA_octet *s; s = (CORBA_sequence_CORBA_octet *) any->_value; if (!s || dynany->idx >= s->_length) { value = NULL; g_warning ("Serious internal sequence related " "error %p %u >= %d", s, s ? s->_length: -1, dynany->idx); } else value = DYNANY_GET_OFFSET (s->_buffer, dynany->idx, tc->subtypes [0]); break; } case CORBA_tk_array: value = DYNANY_GET_OFFSET (any->_value, dynany->idx, tc->subtypes [0]); break; case CORBA_tk_struct: case CORBA_tk_except: { int i; /* FIXME: could cache for efficiency */ value = any->_value; value = ALIGN_ADDRESS (value, tc->subtypes [0]->c_align); for (i = 0; i < dynany->idx; i++) { value = DYNANY_GET_OFFSET (value, 1, tc->subtypes [i]); value = ALIGN_ADDRESS (value, tc->subtypes [i+1]->c_align); } break; } case CORBA_tk_alias: tc = tc->subtypes [0]; goto get_from_typecode; case CORBA_tk_union: g_warning ("Can't get some complex types yet"); value = NULL; default: g_warning ("Unknown kind '%u'", any->_type->kind); value = NULL; break; } } if (!value) CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_InvalidValue, NULL); return value; } static void dynany_get (DynAny *dynany, gpointer retval, CORBA_TypeCode value_type, CORBA_Environment *ev) { gconstpointer dval; dval = dynany_get_value (dynany, ev); if (!dval) return; ORBit_copy_value_core (&dval, &retval, value_type); } static void dynany_insert (DynAny *dynany, CORBA_TypeCode value_type, gconstpointer value, CORBA_Environment *ev) { gpointer dval; dval = dynany_get_value (dynany, ev); if (!dval) return; ORBit_copy_value_core (&value, &dval, value_type); } static ORBit_RootObject_Interface dynany_if = { ORBIT_ROT_OBJREF, /* FIXME: correct ? */ DynamicAny_DynAny_release_fn }; /** * dynany_create: * @type: the type of the any * @value: a pointer to a value * @parent: flags whether we are a slave object or a master * @ev: exception environment * * If we have a parent, it is reffed and we store a pointer * into the parent's data structure. -REALLOC-! * * Return value: a new DynAny object **/ static DynamicAny_DynAny dynany_create (const CORBA_TypeCode type, gpointer value, DynAny *parent, CORBA_Environment *ev) { DynamicAny_DynAny object; DynAny *dynany; o_return_val_if_fail (type, CORBA_OBJECT_NIL); object = g_new0 (struct DynamicAny_DynAny_type, 1); if (!object) goto nomemory; dynany = g_new (DynAny, 1); if (!dynany) { g_free (object); goto nomemory; } dynany->idx = 0; dynany->parent = NULL; dynany->children = NULL; dynany->parent_idx = 0; ORBit_RootObject_init ((ORBit_RootObject) object, &dynany_if); dynany->any = CORBA_any_alloc (); dynany->any->_type = ORBit_RootObject_duplicate (type); if (parent) { dynany->parent = parent; dynany->parent_idx = parent->idx; parent->children = g_slist_prepend ( parent->children, dynany); g_assert (value); dynany->any->_release = CORBA_FALSE; dynany->any->_value = value; } else { dynany->any->_release = CORBA_TRUE; if (value) dynany->any->_value = ORBit_copy_value (value, type); else dynany->any->_value = dynany_any_new_default (type); } object->data = dynany; return ORBit_RootObject_duplicate (object); nomemory: CORBA_exception_set_system ( ev, ex_CORBA_NO_MEMORY, CORBA_COMPLETED_NO); return CORBA_OBJECT_NIL; } DynamicAny_DynAnyFactory ORBit_DynAnyFactory_new (CORBA_ORB orb, CORBA_Environment *ev) { /* FIXME: make this useful for scripting one day */ return (DynamicAny_DynAnyFactory) TC_void; } DynamicAny_DynAny DynamicAny_DynAnyFactory_create_dyn_any ( DynamicAny_DynAnyFactory obj, const CORBA_any *value, CORBA_Environment *ev) { o_return_val_if_fail (value, CORBA_OBJECT_NIL); return dynany_create (value->_type, value->_value, CORBA_OBJECT_NIL, ev); } DynamicAny_DynAny DynamicAny_DynAnyFactory_create_dyn_any_from_type_code ( DynamicAny_DynAnyFactory obj, const CORBA_TypeCode type, CORBA_Environment *ev) { o_return_val_if_fail (type, CORBA_OBJECT_NIL); return dynany_create (type, NULL, CORBA_OBJECT_NIL, ev); } /* 9.2.3.1 */ CORBA_TypeCode DynamicAny_DynAny_type (DynamicAny_DynAny obj, CORBA_Environment *ev) { DynAny *dynany; o_return_val_if_fail (obj != NULL, CORBA_OBJECT_NIL); dynany = GET_DYNANY (obj); b_return_val_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL, CORBA_OBJECT_NIL); return (CORBA_TypeCode) CORBA_Object_duplicate ( (CORBA_Object) dynany->any->_type, ev); } /* 9.2.3.2 */ void DynamicAny_DynAny_assign (DynamicAny_DynAny dest, const DynamicAny_DynAny src, CORBA_Environment *ev) { DynAny *dynany_src; o_return_if_fail (dest && src); dynany_src = GET_DYNANY (src); o_return_if_fail (dynany_src != NULL && dynany_src->any != NULL && dynany_src->any->_type != NULL); DynamicAny_DynAny_from_any (dest, dynany_src->any, ev); } /* 9.2.3.3 */ void DynamicAny_DynAny_from_any (DynamicAny_DynAny obj, const CORBA_any *value, CORBA_Environment *ev) { DynAny *dynany; gboolean equal; o_return_if_fail (value != NULL && value->_type); dynany = GET_DYNANY (obj); b_return_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL); equal = CORBA_TypeCode_equal (dynany->any->_type, value->_type, ev); if (ev->_major != CORBA_NO_EXCEPTION) return; if (!equal) { CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_TypeMismatch, NULL); return; } dynany_invalidate (dynany, TRUE, TRUE); ORBit_free (dynany->any); dynany->any = CORBA_any_alloc (); CORBA_any__copy (dynany->any, value); } /* 9.2.3.4 */ CORBA_any * DynamicAny_DynAny_to_any (DynamicAny_DynAny obj, CORBA_Environment *ev) { DynAny *dynany; CORBA_any *any; o_return_val_if_fail (obj != NULL, NULL); dynany = GET_DYNANY (obj); b_return_val_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL, NULL); any = CORBA_any_alloc (); CORBA_any__copy (any, dynany->any); return any; } /* 9.2.3.5 */ CORBA_boolean DynamicAny_DynAny_equal (DynamicAny_DynAny obj_a, const DynamicAny_DynAny obj_b, CORBA_Environment *ev) { DynAny *dynanya; DynAny *dynanyb; o_return_val_if_fail (obj_a != NULL && obj_b != NULL, FALSE); dynanya = GET_DYNANY (obj_a); dynanyb = GET_DYNANY (obj_b); b_return_val_if_fail (dynanya != NULL && dynanya->any != NULL, FALSE); b_return_val_if_fail (dynanyb != NULL && dynanyb->any != NULL, FALSE); return ORBit_any_equivalent (dynanya->any, dynanyb->any, ev); } /* 9.2.3.6 */ void DynamicAny_DynAny_destroy(DynamicAny_DynAny obj, CORBA_Environment *ev) { /* * This method is almost totaly pointless * In theory we should destroy the Any and return * OBJECT_NOT_EXIST if people try to access it. */ } /* 9.2.3.7 */ DynamicAny_DynAny DynamicAny_DynAny_copy (DynamicAny_DynAny obj, CORBA_Environment *ev) { DynAny *dynany; o_return_val_if_fail (obj != NULL, CORBA_OBJECT_NIL); dynany = GET_DYNANY (obj); b_return_val_if_fail (dynany != NULL && dynany->any != NULL, CORBA_OBJECT_NIL); return dynany_create (dynany->any->_type, dynany->any->_value, dynany->parent, ev); } /* 9.2.3.8 */ void DynamicAny_DynAny_insert_string (DynamicAny_DynAny obj, const CORBA_char *value, CORBA_Environment *ev) { DynAny *dynany; o_return_if_fail (obj != NULL); dynany = GET_DYNANY (obj); b_return_if_fail (dynany != NULL && dynany->any != NULL); if (dynany_type_mismatch (dynany, TC_CORBA_string, ev)) return; dynany_insert (dynany, TC_CORBA_string, (gpointer)&value, ev); return; } void DynamicAny_DynAny_insert_any (DynamicAny_DynAny obj, const CORBA_any *value, CORBA_Environment *ev) { DynAny *dynany; o_return_if_fail (obj != NULL); dynany = GET_DYNANY (obj); b_return_if_fail (dynany != NULL && dynany->any != NULL); if (dynany_type_mismatch (dynany, TC_CORBA_any, ev)) return; dynany_insert (dynany, TC_CORBA_any, (gpointer)&value, ev); return; } #define MAKE_DYNANY_INSERT(ctype,apiname) \ \ void \ DynamicAny_DynAny_insert_##apiname (DynamicAny_DynAny obj, \ const CORBA_##ctype value, \ CORBA_Environment *ev) \ { \ DynAny *dynany; \ struct { CORBA_##ctype value; } copy_of_value = {value}; \ \ o_return_if_fail (obj != NULL); \ \ dynany = GET_DYNANY (obj); \ b_return_if_fail (dynany != NULL && \ dynany->any != NULL); \ \ if (dynany_type_mismatch (dynany, TC_CORBA_##ctype, ev)) \ return; \ \ dynany_insert (dynany, TC_CORBA_##ctype, ©_of_value.value, ev); \ \ return; \ } MAKE_DYNANY_INSERT (short, short) MAKE_DYNANY_INSERT (long, long) MAKE_DYNANY_INSERT (unsigned_short, ushort) MAKE_DYNANY_INSERT (unsigned_long, ulong) MAKE_DYNANY_INSERT (float, float) MAKE_DYNANY_INSERT (double, double) MAKE_DYNANY_INSERT (long_double, longdouble) MAKE_DYNANY_INSERT (boolean, boolean) MAKE_DYNANY_INSERT (char, char) MAKE_DYNANY_INSERT (wchar, wchar) MAKE_DYNANY_INSERT (octet, octet) MAKE_DYNANY_INSERT (TypeCode, typecode) MAKE_DYNANY_INSERT (Object, reference) /* #ifdef HAVE_CORBA_LONG_LONG */ MAKE_DYNANY_INSERT (long_long, longlong) MAKE_DYNANY_INSERT (unsigned_long_long, ulonglong) /* #endif */ #define MAKE_DYNANY_GET(ctype,tc,apiname) \ \ CORBA_##ctype \ DynamicAny_DynAny_get_##apiname (DynamicAny_DynAny obj, \ CORBA_Environment *ev) \ { \ DynAny *dynany; \ CORBA_##ctype value; \ \ o_return_val_if_fail (obj != NULL, (CORBA_##ctype)0); \ \ dynany = GET_DYNANY (obj); \ \ /* FIXME: assumes NULL == CORBA_OBJECT_NIL for simplicity */ \ b_return_val_if_fail (dynany != NULL && \ dynany->any != NULL, (CORBA_##ctype)0); \ \ if (dynany_type_mismatch (dynany, tc, ev)) \ return (CORBA_##ctype)0; \ \ dynany_get (dynany, &value, tc, ev); \ \ return value; \ } MAKE_DYNANY_GET (short, TC_CORBA_short, short) MAKE_DYNANY_GET (long, TC_CORBA_long, long) MAKE_DYNANY_GET (unsigned_short, TC_CORBA_unsigned_short, ushort) MAKE_DYNANY_GET (unsigned_long, TC_CORBA_unsigned_long, ulong) MAKE_DYNANY_GET (float, TC_CORBA_float, float) MAKE_DYNANY_GET (double, TC_CORBA_double, double) MAKE_DYNANY_GET (long_double, TC_CORBA_long_double, longdouble) MAKE_DYNANY_GET (boolean, TC_CORBA_boolean, boolean) MAKE_DYNANY_GET (char, TC_CORBA_char, char) MAKE_DYNANY_GET (wchar, TC_CORBA_wchar, wchar) MAKE_DYNANY_GET (octet, TC_CORBA_octet, octet) MAKE_DYNANY_GET (any *, TC_CORBA_any, any) MAKE_DYNANY_GET (TypeCode, TC_CORBA_TypeCode, typecode) MAKE_DYNANY_GET (Object, TC_CORBA_Object, reference) MAKE_DYNANY_GET (char *, TC_CORBA_string, string) MAKE_DYNANY_GET (wchar *, TC_CORBA_wstring, wstring) /* #ifdef HAVE_CORBA_LONG_LONG */ MAKE_DYNANY_GET (long_long, TC_CORBA_long_long, longlong) MAKE_DYNANY_GET (unsigned_long_long, TC_CORBA_unsigned_long_long, ulonglong) /* #endif */ /* 9.2.3.9 */ CORBA_boolean DynamicAny_DynAny_seek (DynamicAny_DynAny obj, const CORBA_long index, CORBA_Environment *ev) { DynAny *dynany; CORBA_any *any; CORBA_TypeCode tc; o_return_val_if_fail (obj != NULL, FALSE); dynany = GET_DYNANY (obj); b_return_val_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL, FALSE); any = dynany->any; tc = any->_type; validate_seek: switch (tc->kind) { case DYNANY_TYPE_SINGLE: case CORBA_tk_enum: case CORBA_tk_fixed: dynany->idx = -1; if (index == -1) return TRUE; else return FALSE; case CORBA_tk_array: if (index < tc->length && index >= 0) { dynany->idx = index; return TRUE; } else { dynany->idx = -1; return FALSE; } break; case CORBA_tk_struct: case CORBA_tk_except: if (index < tc->sub_parts && index >= 0) { dynany->idx = index; return TRUE; } break; case CORBA_tk_sequence: { CORBA_sequence_CORBA_octet *s; s = dynany->any->_value; if (s && index < s->_length) { dynany->idx = index; return TRUE; } else { dynany->idx = -1; return FALSE; } } case CORBA_tk_union: if (index < 0 || index > 1) { dynany->idx = -1; return FALSE; } dynany->idx = index; return TRUE; case CORBA_tk_alias: tc = tc->subtypes [0]; goto validate_seek; default: g_error ("Unknown kind '%u'", tc->kind); } dynany->idx = -1; return FALSE; } CORBA_unsigned_long DynamicAny_DynAny_component_count (DynamicAny_DynAny obj, CORBA_Environment *ev) { DynAny *dynany; CORBA_any *any; CORBA_TypeCode tc; o_return_val_if_fail (obj != NULL, 0); dynany = GET_DYNANY (obj); b_return_val_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL, 0); any = dynany->any; tc = any->_type; count_type: switch (tc->kind) { case DYNANY_TYPE_SINGLE: case CORBA_tk_fixed: case CORBA_tk_enum: return 0; case CORBA_tk_sequence: { CORBA_sequence_CORBA_octet *s = any->_value; if (!s) { g_warning ("Wierd"); return 0; } return s->_length; } case CORBA_tk_array: return tc->length; case CORBA_tk_struct: case CORBA_tk_except: return tc->sub_parts; case CORBA_tk_union: g_warning ("Can't count complex types yet"); break; case CORBA_tk_alias: tc = tc->subtypes [0]; goto count_type; default: g_error ("Unknown kind '%u'", tc->kind); break; } return 0; } DynamicAny_DynAny DynamicAny_DynAny_current_component (DynamicAny_DynAny obj, CORBA_Environment *ev) { DynAny *dynany; CORBA_any *any; CORBA_TypeCode tc; o_return_val_if_fail (obj != NULL, CORBA_OBJECT_NIL); dynany = GET_DYNANY (obj); b_return_val_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL, CORBA_OBJECT_NIL); if (dynany->idx < 0) return CORBA_OBJECT_NIL; any = dynany->any; tc = any->_type; find_type: switch (tc->kind) { case CORBA_tk_alias: tc = tc->subtypes [0]; goto find_type; case CORBA_tk_enum: CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_TypeMismatch, NULL); return CORBA_OBJECT_NIL; case CORBA_tk_except: if (tc->sub_parts == 0) { CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_TypeMismatch, NULL); return CORBA_OBJECT_NIL; } /* else drop through */ case CORBA_tk_fixed: case CORBA_tk_union: case CORBA_tk_struct: case CORBA_tk_sequence: case CORBA_tk_array: case DYNANY_TYPE_SINGLE: return dynany_create ( dynany_get_cur_type (dynany), dynany_get_value (dynany, ev), dynany, ev); default: g_error ("Unknown kind '%u'", any->_type->kind); } return CORBA_OBJECT_NIL; } CORBA_boolean DynamicAny_DynAny_next (DynamicAny_DynAny obj, CORBA_Environment *ev) { DynAny *dynany; o_return_val_if_fail (obj != NULL, FALSE); dynany = GET_DYNANY (obj); b_return_val_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL, FALSE); return DynamicAny_DynAny_seek (obj, dynany->idx + 1, ev); } void DynamicAny_DynAny_rewind (DynamicAny_DynAny obj, CORBA_Environment *ev) { DynamicAny_DynAny_seek (obj, 0, ev); } /* 9.2.5 */ CORBA_char * DynamicAny_DynEnum_get_as_string (DynamicAny_DynEnum obj, CORBA_Environment *ev) { CORBA_unsigned_long *i; DynAny *dynany; CORBA_TypeCode tc; o_return_val_if_fail (obj != NULL, NULL); dynany = GET_DYNANY (obj); b_return_val_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL, NULL); if (dynany_kind_mismatch (dynany, CORBA_tk_enum, ev)) return NULL; i = dynany_get_value (dynany, ev); if (!i) return NULL; tc = dynany->any->_type; g_assert (*i < tc->sub_parts); return CORBA_string_dup (tc->subnames [*i]); } void DynamicAny_DynEnum_set_as_string (DynamicAny_DynEnum obj, const CORBA_char *value_as_string, CORBA_Environment *ev) { CORBA_unsigned_long i; DynAny *dynany; CORBA_TypeCode tc; o_return_if_fail (obj != NULL); dynany = GET_DYNANY (obj); b_return_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL); if (dynany_kind_mismatch (dynany, CORBA_tk_enum, ev)) return; tc = dynany->any->_type; for (i = 0; i < tc->sub_parts; i++) { if (!strcmp (tc->subnames [i], value_as_string)) { CORBA_unsigned_long *e; e = dynany_get_value (dynany, ev); if (!e) return; *e = i; return; } } CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_InvalidValue, NULL); } CORBA_unsigned_long DynamicAny_DynEnum_get_as_ulong (DynamicAny_DynEnum obj, CORBA_Environment *ev) { CORBA_unsigned_long *i; DynAny *dynany; o_return_val_if_fail (obj != NULL, 0); dynany = GET_DYNANY (obj); b_return_val_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL, 0); if (dynany_kind_mismatch (dynany, CORBA_tk_enum, ev)) return 0; i = dynany_get_value (dynany, ev); if (!i) return 0; return *i; } void DynamicAny_DynEnum_set_as_ulong (DynamicAny_DynEnum obj, const CORBA_unsigned_long value_as_ulong, CORBA_Environment *ev) { DynAny *dynany; CORBA_TypeCode tc; o_return_if_fail (obj != NULL); dynany = GET_DYNANY (obj); b_return_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL); if (dynany_kind_mismatch (dynany, CORBA_tk_enum, ev)) return; tc = dynany->any->_type; if (value_as_ulong < tc->sub_parts) { CORBA_unsigned_long *e; e = dynany_get_value (dynany, ev); if (!e) return; *e = value_as_ulong; } else CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_InvalidValue, NULL); } /* 9.2.6 */ DynamicAny_FieldName DynamicAny_DynStruct_current_member_name (DynamicAny_DynStruct obj, CORBA_Environment *ev) { DynAny *dynany; CORBA_TypeCode tc; o_return_val_if_fail (obj != NULL, NULL); dynany = GET_DYNANY (obj); b_return_val_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL, NULL); if (dynany_kind_mismatch (dynany, CORBA_tk_struct, ev)) return NULL; tc = dynany->any->_type; if (dynany->idx >= 0 && dynany->idx < tc->sub_parts) { if (tc->subnames [dynany->idx]) return CORBA_string_dup ( tc->subnames [dynany->idx]); else return CORBA_string_dup (""); } CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_InvalidValue, NULL); return NULL; } CORBA_TCKind DynamicAny_DynStruct_current_member_kind (DynamicAny_DynStruct obj, CORBA_Environment *ev) { DynAny *dynany; CORBA_TypeCode tc; o_return_val_if_fail (obj != NULL, 0); dynany = GET_DYNANY (obj); b_return_val_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL, 0); if (dynany_kind_mismatch (dynany, CORBA_tk_struct, ev)) return 0; tc = dynany->any->_type; if (dynany->idx >= 0 && dynany->idx < tc->sub_parts && tc->subtypes [dynany->idx]) return tc->subtypes [dynany->idx]->kind; CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_InvalidValue, NULL); return 0; } DynamicAny_NameValuePairSeq * DynamicAny_DynStruct_get_members (DynamicAny_DynStruct obj, CORBA_Environment *ev) { DynAny *dynany; int i; guint offset = 0; gconstpointer src; DynamicAny_NameValuePairSeq *retval; CORBA_TypeCode tc; o_return_val_if_fail (obj != NULL, NULL); dynany = GET_DYNANY (obj); b_return_val_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL, NULL); if (dynany_kind_mismatch (dynany, CORBA_tk_struct, ev)) return NULL; tc = dynany->any->_type; src = dynany->any->_value; if (!src) return NULL; retval = CORBA_sequence_DynamicAny_NameValuePair__alloc (); retval->_buffer = CORBA_sequence_DynamicAny_NameValuePair_allocbuf (tc->sub_parts); retval->_length = tc->sub_parts; retval->_release = CORBA_TRUE; for (i = 0; i < tc->sub_parts; i++) { CORBA_any *any; CORBA_TypeCode subtc = tc->subtypes [i]; gpointer to; gconstpointer tmpsrc; retval->_buffer [i].id = CORBA_string_dup (tc->subnames [i]); any = &retval->_buffer [i].value; any->_type = (CORBA_TypeCode) CORBA_Object_duplicate ( (CORBA_Object) subtc, ev); to = any->_value = ORBit_alloc_by_tc (subtc); offset = ALIGN_VALUE (offset, subtc->c_align); tmpsrc = PTR_PLUS (src, offset); ORBit_copy_value_core (&tmpsrc, &to, subtc); offset += ORBit_gather_alloc_info (subtc); } return retval; } void DynamicAny_DynStruct_set_members (DynamicAny_DynStruct obj, const DynamicAny_NameValuePairSeq *value, CORBA_Environment *ev) { DynAny *dynany; int i; guint offset = 0; gpointer dest; CORBA_TypeCode tc; o_return_if_fail (obj != NULL); o_return_if_fail (value != NULL); dynany = GET_DYNANY (obj); b_return_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL); if (dynany_kind_mismatch (dynany, CORBA_tk_struct, ev)) return; tc = dynany->any->_type; if (value->_length != tc->sub_parts) { CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_TypeMismatch, NULL); return; } dynany_invalidate (dynany, FALSE, TRUE); for (i = 0; i < value->_length; i++) { DynamicAny_NameValuePair current = value->_buffer [i]; if (strcmp (current.id, tc->subnames [i])) { CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_TypeMismatch, NULL); return; } if (!CORBA_TypeCode_equal (current.value._type, tc->subtypes [i], ev)) { CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_InvalidValue, NULL); return; } } dest = dynany->any->_value; for (i = 0; i < value->_length; i++) { DynamicAny_NameValuePair current = value->_buffer [i]; gconstpointer src = current.value._value; CORBA_TypeCode subtc = tc->subtypes [i]; gpointer tmpdest; offset = ALIGN_VALUE (offset, subtc->c_align); tmpdest = PTR_PLUS (dest, offset); ORBit_copy_value_core (&src, &tmpdest, subtc); offset += ORBit_gather_alloc_info (subtc); } } DynamicAny_NameDynAnyPairSeq * DynamicAny_DynStruct_get_members_as_dyn_any (DynamicAny_DynStruct obj, CORBA_Environment *ev) { DynAny *dynany; int i; gpointer src; DynamicAny_NameDynAnyPairSeq *retval; CORBA_TypeCode tc; o_return_val_if_fail (obj != NULL, NULL); dynany = GET_DYNANY (obj); b_return_val_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL, NULL); if (dynany_kind_mismatch (dynany, CORBA_tk_struct, ev)) return NULL; tc = dynany->any->_type; src = dynany->any->_value; if (!src) return NULL; retval = CORBA_sequence_DynamicAny_NameDynAnyPair__alloc (); retval->_buffer = CORBA_sequence_DynamicAny_NameDynAnyPair_allocbuf (tc->sub_parts); retval->_length = tc->sub_parts; retval->_release = CORBA_TRUE; for (i = 0; i < tc->sub_parts; i++) { CORBA_TypeCode subtc = tc->subtypes [i]; retval->_buffer [i].id = CORBA_string_dup (tc->subnames [i]); /* FIXME: this looks broken to me - why does src not advance ? */ retval->_buffer [i].value = dynany_create (subtc, src, dynany, ev); } return retval; } void DynamicAny_DynStruct_set_members_as_dyn_any (DynamicAny_DynStruct obj, const DynamicAny_NameDynAnyPairSeq *value, CORBA_Environment *ev) { DynAny *dynany; int i; gpointer dest; CORBA_TypeCode tc; o_return_if_fail (obj != NULL); o_return_if_fail (value != NULL); dynany = GET_DYNANY (obj); b_return_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL); if (dynany_kind_mismatch (dynany, CORBA_tk_struct, ev)) return; tc = dynany->any->_type; if (value->_length != tc->sub_parts) { CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_TypeMismatch, NULL); return; } for (i = 0; i < value->_length; i++) { DynamicAny_NameDynAnyPair current = value->_buffer [i]; DynAny *dyn = GET_DYNANY (current.value); if (strcmp (current.id, tc->subnames [i])) { CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_TypeMismatch, NULL); return; } if (!CORBA_TypeCode_equal (dyn->any->_type, tc->subtypes [i], ev)) { CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_InvalidValue, NULL); return; } } dest = dynany->any->_value; for (i = 0; i < value->_length; i++) { DynamicAny_NameDynAnyPair current = value->_buffer [i]; DynAny *dyn = GET_DYNANY (current.value); gconstpointer src = dyn->any->_value; ORBit_copy_value_core (&src, &dest, tc->subtypes [i]); } dynany_invalidate (dynany, FALSE, TRUE); } /* 9.2.7 */ DynamicAny_DynAny DynamicAny_DynUnion_get_discriminator (DynamicAny_DynUnion obj, CORBA_Environment *ev) { g_assert (!"Not yet implemented"); return NULL; } void DynamicAny_DynUnion_set_discriminator (DynamicAny_DynUnion obj, const DynamicAny_DynAny d, CORBA_Environment *ev) { g_assert (!"Not yet implemented"); } void DynamicAny_DynUnion_set_to_default_member (DynamicAny_DynUnion obj, CORBA_Environment *ev) { g_assert (!"Not yet implemented"); } void DynamicAny_DynUnion_set_to_no_active_member (DynamicAny_DynUnion obj, CORBA_Environment *ev) { g_assert (!"Not yet implemented"); } CORBA_boolean DynamicAny_DynUnion_has_no_active_member (DynamicAny_DynUnion obj, CORBA_Environment *ev) { DynAny *dynany; o_return_val_if_fail (obj != NULL, 0); dynany = GET_DYNANY (obj); b_return_val_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL, 0); if (dynany->idx == 0) return TRUE; else return FALSE; } CORBA_TCKind DynamicAny_DynUnion_discriminator_kind (DynamicAny_DynUnion obj, CORBA_Environment *ev) { DynAny *dynany; CORBA_TypeCode tc; o_return_val_if_fail (obj != NULL, 0); dynany = GET_DYNANY (obj); b_return_val_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL, 0); if (dynany_kind_mismatch (dynany, CORBA_tk_union, ev)) return 0; tc = dynany->any->_type; if (tc->discriminator) return tc->discriminator->kind; CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_InvalidValue, NULL); return 0; } DynamicAny_DynAny DynamicAny_DynUnion_member (DynamicAny_DynUnion obj, CORBA_Environment *ev) { g_assert (!"Not yet implemented"); return NULL; } DynamicAny_FieldName DynamicAny_DynUnion_member_name (DynamicAny_DynUnion obj, CORBA_Environment *ev) { DynAny *dynany; CORBA_TypeCode tc; o_return_val_if_fail (obj != NULL, NULL); dynany = GET_DYNANY (obj); b_return_val_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL, NULL); tc = dynany->any->_type; if (dynany->idx >= 0 && dynany->idx < tc->sub_parts) { if (tc->subnames [dynany->idx]) return CORBA_string_dup ( tc->subnames [dynany->idx]); else return CORBA_string_dup (""); } CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_InvalidValue, NULL); return NULL; } CORBA_TCKind DynamicAny_DynUnion_member_kind (DynamicAny_DynUnion obj, CORBA_Environment *ev) { DynAny *dynany; CORBA_TypeCode tc; o_return_val_if_fail (obj != NULL, 0); dynany = GET_DYNANY (obj); b_return_val_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL, 0); if (dynany_kind_mismatch (dynany, CORBA_tk_union, ev)) return 0; tc = dynany->any->_type; if (dynany->idx >= 0 && dynany->idx < tc->sub_parts && tc->subtypes [dynany->idx]) return tc->subtypes [dynany->idx]->kind; CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_InvalidValue, NULL); return 0; } /* 9.2.8 */ DynamicAny_AnySeq * DynamicAny_DynSequence_get_elements (DynamicAny_DynSequence obj, CORBA_Environment *ev) { DynAny *dynany; CORBA_sequence_CORBA_octet *s; DynamicAny_AnySeq *retval; int i; gconstpointer src; CORBA_TypeCode subtc; o_return_val_if_fail (obj != NULL, NULL); dynany = GET_DYNANY (obj); b_return_val_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL, NULL); if (dynany_kind_mismatch (dynany, CORBA_tk_sequence, ev)) return NULL; s = dynany->any->_value; if (!s) return NULL; src = s->_buffer; retval = DynamicAny_AnySeq__alloc (); retval->_buffer = DynamicAny_AnySeq_allocbuf (s->_length); retval->_length = s->_length; retval->_release = CORBA_TRUE; subtc = dynany->any->_type->subtypes [0]; for (i = 0; i < s->_length; i++) { CORBA_any *any = &retval->_buffer [i]; gpointer to; any->_type = (CORBA_TypeCode) CORBA_Object_duplicate ( (CORBA_Object) subtc, ev); to = any->_value = ORBit_alloc_by_tc (subtc); ORBit_copy_value_core (&src, &to, subtc); } return retval; } void DynamicAny_DynSequence_set_elements (DynamicAny_DynSequence obj, const DynamicAny_AnySeq *value, CORBA_Environment *ev) { DynAny *dynany; CORBA_sequence_CORBA_octet *s; int i; gpointer dest; CORBA_TypeCode subtc; o_return_if_fail (obj != NULL); o_return_if_fail (value != NULL); dynany = GET_DYNANY (obj); b_return_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL); if (dynany_kind_mismatch (dynany, CORBA_tk_sequence, ev)) return; s = dynany->any->_value; if (!s) return; subtc = dynany->any->_type->subtypes [0]; for (i = 0; i < value->_length && i < s->_length; i++) { CORBA_any *a = &value->_buffer [i]; if (!a || !a->_type || !CORBA_TypeCode_equal (subtc, a->_type, ev)) { CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_InvalidValue, NULL); return; } } dynany_invalidate (dynany, FALSE, TRUE); dest = s->_buffer; for (i = 0; i < value->_length; i++) { CORBA_any *a = &value->_buffer [i]; gconstpointer src = a->_value; ORBit_copy_value_core (&src, &dest, subtc); } } DynamicAny_DynAnySeq * DynamicAny_DynSequence_get_elements_as_dyn_any (DynamicAny_DynSequence obj, CORBA_Environment *ev) { DynAny *dynany; int i; CORBA_sequence_CORBA_octet *s; DynamicAny_DynAnySeq *retval; CORBA_TypeCode subtc; o_return_val_if_fail (obj != NULL, NULL); dynany = GET_DYNANY (obj); b_return_val_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL, NULL); if (dynany_kind_mismatch (dynany, CORBA_tk_sequence, ev)) return NULL; s = dynany->any->_value; if (!s) return NULL; retval = CORBA_sequence_DynamicAny_DynAny__alloc (); retval->_buffer = CORBA_sequence_DynamicAny_DynAny_allocbuf (s->_length); retval->_length = s->_length; retval->_release = CORBA_TRUE; subtc = dynany->any->_type->subtypes [0]; for (i = 0; i < s->_length; i++) { DynAny *subdyn; gpointer src; subdyn = GET_DYNANY (&s->_buffer [i]); src = subdyn->any->_value; retval->_buffer [i] = (CORBA_Object) dynany_create (subtc, src, dynany, ev); } return retval; } void DynamicAny_DynSequence_set_elements_as_dyn_any (DynamicAny_DynSequence obj, const DynamicAny_DynAnySeq *value, CORBA_Environment *ev) { DynAny *dynany; CORBA_sequence_CORBA_octet *s; int i; gpointer dest; CORBA_TypeCode real_tc, subtc; o_return_if_fail (obj != NULL); o_return_if_fail (value != NULL); dynany = GET_DYNANY (obj); b_return_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL); if (dynany_kind_mismatch (dynany, CORBA_tk_sequence, ev)) return; s = dynany->any->_value; if (!s) return; real_tc = dynany->any->_type; while (real_tc->kind == CORBA_tk_alias) real_tc = real_tc->subtypes [0]; subtc = real_tc->subtypes [0]; for (i = 0; i < value->_length && i < s->_length; i++) { DynamicAny_DynAny a = (DynamicAny_DynAny) value->_buffer [i]; DynAny *subdyn; subdyn = a ? GET_DYNANY (a) : NULL; if (!a || !subdyn || !subdyn->any || !subdyn->any->_type || !CORBA_TypeCode_equal (subtc, subdyn->any->_type, ev)) { CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_InvalidValue, NULL); return; } } dynany_invalidate (dynany, FALSE, TRUE); dest = s->_buffer; for (i = 0; i < value->_length; i++) { DynamicAny_DynAny a = (DynamicAny_DynAny) value->_buffer [i]; DynAny *subdyn = GET_DYNANY (a); gconstpointer src = subdyn->any->_value; ORBit_copy_value_core (&src, &dest, subtc); } } CORBA_unsigned_long DynamicAny_DynSequence_get_length (DynamicAny_DynSequence obj, CORBA_Environment *ev) { DynAny *dynany; CORBA_sequence_CORBA_octet *s; o_return_val_if_fail (obj != NULL, 0); dynany = GET_DYNANY (obj); b_return_val_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL, 0); if (dynany_kind_mismatch (dynany, CORBA_tk_sequence, ev)) return -1; s = dynany->any->_value; if (!s) return -1; return s->_length; } void DynamicAny_DynSequence_set_length (DynamicAny_DynSequence obj, const CORBA_unsigned_long length, CORBA_Environment *ev) { DynAny *dynany; CORBA_sequence_CORBA_octet *s; CORBA_long old_length; o_return_if_fail (obj != NULL); dynany = GET_DYNANY (obj); b_return_if_fail (dynany != NULL && dynany->any != NULL && dynany->any->_type != NULL); if (dynany_kind_mismatch (dynany, CORBA_tk_sequence, ev)) return; s = dynany->any->_value; if (!s) return; if (length == s->_length) return; if (s->_maximum && length > s->_maximum) { CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_DynamicAny_DynAny_InvalidValue, NULL); return; } old_length = s->_length; if (!dynany_sequence_realloc_to (s, dynany->any->_type, length, ev)) return; if (length > old_length) { if (dynany->idx == -1) dynany->idx = old_length; } else { GSList *l; for (l = dynany->children; l; l = l->next) { DynAny *child = l->data; if (child->parent_idx >= length) dynany_invalidate (child, TRUE, TRUE); } if (length == 0 || dynany->idx >= length) dynany->idx = -1; } } /* 9.2.9 */ DynamicAny_AnySeq * DynamicAny_DynArray_get_elements (DynamicAny_DynArray obj, CORBA_Environment *ev) { g_assert (!"Not yet implemented"); return NULL; } void DynamicAny_DynArray_set_elements (DynamicAny_DynArray obj, const DynamicAny_AnySeq *value, CORBA_Environment *ev) { g_assert (!"Not yet implemented"); } ORBit2-2.14.19/src/orb/Makefile.am0000644000175000001440000000127011334247617013263 00000000000000SUBDIRS=include orb-core util GIOP poa dynamic lib_LTLIBRARIES=libORBit-2.la INCLUDES = \ -I. \ -I$(srcdir) \ -I$(top_srcdir)/include \ -I$(top_builddir)/include \ -DORBIT_VERSION=\"@ORBIT_VERSION@\" \ -DORBIT2_INTERNAL_API \ $(WARN_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_CFLAGS) libORBit_2_la_SOURCES=orbit-init.c orbit-init.h libORBit_2_la_LDFLAGS = \ -version-info $(LT_VERSION) \ -no-undefined \ $(ORBIT_LIBS) libORBit_2_la_LIBADD= \ util/liborb-util.la \ GIOP/libGIOP.la \ orb-core/liborb-core.la \ poa/liborb-poa.la \ dynamic/liborb-dynamic.la \ ../../linc2/src/liblinc.la inst-lib: all-recursive install-libLTLIBRARIES ORBit2-2.14.19/src/orb/Makefile.in0000644000175000001440000005727711450333733013310 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/orb DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(libdir)" LTLIBRARIES = $(lib_LTLIBRARIES) libORBit_2_la_DEPENDENCIES = util/liborb-util.la GIOP/libGIOP.la \ orb-core/liborb-core.la poa/liborb-poa.la \ dynamic/liborb-dynamic.la ../../linc2/src/liblinc.la am_libORBit_2_la_OBJECTS = orbit-init.lo libORBit_2_la_OBJECTS = $(am_libORBit_2_la_OBJECTS) libORBit_2_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libORBit_2_la_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libORBit_2_la_SOURCES) DIST_SOURCES = $(libORBit_2_la_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = include orb-core util GIOP poa dynamic lib_LTLIBRARIES = libORBit-2.la INCLUDES = \ -I. \ -I$(srcdir) \ -I$(top_srcdir)/include \ -I$(top_builddir)/include \ -DORBIT_VERSION=\"@ORBIT_VERSION@\" \ -DORBIT2_INTERNAL_API \ $(WARN_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_CFLAGS) libORBit_2_la_SOURCES = orbit-init.c orbit-init.h libORBit_2_la_LDFLAGS = \ -version-info $(LT_VERSION) \ -no-undefined \ $(ORBIT_LIBS) libORBit_2_la_LIBADD = \ util/liborb-util.la \ GIOP/libGIOP.la \ orb-core/liborb-core.la \ poa/liborb-poa.la \ dynamic/liborb-dynamic.la \ ../../linc2/src/liblinc.la all: all-recursive .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/orb/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/orb/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libORBit-2.la: $(libORBit_2_la_OBJECTS) $(libORBit_2_la_DEPENDENCIES) $(libORBit_2_la_LINK) -rpath $(libdir) $(libORBit_2_la_OBJECTS) $(libORBit_2_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-init.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(LTLIBRARIES) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(libdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-libLTLIBRARIES install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-libLTLIBRARIES .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool ctags ctags-recursive \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-libLTLIBRARIES install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-libLTLIBRARIES inst-lib: all-recursive install-libLTLIBRARIES # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/src/orb/poa/0000755000175000001440000000000011450334030012047 500000000000000ORBit2-2.14.19/src/orb/poa/orbit-adaptor.c0000644000175000001440000002152211334247617014723 00000000000000#include #include #ifdef HAVE_UNISTD_H # include #endif #include #include #include "orbit-poa.h" #include "../orb-core/orbit-debug.h" #include "../GIOP/giop-debug.h" void ORBit_ObjectAdaptor_set_thread_hintv (ORBit_ObjectAdaptor adaptor, ORBitThreadHint thread_hint, va_list args) { g_return_if_fail (adaptor != NULL); g_return_if_fail (thread_hint >= ORBIT_THREAD_HINT_NONE && thread_hint <= ORBIT_THREAD_HINT_ON_CONTEXT); adaptor->thread_hint = thread_hint; switch (thread_hint) { case ORBIT_THREAD_HINT_PER_OBJECT: case ORBIT_THREAD_HINT_PER_REQUEST: case ORBIT_THREAD_HINT_PER_POA: case ORBIT_THREAD_HINT_PER_CONNECTION: case ORBIT_THREAD_HINT_ON_CONTEXT: if (link_thread_safe ()) link_set_io_thread (TRUE); break; case ORBIT_THREAD_HINT_NONE: case ORBIT_THREAD_HINT_ONEWAY_AT_IDLE: case ORBIT_THREAD_HINT_ALL_AT_IDLE: break; } if (thread_hint == ORBIT_THREAD_HINT_ON_CONTEXT) { adaptor->context = va_arg (args, GMainContext*); if (adaptor->context) g_main_context_ref (adaptor->context); else g_warning ("POA thread policy of ORBIT_THREAD_HINT_ON_CONTEXT chosen, " "but NULL context supplied. will dispatch to default context."); } } void ORBit_ObjectAdaptor_set_thread_hint (ORBit_ObjectAdaptor adaptor, ORBitThreadHint thread_hint, ...) { va_list args; va_start (args, thread_hint); ORBit_ObjectAdaptor_set_thread_hintv (adaptor, thread_hint, args); va_end (args); } ORBitThreadHint ORBit_ObjectAdaptor_get_thread_hint (ORBit_ObjectAdaptor adaptor) { g_return_val_if_fail (adaptor != NULL, ORBIT_THREAD_HINT_NONE); return adaptor->thread_hint; } /* * Tie a object adaptor object to the current thread. This means that * incoming requests to the servant will be handled by this thread only. * The object must be created by a POA with the ORBIT_THREAD_HINT_PER_OBJECT * hint set, and if the thread exits the behaviour will fallback to the * default for HINT_PER_OBJECT, i.e. a new thread will be spawned to handle * all calls for the object. You need to call this function before any * requests for the object arrive, since otherwise a thread for the * object will be created. */ void ORBit_ObjectAdaptor_object_bind_to_current_thread (CORBA_Object obj) { ORBit_OAObject adaptor_obj; ORBit_POAObject pobj; ORBit_ObjectAdaptor adaptor; g_return_if_fail (obj != NULL); adaptor_obj = obj->adaptor_obj; g_return_if_fail (adaptor_obj != NULL); g_return_if_fail (adaptor_obj->interface != NULL); g_return_if_fail (adaptor_obj->interface->adaptor_type & ORBIT_ADAPTOR_POA); pobj = (ORBit_POAObject) adaptor_obj; adaptor = (ORBit_ObjectAdaptor) pobj->poa; if (adaptor->thread_hint != ORBIT_THREAD_HINT_PER_OBJECT) { g_warning ("POA thread policy must be ORBIT_THREAD_HINT_PER_OBJECT for thread binding to work"); } /* The GIOPThread will allocated in a user thread will be freed by * the TLS destructor, which will also release the key to the pobj. * If the pobj is destroyed before this ORBit_POAObject_release_cb * will release the key. */ giop_thread_key_add (giop_thread_self (), pobj); } CORBA_long ORBit_adaptor_setup (ORBit_ObjectAdaptor adaptor, CORBA_ORB orb) { int adaptor_id; CORBA_long *tptr; LINK_MUTEX_LOCK (ORBit_RootObject_lifecycle_lock); { adaptor_id = orb->adaptors->len; g_ptr_array_set_size (orb->adaptors, adaptor_id + 1); g_ptr_array_index (orb->adaptors, adaptor_id) = adaptor; } LINK_MUTEX_UNLOCK (ORBit_RootObject_lifecycle_lock); adaptor->thread_hint = ORBIT_THREAD_HINT_NONE; adaptor->adaptor_key._length = ORBIT_ADAPTOR_PREFIX_LEN; adaptor->adaptor_key._buffer = CORBA_sequence_CORBA_octet_allocbuf (adaptor->adaptor_key._length); adaptor->adaptor_key._release = CORBA_TRUE; ORBit_genuid_buffer (adaptor->adaptor_key._buffer + sizeof (CORBA_long), ORBIT_ADAPTOR_KEY_LEN, ORBIT_GENUID_COOKIE); tptr = (CORBA_long *) adaptor->adaptor_key._buffer; *tptr = adaptor_id; return *tptr; } static ORBit_ObjectAdaptor ORBit_adaptor_find (CORBA_ORB orb, ORBit_ObjectKey *objkey) { gint32 adaptorId; ORBit_ObjectAdaptor adaptor; if (!objkey) return NULL; if (objkey->_length < ORBIT_ADAPTOR_PREFIX_LEN) return NULL; memcpy (&adaptorId, objkey->_buffer, sizeof (gint32)); if (adaptorId < 0 || adaptorId >= orb->adaptors->len) return NULL; LINK_MUTEX_LOCK (ORBit_RootObject_lifecycle_lock); { if ((adaptor = g_ptr_array_index (orb->adaptors, adaptorId))) { if (memcmp (objkey->_buffer, adaptor->adaptor_key._buffer, ORBIT_ADAPTOR_PREFIX_LEN)) adaptor = NULL; else ORBit_RootObject_duplicate_T (adaptor); } } LINK_MUTEX_UNLOCK (ORBit_RootObject_lifecycle_lock); return adaptor; } static CORBA_Object ORBit_forw_bind_find (CORBA_ORB orb, ORBit_ObjectKey *objkey) { CORBA_Object object = NULL; gchar *objectId = NULL; if (!objkey) return NULL; objectId = (gchar *) g_malloc0 (sizeof(gchar)*objkey->_length+1); memcpy (objectId, objkey->_buffer, objkey->_length); LINK_MUTEX_LOCK (ORBit_RootObject_lifecycle_lock); { const gchar *typeid; object = g_hash_table_lookup (orb->forw_binds, objectId); if (object) { typeid = g_quark_to_string (object->type_qid); if (!typeid) { gboolean removed; removed = g_hash_table_remove (orb->forw_binds, objectId); g_assert (removed == TRUE); object = NULL; } } } LINK_MUTEX_UNLOCK (ORBit_RootObject_lifecycle_lock); g_free (objectId); return object; } void ORBit_handle_locate_request (CORBA_ORB orb, GIOPRecvBuffer *recv_buffer) { ORBit_ObjectKey *objkey; ORBit_ObjectAdaptor adaptor; objkey = giop_recv_buffer_get_objkey (recv_buffer); /* * FIXME: this only checks that the adaptor is available, * needs more work in the POA. */ if (objkey && (adaptor = ORBit_adaptor_find (orb, objkey))) { GIOPSendBuffer *send_buffer = giop_send_buffer_use_locate_reply (recv_buffer->giop_version, giop_recv_buffer_get_request_id (recv_buffer), GIOP_OBJECT_HERE); giop_send_buffer_write (send_buffer, recv_buffer->connection, FALSE); giop_send_buffer_unuse (send_buffer); ORBit_RootObject_release (adaptor); } else { /* can't find adaptor */ GIOPSendBuffer *send_buffer; send_buffer = giop_send_buffer_use_locate_reply (recv_buffer->giop_version, giop_recv_buffer_get_request_id (recv_buffer), GIOP_UNKNOWN_OBJECT); giop_send_buffer_write (send_buffer, recv_buffer->connection, FALSE); giop_send_buffer_unuse (send_buffer); } giop_recv_buffer_unuse (recv_buffer); } void ORBit_handle_request (CORBA_ORB orb, GIOPRecvBuffer *recv_buffer) { ORBit_ObjectKey *objkey; ORBit_ObjectAdaptor adaptor; objkey = giop_recv_buffer_get_objkey (recv_buffer); adaptor = ORBit_adaptor_find (orb, objkey); if (!adaptor || !objkey) { CORBA_Object forw_obj = ORBit_forw_bind_find (orb, objkey); if (forw_obj) { GIOPSendBuffer *send_buffer = giop_send_buffer_use_reply (recv_buffer->giop_version, giop_recv_buffer_get_request_id (recv_buffer), GIOP_LOCATION_FORWARD); ORBit_marshal_object(send_buffer, forw_obj); giop_send_buffer_write (send_buffer, recv_buffer->connection, FALSE); giop_send_buffer_unuse (send_buffer); giop_recv_buffer_unuse (recv_buffer); } else { CORBA_Environment env; CORBA_exception_init (&env); tprintf ("Error: failed to find adaptor or objkey for " "object while invoking method '%s'", giop_recv_buffer_get_opname (recv_buffer)); CORBA_exception_set_system ( &env, ex_CORBA_OBJECT_NOT_EXIST, CORBA_COMPLETED_NO); ORBit_recv_buffer_return_sys_exception (recv_buffer, &env); CORBA_exception_free (&env); } } else { dprintf (MESSAGES, "p %d: handle request '%s'\n", getpid (), giop_recv_buffer_get_opname (recv_buffer)); adaptor->handle_request (adaptor, recv_buffer, objkey); } ORBit_RootObject_release (adaptor); } void ORBit_small_handle_request (ORBit_OAObject adaptor_obj, CORBA_Identifier opname, gpointer ret, gpointer *args, CORBA_Context ctx, GIOPRecvBuffer *recv_buffer, CORBA_Environment *ev) { adaptor_obj->interface->handle_request (adaptor_obj, opname, ret, args, ctx, recv_buffer, ev); } gboolean ORBit_OAObject_is_active (ORBit_OAObject adaptor_obj) { return adaptor_obj->interface->is_active (adaptor_obj); } ORBit_ObjectKey* ORBit_OAObject_object_to_objkey (ORBit_OAObject adaptor_obj) { return adaptor_obj->interface->object_to_objkey (adaptor_obj); } void ORBit_OAObject_invoke (ORBit_OAObject adaptor_obj, gpointer ret, gpointer *args, CORBA_Context ctx, gpointer data, CORBA_Environment *ev) { adaptor_obj->interface->invoke(adaptor_obj, ret, args, ctx, data, ev); } ORBit2-2.14.19/src/orb/poa/poa-policy.c0000644000175000001440000000407211334247617014231 00000000000000#include #include #define POLICY__get_value(name) \ name##Value \ name##__get_value (name obj, \ CORBA_Environment *ev) \ { \ struct CORBA_Policy_type *policy = \ (struct CORBA_Policy_type *) obj; \ \ return policy->value; \ } POLICY__get_value (PortableServer_ThreadPolicy) POLICY__get_value (PortableServer_LifespanPolicy) POLICY__get_value (PortableServer_IdUniquenessPolicy) POLICY__get_value (PortableServer_IdAssignmentPolicy) POLICY__get_value (PortableServer_ServantRetentionPolicy) POLICY__get_value (PortableServer_RequestProcessingPolicy) POLICY__get_value (PortableServer_ImplicitActivationPolicy) #define PortableServer_POA_create_POLICY(name, str, id) \ name \ PortableServer_POA_create_##str##_policy (PortableServer_POA poa, \ const name##Value value, \ CORBA_Environment *ev) \ { \ return (name)ORBit_Policy_new (id, value); \ } PortableServer_POA_create_POLICY (PortableServer_ThreadPolicy, thread, PortableServer_THREAD_POLICY_ID) PortableServer_POA_create_POLICY (PortableServer_LifespanPolicy, lifespan, PortableServer_LIFESPAN_POLICY_ID) PortableServer_POA_create_POLICY (PortableServer_IdUniquenessPolicy, id_uniqueness, PortableServer_ID_UNIQUENESS_POLICY_ID) PortableServer_POA_create_POLICY (PortableServer_IdAssignmentPolicy, id_assignment, PortableServer_ID_ASSIGNMENT_POLICY_ID) PortableServer_POA_create_POLICY (PortableServer_ServantRetentionPolicy, servant_retention, PortableServer_SERVANT_RETENTION_POLICY_ID) PortableServer_POA_create_POLICY (PortableServer_RequestProcessingPolicy, request_processing, PortableServer_REQUEST_PROCESSING_POLICY_ID) PortableServer_POA_create_POLICY (PortableServer_ImplicitActivationPolicy, implicit_activation, PortableServer_IMPLICIT_ACTIVATION_POLICY_ID) ORBit2-2.14.19/src/orb/poa/poa-macros.h0000644000175000001440000000621211334247617014221 00000000000000#ifndef __POA_MACROS_H__ #define __POA_MACROS_H__ #include G_BEGIN_DECLS #define poa_sys_exception_if_fail(expr,ex) G_STMT_START { \ if (!(expr)) { \ CORBA_exception_set_system (ev, (ex), \ CORBA_COMPLETED_NO); \ g_warning ( \ "file %s: line %d: assertion `%s' failed. " \ "returning exception '%s'", \ __FILE__, \ __LINE__, \ #expr, \ (ex)); \ return; \ } } G_STMT_END #define poa_sys_exception_val_if_fail(expr,ex,val) G_STMT_START { \ if (!(expr)) { \ CORBA_exception_set_system (ev, (ex), \ CORBA_COMPLETED_NO); \ g_warning ( \ "file %s: line %d: assertion `%s' failed. " \ "returning exception '%s'", \ __FILE__, \ __LINE__, \ #expr, \ (ex)); \ return (val); \ } } G_STMT_END #define poa_exception_if_fail(expr,ex) G_STMT_START { \ if (!(expr)) { \ CORBA_exception_set (ev, CORBA_USER_EXCEPTION, \ (ex), NULL); \ g_warning ( \ "file %s: line %d: assertion `%s' failed. " \ "returning exception '%s'", \ __FILE__, \ __LINE__, \ #expr, \ (ex)); \ return; \ } } G_STMT_END #define poa_exception_val_if_fail(expr,ex,val) G_STMT_START { \ if (!(expr)) { \ CORBA_exception_set (ev, CORBA_USER_EXCEPTION, \ (ex), NULL); \ g_warning ( \ "file %s: line %d: assertion `%s' failed. " \ "returning exception '%s'", \ __FILE__, \ __LINE__, \ #expr, \ (ex)); \ return (val); \ } } G_STMT_END #define IS_USE_ACTIVE_OBJECT_MAP_ONLY(poa) \ ((poa)->p_request_processing == PortableServer_USE_ACTIVE_OBJECT_MAP_ONLY) #define IS_USE_DEFAULT_SERVANT(poa) \ ((poa)->p_request_processing == PortableServer_USE_DEFAULT_SERVANT) #define IS_USE_USE_SERVANT_MANAGER(poa) \ ((poa)->p_request_processing == PortableServer_USE_SERVANT_MANAGER) #define IS_ORB_CTRL_MODEL(poa) \ ((poa)->p_thread == PortableServer_ORB_CTRL_MODEL) #define IS_SINGLE_THREAD_MODEL(poa) \ ((poa)->p_thread == PortableServer_SINGLE_THREAD_MODEL) #define IS_TRANSIENT(poa) \ ((poa)->p_lifespan == PortableServer_TRANSIENT) #define IS_PERSISTENT(poa) \ ((poa)->p_lifespan == PortableServer_PERSISTENT) #define IS_UNIQUE_ID(poa) \ ((poa)->p_id_uniqueness == PortableServer_UNIQUE_ID) #define IS_MULTIPLE_ID(poa) \ ((poa)->p_id_uniqueness == PortableServer_MULTIPLE_ID) #define IS_USER_ID(poa) \ ((poa)->p_id_assignment == PortableServer_USER_ID) #define IS_SYSTEM_ID(poa) \ ((poa)->p_id_assignment == PortableServer_SYSTEM_ID) #define IS_IMPLICIT_ACTIVATION(poa) \ ((poa)->p_implicit_activation == PortableServer_IMPLICIT_ACTIVATION) #define IS_NO_IMPLICIT_ACTIVATION(poa) \ ((poa)->p_implicit_activation == PortableServer_NO_IMPLICIT_ACTIVATION) #define IS_RETAIN(poa) \ ((poa)->p_servant_retention == PortableServer_RETAIN) #define IS_NON_RETAIN(poa) \ ((poa)->p_servant_retention == PortableServer_NON_RETAIN) G_END_DECLS #endif /* __POA_MACROS_H__ */ ORBit2-2.14.19/src/orb/poa/Makefile.am0000644000175000001440000000246311334247617014047 00000000000000noinst_LTLIBRARIES=liborb-poa.la IDL = $(top_builddir)/src/idl-compiler/orbit-idl-2 INCLUDES = \ -I$(top_srcdir)/include \ -I$(top_builddir)/include \ -I$(top_builddir)/src/orb/orb-core \ -I$(top_srcdir)/src/orb/orb-core \ -I$(top_builddir)/include/orbit/poa \ -I$(top_srcdir)/include/orbit/orb-core \ -I$(top_builddir)/include/orbit/orb-core \ -I$(top_srcdir)/src/orb/poa \ -DORBIT2_INTERNAL_API \ $(WARN_CFLAGS) \ $(DISABLE_DEPRECATED_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_CFLAGS) POA_IDLOUT=poa-defs-common.c main_src = \ poa.c \ orbit-poa-export.h \ orbit-poa.h \ poa-private.h \ poa-macros.h \ poa-manager.c \ poa-policy.c \ poa-servants.c \ orbit-adaptor.c liborb_poa_la_SOURCES=\ $(POA_IDLOUT) \ $(main_src) IDL_FLAGS= -I$(top_srcdir)/src/idl/CORBA_PIDL \ -I$(top_srcdir)/src/idl/CORBA \ -I$(top_srcdir)/src/idl/misc \ -I$(top_srcdir)/src/orb/orb-core \ -D_PRE_3_0_COMPILER_ \ --noskels --nodefskels --nostubs --noidata --noheaders \ --define=Object=OObject --define=TypeCode=TTypeCode \ --showcpperrors IDL_FILES=poa-defs.idl include $(top_srcdir)/Makefile.shared BUILT_SOURCES = $(POA_IDLOUT) CLEANFILES = $(BUILT_SOURCES) EXTRA_DIST = $(IDL_FILES) dist-hook: cd $(distdir); rm -f $(BUILT_SOURCES) ORBit2-2.14.19/src/orb/poa/Makefile.in0000644000175000001440000004435311450333734014057 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/Makefile.shared subdir = src/orb/poa ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) liborb_poa_la_LIBADD = am__objects_1 = poa-defs-common.lo am__objects_2 = poa.lo poa-manager.lo poa-policy.lo poa-servants.lo \ orbit-adaptor.lo am_liborb_poa_la_OBJECTS = $(am__objects_1) $(am__objects_2) liborb_poa_la_OBJECTS = $(am_liborb_poa_la_OBJECTS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(liborb_poa_la_SOURCES) DIST_SOURCES = $(liborb_poa_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_LTLIBRARIES = liborb-poa.la IDL = $(top_builddir)/src/idl-compiler/orbit-idl-2 INCLUDES = \ -I$(top_srcdir)/include \ -I$(top_builddir)/include \ -I$(top_builddir)/src/orb/orb-core \ -I$(top_srcdir)/src/orb/orb-core \ -I$(top_builddir)/include/orbit/poa \ -I$(top_srcdir)/include/orbit/orb-core \ -I$(top_builddir)/include/orbit/orb-core \ -I$(top_srcdir)/src/orb/poa \ -DORBIT2_INTERNAL_API \ $(WARN_CFLAGS) \ $(DISABLE_DEPRECATED_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_CFLAGS) POA_IDLOUT = poa-defs-common.c main_src = \ poa.c \ orbit-poa-export.h \ orbit-poa.h \ poa-private.h \ poa-macros.h \ poa-manager.c \ poa-policy.c \ poa-servants.c \ orbit-adaptor.c liborb_poa_la_SOURCES = \ $(POA_IDLOUT) \ $(main_src) IDL_FLAGS = -I$(top_srcdir)/src/idl/CORBA_PIDL \ -I$(top_srcdir)/src/idl/CORBA \ -I$(top_srcdir)/src/idl/misc \ -I$(top_srcdir)/src/orb/orb-core \ -D_PRE_3_0_COMPILER_ \ --noskels --nodefskels --nostubs --noidata --noheaders \ --define=Object=OObject --define=TypeCode=TTypeCode \ --showcpperrors IDL_FILES = poa-defs.idl @MAINTAINER_MODE_TRUE@IDL_DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) @MAINTAINER_MODE_TRUE@IDL_DEP_FILES = $(IDL_FILES:%.idl=.deps/%.idl.P) BUILT_SOURCES = $(POA_IDLOUT) CLEANFILES = $(BUILT_SOURCES) EXTRA_DIST = $(IDL_FILES) all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.shared $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/orb/poa/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/orb/poa/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done liborb-poa.la: $(liborb_poa_la_OBJECTS) $(liborb_poa_la_DEPENDENCIES) $(LINK) $(liborb_poa_la_OBJECTS) $(liborb_poa_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-adaptor.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poa-defs-common.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poa-manager.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poa-policy.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poa-servants.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poa.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-local distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES ctags dist-hook \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-local distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am %-stubs.c %-skels.c %-common.c %-imodule.c %-skelimpl.c: %.h true %.h: $(IDL_DIR)%.idl $(IDL_COMPILER) -(rm -f $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c || true) > /dev/null $(IDL_COMPILER) $(IDL_FLAGS) --deps $(*D)/.deps/$(*F).idl.P $< for I in $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c; do \ if test -f $$I; then \ sed -e 's,OObject,Object,g' -e 's,TTypeCode,TypeCode,g' $$I > $$I.out; \ mv $$I.out $$I ; \ fi; \ done @MAINTAINER_MODE_TRUE@-include $(IDL_DEP_FILES) distclean-local: -rm -rf .deps dist-hook: cd $(distdir); rm -f $(BUILT_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/src/orb/poa/poa-defs.idl0000644000175000001440000000020511334247617014173 00000000000000#pragma inhibit push #include "corba-defs.idl" #pragma inhibit pop #pragma pidl push #include "PortableServer.idl" #pragma pidl pop ORBit2-2.14.19/src/orb/poa/poa.c0000644000175000001440000021327411334247617012742 00000000000000#include #include #include #ifdef HAVE_UNISTD_H # include #endif #ifdef _WIN32 # include #endif #include #include #include #include #include "../util/orbit-purify.h" #include "../orb-core/orbit-debug.h" #include "../GIOP/giop-debug.h" #include "../GIOP/giop-recv-buffer.h" #include "poa-macros.h" #include "poa-private.h" #include "orbit-poa.h" #ifdef DEBUG_LOCKS # define LOCK_DEBUG(a) g_printerr("%p: %6s file %s: line %d (%s)\n", \ poa, a, __FILE__, __LINE__, __PRETTY_FUNCTION__); #else # define LOCK_DEBUG(a) #endif #define POA_LOCK(poa) G_STMT_START { \ LOCK_DEBUG("lock") \ LINK_MUTEX_LOCK(poa->base.lock); \ } G_STMT_END #define POA_UNLOCK(poa) G_STMT_START { \ LINK_MUTEX_UNLOCK(poa->base.lock); \ LOCK_DEBUG("unlock") \ } G_STMT_END static GMutex *ORBit_class_assignment_lock = NULL; static GHashTable *ORBit_class_assignments = NULL; static guint ORBit_class_assignment_counter = 0; static PortableServer_Servant ORBit_POA_ServantManager_use_servant( PortableServer_POA poa, ORBit_POAObject pobj, CORBA_Identifier opname, PortableServer_ServantLocator_Cookie *the_cookie, PortableServer_ObjectId *oid, CORBA_Environment *ev ); static void ORBit_POA_ServantManager_unuse_servant( PortableServer_POA poa, ORBit_POAObject pobj, CORBA_Identifier opname, PortableServer_ServantLocator_Cookie cookie, PortableServer_ObjectId *oid, PortableServer_Servant servant, CORBA_Environment *ev ); static void ORBit_POA_handle_request (PortableServer_POA poa, GIOPRecvBuffer *recv_buffer, ORBit_ObjectKey *objkey); static void ORBit_POAObject_invoke (ORBit_POAObject pobj, gpointer ret, gpointer *args, CORBA_Context ctx, gpointer data, CORBA_Environment *ev); static void ORBit_POAObject_handle_request (ORBit_POAObject pobj, CORBA_Identifier opname, gpointer ret, gpointer *args, CORBA_Context ctx, GIOPRecvBuffer *recv_buffer, CORBA_Environment *ev); static void ORBit_POA_deactivate_object_T (PortableServer_POA poa, ORBit_POAObject pobj, CORBA_boolean do_etherealize, CORBA_boolean is_cleanup); static CORBA_Object ORBit_POA_obj_to_ref (PortableServer_POA poa, ORBit_POAObject pobj, const CORBA_char *intf, CORBA_Environment *ev); static void ORBit_POA_invocation_stack_push (PortableServer_POA poa, ORBit_POAObject pobj) { LINK_MUTEX_LOCK (poa->orb->lock); poa->orb->current_invocations = g_slist_prepend (poa->orb->current_invocations, pobj); LINK_MUTEX_UNLOCK (poa->orb->lock); } static void ORBit_POA_invocation_stack_pop (PortableServer_POA poa, ORBit_POAObject pobj) { /* FIXME, we know it is the top element to be removed */ LINK_MUTEX_LOCK (poa->orb->lock); poa->orb->current_invocations = g_slist_remove (poa->orb->current_invocations, pobj); LINK_MUTEX_UNLOCK (poa->orb->lock); } static PortableServer_ObjectId* ORBit_POA_invocation_stack_lookup_objid (PortableServer_POA poa, PortableServer_ServantBase *servant) { PortableServer_ObjectId *objid = NULL; GSList *l; LINK_MUTEX_LOCK (poa->orb->lock); for (l = poa->orb->current_invocations; l; l = l->next) { ORBit_POAObject pobj = l->data; if (pobj->servant == servant) objid = ORBit_sequence_CORBA_octet_dup (pobj->object_id); } LINK_MUTEX_UNLOCK (poa->orb->lock); return objid; } static CORBA_Object ORBit_POA_invocation_stack_lookup_objref (PortableServer_POA poa, PortableServer_ServantBase *servant) { CORBA_Object result = CORBA_OBJECT_NIL; GSList *l; LINK_MUTEX_LOCK (poa->orb->lock); for (l = poa->orb->current_invocations; l; l = l->next) { ORBit_POAObject pobj = l->data; if (pobj->servant == servant) result = ORBit_POA_obj_to_ref (poa, pobj, NULL, NULL); } LINK_MUTEX_UNLOCK (poa->orb->lock); return result; } /* FIXME, I would prefer if argument would be of type PortableServer_POA */ static ORBit_POAObject ORBit_POA_invocation_stack_peek (CORBA_ORB orb) { ORBit_POAObject pobj = CORBA_OBJECT_NIL; LINK_MUTEX_LOCK (orb->lock); if (orb->current_invocations == NULL) pobj = CORBA_OBJECT_NIL; else pobj = (ORBit_POAObject) orb->current_invocations->data; LINK_MUTEX_UNLOCK (orb->lock); return pobj; } /* PortableServer_Current interface */ static void ORBit_POACurrent_free_fn (ORBit_RootObject obj_in) { PortableServer_Current poacur = (PortableServer_Current) obj_in; ORBit_RootObject_release_T (poacur->orb); poacur->orb = NULL; p_free (poacur, struct PortableServer_Current_type); } static const ORBit_RootObject_Interface ORBit_POACurrent_epv = { ORBIT_ROT_POACURRENT, ORBit_POACurrent_free_fn }; PortableServer_Current ORBit_POACurrent_new (CORBA_ORB orb) { PortableServer_Current poacur; poacur = (PortableServer_Current) g_new0 (struct PortableServer_Current_type, 1); ORBit_RootObject_init (&poacur->parent, &ORBit_POACurrent_epv); poacur->orb = ORBit_RootObject_duplicate (orb); return ORBit_RootObject_duplicate (poacur); } static ORBit_POAObject ORBit_POACurrent_get_object (PortableServer_Current obj, CORBA_Environment *ev) { ORBit_POAObject pobj = CORBA_OBJECT_NIL; g_assert (obj && obj->parent.interface->type == ORBIT_ROT_POACURRENT); if ( ! (pobj = ORBit_POA_invocation_stack_peek (obj->orb))) CORBA_exception_set_system (ev, ex_PortableServer_Current_NoContext, CORBA_COMPLETED_NO); return pobj; } PortableServer_ClassInfo * ORBit_classinfo_lookup (const char *type_id) { PortableServer_ClassInfo *ci = NULL; LINK_MUTEX_LOCK (ORBit_class_assignment_lock); if (ORBit_class_assignments) ci = g_hash_table_lookup (ORBit_class_assignments, type_id); LINK_MUTEX_UNLOCK (ORBit_class_assignment_lock); return ci; } /* Deprecated & not thread-safe */ void ORBit_classinfo_register (PortableServer_ClassInfo *ci) { if (*(ci->class_id) != 0) return; /* already registered! */ /* This needs to be pre-increment - we don't want to give out * classid 0, because (a) that is reserved for the base Object class * (b) all the routines allocate a new id if the variable * storing their ID == 0 */ *(ci->class_id) = ++ORBit_class_assignment_counter; if (!ORBit_class_assignments) ORBit_class_assignments = g_hash_table_new (g_str_hash, g_str_equal); g_hash_table_insert (ORBit_class_assignments, (gpointer) ci->class_name, ci); } #define VEPV_CACHE_SIZE(c) (c)[0] void ORBit_skel_class_register (PortableServer_ClassInfo *ci, PortableServer_ServantBase *servant, void (*opt_finalize) (PortableServer_Servant, CORBA_Environment *), CORBA_unsigned_long class_offset, CORBA_unsigned_long first_parent_id, ...) { va_list args; CORBA_unsigned_long id; va_start (args, first_parent_id); /* * FIXME: a double check/lock/write barrier pattern * would be far faster here. */ LINK_MUTEX_LOCK (ORBit_class_assignment_lock); ORBit_classinfo_register (ci); if (!ci->vepvmap) { CORBA_unsigned_long offset; CORBA_unsigned_long epvmap_size; epvmap_size = *(ci->class_id) + 1; ci->vepvmap = g_new0 (ORBit_VepvIdx, epvmap_size); VEPV_CACHE_SIZE(ci->vepvmap) = epvmap_size; ci->vepvmap[*(ci->class_id)] = class_offset; for (id = first_parent_id; id;) { offset = va_arg (args, CORBA_unsigned_long); g_assert (id <= *(ci->class_id)); ci->vepvmap [id] = offset; id = va_arg (args, CORBA_unsigned_long); } } LINK_MUTEX_UNLOCK (ORBit_class_assignment_lock); if (!servant->vepv[0]->finalize) servant->vepv[0]->finalize = opt_finalize; ORBIT_SERVANT_SET_CLASSINFO (servant, ci); va_end (args); } static void check_child_poa_inuse_T (char *name, PortableServer_POA poa, gboolean *is_inuse) { if (ORBit_POA_is_inuse (poa, CORBA_TRUE, NULL)) *is_inuse = TRUE; } static void check_object_inuse_T (PortableServer_ObjectId *oid, ORBit_POAObject pobj, gboolean *is_inuse) { if (pobj->use_cnt > 0) *is_inuse = TRUE; } static gboolean ORBit_POA_is_inuse_T (PortableServer_POA poa, CORBA_boolean consider_children, CORBA_Environment *ev) { gboolean is_inuse = FALSE; if (poa->use_cnt > 0) return TRUE; if (consider_children && poa->child_poas) g_hash_table_foreach (poa->child_poas, (GHFunc) check_child_poa_inuse_T, &is_inuse); if (!is_inuse && poa->oid_to_obj_map) g_hash_table_foreach (poa->oid_to_obj_map, (GHFunc) check_object_inuse_T, &is_inuse); return is_inuse; } gboolean ORBit_POA_is_inuse (PortableServer_POA poa, CORBA_boolean consider_children, CORBA_Environment *ev) { gboolean inuse; POA_LOCK (poa); inuse = ORBit_POA_is_inuse_T (poa, consider_children, ev); POA_UNLOCK (poa); return inuse; } static PortableServer_ObjectId * ORBit_POA_new_system_objid_T (PortableServer_POA poa) { PortableServer_ObjectId *objid; g_assert (IS_SYSTEM_ID (poa)); objid = PortableServer_ObjectId__alloc (); objid->_length = objid->_maximum = sizeof (CORBA_long) + ORBIT_OBJECT_ID_LEN; objid->_buffer = PortableServer_ObjectId_allocbuf (objid->_length); objid->_release = CORBA_TRUE; ORBit_genuid_buffer (objid->_buffer + sizeof (CORBA_long), ORBIT_OBJECT_ID_LEN, ORBIT_GENUID_OBJECT_ID); *((CORBA_long *) objid->_buffer) = ++(poa->next_sysid); return objid; } static ORBit_ObjectKey* ORBit_POAObject_object_to_objkey (ORBit_POAObject pobj) { ORBit_ObjectAdaptor adaptor; ORBit_ObjectKey *objkey; guchar *mem; g_return_val_if_fail (pobj != NULL, NULL); adaptor = (ORBit_ObjectAdaptor) pobj->poa; objkey = CORBA_sequence_CORBA_octet__alloc (); objkey->_length = adaptor->adaptor_key._length + pobj->object_id->_length; objkey->_maximum = objkey->_length; objkey->_buffer = CORBA_sequence_CORBA_octet_allocbuf (objkey->_length); objkey->_release = CORBA_TRUE; mem = (guchar *) objkey->_buffer; memcpy (mem, adaptor->adaptor_key._buffer, adaptor->adaptor_key._length); mem += adaptor->adaptor_key._length; memcpy (mem, pobj->object_id->_buffer, pobj->object_id->_length); return objkey; } static ORBit_POAObject ORBit_POA_object_id_lookup_T (PortableServer_POA poa, const PortableServer_ObjectId *oid) { /* FIXME: needs some locking action */ return ORBit_RootObject_duplicate ( g_hash_table_lookup (poa->oid_to_obj_map, oid)); } static void ORBit_POA_set_life (PortableServer_POA poa, CORBA_boolean etherealize_objects, int action_do) { if ((poa->life_flags & (ORBit_LifeF_DeactivateDo | ORBit_LifeF_DestroyDo)) == 0) { if (etherealize_objects) poa->life_flags |= ORBit_LifeF_DoEtherealize; } poa->life_flags |= action_do; } static void ORBit_POA_add_child (PortableServer_POA poa, PortableServer_POA child) { if (!child) return; child->parent_poa = ORBit_RootObject_duplicate (poa); g_hash_table_insert (poa->child_poas, child->name, child); } static void ORBit_POA_remove_child (PortableServer_POA poa, PortableServer_POA child_poa) { if (!child_poa->parent_poa) return; g_assert (child_poa->parent_poa == poa); g_hash_table_remove (poa->child_poas, child_poa->name); child_poa->parent_poa = NULL; ORBit_RootObject_release (poa); } static gboolean ORBit_POA_destroy_T_R (PortableServer_POA poa, CORBA_boolean etherealize_objects, CORBA_Environment *ev) { GPtrArray *adaptors; int numobjs; int i; ORBit_POA_set_life (poa, etherealize_objects, ORBit_LifeF_DestroyDo); if (poa->life_flags & ORBit_LifeF_Destroyed) return TRUE; /* already did it */ if (poa->life_flags & (ORBit_LifeF_Deactivating|ORBit_LifeF_Destroying)) return FALSE; /* recursion */ poa->life_flags |= ORBit_LifeF_Destroying; adaptors = poa->orb->adaptors; LINK_MUTEX_LOCK (ORBit_RootObject_lifecycle_lock); POA_UNLOCK (poa); /* Destroying the children is tricky, b/c they may die * while we are traversing. We traverse over the * ORB's global list (rather than poa->child_poas) * to avoid walking into dead children. */ for (i = 0; i < adaptors->len; i++) { PortableServer_POA cpoa = g_ptr_array_index (adaptors, i); if (cpoa && cpoa != poa) { ORBit_RootObject_duplicate_T (cpoa); LINK_MUTEX_UNLOCK (ORBit_RootObject_lifecycle_lock); POA_LOCK (cpoa); if (cpoa->parent_poa == poa) ORBit_POA_destroy_T_R (cpoa, etherealize_objects, ev); POA_UNLOCK (cpoa); LINK_MUTEX_LOCK (ORBit_RootObject_lifecycle_lock); ORBit_RootObject_release_T (cpoa); } } POA_LOCK (poa); LINK_MUTEX_UNLOCK (ORBit_RootObject_lifecycle_lock); poa->default_servant = NULL; if (g_hash_table_size (poa->child_poas) > 0 || poa->use_cnt || !ORBit_POA_deactivate (poa, etherealize_objects, ev) ) { poa->life_flags &= ~ORBit_LifeF_Destroying; return FALSE; } ORBit_POAManager_unregister_poa (poa->poa_manager, poa); ORBit_POA_remove_child (poa->parent_poa, poa); g_ptr_array_index (adaptors, poa->poa_id) = NULL; poa->poa_id = -1; /* each objref holds a POAObj, and each POAObj holds a ref * to the POA. In addition, the app can hold open refs * to the POA itself. */ numobjs = poa->oid_to_obj_map ? g_hash_table_size (poa->oid_to_obj_map) : 0; g_assert (((ORBit_RootObject) poa)->refs > numobjs); poa->life_flags |= ORBit_LifeF_Destroyed; poa->life_flags &= ~ORBit_LifeF_Destroying; ORBit_RootObject_release (poa); return TRUE; } typedef struct TraverseInfo { PortableServer_POA poa; gboolean in_use; gboolean do_etherealize; } TraverseInfo; static void traverse_cb (PortableServer_ObjectId *oid, ORBit_POAObject pobj, TraverseInfo *info) { if (pobj->use_cnt > 0) info->in_use = TRUE; ORBit_POA_deactivate_object_T (info->poa, pobj, info->do_etherealize, TRUE); } static gboolean remove_cb (PortableServer_ObjectId *oid, ORBit_POAObject pobj, gpointer dummy) { if (pobj->life_flags & ORBit_LifeF_Destroyed) { p_free (pobj, struct ORBit_POAObject_type); return TRUE; } return FALSE; } CORBA_boolean ORBit_POA_deactivate (PortableServer_POA poa, CORBA_boolean etherealize_objects, CORBA_Environment *ev) { CORBA_boolean done = CORBA_TRUE; ORBit_POA_set_life (poa, etherealize_objects, ORBit_LifeF_DeactivateDo); if (poa->life_flags & ORBit_LifeF_Deactivated) return TRUE; /* already did it */ if (poa->life_flags & ORBit_LifeF_Deactivating) return FALSE; /* recursion */ poa->life_flags |= ORBit_LifeF_Deactivating; /* bounce all pending requested (OBJECT_NOT_EXIST * exceptions raised); none should get requeued. */ ORBit_POA_handle_held_requests (poa); g_assert (poa->held_requests == NULL); if (IS_RETAIN (poa)) { TraverseInfo info; info.poa = poa; info.in_use = FALSE; info.do_etherealize = (poa->life_flags & ORBit_LifeF_DoEtherealize); g_assert (poa->oid_to_obj_map); g_hash_table_foreach ( poa->oid_to_obj_map, (GHFunc) traverse_cb, &info); g_hash_table_foreach_remove ( poa->oid_to_obj_map, (GHRFunc) remove_cb, NULL); done = !info.in_use; } if (done) poa->life_flags |= ORBit_LifeF_Deactivated; poa->life_flags &= ~ORBit_LifeF_Deactivating; return done; } /* * ORBit_POA_handle_held_requests: * @poa: * * Handle any requests that may been have been queued because the * POAManager was in a HOLDING state. Note that if the POAManger * is still in the HOLDING state, or is put into the HOLDING * state by one of the methods invoked, requests may be re-queued. */ void ORBit_POA_handle_held_requests (PortableServer_POA poa) { GSList *requests; GSList *l; requests = poa->held_requests; poa->held_requests = NULL; for (l = requests; l; l = l->next) ORBit_handle_request (poa->orb, l->data); g_slist_free (requests); } static void ORBit_POA_free_fn (ORBit_RootObject obj) { ORBit_ObjectAdaptor adaptor = (ORBit_ObjectAdaptor) obj; PortableServer_POA poa = (PortableServer_POA) obj; giop_thread_key_release (obj); if (adaptor->adaptor_key._buffer) ORBit_free_T (adaptor->adaptor_key._buffer); if (poa->oid_to_obj_map) g_hash_table_destroy (poa->oid_to_obj_map); if (poa->child_poas) g_hash_table_destroy (poa->child_poas); if (poa->name) g_free (poa->name); if (poa->base.lock) g_mutex_free (poa->base.lock); ORBit_RootObject_release_T (poa->orb); ORBit_RootObject_release_T (poa->poa_manager); p_free (poa, struct PortableServer_POA_type); } static const ORBit_RootObject_Interface ORBit_POA_epv = { ORBIT_ROT_ADAPTOR, ORBit_POA_free_fn }; static guint ORBit_ObjectId_sysid_hash (const PortableServer_ObjectId *object_id) { return *(guint *) object_id->_buffer; } static guint ORBit_sequence_CORBA_octet_hash (const PortableServer_ObjectId *object_id) { const char *start; const char *end; const char *p; guint g, h = 0; start = (char *) object_id->_buffer; end = (char *) object_id->_buffer + object_id->_length; for (p = start; p < end; p++) { h = ( h << 4 ) + *p; g = h & 0xf0000000; if (g != 0) { h = h ^ (g >> 24); h = h ^ g; } } return h; } static gboolean ORBit_sequence_CORBA_octet_equal (const PortableServer_ObjectId *o1, const PortableServer_ObjectId *o2) { return (o1->_length == o2->_length && !memcmp (o1->_buffer, o2->_buffer, o1->_length)); } static void ORBit_POA_set_policy (PortableServer_POA poa, CORBA_Policy obj) { struct CORBA_Policy_type *policy = (struct CORBA_Policy_type *) obj; switch (policy->type) { case PortableServer_THREAD_POLICY_ID: poa->p_thread = policy->value; break; case PortableServer_LIFESPAN_POLICY_ID: poa->p_lifespan = policy->value; break; case PortableServer_ID_UNIQUENESS_POLICY_ID: poa->p_id_uniqueness = policy->value; break; case PortableServer_ID_ASSIGNMENT_POLICY_ID: poa->p_id_assignment = policy->value; break; case PortableServer_IMPLICIT_ACTIVATION_POLICY_ID: poa->p_implicit_activation = policy->value; break; case PortableServer_SERVANT_RETENTION_POLICY_ID: poa->p_servant_retention = policy->value; break; case PortableServer_REQUEST_PROCESSING_POLICY_ID: poa->p_request_processing = policy->value; break; default: g_warning ("Unknown policy type, cannot set it on this POA"); break; } } static void ORBit_POA_copy_policies (const PortableServer_POA src, PortableServer_POA dest) { dest->p_thread = src->p_thread; dest->p_lifespan = src->p_lifespan; dest->p_id_uniqueness = src->p_id_uniqueness; dest->p_id_assignment = src->p_id_assignment; dest->p_servant_retention = src->p_servant_retention; dest->p_request_processing = src->p_request_processing; dest->p_implicit_activation = src->p_implicit_activation; } static void ORBit_POA_set_policies (PortableServer_POA poa, const CORBA_PolicyList *policies, CORBA_Environment *ev) { CORBA_unsigned_long i; poa->p_thread = PortableServer_SINGLE_THREAD_MODEL; poa->p_lifespan = PortableServer_TRANSIENT; poa->p_id_uniqueness = PortableServer_UNIQUE_ID; poa->p_id_assignment = PortableServer_SYSTEM_ID; poa->p_servant_retention = PortableServer_RETAIN; poa->p_request_processing = PortableServer_USE_ACTIVE_OBJECT_MAP_ONLY; poa->p_implicit_activation = PortableServer_NO_IMPLICIT_ACTIVATION; for (i = 0; policies && i < policies->_length; i++) ORBit_POA_set_policy (poa, policies->_buffer[i]); g_assert (ev->_major == CORBA_NO_EXCEPTION); poa_exception_if_fail (!(IS_NON_RETAIN (poa) && IS_USE_ACTIVE_OBJECT_MAP_ONLY (poa)), ex_PortableServer_POA_InvalidPolicy); poa_exception_if_fail (!(IS_USE_DEFAULT_SERVANT (poa) && IS_UNIQUE_ID (poa)), ex_PortableServer_POA_InvalidPolicy); poa_exception_if_fail (!(IS_IMPLICIT_ACTIVATION (poa) && (IS_USER_ID (poa) || IS_NON_RETAIN (poa))), ex_PortableServer_POA_InvalidPolicy); } static PortableServer_POA ORBit_POA_new (CORBA_ORB orb, const CORBA_char *adaptor_name, PortableServer_POAManager manager, const CORBA_PolicyList *policies, CORBA_Environment *ev) { PortableServer_POA poa; ORBit_ObjectAdaptor adaptor; poa = g_new0 (struct PortableServer_POA_type, 1); ORBit_RootObject_init ((ORBit_RootObject) poa, &ORBit_POA_epv); /* released in ORBit_POA_destroy */ ORBit_RootObject_duplicate (poa); ORBit_POA_set_policies (poa, policies, ev); if (ev->_major != CORBA_NO_EXCEPTION) { ORBit_RootObject_release (poa); return CORBA_OBJECT_NIL; } if (!manager) manager = ORBit_POAManager_new (orb); poa->poa_manager = ORBit_RootObject_duplicate (manager); adaptor = (ORBit_ObjectAdaptor) poa; adaptor->handle_request = (ORBitReqHandlerFunc) ORBit_POA_handle_request; poa->name = g_strdup (adaptor_name); poa->child_poas = g_hash_table_new (g_str_hash, g_str_equal); poa->orb = ORBit_RootObject_duplicate (orb); poa->poa_id = ORBit_adaptor_setup (adaptor, orb); if (IS_SYSTEM_ID (poa)) poa->oid_to_obj_map = g_hash_table_new ( (GHashFunc) ORBit_ObjectId_sysid_hash, (GEqualFunc) ORBit_sequence_CORBA_octet_equal); else /* USER_ID */ poa->oid_to_obj_map = g_hash_table_new ( (GHashFunc) ORBit_sequence_CORBA_octet_hash, (GEqualFunc) ORBit_sequence_CORBA_octet_equal); poa->base.lock = link_mutex_new (); ORBit_POAManager_register_poa (manager, poa); return ORBit_RootObject_duplicate (poa); } PortableServer_POA ORBit_POA_new_from (CORBA_ORB orb, PortableServer_POA parent, const CORBA_char *adaptor_name, const CORBA_PolicyList *opt_policies, CORBA_Environment *ev) { PortableServer_POA poa; g_return_val_if_fail (parent != CORBA_OBJECT_NIL, CORBA_OBJECT_NIL); poa = ORBit_POA_new (orb, adaptor_name, parent->poa_manager, NULL, ev); g_return_val_if_fail (poa != CORBA_OBJECT_NIL, CORBA_OBJECT_NIL); ORBit_POA_copy_policies (parent, poa); if (opt_policies) { int i; for (i = 0; i < opt_policies->_length; i++) ORBit_POA_set_policy (poa, opt_policies->_buffer[i]); } ORBit_POA_add_child (parent, poa); return poa; } static CORBA_Object ORBit_POA_obj_to_ref (PortableServer_POA poa, ORBit_POAObject pobj, const CORBA_char *intf, CORBA_Environment *ev) { const char *type_id = intf; g_assert (pobj && !pobj->base.objref); if (!type_id) { g_assert (pobj->servant); type_id = ORBIT_SERVANT_TO_CLASSINFO (pobj->servant)->class_name; } g_assert (type_id != NULL); pobj->base.objref = ORBit_objref_new (poa->poa_manager->orb, &pobj->base, g_quark_from_string (type_id)); return ORBit_RootObject_duplicate (pobj->base.objref); } PortableServer_POA ORBit_POA_setup_root (CORBA_ORB orb, CORBA_Environment *ev) { PortableServer_POA poa; CORBA_Policy policybuf[1]; CORBA_PolicyList policies = {1, 1, NULL, CORBA_FALSE}; policies._buffer = (CORBA_Object *) policybuf; policies._buffer [0] = (CORBA_Policy) PortableServer_POA_create_implicit_activation_policy ( NULL, PortableServer_IMPLICIT_ACTIVATION, ev); poa = ORBit_POA_new (orb, "RootPOA", CORBA_OBJECT_NIL, &policies, ev); CORBA_Policy_destroy (policies._buffer [0], ev); CORBA_Object_release (policies._buffer [0], ev); return poa; } static gboolean ORBit_POAObject_is_active (ORBit_POAObject pobj) { if (pobj && pobj->servant) return TRUE; return FALSE; } /* POAObject RootObject stuff */ static void ORBit_POAObject_release_cb (ORBit_RootObject robj) { ORBit_POAObject pobj = (ORBit_POAObject) robj; PortableServer_POA poa = pobj->poa; PortableServer_ObjectId *object_id; /* object *must* be deactivated */ g_assert (pobj->servant == NULL); giop_thread_key_release (robj); object_id = pobj->object_id; pobj->object_id = NULL; /* * Don't want to remove from oid_to_obj_map if we * are currently traversing across it ! * Just mark it as destroyed */ if ((poa->life_flags & ORBit_LifeF_Deactivating) == 0) { g_hash_table_remove (poa->oid_to_obj_map, object_id); p_free (robj, struct ORBit_POAObject_type); } else pobj->life_flags = ORBit_LifeF_Destroyed; object_id->_release = CORBA_TRUE; ORBit_free_T (object_id); ORBit_RootObject_release_T (poa); } static ORBit_RootObject_Interface ORBit_POAObject_if = { ORBIT_ROT_OAOBJECT, ORBit_POAObject_release_cb }; static struct ORBit_OAObject_Interface_type ORBit_POAObject_methods = { ORBIT_ADAPTOR_POA, (ORBitStateCheckFunc) ORBit_POAObject_is_active, (ORBitKeyGenFunc) ORBit_POAObject_object_to_objkey, (ORBitInvokeFunc) ORBit_POAObject_invoke, (ORBitReqFunc) ORBit_POAObject_handle_request }; /* * If USER_ID policy, {oid} must be non-NULL. * If SYSTEM_ID policy, {oid} must ether be NULL, or must have * been previously created by the POA. If the user passes in * a bogus oid under SYSTEM_ID, we will assert or segfault. This * is allowed by the CORBA spec. */ static ORBit_POAObject ORBit_POA_create_object_T (PortableServer_POA poa, const PortableServer_ObjectId *objid, CORBA_Environment *ev) { ORBit_POAObject newobj; newobj = g_new0 (struct ORBit_POAObject_type, 1); ORBit_RootObject_init ((ORBit_RootObject)newobj, &ORBit_POAObject_if); /* released in ORBit_POAObject_release_cb */ newobj->poa = ORBit_RootObject_duplicate (poa); ((ORBit_OAObject)newobj)->interface = &ORBit_POAObject_methods; if (poa->p_id_assignment == PortableServer_SYSTEM_ID) { if (objid) { g_assert (objid->_length == sizeof (CORBA_unsigned_long) + ORBIT_OBJECT_ID_LEN); newobj->object_id = PortableServer_ObjectId__alloc (); newobj->object_id->_length = objid->_length; newobj->object_id->_buffer = PortableServer_ObjectId_allocbuf (objid->_length); newobj->object_id->_release = CORBA_TRUE; memcpy (newobj->object_id->_buffer, objid->_buffer, objid->_length); } else newobj->object_id = ORBit_POA_new_system_objid_T (poa); } else { newobj->object_id = PortableServer_ObjectId__alloc (); newobj->object_id->_length = objid->_length; newobj->object_id->_buffer = PortableServer_ObjectId_allocbuf (objid->_length); newobj->object_id->_release = CORBA_TRUE; memcpy(newobj->object_id->_buffer, objid->_buffer, objid->_length); } g_hash_table_insert (poa->oid_to_obj_map, newobj->object_id, newobj); return newobj; } /* * Normally this is called for normal servants in RETAIN mode. * However, it may also be invoked on the default servant when * it is installed. In this later case, it may be either RETAIN * or NON_RETAIN. */ static void ORBit_POA_activate_object_T (PortableServer_POA poa, ORBit_POAObject pobj, PortableServer_ServantBase *servant, CORBA_Environment *ev) { PortableServer_ClassInfo *class_info; g_assert (pobj->servant == NULL); g_assert ((poa->life_flags & ORBit_LifeF_DeactivateDo) == 0); g_assert (pobj->use_cnt == 0); class_info = ORBIT_SERVANT_TO_CLASSINFO (servant); pobj->vepvmap_cache = class_info->vepvmap; pobj->servant = servant; pobj->next = (ORBit_POAObject) servant->_private; servant->_private = pobj; /* released in ORBit_POA_deactivate_object */ ORBit_RootObject_duplicate (pobj); } /* * Note that this doesn't necessarily remove the object from * the oid_to_obj_map; it just removes knowledge of the servant. * If the object is currently in use (servicing a request), * etherialization and memory release will occur later. */ static void ORBit_POA_deactivate_object_T (PortableServer_POA poa, ORBit_POAObject pobj, CORBA_boolean do_etherealize, CORBA_boolean is_cleanup) { PortableServer_ServantBase *servant = pobj->servant; if (!servant) /* deactivation done, or in progress */ return; if (do_etherealize && !(pobj->life_flags & ORBit_LifeF_DeactivateDo)) pobj->life_flags |= ORBit_LifeF_DoEtherealize; if (is_cleanup) pobj->life_flags |= ORBit_LifeF_IsCleanup; if (pobj->use_cnt > 0) { pobj->life_flags |= ORBit_LifeF_DeactivateDo; pobj->life_flags |= ORBit_LifeF_NeedPostInvoke; return; } pobj->servant = NULL; if ((ORBit_POAObject) servant->_private == pobj) servant->_private = pobj->next; else { ORBit_POAObject l = (ORBit_POAObject) servant->_private; for (; l && l->next != pobj; l = l->next); g_assert (l != NULL && l->next == pobj); l->next = pobj->next; } pobj->next = NULL; if (pobj->life_flags & ORBit_LifeF_DoEtherealize) { CORBA_Environment env, *ev = &env; CORBA_exception_init (ev); pobj->use_cnt++; /* prevent re-activation */ if (poa->p_request_processing == PortableServer_USE_SERVANT_MANAGER) { POA_PortableServer_ServantActivator *sm; POA_PortableServer_ServantActivator__epv *epv; sm = (POA_PortableServer_ServantActivator *) poa->servant_manager; epv = sm->vepv->PortableServer_ServantActivator_epv; epv->etherealize (sm, pobj->object_id, poa, servant, pobj->life_flags & ORBit_LifeF_IsCleanup, /* remaining_activations */ CORBA_FALSE, ev); } { PortableServer_ServantBase__epv *epv = servant->vepv[0]; /* In theory, the finalize fnc should always be non-NULL; * however, for backward compat. and general extended * applications we dont insist on it. */ if (epv && epv->finalize) { POA_UNLOCK (poa); epv->finalize (servant, ev); POA_LOCK (poa); } } pobj->use_cnt--; /* allow re-activation */ if (ev->_major != 0) { g_error ("finalize function for object %p threw an exception (%s). This is not allowed.", pobj, CORBA_exception_id (ev)); } CORBA_exception_free (ev); } pobj->life_flags &= ~(ORBit_LifeF_DeactivateDo | ORBit_LifeF_IsCleanup | ORBit_LifeF_DoEtherealize); ORBit_RootObject_release (pobj); } struct ORBit_POA_invoke_data { ORBitSmallSkeleton small_skel; gpointer imp; }; static void ORBit_POAObject_invoke (ORBit_POAObject pobj, gpointer ret, gpointer *args, CORBA_Context ctx, gpointer data, CORBA_Environment *ev) { struct ORBit_POA_invoke_data *invoke_data = (struct ORBit_POA_invoke_data *) data; invoke_data->small_skel (pobj->servant, ret, args, ctx, ev, invoke_data->imp); } /* * giop_recv_buffer_return_sys_exception: * @recv_buffer: * @m_data: * @ev: * * Return a system exception in @ev to the client. If @m_data * is not nil, it used to determine whether the call is a * oneway and, hence, whether to return the exception. If * @m_data is nil, we are not far enough along in the processing * of the reqeust to be able to determine if this is a oneway * method. */ void ORBit_recv_buffer_return_sys_exception (GIOPRecvBuffer *recv_buffer, CORBA_Environment *ev) { GIOPSendBuffer *send_buffer; if (!recv_buffer) /* In Proc */ return; g_return_if_fail (ev->_major == CORBA_SYSTEM_EXCEPTION); send_buffer = giop_send_buffer_use_reply ( recv_buffer->connection->giop_version, giop_recv_buffer_get_request_id (recv_buffer), ev->_major); ORBit_send_system_exception (send_buffer, ev); tprintf ("Return exception:\n"); do_giop_dump_send (send_buffer); giop_send_buffer_write (send_buffer, recv_buffer->connection, FALSE); giop_send_buffer_unuse (send_buffer); } static void return_exception (GIOPRecvBuffer *recv_buffer, ORBit_IMethod *m_data, CORBA_Environment *ev) { if (!recv_buffer) /* In Proc */ return; g_return_if_fail (ev->_major == CORBA_SYSTEM_EXCEPTION); if (m_data && m_data->flags & ORBit_I_METHOD_1_WAY) { tprintf ("A serious exception occured on a oneway method"); return; } ORBit_recv_buffer_return_sys_exception (recv_buffer, ev); } /* * If invoked in the local case, recv_buffer == NULL. * If invoked in the remote cse, ret = args = ctx == NULL. */ static void ORBit_POAObject_handle_request (ORBit_POAObject pobj, CORBA_Identifier opname, gpointer ret, gpointer *args, CORBA_Context ctx, GIOPRecvBuffer *recv_buffer, CORBA_Environment *ev) { PortableServer_POA poa = pobj->poa; PortableServer_ServantLocator_Cookie cookie = NULL; PortableServer_ObjectId *oid = NULL; PortableServer_ClassInfo *klass; ORBit_IMethod *m_data = NULL; ORBitSmallSkeleton small_skel = NULL; gpointer imp = NULL; if (poa) { ORBit_RootObject_duplicate (poa); POA_LOCK (poa); } if (!poa || !poa->poa_manager) CORBA_exception_set_system ( ev, ex_CORBA_OBJECT_NOT_EXIST, CORBA_COMPLETED_NO); else { switch (poa->poa_manager->state) { case PortableServer_POAManager_HOLDING: if (recv_buffer) { g_warning ("POAManager in holding state. " "Queueing '%s' method request", opname); poa->held_requests = g_slist_prepend ( poa->held_requests, recv_buffer); goto clean_out; } else CORBA_exception_set_system ( ev, ex_CORBA_TRANSIENT, CORBA_COMPLETED_NO); break; case PortableServer_POAManager_DISCARDING: CORBA_exception_set_system ( ev, ex_CORBA_TRANSIENT, CORBA_COMPLETED_NO); break; case PortableServer_POAManager_INACTIVE: CORBA_exception_set_system ( ev, ex_CORBA_OBJ_ADAPTER, CORBA_COMPLETED_NO); break; case PortableServer_POAManager_ACTIVE: break; default: g_assert_not_reached (); break; } } if (ev->_major != CORBA_NO_EXCEPTION) { return_exception (recv_buffer, m_data, ev); goto clean_out; } oid = pobj->object_id; if (!pobj->servant) { switch (poa->p_request_processing) { case PortableServer_USE_ACTIVE_OBJECT_MAP_ONLY: CORBA_exception_set_system ( ev, ex_CORBA_OBJECT_NOT_EXIST, CORBA_COMPLETED_NO); break; case PortableServer_USE_DEFAULT_SERVANT: ORBit_POA_activate_object_T ( poa, pobj, poa->default_servant, ev); break; case PortableServer_USE_SERVANT_MANAGER: ORBit_POA_ServantManager_use_servant ( poa, pobj, opname, &cookie, oid, ev); break; default: g_assert_not_reached(); break; } } if (ev->_major == CORBA_NO_EXCEPTION && !pobj->servant) CORBA_exception_set_system ( ev, ex_CORBA_OBJECT_NOT_EXIST, CORBA_COMPLETED_NO); if (ev->_major != CORBA_NO_EXCEPTION) { return_exception (recv_buffer, m_data, ev); goto clean_out; } pobj->use_cnt++; ORBit_POA_invocation_stack_push (poa, pobj); klass = ORBIT_SERVANT_TO_CLASSINFO (pobj->servant); if (klass->impl_finder) small_skel = klass->impl_finder ( pobj->servant, opname, (gpointer *)&m_data, &imp); /* FIXME: we can only do that in-proc (and for _is_a [and others?]) */ if (!small_skel) small_skel = get_small_skel_CORBA_Object ( pobj->servant, opname, (gpointer *)&m_data, &imp); if (!small_skel || !imp) { if (!imp && small_skel) { tprintf ("'%s' not implemented on %p", opname, pobj); CORBA_exception_set_system ( ev, ex_CORBA_NO_IMPLEMENT, CORBA_COMPLETED_NO); } else { tprintf ("Bad operation '%s' on %p", opname, pobj); CORBA_exception_set_system ( ev, ex_CORBA_BAD_OPERATION, CORBA_COMPLETED_NO); } } if (ev->_major != CORBA_NO_EXCEPTION) return_exception (recv_buffer, m_data, ev); else { POA_UNLOCK (poa); if (recv_buffer) { struct ORBit_POA_invoke_data invoke_data; invoke_data.small_skel = small_skel; invoke_data.imp = imp; ORBit_small_invoke_adaptor ((ORBit_OAObject) pobj, recv_buffer, m_data, &invoke_data, ev); } else small_skel (pobj->servant, ret, args, ctx, ev, imp); POA_LOCK (poa); } if (recv_buffer) CORBA_exception_free (ev); if (IS_NON_RETAIN (poa)) switch (poa->p_request_processing) { case PortableServer_USE_SERVANT_MANAGER: ORBit_POA_ServantManager_unuse_servant ( poa, pobj, opname, cookie, oid, pobj->servant, ev); break; case PortableServer_USE_DEFAULT_SERVANT: ORBit_POA_deactivate_object_T (poa, pobj, FALSE, FALSE); break; default: g_assert_not_reached (); break; } ORBit_POA_invocation_stack_pop (poa, pobj); pobj->use_cnt--; if (pobj->life_flags & ORBit_LifeF_NeedPostInvoke) ORBit_POAObject_post_invoke (pobj); clean_out: if(poa) { POA_UNLOCK (poa); ORBit_RootObject_release (poa); } } static ORBit_POAObject ORBit_POA_object_key_lookup_T (PortableServer_POA poa, ORBit_ObjectKey *objkey, PortableServer_ObjectId *object_id) { object_id->_buffer = objkey->_buffer + ORBIT_ADAPTOR_PREFIX_LEN; object_id->_length = objkey->_length - ORBIT_ADAPTOR_PREFIX_LEN; object_id->_maximum = object_id->_length; object_id->_release = CORBA_FALSE; return ORBit_POA_object_id_lookup_T (poa, object_id); } static void ORBit_POAObject_invoke_incoming_request (ORBit_POAObject pobj, GIOPRecvBuffer *recv_buffer, CORBA_Environment *opt_ev) { CORBA_Environment real_ev, *ev; if (!opt_ev) CORBA_exception_init ((ev = &real_ev)); else ev = opt_ev; if (ev->_major == CORBA_NO_EXCEPTION && pobj != CORBA_OBJECT_NIL) { CORBA_Identifier opname; opname = giop_recv_buffer_get_opname (recv_buffer); ORBit_POAObject_handle_request (pobj, opname, NULL, NULL, NULL, recv_buffer, ev); } ORBit_RootObject_release (pobj); if (ev->_major != CORBA_NO_EXCEPTION) { tprintf ("p %d, Method '%p' invoked with exception '%s'", getpid (), giop_recv_buffer_get_opname (recv_buffer), ev->_id); return_exception (recv_buffer, NULL, ev); } if (!opt_ev) CORBA_exception_free (ev); giop_recv_buffer_unuse (recv_buffer); } static inline void push_request_T (GIOPThread *thread, ORBit_POAObject *pobj, GIOPRecvBuffer **recv_buffer) { giop_thread_request_push (thread, (gpointer *)pobj, (gpointer *)recv_buffer); } static void pool_push_request_for_T (gpointer key_object, ORBit_POAObject *pobj, GIOPRecvBuffer **recv_buffer) { g_assert (giop_thread_io ()); giop_thread_request_push_key (key_object, (gpointer *)pobj, (gpointer *)recv_buffer); } typedef struct { ORBit_POAObject pobj; GIOPRecvBuffer *recv_buffer; } PoaIdleClosure; static gboolean poa_invoke_at_idle (gpointer data) { PoaIdleClosure *pcl = data; ORBit_POAObject_invoke_incoming_request (pcl->pobj, pcl->recv_buffer, NULL); pcl->pobj = NULL; pcl->recv_buffer = NULL; return FALSE; } static void poa_destroy_idle_closure (gpointer data) { PoaIdleClosure *pcl = data; if (pcl->pobj) ORBit_RootObject_release (pcl->pobj); if (pcl->recv_buffer) giop_recv_buffer_unuse (pcl->recv_buffer); g_free (pcl); } static void push_request_idle (ORBit_POAObject *pobj, GIOPRecvBuffer **recv_buffer, GMainContext *on_context) { PoaIdleClosure *pcl = g_new (PoaIdleClosure, 1); GSource *source; pcl->pobj = *pobj; pcl->recv_buffer = *recv_buffer; source = g_idle_source_new (); g_source_set_callback (source, poa_invoke_at_idle, pcl, poa_destroy_idle_closure); g_source_attach (source, on_context); g_source_unref (source); *pobj = NULL; *recv_buffer = NULL; } static gboolean poa_recv_is_oneway (ORBit_POAObject pobj, GIOPRecvBuffer *recv_buffer) { ORBit_IMethod *m_data = NULL; gpointer imp = NULL; PortableServer_ClassInfo *klass; g_return_val_if_fail (pobj != CORBA_OBJECT_NIL, FALSE); klass = ORBIT_SERVANT_TO_CLASSINFO (pobj->servant); if (!klass->impl_finder) return FALSE; klass->impl_finder ( pobj->servant, giop_recv_buffer_get_opname (recv_buffer), (gpointer *)&m_data, &imp); if (m_data && m_data->flags & ORBit_I_METHOD_1_WAY) return TRUE; return FALSE; } static void ORBit_POA_handle_request (PortableServer_POA poa, GIOPRecvBuffer *recv_buffer, ORBit_ObjectKey *objkey) { ORBit_POAObject pobj; CORBA_Environment env; PortableServer_ObjectId object_id; CORBA_exception_init (&env); POA_LOCK (poa); pobj = ORBit_POA_object_key_lookup_T (poa, objkey, &object_id); if (!pobj) switch (poa->p_request_processing) { case PortableServer_USE_ACTIVE_OBJECT_MAP_ONLY: CORBA_exception_set_system ( &env, ex_CORBA_OBJECT_NOT_EXIST, CORBA_COMPLETED_NO); goto send_sys_ex; break; case PortableServer_USE_DEFAULT_SERVANT: /* drop through */ case PortableServer_USE_SERVANT_MANAGER: pobj = ORBit_POA_create_object_T (poa, &object_id, &env); break; default: g_assert_not_reached (); break; } if (!pobj) CORBA_exception_set_system ( &env, ex_CORBA_OBJECT_NOT_EXIST, CORBA_COMPLETED_NO); else { switch (poa->p_thread) { case PortableServer_SINGLE_THREAD_MODEL: if (giop_thread_io ()) push_request_T (giop_thread_get_main (), &pobj, &recv_buffer); break; case PortableServer_ORB_CTRL_MODEL: { ORBit_ObjectAdaptor adaptor = (ORBit_ObjectAdaptor) poa; switch (adaptor->thread_hint) { case ORBIT_THREAD_HINT_PER_OBJECT: /* Note: If the user bound this object to a specific * thread this thread will be called, otherwise a * new thread will be created for handling requests * to the object. */ pool_push_request_for_T (pobj, &pobj, &recv_buffer); break; case ORBIT_THREAD_HINT_PER_POA: pool_push_request_for_T (poa, &pobj, &recv_buffer); break; case ORBIT_THREAD_HINT_PER_CONNECTION: pool_push_request_for_T (recv_buffer->connection, &pobj, &recv_buffer); break; case ORBIT_THREAD_HINT_PER_REQUEST: pool_push_request_for_T (NULL, &pobj, &recv_buffer); break; case ORBIT_THREAD_HINT_ONEWAY_AT_IDLE: if (!poa_recv_is_oneway (pobj, recv_buffer)) push_request_T (giop_thread_get_main (), &pobj, &recv_buffer); /* drop through */ case ORBIT_THREAD_HINT_ALL_AT_IDLE: push_request_idle (&pobj, &recv_buffer, NULL); break; case ORBIT_THREAD_HINT_ON_CONTEXT: push_request_idle (&pobj, &recv_buffer, adaptor->context); break; case ORBIT_THREAD_HINT_NONE: if (giop_thread_io ()) push_request_T (giop_thread_get_main (), &pobj, &recv_buffer); break; default: g_warning ("Binning incoming requests in threaded mode"); giop_recv_buffer_unuse (recv_buffer); recv_buffer = NULL; pobj = NULL; break; } break; } default: g_assert_not_reached (); break; } } send_sys_ex: POA_UNLOCK (poa); ORBit_POAObject_invoke_incoming_request (pobj, recv_buffer, &env); } static PortableServer_Servant ORBit_POA_ServantManager_use_servant (PortableServer_POA poa, ORBit_POAObject pobj, CORBA_Identifier opname, PortableServer_ServantLocator_Cookie *the_cookie, PortableServer_ObjectId *oid, CORBA_Environment *ev) { PortableServer_ServantBase *retval; if (IS_RETAIN (poa)) { POA_PortableServer_ServantActivator__epv *epv; POA_PortableServer_ServantActivator *sm; sm = (POA_PortableServer_ServantActivator *) poa->servant_manager; epv = sm->vepv->PortableServer_ServantActivator_epv; retval = epv->incarnate (sm, oid, poa, ev); if (retval) { /* XXX: two POAs sharing servant and having * different uniqueness policies ?? * see note 11.3.5.1 */ if (IS_UNIQUE_ID (poa) && retval->_private != NULL) { CORBA_exception_set_system (ev, ex_CORBA_OBJ_ADAPTER, CORBA_COMPLETED_NO); return NULL; } pobj->next = retval->_private; retval->_private = pobj; /* released by ORBit_POA_deactivate_object */ ORBit_RootObject_duplicate (pobj); pobj->servant = retval; } } else { POA_PortableServer_ServantLocator__epv *epv; POA_PortableServer_ServantLocator *sm; sm = (POA_PortableServer_ServantLocator *) poa->servant_manager; epv = sm->vepv->PortableServer_ServantLocator_epv; retval = epv->preinvoke (sm, oid, poa, opname, the_cookie, ev); if (retval) { /* FIXME: Is this right? * Is it the same as above? */ if (IS_UNIQUE_ID (poa) && retval->_private != NULL) { CORBA_exception_set_system (ev, ex_CORBA_OBJ_ADAPTER, CORBA_COMPLETED_NO); return NULL; } pobj->next = retval->_private; retval->_private = pobj; /* released by ORBit_POA_ServantManager_unuse_servant */ ORBit_RootObject_duplicate (pobj); pobj->servant = retval; } } return retval; } static void ORBit_POA_ServantManager_unuse_servant (PortableServer_POA poa, ORBit_POAObject pobj, CORBA_Identifier opname, PortableServer_ServantLocator_Cookie cookie, PortableServer_ObjectId *oid, PortableServer_Servant serv, CORBA_Environment *ev) { POA_PortableServer_ServantLocator *sm; POA_PortableServer_ServantLocator__epv *epv; PortableServer_ServantBase *servant = serv; g_assert (IS_NON_RETAIN (poa)); sm = (POA_PortableServer_ServantLocator *) poa->servant_manager; epv = sm->vepv->PortableServer_ServantLocator_epv; pobj->servant = NULL; if ((ORBit_POAObject) servant->_private == pobj) servant->_private = pobj->next; else { ORBit_POAObject l = (ORBit_POAObject) servant->_private; for (; l && l->next != pobj; l = l->next); g_assert (l != NULL && l->next == pobj); l->next = pobj->next; } pobj->next = NULL; ORBit_RootObject_release (pobj); epv->postinvoke (sm, oid, poa, opname, cookie, servant, ev); } /* * Was this ever exposed / can we axe it ? */ void ORBit_POAObject_post_invoke (ORBit_POAObject pobj) { if (pobj->use_cnt > 0) return; if (pobj->life_flags & ORBit_LifeF_DeactivateDo) { /* NOTE that the "desired" values of etherealize and cleanup * are stored in pobj->life_flags and they dont need * to be passed in again! */ ORBit_POA_deactivate_object_T ( pobj->poa, pobj, /*ether*/0, /*cleanup*/0); /* WATCHOUT: pobj may not exist anymore! */ } } /* * C Language Mapping Specific Methods. * Section 1.26.2 (C Language Mapping Specification). */ CORBA_char * PortableServer_ObjectId_to_string (PortableServer_ObjectId *id, CORBA_Environment *ev) { CORBA_char *str; poa_sys_exception_val_if_fail (id != NULL, ex_CORBA_BAD_PARAM, NULL); poa_sys_exception_val_if_fail (memchr (id->_buffer, '\0', id->_length), ex_CORBA_BAD_PARAM, NULL); str = CORBA_string_alloc (id->_length + 1); memcpy (str, id->_buffer, id->_length); str [id->_length] = '\0'; return str; } CORBA_wchar * PortableServer_ObjectId_to_wstring (PortableServer_ObjectId *id, CORBA_Environment *ev) { CORBA_wchar *retval; int i; poa_sys_exception_val_if_fail (id != NULL, ex_CORBA_BAD_PARAM, NULL); poa_sys_exception_val_if_fail (memchr (id->_buffer, '\0', id->_length), ex_CORBA_BAD_PARAM, NULL); retval = CORBA_wstring_alloc (id->_length + 1); for (i = 0; i < id->_length; i++) retval [i] = id->_buffer [i]; retval [id->_length] = '\0'; return retval; } PortableServer_ObjectId * PortableServer_string_to_ObjectId (CORBA_char *str, CORBA_Environment *ev) { PortableServer_ObjectId tmp; poa_sys_exception_val_if_fail (str != NULL, ex_CORBA_BAD_PARAM, NULL); tmp._length = strlen (str); tmp._buffer = str; return (PortableServer_ObjectId *) ORBit_sequence_CORBA_octet_dup (&tmp); } PortableServer_ObjectId * PortableServer_wstring_to_ObjectId (CORBA_wchar *str, CORBA_Environment *ev) { PortableServer_ObjectId tmp; int i; poa_sys_exception_val_if_fail (str != NULL, ex_CORBA_BAD_PARAM, NULL); for (i = 0; str[i]; i++); tmp._length = i*2; tmp._buffer = g_alloca (tmp._length); for (i = 0; str[i]; i++) tmp._buffer[i] = str[i]; return (PortableServer_ObjectId *) ORBit_sequence_CORBA_octet_dup (&tmp); } /* * Current Operations. * Section 11.3.9 */ PortableServer_POA PortableServer_Current_get_POA (PortableServer_Current obj, CORBA_Environment *ev) { ORBit_POAObject pobj; poa_sys_exception_val_if_fail (obj != NULL, ex_CORBA_INV_OBJREF, NULL); pobj = ORBit_POACurrent_get_object (obj, ev); return ORBit_RootObject_duplicate (pobj->poa); } PortableServer_ObjectId * PortableServer_Current_get_object_id (PortableServer_Current obj, CORBA_Environment *ev) { ORBit_POAObject pobj; poa_sys_exception_val_if_fail (obj != NULL, ex_CORBA_INV_OBJREF, NULL); pobj = ORBit_POACurrent_get_object (obj, ev); if (!pobj) return NULL; return (PortableServer_ObjectId *)ORBit_sequence_CORBA_octet_dup (pobj->object_id); } /* * PortableServer::POA interface * Section 11.3.8 */ PortableServer_POA PortableServer_POA_create_POA (PortableServer_POA poa, const CORBA_char *adaptor_name, const PortableServer_POAManager a_POAManager, const CORBA_PolicyList *policies, CORBA_Environment *ev) { PortableServer_POA retval; poa_sys_exception_val_if_fail (poa != NULL, ex_CORBA_INV_OBJREF, NULL); poa_sys_exception_val_if_fail (adaptor_name != NULL, ex_CORBA_BAD_PARAM, NULL); poa_sys_exception_val_if_fail (policies != NULL, ex_CORBA_BAD_PARAM, NULL); if (g_hash_table_lookup (poa->child_poas, adaptor_name)) { CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_PortableServer_POA_AdapterAlreadyExists, NULL); return CORBA_OBJECT_NIL; } retval = ORBit_POA_new (poa->orb, adaptor_name, a_POAManager, policies, ev); ORBit_POA_add_child (poa, retval); return retval; } PortableServer_POA PortableServer_POA_find_POA (PortableServer_POA poa, const CORBA_char *adaptor_name, const CORBA_boolean activate_it, CORBA_Environment *ev) { PortableServer_POA child_poa = NULL; poa_sys_exception_val_if_fail (poa != NULL, ex_CORBA_INV_OBJREF, NULL); poa_sys_exception_val_if_fail (adaptor_name != NULL, ex_CORBA_BAD_PARAM, NULL); if (poa->child_poas) child_poa = g_hash_table_lookup (poa->child_poas, adaptor_name); if (activate_it) g_warning ("Don't yet know how to activate POA named \"%s\"", adaptor_name); if (!child_poa) CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_PortableServer_POA_AdapterNonExistent, NULL); return ORBit_RootObject_duplicate (child_poa); } void PortableServer_POA_destroy (PortableServer_POA poa, const CORBA_boolean etherealize_objects, const CORBA_boolean wait_for_completion, CORBA_Environment *ev) { gboolean done; poa_sys_exception_if_fail (poa != NULL, ex_CORBA_INV_OBJREF); ORBit_RootObject_duplicate (poa); POA_LOCK (poa); if (poa->life_flags & ORBit_LifeF_Destroyed) ; else if (wait_for_completion && ORBit_POA_is_inuse_T (poa, CORBA_TRUE, ev)) CORBA_exception_set_system (ev, ex_CORBA_BAD_INV_ORDER, CORBA_COMPLETED_NO); else { done = ORBit_POA_destroy_T_R (poa, etherealize_objects, ev); g_assert (done || !wait_for_completion); } POA_UNLOCK (poa); ORBit_RootObject_release (poa); } CORBA_string PortableServer_POA__get_the_name (PortableServer_POA poa, CORBA_Environment *ev) { poa_sys_exception_val_if_fail (poa != NULL, ex_CORBA_INV_OBJREF, NULL); return CORBA_string_dup (poa->name); } PortableServer_POA PortableServer_POA__get_the_parent (PortableServer_POA poa, CORBA_Environment *ev) { poa_sys_exception_val_if_fail (poa != NULL, ex_CORBA_INV_OBJREF, NULL); return ORBit_RootObject_duplicate (poa->parent_poa); } static void ORBit_POAList_add_child (char *name, PortableServer_POA poa, PortableServer_POAList *list) { list->_buffer [list->_length++] = ORBit_RootObject_duplicate (poa); } PortableServer_POAList * PortableServer_POA__get_the_children (PortableServer_POA poa, CORBA_Environment *ev) { PortableServer_POAList *retval; int length; poa_sys_exception_val_if_fail (poa != NULL, ex_CORBA_INV_OBJREF, NULL); length = g_hash_table_size (poa->child_poas); retval = PortableServer_POAList__alloc (); retval->_length = 0; retval->_maximum = length; retval->_buffer = (CORBA_Object *) PortableServer_POAList_allocbuf (length); retval->_release = CORBA_TRUE; g_hash_table_foreach (poa->child_poas, (GHFunc) ORBit_POAList_add_child, retval); g_assert (retval->_length == length); return retval; } PortableServer_POAManager PortableServer_POA__get_the_POAManager (PortableServer_POA poa, CORBA_Environment *ev) { poa_sys_exception_val_if_fail (poa != NULL, ex_CORBA_INV_OBJREF, NULL); return ORBit_RootObject_duplicate (poa->poa_manager); } PortableServer_AdapterActivator PortableServer_POA__get_the_activator (PortableServer_POA poa, CORBA_Environment *ev) { poa_sys_exception_val_if_fail (poa != NULL, ex_CORBA_INV_OBJREF, NULL); return ORBit_RootObject_duplicate (poa->the_activator); } void PortableServer_POA__set_the_activator (PortableServer_POA poa, const PortableServer_AdapterActivator activator, CORBA_Environment * ev) { poa_sys_exception_if_fail (poa != NULL, ex_CORBA_INV_OBJREF); poa_sys_exception_if_fail (activator != NULL, ex_CORBA_BAD_PARAM); if (poa->the_activator) ORBit_RootObject_release (poa->the_activator); poa->the_activator = (PortableServer_AdapterActivator) ORBit_RootObject_duplicate (activator); } PortableServer_ServantManager PortableServer_POA_get_servant_manager (PortableServer_POA poa, CORBA_Environment *ev) { poa_sys_exception_val_if_fail (poa != NULL, ex_CORBA_INV_OBJREF, NULL); return ORBit_RootObject_duplicate (poa->servant_manager); } void PortableServer_POA_set_servant_manager (PortableServer_POA poa, const PortableServer_ServantManager manager, CORBA_Environment *ev) { poa_sys_exception_if_fail (poa != NULL, ex_CORBA_INV_OBJREF); poa_sys_exception_if_fail (manager != NULL, ex_CORBA_BAD_PARAM); poa_sys_exception_if_fail (poa->servant_manager == NULL, ex_CORBA_BAD_INV_ORDER); poa->servant_manager = (PortableServer_ServantManager) ORBit_RootObject_duplicate (manager); } PortableServer_Servant PortableServer_POA_get_servant (PortableServer_POA poa, CORBA_Environment *ev) { poa_sys_exception_val_if_fail (poa != NULL, ex_CORBA_INV_OBJREF, NULL); return poa->default_servant; } void PortableServer_POA_set_servant (PortableServer_POA poa, const PortableServer_Servant servant, CORBA_Environment *ev) { poa_sys_exception_if_fail (poa != NULL, ex_CORBA_INV_OBJREF); poa_sys_exception_if_fail (servant != NULL, ex_CORBA_BAD_PARAM); poa->default_servant = servant; } PortableServer_ObjectId * PortableServer_POA_activate_object (PortableServer_POA poa, const PortableServer_Servant p_servant, CORBA_Environment *ev) { PortableServer_ObjectId *result; PortableServer_ServantBase *servant = p_servant; ORBit_POAObject newobj; poa_sys_exception_val_if_fail (poa != NULL, ex_CORBA_INV_OBJREF, NULL); poa_sys_exception_val_if_fail (servant != NULL, ex_CORBA_BAD_PARAM, NULL); POA_LOCK (poa); /* FIXME: unlock on preconditions */ poa_exception_val_if_fail (IS_RETAIN (poa), ex_PortableServer_POA_WrongPolicy, NULL); poa_exception_val_if_fail (IS_SYSTEM_ID (poa), ex_PortableServer_POA_WrongPolicy, NULL); poa_exception_val_if_fail (IS_MULTIPLE_ID (poa) || (IS_UNIQUE_ID (poa) && servant->_private == NULL), ex_PortableServer_POA_ServantAlreadyActive, NULL); newobj = ORBit_POA_create_object_T (poa, NULL, ev); ORBit_POA_activate_object_T (poa, newobj, servant, ev); result = ORBit_sequence_CORBA_octet_dup (newobj->object_id); POA_UNLOCK (poa); return result; } void PortableServer_POA_activate_object_with_id (PortableServer_POA poa, const PortableServer_ObjectId *objid, const PortableServer_Servant p_servant, CORBA_Environment *ev) { ORBit_POAObject pobj; PortableServer_ServantBase *servant = p_servant; poa_sys_exception_if_fail (poa != NULL, ex_CORBA_INV_OBJREF); poa_sys_exception_if_fail (objid != NULL, ex_CORBA_BAD_PARAM); poa_sys_exception_if_fail (servant != NULL, ex_CORBA_BAD_PARAM); POA_LOCK (poa); poa_exception_if_fail (IS_RETAIN (poa), ex_PortableServer_POA_WrongPolicy); pobj = ORBit_POA_object_id_lookup_T (poa, objid); if (pobj && pobj->servant) CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_PortableServer_POA_ObjectAlreadyActive, NULL); else if (IS_UNIQUE_ID (poa) && servant->_private != NULL) CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_PortableServer_POA_ServantAlreadyActive, NULL); else { ORBit_POAObject newobj; if (!pobj) newobj = ORBit_POA_create_object_T (poa, objid, ev); else newobj = pobj; ORBit_POA_activate_object_T (poa, newobj, servant, ev); } ORBit_RootObject_release (pobj); POA_UNLOCK (poa); } void PortableServer_POA_deactivate_object (PortableServer_POA poa, const PortableServer_ObjectId *oid, CORBA_Environment *ev) { ORBit_POAObject pobj; poa_sys_exception_if_fail (poa != NULL, ex_CORBA_INV_OBJREF); poa_sys_exception_if_fail (oid != NULL, ex_CORBA_BAD_PARAM); POA_LOCK (poa); poa_exception_if_fail (IS_RETAIN (poa), ex_PortableServer_POA_WrongPolicy); pobj = ORBit_POA_object_id_lookup_T (poa, oid); if (pobj && pobj->servant) ORBit_POA_deactivate_object_T (poa, pobj, CORBA_TRUE, CORBA_FALSE); POA_UNLOCK (poa); ORBit_RootObject_release (pobj); } CORBA_Object PortableServer_POA_create_reference (PortableServer_POA poa, const CORBA_char *intf, CORBA_Environment *ev) { CORBA_Object obj; ORBit_POAObject pobj; poa_sys_exception_val_if_fail (poa != NULL, ex_CORBA_INV_OBJREF, NULL); POA_LOCK (poa); poa_exception_val_if_fail (IS_SYSTEM_ID (poa), ex_PortableServer_POA_WrongPolicy, NULL); pobj = ORBit_POA_create_object_T (poa, NULL, ev); obj = ORBit_POA_obj_to_ref (poa, pobj, intf, ev); POA_UNLOCK (poa); return obj; } CORBA_Object PortableServer_POA_create_reference_with_id (PortableServer_POA poa, const PortableServer_ObjectId *oid, const CORBA_char *intf, CORBA_Environment *ev) { CORBA_Object obj; ORBit_POAObject pobj, newobj; poa_sys_exception_val_if_fail (poa != NULL, ex_CORBA_INV_OBJREF, NULL); poa_sys_exception_val_if_fail (oid != NULL, ex_CORBA_BAD_PARAM, NULL); POA_LOCK (poa); pobj = ORBit_POA_object_id_lookup_T (poa, oid); if (!pobj) newobj = ORBit_POA_create_object_T (poa, oid, ev); else newobj = CORBA_OBJECT_NIL; obj = ORBit_POA_obj_to_ref (poa, pobj, intf, ev); if (!newobj) ORBit_RootObject_release (pobj); POA_UNLOCK (poa); return obj; } PortableServer_ObjectId * PortableServer_POA_servant_to_id (PortableServer_POA poa, const PortableServer_Servant p_servant, CORBA_Environment *ev) { PortableServer_ServantBase *servant = p_servant; PortableServer_ObjectId *objid; ORBit_POAObject pobj = servant->_private; gboolean defserv = IS_USE_DEFAULT_SERVANT (poa); gboolean retain = IS_RETAIN (poa); gboolean implicit = IS_IMPLICIT_ACTIVATION (poa); gboolean unique = IS_UNIQUE_ID (poa); poa_sys_exception_val_if_fail (poa != NULL, ex_CORBA_INV_OBJREF, NULL); poa_sys_exception_val_if_fail (servant != NULL, ex_CORBA_BAD_PARAM, NULL); POA_LOCK (poa); poa_exception_val_if_fail (defserv || (retain && (unique || implicit)), ex_PortableServer_POA_WrongPolicy, NULL); objid = NULL; if (retain && unique && pobj && pobj->servant == servant) objid = ORBit_sequence_CORBA_octet_dup (pobj->object_id); else if (retain && implicit && (!unique || !pobj)) { pobj = ORBit_POA_create_object_T (poa, NULL, ev); ORBit_POA_activate_object_T (poa, pobj, servant, ev); objid = ORBit_sequence_CORBA_octet_dup (pobj->object_id); } else { /* * FIXME: * This handles case 3 of the spec; but is broader: * it matches invokations on any type of servant, not * just the default servant. * The stricter form could be implemented, * but it would only add more code... */ objid = ORBit_POA_invocation_stack_lookup_objid (poa, servant); } if (!objid) CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_PortableServer_POA_ServantNotActive, NULL); POA_UNLOCK (poa); return objid; } CORBA_Object PortableServer_POA_servant_to_reference (PortableServer_POA poa, const PortableServer_Servant p_servant, CORBA_Environment *ev) { PortableServer_ServantBase *servant = p_servant; ORBit_POAObject pobj = servant->_private; CORBA_Object result; gboolean retain = IS_RETAIN (poa); gboolean implicit = IS_IMPLICIT_ACTIVATION (poa); gboolean unique = IS_UNIQUE_ID (poa); poa_sys_exception_val_if_fail (poa != NULL, ex_CORBA_INV_OBJREF, CORBA_OBJECT_NIL); poa_sys_exception_val_if_fail (servant != NULL, ex_CORBA_BAD_PARAM, CORBA_OBJECT_NIL); POA_LOCK (poa); poa_exception_val_if_fail (retain && (unique || implicit), ex_PortableServer_POA_WrongPolicy, CORBA_OBJECT_NIL); result = CORBA_OBJECT_NIL; if (retain && unique && pobj) if (pobj->base.objref) result = ORBit_RootObject_duplicate (pobj->base.objref); else result = ORBit_POA_obj_to_ref (poa, pobj, NULL, ev); else if (retain && implicit && (!unique || !pobj)) { pobj = ORBit_POA_create_object_T (poa, NULL, ev); ORBit_POA_activate_object_T (poa, pobj, servant, ev); result = ORBit_POA_obj_to_ref (poa, pobj, NULL, ev); } else { /* * FIXME: * This case deals with "invoked in the context of * executing a request." Note that there are no policy * restrictions for this case. We must do a forward search * looking for matching {servant}. If unique, we could * go backward from servant to pobj to use_cnt, but we * dont do this since forward search is more general */ result = ORBit_POA_invocation_stack_lookup_objref (poa, servant); } if (result == CORBA_OBJECT_NIL) CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_PortableServer_POA_ServantNotActive, NULL); POA_UNLOCK (poa); return result; } PortableServer_Servant PortableServer_POA_reference_to_servant (PortableServer_POA poa, const CORBA_Object reference, CORBA_Environment *ev) { poa_sys_exception_val_if_fail (poa != NULL, ex_CORBA_INV_OBJREF, NULL); poa_sys_exception_val_if_fail (reference != NULL, ex_CORBA_BAD_PARAM, NULL); poa_exception_val_if_fail (IS_USE_DEFAULT_SERVANT (poa) || IS_RETAIN (poa), ex_PortableServer_POA_WrongPolicy, NULL); if (IS_RETAIN (poa)) { ORBit_POAObject pobj; poa_exception_val_if_fail (reference->adaptor_obj != NULL, ex_PortableServer_POA_WrongAdapter, NULL); pobj = (ORBit_POAObject) reference->adaptor_obj; if (pobj->servant) return pobj->servant; } else if (poa->default_servant) return poa->default_servant; CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_PortableServer_POA_ObjectNotActive, NULL); return NULL; } PortableServer_ObjectId * PortableServer_POA_reference_to_id (PortableServer_POA poa, const CORBA_Object reference, CORBA_Environment *ev) { ORBit_POAObject pobj; poa_sys_exception_val_if_fail (poa != NULL, ex_CORBA_INV_OBJREF, NULL); poa_sys_exception_val_if_fail (reference != NULL, ex_CORBA_BAD_PARAM, NULL); poa_exception_val_if_fail (reference->adaptor_obj != NULL, ex_PortableServer_POA_WrongAdapter, NULL); pobj = (ORBit_POAObject) reference->adaptor_obj; return (PortableServer_ObjectId *) ORBit_sequence_CORBA_octet_dup (pobj->object_id); } PortableServer_Servant PortableServer_POA_id_to_servant (PortableServer_POA poa, const PortableServer_ObjectId *object_id, CORBA_Environment *ev) { PortableServer_Servant servant = NULL; poa_sys_exception_val_if_fail (poa != NULL, ex_CORBA_INV_OBJREF, NULL); poa_sys_exception_val_if_fail (object_id != NULL, ex_CORBA_BAD_PARAM, NULL); POA_LOCK (poa); poa_exception_val_if_fail (IS_USE_DEFAULT_SERVANT (poa) || IS_RETAIN (poa), ex_PortableServer_POA_WrongPolicy, NULL); if (IS_RETAIN (poa)) { ORBit_POAObject pobj = ORBit_POA_object_id_lookup_T (poa, object_id); if (pobj && pobj->servant) servant = pobj->servant; ORBit_RootObject_release (pobj); } else if (poa->default_servant) servant = poa->default_servant; if (!servant) CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_PortableServer_POA_ObjectNotActive, NULL); POA_UNLOCK (poa); return NULL; } CORBA_Object PortableServer_POA_id_to_reference (PortableServer_POA poa, const PortableServer_ObjectId *object_id, CORBA_Environment *ev) { CORBA_Object obj; ORBit_POAObject pobj; poa_sys_exception_val_if_fail (poa != NULL, ex_CORBA_INV_OBJREF, NULL); poa_sys_exception_val_if_fail (object_id != NULL, ex_CORBA_BAD_PARAM, NULL); POA_LOCK (poa); poa_exception_val_if_fail (IS_RETAIN (poa), ex_PortableServer_POA_WrongPolicy, NULL); pobj = ORBit_POA_object_id_lookup_T (poa, object_id); if (!pobj || !pobj->servant) { CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_PortableServer_POA_ObjectNotActive, NULL); obj = CORBA_OBJECT_NIL; } else { if (pobj->base.objref) obj = ORBit_RootObject_duplicate (pobj->base.objref); else obj = ORBit_POA_obj_to_ref (poa, pobj, NULL, ev); } POA_UNLOCK (poa); ORBit_RootObject_release (pobj); return obj; } void ORBit_poa_init (void) { ORBit_class_assignment_lock = link_mutex_new (); _ORBit_poa_manager_lock = link_mutex_new (); giop_thread_set_main_handler (ORBit_POAObject_invoke_incoming_request); } gboolean ORBit_poa_allow_cross_thread_call (ORBit_POAObject pobj, ORBit_IMethodFlag method_flags) { gpointer key = NULL; GIOPThread *self; PortableServer_POA poa = pobj->poa; if (!poa) return TRUE; self = giop_thread_self (); switch (poa->p_thread) { case PortableServer_SINGLE_THREAD_MODEL: break; case PortableServer_ORB_CTRL_MODEL: { ORBit_ObjectAdaptor adaptor = (ORBit_ObjectAdaptor) poa; if (method_flags & ORBit_I_METHOD_1_WAY) return FALSE; switch (adaptor->thread_hint) { case ORBIT_THREAD_HINT_PER_OBJECT: key = pobj; break; case ORBIT_THREAD_HINT_PER_POA: key = poa; break; case ORBIT_THREAD_HINT_PER_CONNECTION: /* FIXME: ? */ case ORBIT_THREAD_HINT_PER_REQUEST: return TRUE; break; case ORBIT_THREAD_HINT_ONEWAY_AT_IDLE: case ORBIT_THREAD_HINT_ALL_AT_IDLE: case ORBIT_THREAD_HINT_ON_CONTEXT: /* FIXME: need GThread *g_main_context_get_owner() to do this right ... */ case ORBIT_THREAD_HINT_NONE: break; } break; } } giop_thread_new_check (self); if (!key) return (self == giop_thread_get_main ()); else return giop_thread_same_key (key, TRUE); } static gpointer get_c_method (CORBA_Object obj, glong class_id, PortableServer_ServantBase **servant, glong method_offset, ORBit_IMethodFlag method_flags) { guchar *epv_start; ORBit_POAObject pobj; if (!obj || !(pobj = (ORBit_POAObject) obj->adaptor_obj) || !(pobj->base.interface->adaptor_type & ORBIT_ADAPTOR_POA) || !(*servant = (PortableServer_ServantBase *) pobj->servant)) return NULL; if (method_offset <= 0 || class_id <= 0) return NULL; if (!ORBit_poa_allow_cross_thread_call (pobj, method_flags)) return NULL; if (ORBit_small_flags & ORBIT_SMALL_FORCE_GENERIC_MARSHAL) return NULL; /* * FIXME: we could propagate the size of the vepvmap_cache * to here, and check it to avoid some really bogus stuff. */ if (!class_id || !pobj->vepvmap_cache || class_id >= VEPV_CACHE_SIZE (pobj->vepvmap_cache) ) return NULL; epv_start = (guchar *) (*servant)->vepv [ pobj->vepvmap_cache [class_id] ]; if (!epv_start) return NULL; return *(gpointer *)(epv_start + method_offset); } void ORBit_c_stub_invoke (CORBA_Object obj, ORBit_IMethods *methods, glong method_index, gpointer ret, gpointer args, CORBA_Context ctx, CORBA_Environment *ev, glong class_id, glong method_offset, ORBitSmallSkeleton skel_impl) { gpointer method_impl; PortableServer_ServantBase *servant; if (method_index < 0 || method_index > methods->_length) { CORBA_exception_set_system (ev, ex_CORBA_NO_IMPLEMENT, CORBA_COMPLETED_NO); return; } if (skel_impl && (method_impl = get_c_method (obj, class_id, &servant, method_offset, methods->_buffer[method_index].flags))) { /* Unwound PreCall POA_LOCK (((ORBit_POAObject)(obj)->adaptor_obj)->poa); ++( ((ORBit_POAObject)(obj)->adaptor_obj)->use_cnt ); POA_UNLOCK (((ORBit_POAObject)(obj)->adaptor_obj)->poa); (obj)->orb->current_invocations = g_slist_prepend ((obj)->orb->current_invocations, (obj)->adaptor_obj); */ CORBA_exception_init (ev); skel_impl (servant, ret, args, ctx, ev, method_impl); /* Unwound PostCall (obj)->orb->current_invocations = g_slist_remove ((obj)->orb->current_invocations, pobj); POA_LOCK (((ORBit_POAObject)(obj)->adaptor_obj)->poa); --(((ORBit_POAObject)(obj)->adaptor_obj)->use_cnt); if (((ORBit_POAObject)(obj)->adaptor_obj)->life_flags & ORBit_LifeF_NeedPostInvoke) ORBit_POAObject_post_invoke (((ORBit_POAObject)(obj)->adaptor_obj)); POA_UNLOCK (((ORBit_POAObject)(obj)->adaptor_obj)->poa); */ } else ORBit_small_invoke_stub_n (obj, methods, method_index, ret, args, ctx, ev); } ORBit2-2.14.19/src/orb/poa/poa-manager.c0000644000175000001440000001203211334247617014337 00000000000000#include #include #include "orbit-poa.h" #include "../util/orbit-purify.h" #include "poa-private.h" GMutex *_ORBit_poa_manager_lock = NULL; #define POA_MGR_LOCK(pmgr) LINK_MUTEX_LOCK (_ORBit_poa_manager_lock); #define POA_MGR_UNLOCK(pmgr) LINK_MUTEX_UNLOCK (_ORBit_poa_manager_lock); static void ORBit_POAManager_free_fn (ORBit_RootObject obj) { PortableServer_POAManager poa_mgr = (PortableServer_POAManager)obj; g_assert (poa_mgr->poa_collection == NULL); p_free (poa_mgr, struct PortableServer_POAManager_type); } static const ORBit_RootObject_Interface CORBA_POAManager_epv = { ORBIT_ROT_POAMANAGER, ORBit_POAManager_free_fn }; PortableServer_POAManager ORBit_POAManager_new (CORBA_ORB orb) { PortableServer_POAManager retval; retval = g_new0 (struct PortableServer_POAManager_type, 1); ORBit_RootObject_init (&retval->parent, &CORBA_POAManager_epv); retval->state = PortableServer_POAManager_HOLDING; retval->orb = orb; return retval; } void ORBit_POAManager_register_poa (PortableServer_POAManager poa_mgr, PortableServer_POA poa) { g_assert (g_slist_find (poa_mgr->poa_collection, poa) == NULL); POA_MGR_LOCK (poa_mgr); poa_mgr->poa_collection = g_slist_append (poa_mgr->poa_collection, poa); POA_MGR_UNLOCK (poa_mgr); } void ORBit_POAManager_unregister_poa (PortableServer_POAManager poa_mgr, PortableServer_POA poa) { POA_MGR_LOCK (poa_mgr); poa_mgr->poa_collection = g_slist_remove (poa_mgr->poa_collection, poa); POA_MGR_UNLOCK (poa_mgr); } /* * PortableServer::POAManager interface. * Section 11.3.2 */ void PortableServer_POAManager_activate (PortableServer_POAManager manager, CORBA_Environment *ev) { GSList *l; if (!manager) { CORBA_exception_set_system (ev, ex_CORBA_BAD_PARAM, CORBA_COMPLETED_NO); return; } POA_MGR_LOCK (poa_mgr); if (manager->state == PortableServer_POAManager_INACTIVE) CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_PortableServer_POAManager_AdapterInactive, NULL); else { manager->state = PortableServer_POAManager_ACTIVE; for (l = manager->poa_collection; l; l = l->next) { PortableServer_POA poa = (PortableServer_POA)l->data; /* FIXME: need better locking here */ ORBit_POA_handle_held_requests (poa); } } POA_MGR_UNLOCK (poa_mgr); } void PortableServer_POAManager_hold_requests (PortableServer_POAManager manager, const CORBA_boolean wait_for_completion, CORBA_Environment *ev) { if (!manager) { CORBA_exception_set_system (ev, ex_CORBA_BAD_PARAM, CORBA_COMPLETED_NO); return; } POA_MGR_LOCK (poa_mgr); if (manager->state == PortableServer_POAManager_INACTIVE) CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_PortableServer_POAManager_AdapterInactive, NULL); else { manager->state = PortableServer_POAManager_HOLDING; if (!wait_for_completion) g_warning ("hold_requests not finished - don't " "know how to kill outstanding request fulfillments"); } POA_MGR_UNLOCK (poa_mgr); } void PortableServer_POAManager_discard_requests (PortableServer_POAManager manager, const CORBA_boolean wait_for_completion, CORBA_Environment *ev) { if (!manager) { CORBA_exception_set_system (ev, ex_CORBA_BAD_PARAM, CORBA_COMPLETED_NO); return; } POA_MGR_LOCK (poa_mgr); if (manager->state == PortableServer_POAManager_INACTIVE) CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_PortableServer_POAManager_AdapterInactive, NULL); else { manager->state = PortableServer_POAManager_DISCARDING; if (!wait_for_completion) g_warning ("discard_requests not finished - don't know how to kill " "outstanding request fulfillments"); } POA_MGR_UNLOCK (poa_mgr); } void PortableServer_POAManager_deactivate (PortableServer_POAManager manager, const CORBA_boolean etherealize_objects, const CORBA_boolean wait_for_completion, CORBA_Environment *ev) { GSList *l; if (!manager) { CORBA_exception_set_system (ev, ex_CORBA_BAD_PARAM, CORBA_COMPLETED_NO); return; } POA_MGR_LOCK (poa_mgr); if (manager->state == PortableServer_POAManager_INACTIVE) CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_PortableServer_POAManager_AdapterInactive, NULL); else { if (wait_for_completion) for (l = manager->poa_collection; l; l = l->next) if (!ORBit_POA_is_inuse (l->data, FALSE, ev)) { CORBA_exception_set_system (ev, ex_CORBA_BAD_INV_ORDER, CORBA_COMPLETED_NO); POA_MGR_UNLOCK (poa_mgr); return; } manager->state = PortableServer_POAManager_INACTIVE; for (l = manager->poa_collection; l; l = l->next) ORBit_POA_deactivate (l->data, etherealize_objects, ev); } POA_MGR_UNLOCK (poa_mgr); } PortableServer_POAManager_State PortableServer_POAManager_get_state (PortableServer_POAManager manager, CORBA_Environment *ev) { PortableServer_POAManager_State state; POA_MGR_LOCK (poa_mgr); state = manager->state; POA_MGR_UNLOCK (poa_mgr); return state; } ORBit2-2.14.19/src/orb/poa/orbit-poa-export.h0000644000175000001440000000020111334247617015363 00000000000000#ifndef ORBIT_POA_EXPORT_H #define ORBIT_POA_EXPORT_H /* Stuff that is internal to ORBit but not internal to the POA */ #endif ORBit2-2.14.19/src/orb/poa/poa-private.h0000644000175000001440000000021311334247617014402 00000000000000#ifndef _POA_PRIVATE_H_ #define _POA_PRIVATE_H_ #include extern GMutex *_ORBit_poa_manager_lock; #endif /* _POA_PRIVATE_H_ */ ORBit2-2.14.19/src/orb/poa/poa-servants.c0000644000175000001440000000772511334247617014607 00000000000000#include #include #include "poa-macros.h" PortableServer_POA PortableServer_ServantBase__default_POA (PortableServer_Servant serv, CORBA_Environment *ev) { PortableServer_ServantBase *servant = (PortableServer_ServantBase *) serv; poa_sys_exception_val_if_fail (servant != NULL, ex_CORBA_BAD_PARAM, NULL); poa_sys_exception_val_if_fail (servant->_private != NULL, ex_CORBA_BAD_PARAM, NULL); return ((ORBit_POAObject) servant->_private)->poa; } CORBA_InterfaceDef PortableServer_ServantBase__get_interface (PortableServer_Servant servant, CORBA_Environment *ev) { return CORBA_OBJECT_NIL; } CORBA_boolean PortableServer_ServantBase__is_a (PortableServer_Servant servant, const CORBA_char *logical_type_id, CORBA_Environment *ev) { poa_sys_exception_val_if_fail (servant != NULL, ex_CORBA_BAD_PARAM, FALSE); /* * FIXME: actually implement this. */ return FALSE; } void PortableServer_ServantBase__add_ref (PortableServer_Servant servant, CORBA_Environment *ev) { } void PortableServer_ServantBase__remove_ref (PortableServer_Servant servant, CORBA_Environment *ev) { } void PortableServer_RefCountServantBase__add_ref (PortableServer_Servant servant, CORBA_Environment *ev) { poa_sys_exception_if_fail (servant != NULL, ex_CORBA_BAD_PARAM); /* * FIXME: actually implement this. */ } void PortableServer_RefCountServantBase__remove_ref (PortableServer_Servant servant, CORBA_Environment *ev) { poa_sys_exception_if_fail (servant != NULL, ex_CORBA_BAD_PARAM); /* * FIXME: actually implement this. */ } void PortableServer_ServantBase__init (PortableServer_Servant servant, CORBA_Environment *ev) { PortableServer_ServantBase *servantbase = (PortableServer_ServantBase *) servant; poa_sys_exception_if_fail (servantbase != NULL, ex_CORBA_BAD_PARAM); poa_sys_exception_if_fail (servantbase->vepv && servantbase->vepv [0], ex_CORBA_BAD_PARAM); if (!servantbase->vepv[0]->finalize) servantbase->vepv[0]->finalize = PortableServer_ServantBase__fini; if (!servantbase->vepv[0]->default_POA) servantbase->vepv[0]->default_POA = PortableServer_ServantBase__default_POA; if (!servantbase->vepv[0]->get_interface) servantbase->vepv[0]->get_interface = PortableServer_ServantBase__get_interface; if (!servantbase->vepv[0]->is_a) servantbase->vepv[0]->is_a = PortableServer_ServantBase__is_a; if (!servantbase->vepv[0]->non_existent) servantbase->vepv[0]->add_ref = PortableServer_ServantBase__add_ref; if (!servantbase->vepv[0]->add_ref) servantbase->vepv[0]-> add_ref = PortableServer_ServantBase__add_ref; if (!servantbase->vepv[0]->remove_ref) servantbase->vepv[0]->remove_ref = PortableServer_ServantBase__remove_ref; } void PortableServer_ServantBase__fini (PortableServer_Servant servant, CORBA_Environment *ev) { poa_sys_exception_if_fail (servant != NULL, ex_CORBA_BAD_PARAM); } void PortableServer_RefCountServantBase__init (PortableServer_Servant servant, CORBA_Environment *ev) { PortableServer_ServantBase *servantbase = (PortableServer_ServantBase *) servant; poa_sys_exception_if_fail (servantbase != NULL, ex_CORBA_BAD_PARAM); poa_sys_exception_if_fail (servantbase->vepv && servantbase->vepv [0], ex_CORBA_BAD_PARAM); if (!servantbase->vepv[0]->finalize) servantbase->vepv[0]->finalize = PortableServer_RefCountServantBase__fini; if (!servantbase->vepv[0]->add_ref) servantbase->vepv[0]->add_ref = PortableServer_RefCountServantBase__add_ref; if (!servantbase->vepv[0]->remove_ref) servantbase->vepv[0]->remove_ref = PortableServer_RefCountServantBase__remove_ref; PortableServer_ServantBase__init (servant, ev); } void PortableServer_RefCountServantBase__fini (PortableServer_Servant servant, CORBA_Environment *ev) { poa_sys_exception_if_fail (servant != NULL, ex_CORBA_BAD_PARAM); PortableServer_RefCountServantBase__fini (servant, ev); } ORBit2-2.14.19/src/orb/poa/orbit-poa.h0000644000175000001440000000315311334247617014055 00000000000000#ifndef ORBIT_POA_H #define ORBIT_POA_H 1 #include "config.h" /* * Our object key is 28 bytes long and looks like this: * * .----- adaptor prefix -----.---------- ObjectId -----------, * | 4 16 | 4 4 | * | adaptor idx | orb cookie | object idx | object id random | */ #define ORBIT_ADAPTOR_KEY_LEN (128/8) #define ORBIT_ADAPTOR_PREFIX_LEN (sizeof (CORBA_long) + ORBIT_ADAPTOR_KEY_LEN) /* We have an an auto-inc + 32 bits of poor randomness */ #define ORBIT_OBJECT_ID_LEN 4 /* * Exported by poa.c. */ void ORBit_POA_handle_held_requests (PortableServer_POA poa); PortableServer_POA ORBit_POA_setup_root (CORBA_ORB orb, CORBA_Environment *ev); CORBA_boolean ORBit_POA_deactivate (PortableServer_POA poa, CORBA_boolean etherealize_objects, CORBA_Environment *ev); gboolean ORBit_POA_is_inuse (PortableServer_POA poa, CORBA_boolean consider_children, CORBA_Environment *ev); PortableServer_Current ORBit_POACurrent_new (CORBA_ORB orb); /* * Exported by poa-manager.c */ void ORBit_POAManager_register_poa (PortableServer_POAManager poa_mgr, PortableServer_POA poa); void ORBit_POAManager_unregister_poa (PortableServer_POAManager poa_mgr, PortableServer_POA poa); PortableServer_POAManager ORBit_POAManager_new (CORBA_ORB orb); #endif /* ORBIT_POA_H */ ORBit2-2.14.19/src/orb/orbit-init.c0000644000175000001440000000260211334247617013453 00000000000000#include "config.h" #include #include #ifdef HAVE_SYS_TIME_H # include #endif #ifdef HAVE_UNISTD_H # include #endif #ifdef _WIN32 # include #endif #include #include "orbit-init.h" #include "poa/orbit-poa.h" #include "orb-core/orb-core-private.h" #ifdef G_OS_WIN32 # define getuid() 0 #endif void ORBit_init_internals (CORBA_ORB orb, CORBA_Environment *ev) { PortableServer_POA root_poa; PortableServer_Current poa_current; DynamicAny_DynAnyFactory dynany_factory; GTimeVal t; root_poa = ORBit_POA_setup_root (orb, ev); ORBit_set_initial_reference (orb, "RootPOA", root_poa); ORBit_RootObject_release (root_poa); poa_current = ORBit_POACurrent_new (orb); ORBit_set_initial_reference (orb, "POACurrent", poa_current); ORBit_RootObject_release (poa_current); dynany_factory = ORBit_DynAnyFactory_new (orb, ev); ORBit_set_initial_reference (orb, "DynAnyFactory", dynany_factory); ORBit_RootObject_release (dynany_factory); /* need to srand for linc's node creation */ g_get_current_time (&t); srand (t.tv_sec ^ t.tv_usec ^ getpid () ^ getuid ()); } const char *orbit_version = ORBIT_VERSION; unsigned int orbit_major_version = ORBIT_MAJOR_VERSION; unsigned int orbit_minor_version = ORBIT_MINOR_VERSION; unsigned int orbit_micro_version = ORBIT_MICRO_VERSION; ORBit2-2.14.19/src/orb/orb-core/0000755000175000001440000000000011450334027013006 500000000000000ORBit2-2.14.19/src/orb/orb-core/orb-core-private.h0000644000175000001440000000614611334247617016277 00000000000000#ifndef ORB_CORE_PRIVATE_H #define ORB_CORE_PRIVATE_H 1 #include CORBA_TypeCode ORBit_get_union_tag (CORBA_TypeCode union_tc, gconstpointer *val, gboolean update); size_t ORBit_gather_alloc_info (CORBA_TypeCode tc); void ORBit_copy_value_core (gconstpointer *val, gpointer *newval, CORBA_TypeCode tc); void ORBit_register_objref (CORBA_Object obj); CORBA_Object ORBit_objref_get_proxy (CORBA_Object obj); void ORBit_start_servers (CORBA_ORB orb); void ORBit_set_initial_reference (CORBA_ORB orb, gchar *identifier, gpointer objref); CORBA_Object ORBit_object_by_corbaloc (CORBA_ORB orb, const gchar *corbaloc, CORBA_Environment *ev); CORBA_char* ORBit_object_to_corbaloc (CORBA_Object obj, CORBA_Environment *ev); CORBA_char* ORBit_corbaloc_from (GSList *profile_list, ORBit_ObjectKey *object_key); GSList* ORBit_corbaloc_parse (const gchar *corbaloc); /* profile methods. */ GSList *IOP_start_profiles (CORBA_ORB orb); void IOP_shutdown_profiles (GSList *profiles); void IOP_delete_profiles (CORBA_ORB orb, GSList **profiles); void IOP_generate_profiles (CORBA_Object obj); void IOP_register_profiles (CORBA_Object obj, GSList *profiles); ORBit_ObjectKey *IOP_profiles_sync_objkey (GSList *profiles); ORBit_ObjectKey *IOP_ObjectKey_copy (ORBit_ObjectKey *src); gboolean IOP_ObjectKey_equal (ORBit_ObjectKey *a, ORBit_ObjectKey *b); guint IOP_ObjectKey_hash (ORBit_ObjectKey *k); gboolean IOP_profile_get_info (CORBA_Object obj, gpointer *pinfo, GIOPVersion *iiop_version, char **proto, char **host, char **service, gboolean *ssl, char *tmpbuf); void IOP_profile_hash (gpointer item, gpointer data); gchar *IOP_profile_dump (CORBA_Object obj, gpointer p); gboolean IOP_profile_equal (CORBA_Object obj1, CORBA_Object obj2, gpointer d1, gpointer d2); void IOP_profile_marshal (CORBA_Object obj, GIOPSendBuffer *buf, gpointer *p); GSList *IOP_profiles_copy (GSList *profile_list); gboolean ORBit_demarshal_IOR (CORBA_ORB orb, GIOPRecvBuffer *buf, char **ret_type_id, GSList **ret_profiles); int ORBit_RootObject_shutdown (gboolean moan); char **ORBit_get_typelib_paths (void); gboolean ORBit_proto_use (const char *name); void _ORBit_object_init (void); glong ORBit_get_giop_recv_limit (void); #ifdef G_OS_WIN32 extern const gchar *ORBit_win32_get_typelib_dir (void); #undef ORBIT_TYPELIB_DIR #define ORBIT_TYPELIB_DIR ORBit_win32_get_typelib_dir () #endif #endif ORBit2-2.14.19/src/orb/orb-core/corba-ops.idl0000644000175000001440000000014011334247617015311 00000000000000module ORBit { interface ObjectImpl { boolean ZZZis_a(in string logical_type_id); }; }; ORBit2-2.14.19/src/orb/orb-core/corba-typecode.c0000644000175000001440000010150711334247617016007 00000000000000#include "config.h" #include #include #include "../util/orbit-purify.h" typedef struct { CORBA_TypeCode tc; guint index; } TCRecursionNode; typedef struct { GSList *prior_tcs; /* Could be a hash table by typecode */ guint start_idx; } TCEncodeContext; typedef struct { GSList *prior_tcs; /* Could be a hash table by offset */ guint current_idx; /* The offset from the start of the toplevel buffer of this buffer */ } TCDecodeContext; /* Two methods called in co-recursion */ static gboolean tc_dec (CORBA_TypeCode *t, GIOPRecvBuffer *c, TCDecodeContext *ctx); static void tc_enc (CORBA_TypeCode tc, GIOPSendBuffer *buf, TCEncodeContext *ctx); #define get_wptr(buf) (buf->msg.header.message_size - ctx->start_idx) #define get_rptr(buf) (buf->cur-buf->message_body) #define CDR_put_string(buf,str) (giop_send_buffer_append_string ((buf), (str))) #define CDR_put_ulong(buf, n) (giop_send_buffer_align(buf, sizeof(n)), \ giop_send_buffer_append(buf, &(n), sizeof(n))) #define CDR_put_long(buf, n) CDR_put_ulong(buf, n) #define CDR_put_ulong_long(buf, n) CDR_put_ulong(buf, n) #define CDR_put_wchar(buf, n) CDR_put_ulong(buf, n) #define CDR_put_octet(buf, n) CDR_put_ulong(buf, n) #define CDR_put_ushort(buf, n) CDR_put_ulong(buf, n) #define CDR_put_short(buf, n) CDR_put_ulong(buf, n) typedef void (*CORBA_TypeCodeEncoder)(CORBA_TypeCode t, GIOPSendBuffer *c, TCEncodeContext* ctx); typedef gboolean (*CORBA_TypeCodeDecoder)(CORBA_TypeCode t, GIOPRecvBuffer *c, TCDecodeContext* ctx); typedef enum { TK_EMPTY, TK_SIMPLE, TK_COMPLEX } TkType; typedef struct { TkType type; CORBA_TypeCodeEncoder encoder; CORBA_TypeCodeDecoder decoder; CORBA_TypeCode basic_type; } TkInfo; #define DEF_TC_BASIC(nom, c_align) \ ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_##nom##_struct = { \ {&ORBit_TypeCode_epv, ORBIT_REFCOUNT_STATIC}, \ CORBA_tk_##nom, \ 0, 0, c_align, \ 0, 0, NULL, NULL, \ #nom, \ "IDL:omg.org/CORBA/" #nom ":1.0", \ NULL, CORBA_OBJECT_NIL, -1 \ } #define CORBA_tk_Object CORBA_tk_objref #define CORBA_tk_unsigned_long CORBA_tk_ulong #define CORBA_tk_long_long CORBA_tk_longlong #define CORBA_tk_unsigned_long_long CORBA_tk_ulonglong #define CORBA_tk_unsigned_short CORBA_tk_ushort #define CORBA_tk_long_double CORBA_tk_longdouble ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_null_struct = { {&ORBit_TypeCode_epv, ORBIT_REFCOUNT_STATIC}, CORBA_tk_null, 0, 0, -1, 0, 0, NULL, CORBA_OBJECT_NIL, "null", "IDL:omg.org/CORBA/Null:1.0" }; ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_void_struct = { {&ORBit_TypeCode_epv, ORBIT_REFCOUNT_STATIC}, CORBA_tk_void, 0, 0, -1, 0, 0, NULL, CORBA_OBJECT_NIL, "void", "IDL:omg.org/CORBA/void:1.0" }; DEF_TC_BASIC(char, ORBIT_ALIGNOF_CORBA_CHAR); DEF_TC_BASIC(wchar, ORBIT_ALIGNOF_CORBA_WCHAR); DEF_TC_BASIC(string, ORBIT_ALIGNOF_CORBA_POINTER); DEF_TC_BASIC(long, ORBIT_ALIGNOF_CORBA_LONG); DEF_TC_BASIC(unsigned_long, ORBIT_ALIGNOF_CORBA_LONG); DEF_TC_BASIC(float, ORBIT_ALIGNOF_CORBA_FLOAT); DEF_TC_BASIC(double, ORBIT_ALIGNOF_CORBA_DOUBLE); DEF_TC_BASIC(short, ORBIT_ALIGNOF_CORBA_SHORT); DEF_TC_BASIC(unsigned_short, ORBIT_ALIGNOF_CORBA_SHORT); DEF_TC_BASIC(boolean, ORBIT_ALIGNOF_CORBA_BOOLEAN); DEF_TC_BASIC(octet, ORBIT_ALIGNOF_CORBA_OCTET); DEF_TC_BASIC(any, ORBIT_ALIGNOF_CORBA_ANY); DEF_TC_BASIC(TypeCode, ORBIT_ALIGNOF_CORBA_POINTER); DEF_TC_BASIC(Principal, 1); /* Hmm */ DEF_TC_BASIC(Object, ORBIT_ALIGNOF_CORBA_POINTER); DEF_TC_BASIC(wstring, ORBIT_ALIGNOF_CORBA_POINTER); DEF_TC_BASIC(long_double, ORBIT_ALIGNOF_CORBA_LONG_DOUBLE); DEF_TC_BASIC(long_long, ORBIT_ALIGNOF_CORBA_LONG_LONG); DEF_TC_BASIC(unsigned_long_long, ORBIT_ALIGNOF_CORBA_LONG_LONG); static void tc_enc_tk_objref(CORBA_TypeCode t, GIOPSendBuffer *c, TCEncodeContext* ctx) { CDR_put_string (c, t->repo_id); CDR_put_string (c, t->name); } static void tc_enc_tk_sequence(CORBA_TypeCode t, GIOPSendBuffer *c, TCEncodeContext* ctx) { tc_enc (*t->subtypes, c, ctx); CDR_put_ulong (c, t->length); } static void tc_enc_tk_string(CORBA_TypeCode t, GIOPSendBuffer *c, TCEncodeContext* ctx) { CDR_put_ulong(c, t->length); } static void tc_enc_tk_struct(CORBA_TypeCode t, GIOPSendBuffer *c, TCEncodeContext* ctx) { CORBA_unsigned_long i; CDR_put_string(c, t->repo_id); CDR_put_string(c, t->name); CDR_put_ulong(c, t->sub_parts); for(i = 0; i < t->sub_parts; i++) { CDR_put_string (c, t->subnames [i]); tc_enc (t->subtypes [i], c, ctx); } } static void tc_enc_tk_union (CORBA_TypeCode t, GIOPSendBuffer *c, TCEncodeContext *ctx) { CORBA_unsigned_long i; CDR_put_string (c, t->repo_id); CDR_put_string (c, t->name); tc_enc (t->discriminator, c, ctx); CDR_put_long (c, t->default_index); CDR_put_ulong (c, t->sub_parts); i = t->sub_parts; #define MEMBER_LOOPER_ENC(putname, typename, tkname) \ case CORBA_tk_##tkname: \ for(i = 0; i < t->sub_parts; i++) { \ CORBA_##typename tmp; \ tmp = (CORBA_##typename) t->sublabels [i]; \ CDR_put_##putname (c, tmp); \ CDR_put_string (c, t->subnames [i]); \ tc_enc (t->subtypes [i], c, ctx); \ } \ break #define UNION_MEMBERS(dir) \ MEMBER_LOOPER_##dir(ulong, long, long); \ case CORBA_tk_enum: /* fall through */ \ MEMBER_LOOPER_##dir(ulong, unsigned_long, ulong); \ MEMBER_LOOPER_##dir(octet, boolean, boolean); \ MEMBER_LOOPER_##dir(octet, char, char); \ MEMBER_LOOPER_##dir(ushort, short, short); \ MEMBER_LOOPER_##dir(ushort, unsigned_short, ushort); \ MEMBER_LOOPER_##dir(ulong_long, long_long, longlong); \ MEMBER_LOOPER_##dir(ulong_long, unsigned_long_long, ulonglong); \ MEMBER_LOOPER_##dir(wchar, wchar, wchar); switch (t->discriminator->kind) { UNION_MEMBERS (ENC); default: g_error ("tc_enc_tk_union: Illegal union discriminator " "type %s\n", t->discriminator->name); break; } } static void tc_enc_tk_enum(CORBA_TypeCode t, GIOPSendBuffer *c, TCEncodeContext* ctx) { CORBA_unsigned_long i; CDR_put_string(c, t->repo_id); CDR_put_string(c, t->name); CDR_put_ulong(c, t->sub_parts); for(i=0;isub_parts;i++) CDR_put_string(c, t->subnames[i]); } static void tc_enc_tk_alias(CORBA_TypeCode t, GIOPSendBuffer *c, TCEncodeContext* ctx) { CDR_put_string(c, t->repo_id); CDR_put_string(c, t->name); tc_enc(*t->subtypes, c, ctx); } static void tc_enc_tk_except(CORBA_TypeCode t, GIOPSendBuffer *c, TCEncodeContext* ctx) { gulong i; CDR_put_string(c, t->repo_id); CDR_put_string(c, t->name); CDR_put_ulong(c, t->sub_parts); for(i=0;isub_parts;i++){ CDR_put_string(c, t->subnames[i]); tc_enc(t->subtypes[i], c, ctx); } } static void tc_enc_tk_array(CORBA_TypeCode t, GIOPSendBuffer *c, TCEncodeContext* ctx) { tc_enc(*t->subtypes, c, ctx); CDR_put_ulong(c, t->length); } static void tc_enc_tk_wstring(CORBA_TypeCode t, GIOPSendBuffer *c, TCEncodeContext* ctx) { CDR_put_ulong(c, t->length); } static void tc_enc_tk_fixed(CORBA_TypeCode t, GIOPSendBuffer *c, TCEncodeContext* ctx) { CDR_put_ushort(c, t->digits); CDR_put_short(c, t->scale); } static void ORBit_TypeCode_free_fn (ORBit_RootObject obj_in) { CORBA_TypeCode tc = (CORBA_TypeCode) obj_in; int i; g_free ((char*)(tc->name)); g_free ((char*)(tc->repo_id)); for (i = 0; i < tc->sub_parts; i++) { if (tc->subnames) g_free ((char*)(tc->subnames [i])); if (tc->subtypes) ORBit_RootObject_release_T (tc->subtypes [i]); } g_free (tc->subnames); g_free (tc->subtypes); g_free (tc->sublabels); if (tc->discriminator) ORBit_RootObject_release_T (tc->discriminator); p_free (tc, struct CORBA_TypeCode_struct); } static gboolean CDR_get (GIOPRecvBuffer *buf, guchar *ptr, guint len) { buf->cur = ALIGN_ADDRESS (buf->cur, len); if ((buf->cur + len) > buf->end) return TRUE; memcpy (ptr, buf->cur, len); if (len != 1 && giop_msg_conversion_needed (buf)) switch (len) { case 2: *(guint16 *)ptr = GUINT16_SWAP_LE_BE (*(guint16 *)ptr); break; case 4: *(guint32 *)ptr = GUINT32_SWAP_LE_BE (*(guint32 *)ptr); break; case 8: *(guint64 *)ptr = GUINT64_SWAP_LE_BE (*(guint64 *)ptr); break; default: g_assert_not_reached (); break; } buf->cur += len; return FALSE; } #define CDR_get_ulong(x, y) CDR_get(x, (guchar *)y, 4) #define CDR_get_ushort(x, y) CDR_get(x, (guchar *)y, 2) #define CDR_get_short(x, y) CDR_get(x, (guchar *)y, 2) #define CDR_get_ulong_long(x, y) CDR_get(x, (guchar *)y, 8) #define CDR_get_octet(x, y) CDR_get(x, (guchar *)y, 1) #define CDR_get_wchar(x, y) CDR_get(x, (guchar *)y, 2) static gboolean CDR_get_const_string(GIOPRecvBuffer *buf, char **ptr) { CORBA_unsigned_long len; if(CDR_get_ulong(buf, &len)) return TRUE; if((buf->cur + len) > buf->end || (buf->cur + len) < buf->cur) return TRUE; *ptr = g_memdup(buf->cur, len); buf->cur += len; return FALSE; } static CORBA_short ORBit_TC_find_c_alignment (CORBA_TypeCode tc) { CORBA_short retval = 1; int i; while (tc->kind == CORBA_tk_alias) tc = tc->subtypes[0]; switch(tc->kind) { case CORBA_tk_union: retval = MAX (retval, ORBit_TC_find_c_alignment (tc->discriminator)); case CORBA_tk_except: case CORBA_tk_struct: #if ORBIT_ALIGNOF_CORBA_STRUCT > 1 retval = MAX (retval, ORBIT_ALIGNOF_CORBA_STRUCT); #endif for(i = 0; i < tc->sub_parts; i++) retval = MAX (retval, ORBit_TC_find_c_alignment (tc->subtypes[i])); return retval; case CORBA_tk_ulong: case CORBA_tk_long: case CORBA_tk_enum: return ORBIT_ALIGNOF_CORBA_LONG; case CORBA_tk_ushort: case CORBA_tk_short: case CORBA_tk_wchar: return ORBIT_ALIGNOF_CORBA_SHORT; case CORBA_tk_longlong: case CORBA_tk_ulonglong: return ORBIT_ALIGNOF_CORBA_LONG_LONG; case CORBA_tk_float: return ORBIT_ALIGNOF_CORBA_FLOAT; case CORBA_tk_double: return ORBIT_ALIGNOF_CORBA_DOUBLE; case CORBA_tk_longdouble: return ORBIT_ALIGNOF_CORBA_LONG_DOUBLE; case CORBA_tk_boolean: case CORBA_tk_char: case CORBA_tk_octet: return ORBIT_ALIGNOF_CORBA_CHAR; case CORBA_tk_string: case CORBA_tk_wstring: case CORBA_tk_TypeCode: case CORBA_tk_objref: return ORBIT_ALIGNOF_CORBA_POINTER; case CORBA_tk_sequence: return ORBIT_ALIGNOF_CORBA_SEQ; case CORBA_tk_any: return ORBIT_ALIGNOF_CORBA_ANY; case CORBA_tk_array: return ORBit_TC_find_c_alignment (tc->subtypes[0]); case CORBA_tk_fixed: return ORBIT_ALIGNOF_CORBA_FIXED; default: return 1; } } static gboolean tc_dec_tk_objref (CORBA_TypeCode t, GIOPRecvBuffer *c, TCDecodeContext* ctx) { if (CDR_get_const_string (c, &t->repo_id)) return TRUE; if (CDR_get_const_string (c, &t->name)) return TRUE; return FALSE; } static gboolean tc_dec_tk_sequence (CORBA_TypeCode t, GIOPRecvBuffer *c, TCDecodeContext* ctx) { t->subtypes = g_new0 (CORBA_TypeCode, 1); if (tc_dec (&t->subtypes[0], c, ctx)) return TRUE; t->sub_parts = 1; if (CDR_get_ulong (c, &t->length)) return TRUE; return FALSE; } static gboolean tc_dec_tk_string (CORBA_TypeCode t, GIOPRecvBuffer *c, TCDecodeContext* ctx) { if (CDR_get_ulong (c, &t->length)) return TRUE; return FALSE; } static gboolean tc_dec_tk_struct (CORBA_TypeCode t, GIOPRecvBuffer *c, TCDecodeContext* ctx) { CORBA_unsigned_long i; if (CDR_get_const_string (c, &t->repo_id)) return TRUE; if (CDR_get_const_string (c, &t->name)) return TRUE; if (CDR_get_ulong (c, &t->sub_parts)) return TRUE; t->subnames = g_new0 (char*, t->sub_parts); t->subtypes = g_new0 (CORBA_TypeCode, t->sub_parts); for (i = 0; i < t->sub_parts; i++) { if (CDR_get_const_string (c, &t->subnames [i])) return TRUE; if (tc_dec (&t->subtypes [i], c, ctx)) return TRUE; } return FALSE; } static gboolean tc_dec_tk_union (CORBA_TypeCode t, GIOPRecvBuffer *c, TCDecodeContext* ctx) { CORBA_unsigned_long i; if (CDR_get_const_string (c, &t->repo_id)) return TRUE; if (CDR_get_const_string (c, &t->name)) return TRUE; if (tc_dec (&t->discriminator, c, ctx)) return TRUE; if (CDR_get_ulong (c, &t->default_index)) return TRUE; if (CDR_get_ulong (c, &t->sub_parts)) return TRUE; t->sublabels = g_new0 (CORBA_long, t->sub_parts); t->subnames = g_new0 (char *, t->sub_parts); t->subtypes = g_new0 (CORBA_TypeCode, t->sub_parts); #define MEMBER_LOOPER_DEC(getname, typename, tkname) \ case CORBA_tk_##tkname: \ for(i = 0; i < t->sub_parts; i++){ \ CORBA_##typename tmp; \ if (CDR_get_##getname (c, &tmp)) \ return TRUE; \ t->sublabels [i] = (CORBA_long) tmp; \ if (CDR_get_const_string (c, &t->subnames[i])) \ return TRUE; \ if (tc_dec (&t->subtypes[i], c, ctx)) \ return TRUE; \ } \ break switch (t->discriminator->kind) { UNION_MEMBERS (DEC); default: /* XXX: what is correct error handling? */ g_error("Don't know how to handle this type (%d) of discriminator.", t->discriminator->kind); } return FALSE; } static gboolean tc_dec_tk_enum (CORBA_TypeCode t, GIOPRecvBuffer *c, TCDecodeContext* ctx) { CORBA_unsigned_long i; if (CDR_get_const_string (c, &t->repo_id)) return TRUE; if (CDR_get_const_string (c, &t->name)) return TRUE; if (CDR_get_ulong (c, &t->sub_parts)) return TRUE; t->subnames = g_new0 (char*, t->sub_parts); for(i = 0; i < t->sub_parts; i++) { if (CDR_get_const_string (c, &t->subnames[i])) return TRUE; } return FALSE; } static gboolean tc_dec_tk_alias (CORBA_TypeCode t, GIOPRecvBuffer *c, TCDecodeContext* ctx) { CDR_get_const_string (c, &t->repo_id); CDR_get_const_string (c, &t->name); t->subtypes = g_new0 (CORBA_TypeCode, 1); if (tc_dec (t->subtypes, c, ctx)) return TRUE; t->sub_parts = 1; return FALSE; } static gboolean tc_dec_tk_except (CORBA_TypeCode t, GIOPRecvBuffer *c, TCDecodeContext* ctx) { gulong i; if (CDR_get_const_string (c, &t->repo_id)) return TRUE; if (CDR_get_const_string (c, &t->name)) return TRUE; if (CDR_get_ulong (c, &t->sub_parts)) return TRUE; t->subtypes = g_new0 (CORBA_TypeCode, t->sub_parts); t->subnames = g_new0 (char *, t->sub_parts); for (i = 0; i < t->sub_parts; i++) { if (CDR_get_const_string (c, &t->subnames[i])) return TRUE; if (tc_dec (&t->subtypes[i], c, ctx)) return TRUE; } return FALSE; } static gboolean tc_dec_tk_array (CORBA_TypeCode t, GIOPRecvBuffer *c, TCDecodeContext* ctx) { t->subtypes = g_new (CORBA_TypeCode, 1); if (tc_dec (t->subtypes, c, ctx)) return TRUE; t->sub_parts = 1; if (CDR_get_ulong (c, &t->length)) return TRUE; return FALSE; } static gboolean tc_dec_tk_wstring (CORBA_TypeCode t, GIOPRecvBuffer *c, TCDecodeContext* ctx) { if (CDR_get_ulong (c, &t->length)) return TRUE; return FALSE; } static gboolean tc_dec_tk_fixed(CORBA_TypeCode t, GIOPRecvBuffer *c, TCDecodeContext* ctx) { if (CDR_get_ushort (c, &t->digits)) return TRUE; if (CDR_get_short (c, &t->scale)) return TRUE; return FALSE; } /* FIXME: Right now this function doesn't record whether or not it has already visited a given TypeCode. I'm not sure if every recursive type will have a tk_recursive node in it; if not, then this will need to be reworked a bit. */ static CORBA_boolean typecode_equiv_internal (CORBA_TypeCode obj, CORBA_TypeCode tc, gboolean strict_equal, CORBA_Environment *ev) { int i; g_return_val_if_fail (tc != NULL, CORBA_FALSE); g_return_val_if_fail (obj != NULL, CORBA_FALSE); if (!strict_equal) { while (obj->kind == CORBA_tk_alias) obj = obj->subtypes [0]; while (tc->kind == CORBA_tk_alias) tc = tc->subtypes [0]; } if (obj->kind != tc->kind) return CORBA_FALSE; switch (obj->kind) { case CORBA_tk_wstring: case CORBA_tk_string: return obj->length == tc->length; case CORBA_tk_objref: return ! strcmp (obj->repo_id, tc->repo_id); case CORBA_tk_except: case CORBA_tk_struct: if (strcmp (obj->repo_id, tc->repo_id) || obj->sub_parts != tc->sub_parts) return CORBA_FALSE; for (i = 0; i < obj->sub_parts; ++i) if (! typecode_equiv_internal (obj->subtypes[i], tc->subtypes[i], strict_equal, ev)) return CORBA_FALSE; break; case CORBA_tk_union: if (strcmp (obj->repo_id, tc->repo_id) || obj->sub_parts != tc->sub_parts || ! typecode_equiv_internal (obj->discriminator, tc->discriminator, strict_equal, ev) || obj->default_index != tc->default_index) return CORBA_FALSE; for (i = 0; i < obj->sub_parts; ++i) if (! typecode_equiv_internal (obj->subtypes[i], tc->subtypes[i], strict_equal, ev) || obj->sublabels [i] != tc->sublabels [i]) return CORBA_FALSE; break; case CORBA_tk_enum: if (obj->sub_parts != tc->sub_parts || strcmp (obj->repo_id, tc->repo_id)) return CORBA_FALSE; for (i = 0; i < obj->sub_parts; ++i) if (strcmp (obj->subnames[i], tc->subnames[i])) return CORBA_FALSE; break; case CORBA_tk_sequence: case CORBA_tk_array: if (obj->length != tc->length) return CORBA_FALSE; g_assert (obj->sub_parts == 1); g_assert (tc->sub_parts == 1); return typecode_equiv_internal (obj->subtypes[0], tc->subtypes[0], strict_equal, ev); case CORBA_tk_alias: if (strcmp (obj->repo_id, tc->repo_id)) return CORBA_FALSE; g_assert (obj->sub_parts == 1); g_assert (tc->sub_parts == 1); return typecode_equiv_internal (obj->subtypes[0], tc->subtypes[0], strict_equal, ev); break; case CORBA_tk_recursive: return obj->recurse_depth == tc->recurse_depth; case CORBA_tk_fixed: return obj->digits == tc->digits && obj->scale == tc->scale; default: /* Everything else is primitive. */ break; } return CORBA_TRUE; } CORBA_boolean CORBA_TypeCode_equal (CORBA_TypeCode obj, const CORBA_TypeCode tc, CORBA_Environment *ev) { return typecode_equiv_internal (obj, tc, TRUE, ev); } CORBA_boolean CORBA_TypeCode_equivalent (CORBA_TypeCode obj, const CORBA_TypeCode tc, CORBA_Environment *ev) { return typecode_equiv_internal (obj, tc, FALSE, ev); } CORBA_TypeCode CORBA_TypeCode_get_compact_typecode (CORBA_TypeCode typecode, CORBA_Environment *ev) { /* FIXME: implement */ CORBA_exception_set_system ( ev, ex_CORBA_NO_IMPLEMENT, CORBA_COMPLETED_NO); return CORBA_OBJECT_NIL; } CORBA_TCKind CORBA_TypeCode_kind (CORBA_TypeCode typecode, CORBA_Environment *ev) { return typecode->kind; } CORBA_RepositoryId CORBA_TypeCode_id (CORBA_TypeCode typecode, CORBA_Environment *ev) { if (!(typecode->kind == CORBA_tk_objref || typecode->kind == CORBA_tk_value || typecode->kind == CORBA_tk_value_box || typecode->kind == CORBA_tk_abstract_interface || typecode->kind == CORBA_tk_native || typecode->kind == CORBA_tk_struct || typecode->kind == CORBA_tk_union || typecode->kind == CORBA_tk_enum || typecode->kind == CORBA_tk_alias || typecode->kind == CORBA_tk_except)) { CORBA_exception_set ( ev, CORBA_USER_EXCEPTION, "IDL:omg.org/CORBA/TypeCode/BadKind/1.0", NULL); return NULL; } return CORBA_string_dup (typecode->repo_id); } CORBA_Identifier CORBA_TypeCode_name (CORBA_TypeCode typecode, CORBA_Environment *ev) { if (!(typecode->kind == CORBA_tk_objref || typecode->kind == CORBA_tk_struct || typecode->kind == CORBA_tk_union || typecode->kind == CORBA_tk_enum || typecode->kind == CORBA_tk_alias || typecode->kind == CORBA_tk_abstract_interface || typecode->kind == CORBA_tk_value || typecode->kind == CORBA_tk_value_box || typecode->kind == CORBA_tk_native || typecode->kind == CORBA_tk_except)) { CORBA_exception_set ( ev, CORBA_USER_EXCEPTION, "IDL:omg.org/CORBA/TypeCode/BadKind/1.0", NULL); return NULL; } return CORBA_string_dup (typecode->name); } CORBA_unsigned_long CORBA_TypeCode_member_count (CORBA_TypeCode typecode, CORBA_Environment *ev) { if (!(typecode->kind == CORBA_tk_struct || typecode->kind == CORBA_tk_union || typecode->kind == CORBA_tk_value || typecode->kind == CORBA_tk_enum || typecode->kind == CORBA_tk_except)) { CORBA_exception_set ( ev, CORBA_USER_EXCEPTION, "IDL:omg.org/CORBA/TypeCode/BadKind/1.0", NULL); return 0; } return typecode->sub_parts; } CORBA_Identifier CORBA_TypeCode_member_name (CORBA_TypeCode typecode, const CORBA_unsigned_long index, CORBA_Environment *ev) { if (!(typecode->kind == CORBA_tk_struct || typecode->kind == CORBA_tk_union || typecode->kind == CORBA_tk_value || typecode->kind == CORBA_tk_enum || typecode->kind == CORBA_tk_except)) { CORBA_exception_set ( ev, CORBA_USER_EXCEPTION, "IDL:omg.org/CORBA/TypeCode/BadKind/1.0", NULL); return NULL; } if (index > typecode->sub_parts) { CORBA_exception_set ( ev, CORBA_USER_EXCEPTION, "IDL:omg.org/CORBA/TypeCode/Bounds/1.0", NULL); return NULL; } return CORBA_string_dup (typecode->subnames [index]); } CORBA_TypeCode CORBA_TypeCode_member_type (CORBA_TypeCode typecode, const CORBA_unsigned_long index, CORBA_Environment *ev) { if (!(typecode->kind == CORBA_tk_struct || typecode->kind == CORBA_tk_union || typecode->kind == CORBA_tk_value || typecode->kind == CORBA_tk_enum || typecode->kind == CORBA_tk_except)) { CORBA_exception_set ( ev, CORBA_USER_EXCEPTION, "IDL:omg.org/CORBA/TypeCode/BadKind/1.0", NULL); return NULL; } if (index > typecode->sub_parts) { CORBA_exception_set ( ev, CORBA_USER_EXCEPTION, "IDL:omg.org/CORBA/TypeCode/Bounds/1.0", NULL); return NULL; } return ORBit_RootObject_duplicate (typecode->subtypes [index]); } CORBA_any * CORBA_TypeCode_member_label (CORBA_TypeCode typecode, const CORBA_unsigned_long index, CORBA_Environment *ev) { CORBA_any *retval; if (typecode->kind != CORBA_tk_union) { CORBA_exception_set ( ev, CORBA_USER_EXCEPTION, "IDL:omg.org/CORBA/TypeCode/BadKind/1.0", NULL); return NULL; } if (index > typecode->sub_parts) { CORBA_exception_set ( ev, CORBA_USER_EXCEPTION, "IDL:omg.org/CORBA/TypeCode/Bounds/1.0", NULL); return NULL; } retval = CORBA_any__alloc (); retval->_type = ORBit_RootObject_duplicate (typecode->discriminator); retval->_value = ORBit_copy_value (&typecode->sublabels [index], typecode->discriminator); retval->_release = CORBA_TRUE; return retval; } CORBA_TypeCode CORBA_TypeCode_discriminator_type (CORBA_TypeCode typecode, CORBA_Environment *ev) { if (typecode->kind != CORBA_tk_union) { CORBA_exception_set ( ev, CORBA_USER_EXCEPTION, "IDL:omg.org/CORBA/TypeCode/BadKind/1.0", NULL); return NULL; } return ORBit_RootObject_duplicate (typecode->discriminator); } CORBA_long CORBA_TypeCode_default_index (CORBA_TypeCode typecode, CORBA_Environment *ev) { if (typecode->kind != CORBA_tk_union) { CORBA_exception_set ( ev, CORBA_USER_EXCEPTION, "IDL:omg.org/CORBA/TypeCode/BadKind/1.0", NULL); return 0; } return typecode->default_index; } CORBA_unsigned_long CORBA_TypeCode_length (CORBA_TypeCode typecode, CORBA_Environment *ev) { if (!(typecode->kind == CORBA_tk_string || typecode->kind == CORBA_tk_wstring || typecode->kind == CORBA_tk_sequence || typecode->kind == CORBA_tk_array)) { CORBA_exception_set ( ev, CORBA_USER_EXCEPTION, "IDL:omg.org/CORBA/TypeCode/BadKind/1.0", NULL); return 0; } return typecode->length; } CORBA_TypeCode CORBA_TypeCode_content_type (CORBA_TypeCode typecode, CORBA_Environment *ev) { if (!(typecode->kind == CORBA_tk_sequence || typecode->kind == CORBA_tk_array || typecode->kind == CORBA_tk_value_box || typecode->kind == CORBA_tk_alias)) { CORBA_exception_set ( ev, CORBA_USER_EXCEPTION, "IDL:omg.org/CORBA/TypeCode/BadKind/1.0", NULL); return NULL; } g_assert (typecode->sub_parts == 1); return ORBit_RootObject_duplicate (typecode->subtypes [0]); } CORBA_unsigned_short CORBA_TypeCode_fixed_digits (CORBA_TypeCode typecode, CORBA_Environment *ev) { if (typecode->kind != CORBA_tk_fixed) { CORBA_exception_set ( ev, CORBA_USER_EXCEPTION, "IDL:omg.org/CORBA/TypeCode/BadKind/1.0", NULL); return 0; } return typecode->digits; } CORBA_short CORBA_TypeCode_fixed_scale (CORBA_TypeCode typecode, CORBA_Environment *ev) { if (typecode->kind != CORBA_tk_fixed) { CORBA_exception_set ( ev, CORBA_USER_EXCEPTION, "IDL:omg.org/CORBA/TypeCode/BadKind/1.0", NULL); return 0; } return typecode->scale; } CORBA_Visibility CORBA_TypeCode_member_visibility (CORBA_TypeCode typecode, const CORBA_unsigned_long index, CORBA_Environment *ev) { /* FIXME: implement */ CORBA_exception_set_system ( ev, ex_CORBA_NO_IMPLEMENT, CORBA_COMPLETED_NO); return 0; } CORBA_ValueModifier CORBA_TypeCode_type_modifier (CORBA_TypeCode typecode, CORBA_Environment *ev) { /* FIXME: implement */ CORBA_exception_set_system ( ev, ex_CORBA_NO_IMPLEMENT, CORBA_COMPLETED_NO); return 0; } CORBA_TypeCode CORBA_TypeCode_concrete_base_type (CORBA_TypeCode typecode, CORBA_Environment *ev) { /* FIXME: implement */ CORBA_exception_set_system ( ev, ex_CORBA_NO_IMPLEMENT, CORBA_COMPLETED_NO); return CORBA_OBJECT_NIL; } const char * ORBit_tk_to_name (CORBA_unsigned_long tk) { #define CSE(a, b) \ case CORBA_tk_ ## a: return b; switch (tk) { CSE (null, "null"); CSE (void, "void"); CSE (short, "short"); CSE (long, "long"); CSE (ushort, "ushort"); CSE (ulong, "ulong"); CSE (float, "float"); CSE (double, "double"); CSE (boolean, "boolean"); CSE (char, "char"); CSE (octet, "octet"); CSE (any, "any"); CSE (TypeCode, "TypeCode"); CSE (Principal, "Principal"); CSE (objref, "objref"); CSE (struct, "struct"); CSE (union, "union"); CSE (enum, "enum"); CSE (string, "string"); CSE (sequence, "sequence"); CSE (array, "array"); CSE (alias, "alias"); CSE (except, "except"); CSE (longlong, "longlong"); CSE (ulonglong, "ulonglong"); CSE (longdouble, "longdouble"); CSE (wchar, "wchar"); CSE (wstring, "wstring"); CSE (fixed, "fixed"); CSE (value, "value"); CSE (value_box, "value_box"); CSE (native, "native"); CSE (abstract_interface, "abstract_interface"); default: return "Invalid type"; } } static const TkInfo tk_info[CORBA_tk_last]= { { TK_EMPTY, NULL, NULL, TC_null }, /* tk_null */ { TK_EMPTY, NULL, NULL, TC_void }, /* tk_void */ { TK_EMPTY, NULL, NULL, TC_CORBA_short }, /* tk_short */ { TK_EMPTY, NULL, NULL, TC_CORBA_long }, /* tk_long */ { TK_EMPTY, NULL, NULL, TC_CORBA_unsigned_short }, /* tk_ushort */ { TK_EMPTY, NULL, NULL, TC_CORBA_unsigned_long }, /* tk_ulong */ { TK_EMPTY, NULL, NULL, TC_CORBA_float }, /* tk_float */ { TK_EMPTY, NULL, NULL, TC_CORBA_double }, /* tk_double */ { TK_EMPTY, NULL, NULL, TC_CORBA_boolean }, /* tk_boolean */ { TK_EMPTY, NULL, NULL, TC_CORBA_char }, /* tk_char */ { TK_EMPTY, NULL, NULL, TC_CORBA_octet }, /* tk_octet */ { TK_EMPTY, NULL, NULL, TC_CORBA_any }, /* tk_any */ { TK_EMPTY, NULL, NULL, TC_CORBA_TypeCode }, /* tk_TypeCode */ { TK_EMPTY, NULL, NULL, TC_CORBA_Principal }, /* tk_Principal */ { TK_COMPLEX, tc_enc_tk_objref, tc_dec_tk_objref }, /* tk_objref */ { TK_COMPLEX, tc_enc_tk_struct, tc_dec_tk_struct }, /* tk_struct */ { TK_COMPLEX, tc_enc_tk_union, tc_dec_tk_union }, /* tk_union */ { TK_COMPLEX, tc_enc_tk_enum, tc_dec_tk_enum }, /* tk_enum */ { TK_SIMPLE, tc_enc_tk_string, tc_dec_tk_string }, /* tk_string */ { TK_COMPLEX, tc_enc_tk_sequence, tc_dec_tk_sequence }, /* tk_sequence */ { TK_COMPLEX, tc_enc_tk_array, tc_dec_tk_array }, /* tk_array */ { TK_COMPLEX, tc_enc_tk_alias, tc_dec_tk_alias }, /* tk_alias */ { TK_COMPLEX, tc_enc_tk_except, tc_dec_tk_except }, /* tk_except */ { TK_EMPTY, NULL, NULL, TC_CORBA_long_long}, /* tk_longlong */ { TK_EMPTY, NULL, NULL, TC_CORBA_unsigned_long_long }, /* tk_ulonglong */ { TK_EMPTY, NULL, NULL, TC_CORBA_long_double }, /* tk_longdouble */ { TK_EMPTY, NULL, NULL, TC_CORBA_wchar }, /* tk_wchar */ { TK_SIMPLE, tc_enc_tk_wstring, tc_dec_tk_wstring}, /* tk_wstring */ { TK_SIMPLE, tc_enc_tk_fixed, tc_dec_tk_fixed} /* tk_fixed */ }; ORBIT2_MAYBE_CONST ORBit_RootObject_Interface ORBit_TypeCode_epv = { ORBIT_ROT_TYPECODE, ORBit_TypeCode_free_fn }; static gboolean tc_dec (CORBA_TypeCode *t, GIOPRecvBuffer *c, TCDecodeContext *ctx) { guint tmp_index; const TkInfo *info; CORBA_TCKind kind; GIOPRecvBuffer *encaps; TCRecursionNode *node; CORBA_unsigned_long lkind; if (CDR_get_ulong (c, &lkind)) return TRUE; kind = lkind; if (lkind >= CORBA_tk_last) { CORBA_long offset; GSList *l; if (lkind != CORBA_tk_recursive) { g_warning ("%s: invalid CORBA_TCKind, lkind=%lu", G_STRFUNC, (unsigned long int) lkind); return TRUE; } if (CDR_get_ulong (c, &offset)) return TRUE; for (l = ctx->prior_tcs; l; l = l->next) { node = l->data; if (offset == node->index - ctx->current_idx - get_rptr (c)) { *t = ORBit_RootObject_duplicate (node->tc); return FALSE; } /* else g_warning ("back tc mismactch '%d' == '%d - %d - %d' = '%d' Tk %d", offset, node->index, ctx->current_idx, get_rptr (c), node->index - ctx->current_idx - get_rptr (c), node->tc->kind);*/ } /* FIXME: we should handle this slightly gracefully */ g_error ("tc_dec: Invalid CORBA_TypeCode recursion " "offset in input buffer\n"); g_assert_not_reached (); } g_assert (kind < CORBA_tk_last); node = g_new (TCRecursionNode, 1); node->index = ctx->current_idx + get_rptr(c) - 4; /* -4 for the TCKind */ info = &tk_info [kind]; if (info->type == TK_EMPTY) node->tc = info->basic_type; else { CORBA_TypeCode tc; tc = g_new0 (struct CORBA_TypeCode_struct, 1); ORBit_RootObject_init (&tc->parent, &ORBit_TypeCode_epv); ORBit_RootObject_duplicate (tc); tc->kind = kind; switch (info->type) { case TK_EMPTY: g_assert_not_reached (); break; case TK_COMPLEX: tmp_index = ctx->current_idx; ctx->current_idx += get_rptr (c) + 4; /* NB. the encaps buffer is for data validation */ encaps = giop_recv_buffer_use_encaps_buf (c); info->decoder (tc, encaps, ctx); ctx->current_idx = tmp_index; giop_recv_buffer_unuse (encaps); break; case TK_SIMPLE: info->decoder (tc, c, ctx); break; } tc->c_align = ORBit_TC_find_c_alignment (tc); node->tc = tc; } *t = node->tc; ctx->prior_tcs = g_slist_prepend (ctx->prior_tcs, node); return FALSE; } gboolean ORBit_decode_CORBA_TypeCode (CORBA_TypeCode *tc, GIOPRecvBuffer *buf) { GSList *l; gboolean retval; TCDecodeContext ctx; ctx.current_idx = 0; ctx.prior_tcs = NULL; retval = tc_dec (tc, buf, &ctx); for (l = ctx.prior_tcs; l; l = l->next) g_free (l->data); g_slist_free (ctx.prior_tcs); return retval; } /* Encode a typecode to a codec, possibly recursively */ static void tc_enc (CORBA_TypeCode tc, GIOPSendBuffer *buf, TCEncodeContext *ctx) { TCRecursionNode *node; const TkInfo *info; GSList *l; CORBA_unsigned_long len, tmp; guchar *marker; gint8 endianness; g_assert (CLAMP (0, tc->kind, CORBA_tk_last) == tc->kind); giop_send_buffer_align (buf, 4); info = &tk_info [tc->kind]; /* For base types it is better to marshal just the tc->kind */ if (info->type != TK_EMPTY) { for (l = ctx->prior_tcs; l; l = l->next) { node = l->data; if (node->tc == tc) { tmp = CORBA_tk_recursive; giop_send_buffer_append_aligned (buf, &tmp, 4); len = node->index - buf->msg.header.message_size - 4; giop_send_buffer_append_aligned (buf, &len, 4); return; } } /* only keep track of larger, more complex typecodes */ node = g_new (TCRecursionNode, 1); node->tc = tc; node->index = buf->msg.header.message_size; ctx->prior_tcs = g_slist_prepend (ctx->prior_tcs, node); } giop_send_buffer_append (buf, &tc->kind, sizeof (tc->kind)); switch (info->type) { case TK_EMPTY: break; case TK_COMPLEX: marker = giop_send_buffer_append_aligned (buf, NULL, 4); tmp = buf->msg.header.message_size; endianness = GIOP_FLAG_ENDIANNESS; giop_send_buffer_append (buf, &endianness, 1); info->encoder (tc, buf, ctx); len = buf->msg.header.message_size - tmp; memcpy (marker, &len, 4); break; case TK_SIMPLE: info->encoder (tc, buf, ctx); break; } } void ORBit_encode_CORBA_TypeCode (CORBA_TypeCode tc, GIOPSendBuffer *buf) { GSList *l; TCEncodeContext ctx; ctx.start_idx = buf->msg.header.message_size; ctx.prior_tcs = NULL; tc_enc (tc, buf, &ctx); for (l = ctx.prior_tcs; l; l = l->next) g_free (l->data); g_slist_free (ctx.prior_tcs); } ORBit2-2.14.19/src/orb/orb-core/allocators.c0000644000175000001440000002047311334247617015254 00000000000000#include "config.h" #include #include #include "orb-core-private.h" /*** The argument {mem} is a chuck of memory described by {tc}, and its contents is freed, but {mem} itself is not freed. That is, if {mem} contains anything interesting (objrefs, pointers), they are freed. A pointer to the end of {mem} is returned. This should always be the same as {mem + ORBit_gather_alloc_info(tc)}. Also, any pointers within {mem} are zeroed; thus it should be safe to call this function multiple times on the same chunk of memory. This function is a modified version of ORBit_free_via_TypeCode(). Aside from the arguments, the bigest difference is that this does not free the {tc} which is passed in. The old style led to a lot of pointless dups, and also failed miserably when arrays of things were allocated. **/ static gpointer ORBit_freekids_via_TypeCode_T (gpointer mem, CORBA_TypeCode tc) { int i; guchar *retval = NULL; CORBA_TypeCode subtc; /* g_warning ("Freeing via tc '%s' at %p", ORBit_tk_to_name (tc->kind), mem);*/ switch (tc->kind) { case CORBA_tk_any: { CORBA_any *pval = mem; if (pval->_release) ORBit_free_T (pval->_value); pval->_value = NULL; ORBit_RootObject_release_T (pval->_type); pval->_type = NULL; retval = (guchar *) (pval + 1); break; } case CORBA_tk_TypeCode: case CORBA_tk_objref: { CORBA_Object *pval = mem; ORBit_RootObject_release_T (*pval); *pval = NULL; retval = ((guchar *)mem) + sizeof (*pval); break; } case CORBA_tk_Principal: { CORBA_Principal *pval = mem; if (pval->_release) ORBit_free_T (pval->_buffer); pval->_buffer = NULL; retval = (guchar *)(pval + 1); break; } case CORBA_tk_except: case CORBA_tk_struct: mem = ALIGN_ADDRESS (mem, tc->c_align); for (i = 0; i < tc->sub_parts; i++) { subtc = tc->subtypes [i]; mem = ALIGN_ADDRESS (mem, subtc->c_align); mem = ORBit_freekids_via_TypeCode_T (mem, subtc); } mem = ALIGN_ADDRESS (mem, tc->c_align); retval = mem; break; case CORBA_tk_union: { int sz = 0; int al = 1; gconstpointer cmem; cmem = ALIGN_ADDRESS (mem, MAX (tc->discriminator->c_align, tc->c_align)); subtc = ORBit_get_union_tag (tc, &cmem, TRUE); for (i = 0; i < tc->sub_parts; i++) { al = MAX (al, tc->subtypes [i]->c_align); sz = MAX (sz, ORBit_gather_alloc_info (tc->subtypes [i])); } mem = ALIGN_ADDRESS (cmem, al); ORBit_freekids_via_TypeCode_T (mem, subtc); /* the end of the body (subtc) may not be the * same as the end of the union */ retval = ((guchar *)mem) + sz; break; } case CORBA_tk_wstring: case CORBA_tk_string: { CORBA_char **pval = mem; ORBit_free_T (*pval); *pval = NULL; retval = (guchar *)mem + sizeof (*pval); break; } case CORBA_tk_sequence: { CORBA_sequence_CORBA_octet *pval = mem; if (pval->_release) ORBit_free_T (pval->_buffer); pval->_buffer = NULL; retval = (guchar *)mem + sizeof(*pval); break; } case CORBA_tk_array: for (i = 0; i < tc->length; i++) mem = ORBit_freekids_via_TypeCode_T( mem, tc->subtypes[0]); retval = mem; break; case CORBA_tk_alias: retval = ORBit_freekids_via_TypeCode_T ( mem, tc->subtypes[0]); break; default: { gulong length; length = ORBit_gather_alloc_info (tc); retval = (guchar *) ALIGN_ADDRESS (mem, tc->c_align) + length; break; } } return retval; } gpointer ORBit_freekids_via_TypeCode (CORBA_TypeCode tc, gpointer mem) { gpointer ret; LINK_MUTEX_LOCK (ORBit_RootObject_lifecycle_lock); ret = ORBit_freekids_via_TypeCode_T (mem, tc); LINK_MUTEX_UNLOCK (ORBit_RootObject_lifecycle_lock); return ret; } void CORBA_free (gpointer mem) { ORBit_free (mem); } #define SHORT_PREFIX_LEN (MAX (sizeof (ORBitMemHow), \ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE)) #define LONG_PREFIX_LEN (sizeof (CORBA_long_double) > sizeof (ORBit_MemPrefix) ? \ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE : \ MAX (sizeof (ORBit_MemPrefix), \ sizeof (CORBA_long_double) + \ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE)) void ORBit_free_T (gpointer mem) { int i; guchar *x; CORBA_TypeCode tc; ORBitMemHow how; ORBit_MemPrefix *prefix; ORBit_Mem_free_fn free_fn; if (!mem) return; if ((gulong)mem & 0x1) { g_free ((guchar *)mem - 1); return; } how = *(((ORBitMemHow *) mem) - 1); switch (ORBIT_MEMHOW_HOW (how)) { case ORBIT_MEMHOW_TYPECODE: prefix = (ORBit_MemPrefix *) ((guchar *) mem - LONG_PREFIX_LEN); free_fn = (ORBit_Mem_free_fn) ORBit_freekids_via_TypeCode_T; tc = prefix->u.tc; break; case ORBIT_MEMHOW_FREEFNC: prefix = (ORBit_MemPrefix *) ((guchar *) mem - LONG_PREFIX_LEN); free_fn = prefix->u.free_fn; tc = NULL; break; case ORBIT_MEMHOW_SIMPLE: g_free ((guchar *)mem - SHORT_PREFIX_LEN); return; case ORBIT_MEMHOW_NONE: default: return; } how = ORBIT_MEMHOW_ELEMENTS (how); for (i = 0, x = mem; i < how; i++) x = free_fn (x, tc); g_free (prefix); if (tc) ORBit_RootObject_release_T (tc); } void ORBit_free (gpointer mem) { if (!mem) return; LINK_MUTEX_LOCK (ORBit_RootObject_lifecycle_lock); ORBit_free_T (mem); LINK_MUTEX_UNLOCK (ORBit_RootObject_lifecycle_lock); } CORBA_char * ORBit_alloc_string (size_t string_length) { guchar *mem; mem = g_malloc (string_length + 1); return (CORBA_char *)(mem + 1); } gpointer ORBit_alloc_simple (size_t block_size) { guchar *mem, *prefix; if (!block_size) return NULL; prefix = g_malloc (SHORT_PREFIX_LEN + block_size); mem = (guchar *) prefix + SHORT_PREFIX_LEN; *((ORBitMemHow *)mem - 1) = ORBIT_MEMHOW_SIMPLE; return mem; } gpointer ORBit_alloc_with_free_fn (size_t element_size, guint num_elements, ORBit_Mem_free_fn free_fn) { guchar *mem; ORBit_MemPrefix *prefix; if (!num_elements) return NULL; prefix = g_malloc (LONG_PREFIX_LEN + element_size * num_elements); prefix->u.free_fn = free_fn; mem = (guchar *) prefix + LONG_PREFIX_LEN; *((ORBitMemHow *)mem - 1) = ORBIT_MEMHOW_MAKE ( ORBIT_MEMHOW_FREEFNC, num_elements); return mem; } gpointer ORBit_alloc_tcval (CORBA_TypeCode tc, guint num_elements) { guchar *mem; guint element_size; ORBit_MemPrefix *prefix; if (!num_elements) return NULL; if (!(element_size = ORBit_gather_alloc_info (tc))) return NULL; prefix = g_malloc0 (LONG_PREFIX_LEN + element_size * num_elements); prefix->u.tc = ORBit_RootObject_duplicate (tc); mem = (guchar *)prefix + LONG_PREFIX_LEN; *((ORBitMemHow *)mem - 1) = ORBIT_MEMHOW_MAKE ( ORBIT_MEMHOW_TYPECODE, num_elements); return mem; } gpointer ORBit_realloc_tcval (gpointer old, CORBA_TypeCode tc, guint old_num_elements, guint num_elements) { guint element_size; ORBit_MemPrefix *prefix; guchar *mem; g_assert (num_elements > old_num_elements); if (!num_elements) return NULL; if (!old_num_elements && !old) return ORBit_alloc_tcval (tc, num_elements); if (!(element_size = ORBit_gather_alloc_info (tc))) return NULL; prefix = g_realloc ((guchar *) old - LONG_PREFIX_LEN, LONG_PREFIX_LEN + element_size * num_elements); /* Initialize as yet unused memory to 'safe' values */ memset ((guchar *) prefix + LONG_PREFIX_LEN + old_num_elements * element_size, 0, (num_elements - old_num_elements) * element_size); mem = (guchar *)prefix + LONG_PREFIX_LEN; *((ORBitMemHow *)mem - 1) = ORBIT_MEMHOW_MAKE ( ORBIT_MEMHOW_TYPECODE, num_elements); return mem; } CORBA_TypeCode ORBit_alloc_get_tcval (gpointer mem) { ORBitMemHow how; ORBit_MemPrefix *prefix; if (!mem) return NULL; if ((gulong)mem & 0x1) return TC_CORBA_string; how = *(((ORBitMemHow *) mem) - 1); if (ORBIT_MEMHOW_HOW (how) == ORBIT_MEMHOW_TYPECODE) { prefix = (ORBit_MemPrefix *) ((guchar *) mem - LONG_PREFIX_LEN); return ORBit_RootObject_duplicate (prefix->u.tc); } else g_error ("Can't determine type of %p (%u)", mem, how); return NULL; } gpointer ORBit_alloc_by_tc (CORBA_TypeCode tc) { guchar *mem; guint size; ORBit_MemPrefix *prefix; if (!(size = ORBit_gather_alloc_info (tc))) return NULL; prefix = g_malloc0 (LONG_PREFIX_LEN + size); prefix->u.tc = ORBit_RootObject_duplicate (tc); mem = (guchar *)prefix + LONG_PREFIX_LEN; *((ORBitMemHow *)mem - 1) = ORBIT_MEMHOW_MAKE ( ORBIT_MEMHOW_TYPECODE, 1); return mem; } ORBit2-2.14.19/src/orb/orb-core/orbit-typelib.c0000644000175000001440000001754111334247617015700 00000000000000#include #include #include #include #include #include #include "orb-core-private.h" #include "orbit-debug.h" CORBA_char * ORBit_small_get_type_id (CORBA_Object object, CORBA_Environment *ev) { ORBit_OAObject adaptor_obj = object->adaptor_obj; /* We stay always maximaly qualified localy */ if (adaptor_obj && adaptor_obj->interface->is_active (adaptor_obj)) return CORBA_string_dup (g_quark_to_string (object->type_qid)); else { CORBA_char *retval = NULL; ORBit_small_invoke_stub ( object, &CORBA_Object__imethods [ CORBA_OBJECT_SMALL_GET_TYPE_ID], &retval, NULL, NULL, ev); return retval; } } static GHashTable *interfaces = NULL; static GHashTable * get_type_db (void) { if (!interfaces) /* FIXME: need a g_atexit free */ interfaces = g_hash_table_new ( g_str_hash, g_str_equal); return interfaces; } static ORBit_IInterface * lookup_iinterface (const CORBA_char *type_id) { GHashTable *db = get_type_db (); return g_hash_table_lookup (db, type_id); } static void add_iinterface (ORBit_IInterface *idata) { GHashTable *db = get_type_db (); g_hash_table_insert (db, idata->tc->repo_id, idata); } static ORBit_IInterface * copy_iinterface (const ORBit_IInterface *idata, gboolean shallow) { /* FIXME: we deep copy always for now - we should speed this up */ /* FIXME: we need to set a flag here */ return ORBit_copy_value (idata, TC_ORBit_IInterface); } static GSList *type_list = NULL; typedef struct { char *name; CORBA_sequence_CORBA_TypeCode *types; CORBA_sequence_ORBit_IInterface *iinterfaces; } TypeList; static void add_types (const char *libname, CORBA_sequence_CORBA_TypeCode *types, CORBA_sequence_ORBit_IInterface *iinterfaces) { TypeList *tl = g_new0 (TypeList, 1); tl->name = g_strdup (libname); tl->types = types; tl->iinterfaces = iinterfaces; /* FIXME: some g_atexit free loving ? */ type_list = g_slist_prepend (type_list, tl); } static CORBA_sequence_CORBA_TypeCode * get_types (const char *module_name) { GSList *l; for (l = type_list; l; l = l->next) { TypeList *tl = l->data; if (!strcmp (tl->name, module_name)) { CORBA_sequence_CORBA_TypeCode *st; st = CORBA_sequence_CORBA_TypeCode__alloc (); *st = *tl->types; st->_release = FALSE; return st; } } return NULL; } static CORBA_sequence_ORBit_IInterface * get_iinterfaces (const char *module_name) { GSList *l; for (l = type_list; l; l = l->next) { TypeList *tl = l->data; if (!strcmp (tl->name, module_name)) { CORBA_sequence_ORBit_IInterface *st; st = CORBA_sequence_ORBit_IInterface__alloc (); *st = *tl->iinterfaces; st->_release = FALSE; return st; } } return NULL; } ORBit_IInterface * ORBit_small_get_iinterface (CORBA_Object opt_object, const CORBA_char *type_id, CORBA_Environment *ev) { ORBit_IInterface *retval; PortableServer_ClassInfo *ci; if ((retval = lookup_iinterface (type_id))) retval = copy_iinterface (retval, TRUE); else if ((ci = ORBit_classinfo_lookup (type_id))) { retval = copy_iinterface (ci->idata, TRUE); } else if (opt_object) { /* FIXME: first walk the object's data, if local, we might have unregistered interfaces for some reason */ gpointer args [1]; args [0] = &type_id; ORBit_small_invoke_stub ( opt_object, &CORBA_Object__imethods [ CORBA_OBJECT_SMALL_GET_IINTERFACE], &retval, args, NULL, ev); if (retval != CORBA_OBJECT_NIL) { ORBit_IInterface *cache; cache = copy_iinterface (retval, FALSE); add_iinterface (cache); } } if (!retval && ev->_major == CORBA_NO_EXCEPTION) CORBA_exception_set ( ev, CORBA_USER_EXCEPTION, ex_ORBit_NoIInterface, NULL); /* g_warning ("get_iinterface returns '%s' %p", retval ? retval->tc->repo_id : ev->_id, retval); */ return retval; } static void add_if_unique (GPtrArray *strings, const char *new_str, gboolean base_path) { int i, len; len = strlen (new_str); for (i = 0; i < strings->len; i++) { if (!strncmp (g_ptr_array_index (strings, i), new_str, len)) return; } g_ptr_array_add ( strings, base_path ? g_strconcat (new_str, "/lib/orbit-2.0", NULL) : g_strdup(new_str)); } /* FIXME: this should be called only once at ORB init time really */ char ** ORBit_get_typelib_paths (void) { const char *path; int i; GPtrArray *paths; paths = g_ptr_array_sized_new (8); g_ptr_array_add (paths, g_strdup (ORBIT_TYPELIB_DIR)); if ((path = g_getenv ("ORBIT_TYPELIB_PATH"))) { char **strv; strv = g_strsplit (path, G_SEARCHPATH_SEPARATOR_S, -1); for (i = 0; strv && strv [i]; i++) add_if_unique (paths, strv [i], FALSE); g_strfreev (strv); } if ((path = g_getenv ("GNOME2_PATH"))) { char **strv; strv = g_strsplit (path, G_SEARCHPATH_SEPARATOR_S, -1); for (i = 0; strv && strv [i]; i++) add_if_unique (paths, strv [i], TRUE); g_strfreev (strv); } g_ptr_array_add (paths, NULL); return (char **)g_ptr_array_free (paths, FALSE); } static gboolean load_module (const char *fname, const char *libname) { GModule *handle; ORBit_IModule *module; if (!(handle = g_module_open (fname, G_MODULE_BIND_LAZY))) { dprintf (TYPES, "Failed to load '%s': '%s'\n", fname, g_module_error ()); return FALSE; } else if (!g_module_symbol (handle, "orbit_imodule_data", (gpointer *)&module)) { g_warning ("type library '%s' has no stored types", fname); g_module_close (handle); return FALSE; } else { CORBA_sequence_ORBit_IInterface *iinterfaces; CORBA_sequence_CORBA_TypeCode *types; ORBit_IInterface **p; gulong length, i; dprintf (TYPES, "Loaded interfaces of serial %d from '%s'\n", module->version, fname); for (p = module->interfaces, length = 0; p && *p; p++) length++; iinterfaces = CORBA_sequence_ORBit_IInterface__alloc (); iinterfaces->_length = iinterfaces->_maximum = length; iinterfaces->_buffer = CORBA_sequence_ORBit_IInterface_allocbuf (length); iinterfaces->_release = CORBA_TRUE; for (i = 0; i < length; i++) { ORBit_IInterface *src, *dest; src = module->interfaces [i]; dest = &iinterfaces->_buffer [i]; ORBit_copy_value_core ((gconstpointer *) &src, (gpointer *) &dest, TC_ORBit_IInterface); dest = &iinterfaces->_buffer [i]; add_iinterface (dest); dprintf (TYPES, "Type '%s'\n", dest->tc->repo_id); } types = ORBit_copy_value ( &module->types, TC_CORBA_sequence_CORBA_TypeCode); add_types (libname, types, iinterfaces); /* FIXME: before we can close this, we need to deep copy typecodes - that is if in fact we want to close it ? */ /* g_module_close (handle); */ return TRUE; } } /** * ORBit_small_load_typelib: * @libname: the name of the type library to load * * This method has security issues if you do not use * an absolute path in @libname. The environment variables * ORBIT_TYPELIB_PATH and GNOME2_PATH are used to scan for * type libraries. * * Return value: FALSE if load failed. **/ gboolean ORBit_small_load_typelib (const char *libname) { gboolean loaded = FALSE; char *fname = NULL; g_return_val_if_fail (libname != NULL, FALSE); if (!g_path_is_absolute (libname) && !(libname [0] == '.' && G_IS_DIR_SEPARATOR (libname [1]))) { char **paths; int i; paths = ORBit_get_typelib_paths (); for (i = 0; paths && paths [i]; i++) { fname = g_strconcat ( paths [i], G_DIR_SEPARATOR_S, libname, "_module", NULL); if ((loaded = load_module (fname, libname))) break; else { g_free (fname); fname = NULL; } } g_strfreev (paths); } else loaded = load_module (libname, libname); return loaded; } CORBA_sequence_CORBA_TypeCode * ORBit_small_get_types (const char *name) { return get_types (name); } CORBA_sequence_ORBit_IInterface * ORBit_small_get_iinterfaces (const char *name) { return get_iinterfaces (name); } ORBit2-2.14.19/src/orb/orb-core/orbit-object.c0000644000175000001440000001011411334247617015463 00000000000000#include #include #include #include "orbit-debug.h" #include "orb-core-private.h" static glong alive_root_objects = 0; static glong total_refs = 0; #ifdef G_ENABLE_DEBUG static GHashTable *object_hash = NULL; #define TYPE_CASE(e,n) \ case ORBIT_ROT_##e: str = g_strdup (n); break; static void object_hash_dump (gpointer key, gpointer value, gpointer user_data) { char *str = NULL; ORBit_RootObject obj = key; const ORBit_RootObject_Interface *interface = obj->interface; switch (interface->type) { TYPE_CASE (NULL, "Null"); case ORBIT_ROT_OBJREF: { CORBA_Object o = (CORBA_Object) obj; str = g_strdup_printf ("Object (type '%s')", g_quark_to_string (o->type_qid)); break; } case ORBIT_ROT_TYPECODE: { CORBA_TypeCode tc = (CORBA_TypeCode) obj; str = g_strdup_printf ("TypeCode (type '%s', kind %s)", tc->repo_id, ORBit_tk_to_name (tc->kind)); break; } /* psuedo-objects */ TYPE_CASE (ORB, "ORB"); TYPE_CASE (ADAPTOR, "Adaptor"); TYPE_CASE (POLICY, "Policy"); TYPE_CASE (REQUEST, "Request"); TYPE_CASE (SERVERREQUEST, "Server Request"); TYPE_CASE (CONTEXT, "Context"); TYPE_CASE (DYNANY, "Dynany"); TYPE_CASE (OAOBJECT, "Object Adaptor Object"); TYPE_CASE (ORBGROUP, "ORB Group"); TYPE_CASE (POAMANAGER, "POA Manager"); TYPE_CASE (POACURRENT, "Current POA"); TYPE_CASE (CLIENT_POLICY, "Client policy"); } if (!str) str = g_strdup_printf ("Error unknown type '%d'", interface->type); fprintf (stderr, "%3d ref%c to '%s'\n", obj->refs, obj->refs ? 's' : ' ', str); g_free (str); } #endif int ORBit_RootObject_shutdown (gboolean moan) { #ifdef G_ENABLE_DEBUG int valid_running = 1; /* The ORB */ #endif if (!moan) return 0; #ifdef G_ENABLE_DEBUG if (!ORBit_RootObject_lifecycle_lock && alive_root_objects - valid_running) g_warning ("ORB: a total of %ld refs to %ld ORB " "objects were leaked", total_refs - valid_running, alive_root_objects - valid_running); else if (total_refs - valid_running) g_warning ("ORB: a total of %ld refs to ORB " "objects were leaked", total_refs - valid_running); else return 0; if (_orbit_debug_flags & ORBIT_DEBUG_REFS) g_hash_table_foreach ( object_hash, object_hash_dump, NULL); return 1; #endif return 0; } void ORBit_RootObject_init (ORBit_RootObject obj, const ORBit_RootObject_Interface *interface) { if (!ORBit_RootObject_lifecycle_lock) /* No locking */ alive_root_objects++; #ifdef G_ENABLE_DEBUG if (!object_hash) object_hash = g_hash_table_new (NULL, NULL); if (_orbit_debug_flags & ORBIT_DEBUG_REFS) g_hash_table_insert (object_hash, obj, obj); #endif obj->interface = interface; obj->refs = 0; } gpointer ORBit_RootObject_duplicate (gpointer obj) { ORBit_RootObject robj = obj; if (robj && robj->refs != ORBIT_REFCOUNT_STATIC) { LINK_MUTEX_LOCK (ORBit_RootObject_lifecycle_lock); robj->refs++; total_refs++; LINK_MUTEX_UNLOCK (ORBit_RootObject_lifecycle_lock); } return obj; } gpointer ORBit_RootObject_duplicate_T (gpointer obj) { ORBit_RootObject robj = obj; if (robj && robj->refs != ORBIT_REFCOUNT_STATIC) { robj->refs++; total_refs++; } return obj; } static void do_unref (ORBit_RootObject robj) { g_assert (robj->refs < ORBIT_REFCOUNT_MAX && robj->refs > 0); robj->refs--; total_refs--; if (robj->refs == 0) { if (!ORBit_RootObject_lifecycle_lock) /* No locking */ alive_root_objects--; #ifdef G_ENABLE_DEBUG if (_orbit_debug_flags & ORBIT_DEBUG_REFS) g_hash_table_remove (object_hash, robj); #endif if (robj->interface && robj->interface->destroy) robj->interface->destroy (robj); else g_free (robj); } } void ORBit_RootObject_release_T (gpointer obj) { ORBit_RootObject robj = obj; if (robj && robj->refs != ORBIT_REFCOUNT_STATIC) do_unref (robj); } void ORBit_RootObject_release (gpointer obj) { ORBit_RootObject robj = obj; if (robj && robj->refs != ORBIT_REFCOUNT_STATIC) { LINK_MUTEX_LOCK (ORBit_RootObject_lifecycle_lock); do_unref (robj); LINK_MUTEX_UNLOCK (ORBit_RootObject_lifecycle_lock); } } ORBit2-2.14.19/src/orb/orb-core/Makefile.am0000644000175000001440000000543211334247617014777 00000000000000noinst_LTLIBRARIES=liborb-core.la TYPELIB_DIR=$(libdir)/orbit-2.0 INCLUDES = \ -I. \ -I$(srcdir) \ -I$(top_builddir)/include \ -I$(top_builddir)/include/orbit/orb-core \ -I$(top_srcdir)/include \ -I$(top_srcdir)/include/orbit/orb-core \ -DORBIT_TYPELIB_DIR=\""$(TYPELIB_DIR)"\" \ -DORBIT2_INTERNAL_API \ $(WARN_CFLAGS) \ $(DISABLE_DEPRECATED_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_CFLAGS) HTTP_FILES = orbhttp.c orbhttp.h if ENABLE_HTTP ORBHTTP = $(HTTP_FILES) endif main_src = \ corba-orb.c \ orbit-object.c \ orbit-small.c \ orbit-typelib.c \ orbit-trace.c \ corba-object.c \ corba-loc.c \ corba-policy.c \ orbit-policy.c \ orbit-policy.h \ corba-env.c \ corba-string.c \ allocators.c \ corba-typecode.c \ corba-types.c \ corba-any.c \ corba-context.c \ orb-core-private.h \ orb-core-export.h \ corba-nvlist.c \ corba-request.c \ iop-profiles.c \ iop-profiles.h \ orbit-debug.h \ $(ORBHTTP) liborb_core_la_SOURCES= \ $(BUILT_SOURCES) \ $(main_src) IDLOUT=corba-defs-common.c DEFS_IDLOUT=iop-defs-common.c OPS_IDLOUT_H= corba-ops.h OPS_IDLOUT_C= corba-ops-stubs.c corba-ops-common.c corba-ops-skels.c IFACE_IDLOUT=orbit-interface-common.c $(liborb_core_la_OBJECTS) : $(BUILT_SOURCES) IDL_FLAGS = -I$(top_srcdir)/src/idl/CORBA_PIDL \ -I$(top_srcdir)/src/idl/CORBA \ -I$(top_srcdir)/src/idl/misc \ -I$(top_srcdir)/src/idl/interop -I. \ -D_PRE_3_0_COMPILER_ \ --noskels --nodefskels --nostubs --noidata --noheaders \ --define=Object=OObject --define=TypeCode=TTypeCode \ --showcpperrors IDL_FILES=corba-defs.idl iop-defs.idl corba-ops.idl orbit-interface.idl IDL_DIR=$(top_srcdir)/src/orb/orb-core/ include $(top_srcdir)/Makefile.shared IDL_FLAGS_CORBA_OPS = --showcpperrors $(OPS_IDLOUT_C): $(OPS_IDLOUT_H) $(OPS_IDLOUT_H): corba-ops.idl $(IDL_COMPILER) -(rm -f $(OPS_IDLOUT_C) $(OPS_IDLOUT_H) || true) > /dev/null $(IDL_COMPILER) $(IDL_FLAGS_CORBA_OPS) --deps .deps/corba-ops.idl.P $< for I in $(OPS_IDLOUT_C) $(OPS_IDLOUT_H); do \ sed -e 's,ZZZis_a,_is_a,g' -e 's,ZZis_a,is_a,g' $$I > $$I.out; mv $$I.out $$I; \ done; \ sed -e "s,Z,_,g" corba-ops-skels.c > corba-ops-skels.c.out; \ mv corba-ops-skels.c.out corba-ops-skels.c; IDL_FLAGS_INTERFACE = --nostubs --noskels --showcpperrors --noheaders $(IFACE_IDLOUT) : orbit-interface.idl $(IDL_COMPILER) -(rm -f $(IFACE_IDLOUT) || true) > /dev/null $(IDL_COMPILER) $(IDL_FLAGS_INTERFACE) --deps .deps/orbit-interface.idl.P $< BUILT_SOURCES = $(IFACE_IDLOUT) $(IDLOUT) $(DEFS_IDLOUT) $(OPS_IDLOUT_C) $(OPS_IDLOUT_H) CLEANFILES = $(BUILT_SOURCES) EXTRA_DIST = $(IDL_FILES) $(HTTP_FILES) dist-hook: cd $(distdir); rm -f $(BUILT_SOURCES) $(IDL_COMPILER): @cd $(top_builddir)/src/idl-compiler && $(MAKE) $(AM_MAKEFLAGS) ORBit2-2.14.19/src/orb/orb-core/orbit-small.c0000644000175000001440000010407311334247617015335 00000000000000/* * Warning - before reading this file, and while hacking * it, it is advisable to examine: * * docs/internals/interface-indirection.gnumeric * * FIXME: We need some global I/F -> m_data lookup action * FIXME: We need to map interface inheritance. * FIXME: Add #ifdef ORBIT_PURIFY support. * * FIXME: 'Obvious' optimizations * Here: * * 2 demarshalers - 1 straight, 1 endianness switching. * * do more alloca's for basic things * * more IDL compiler help for allocation and indirection * decisions - these are closely tied * * No alias types in the structures ... nice :-) * Elsewhere: * * store object profiles in GIOP format for fast marshaling * * make locking more chunky _T everything. */ #include #include #ifdef HAVE_UNISTD_H # include #endif #include #include #include #include #include #include "../poa/orbit-poa-export.h" #include "../GIOP/giop-debug.h" #include "orb-core-private.h" #include "orbit-debug.h" int ORBit_small_flags = 0; gpointer ORBit_small_alloc (CORBA_TypeCode tc) { return ORBit_alloc_by_tc (tc); } gpointer ORBit_small_allocbuf (CORBA_TypeCode tc, CORBA_unsigned_long length) { /* see above */ return ORBit_alloc_tcval (tc->subtypes [0], length); } void ORBit_small_freekids (CORBA_TypeCode tc, gpointer p, gpointer d) { /* see above */ ORBit_freekids_via_TypeCode (tc, p); } static void ORBit_handle_exception_array (GIOPRecvBuffer *rb, CORBA_Environment *ev, const ORBit_ITypes *types, CORBA_ORB orb) { CORBA_SystemException *new; CORBA_unsigned_long len, completion_status, reply_status; CORBA_char *my_repoid; g_return_if_fail (rb->msg.header.message_type == GIOP_REPLY); CORBA_exception_free (ev); rb->cur = ALIGN_ADDRESS (rb->cur, sizeof (len)); if ((rb->cur + 4) > rb->end) goto errout; len = *(CORBA_unsigned_long *)rb->cur; rb->cur += 4; if (giop_msg_conversion_needed (rb)) len = GUINT32_SWAP_LE_BE (len); if (len) { my_repoid = (char *) rb->cur; rb->cur += len; } else my_repoid = NULL; reply_status = giop_recv_buffer_reply_status (rb); dprintf (MESSAGES, "Received exception %d: '%s'\n", reply_status, my_repoid ? my_repoid : ""); if (reply_status == CORBA_SYSTEM_EXCEPTION) { CORBA_unsigned_long minor; dprintf (MESSAGES, "system exception\n"); ev->_major = CORBA_SYSTEM_EXCEPTION; rb->cur = ALIGN_ADDRESS (rb->cur, sizeof (minor)); if ((rb->cur + sizeof (minor)) > rb->end) goto errout; minor = *(CORBA_unsigned_long *) rb->cur; rb->cur += 4; if (giop_msg_conversion_needed (rb)) minor = GUINT32_SWAP_LE_BE (minor); rb->cur = ALIGN_ADDRESS (rb->cur, sizeof (completion_status)); if ((rb->cur + sizeof (completion_status)) > rb->end) goto errout; completion_status = *(CORBA_unsigned_long *) rb->cur; rb->cur += 4; if (giop_msg_conversion_needed (rb)) completion_status = GUINT32_SWAP_LE_BE (completion_status); new = CORBA_SystemException__alloc (); new->minor = minor; new->completed = completion_status; /* FIXME: check what should the repo ID be? */ CORBA_exception_set (ev, CORBA_SYSTEM_EXCEPTION, my_repoid, new); /* FIXME: might be fixed one day by cunning detection in CORBA_exception_set ... */ if (!ev->_any._type) ev->_any._type = ORBit_RootObject_duplicate ( TC_CORBA_SystemException); dprintf (MESSAGES, "system exception de-marshaled\n"); return; } else if (reply_status == CORBA_USER_EXCEPTION) { int i; dprintf (MESSAGES, "user exception\n"); for (i = 0; my_repoid && i < types->_length; i++) { if (!strcmp (types->_buffer[i]->repo_id, my_repoid)) break; } if (!types || types->_length == 0 || i >= types->_length) { /* weirdness; they raised an exception that we don't know about */ CORBA_exception_set_system ( ev, ex_CORBA_MARSHAL, CORBA_COMPLETED_MAYBE); } else { gpointer data; dprintf (MESSAGES, "de-marshal user exception\n"); data = ORBit_demarshal_arg ( rb, types->_buffer [i], orb); /* FIXME: might be fixed one day by cunning detection in CORBA_exception_set ... */ CORBA_exception_set (ev, CORBA_USER_EXCEPTION, types->_buffer [i]->repo_id, data); if (!ev->_any._type) ev->_any._type = ORBit_RootObject_duplicate ( types->_buffer [i]); } } if (ev->_major != CORBA_NO_EXCEPTION) return; errout: /* ignore LOCATION_FORWARD here, that gets handled in the stub */ CORBA_exception_set_system (ev, ex_CORBA_MARSHAL, CORBA_COMPLETED_MAYBE); } static gboolean ORBit_small_send_user_exception (GIOPSendBuffer *send_buffer, CORBA_Environment *ev, const ORBit_ITypes *types) { int i; for (i = 0; i < types->_length; i++) { if(!strcmp (types->_buffer[i]->repo_id, ev->_id)) break; } if (i >= types->_length) { g_warning ("Some clown returned undeclared " "exception '%s' ", ev->_id); CORBA_exception_free (ev); CORBA_exception_set_system ( ev, ex_CORBA_UNKNOWN, CORBA_COMPLETED_MAYBE); giop_send_buffer_unuse (send_buffer); return FALSE; } else { giop_send_buffer_append_string (send_buffer, ev->_id); dprintf (MESSAGES, "Returning exception of type '%s'\n", ev->_id); ORBit_marshal_arg (send_buffer, ev->_any._value, types->_buffer[i]); return TRUE; } } static void ORBit_small_marshal_context (GIOPSendBuffer *send_buffer, ORBit_IMethod *m_data, CORBA_Context ctx) { int i; /* Horrible inefficiency to get round the 'lete efficiency of the current impl */ ORBit_ContextMarshalItem *mlist; mlist = g_alloca (sizeof (ORBit_ContextMarshalItem) * m_data->contexts._length); tprintf (" context { "); for (i = 0; i < m_data->contexts._length; i++) { char *val; mlist [i].str = m_data->contexts._buffer [i]; val = g_hash_table_lookup (ctx->mappings, mlist [i].str); tprintf ("( %s: '%s' )%s", mlist [i].str, val, i < m_data->contexts._length - 1 ? ", ": ""); mlist [i].len = strlen (mlist [i].str) + 1; } tprintf (" }"); /* Assumption, this doesn't whack mlist pointers into the send_buffer: verified */ ORBit_Context_marshal ( ctx, mlist, m_data->contexts._length, send_buffer); } #define BASE_TYPES \ CORBA_tk_short: \ case CORBA_tk_long: \ case CORBA_tk_enum: \ case CORBA_tk_ushort: \ case CORBA_tk_ulong: \ case CORBA_tk_float: \ case CORBA_tk_double: \ case CORBA_tk_boolean: \ case CORBA_tk_char: \ case CORBA_tk_octet: \ case CORBA_tk_longlong: \ case CORBA_tk_ulonglong: \ case CORBA_tk_longdouble: \ case CORBA_tk_wchar #define STRUCT_UNION_TYPES \ CORBA_tk_struct: \ case CORBA_tk_union: \ case CORBA_tk_except #define OBJ_STRING_TYPES \ CORBA_tk_objref: \ case CORBA_tk_TypeCode: \ case CORBA_tk_string: \ case CORBA_tk_wstring #define SEQ_ANY_TYPES \ CORBA_tk_sequence: \ case CORBA_tk_any typedef struct { CORBA_unsigned_long len; char opname[1]; } OpData; #define do_marshal_value(a,b,c) \ ORBit_marshal_value ((a),(gconstpointer *)(b),(c)) #define do_demarshal_value(a,b,c,e) \ if (ORBit_demarshal_value ((c),(b),(a),(e))) \ goto demarshal_exception static gboolean orbit_small_marshal (CORBA_Object obj, GIOPConnection *cnx, GIOPMessageQueueEntry *mqe, CORBA_unsigned_long request_id, ORBit_IMethod *m_data, gpointer *args, CORBA_Context ctx) { GIOPSendBuffer *send_buffer; struct iovec op_vec; CORBA_TypeCode tc; int i; tprintf_header (obj, m_data); { int align; int len = sizeof (CORBA_unsigned_long) + m_data->name_len + 1; guchar *header = g_alloca (len + sizeof (CORBA_unsigned_long)); *(CORBA_unsigned_long *) header = m_data->name_len + 1; memcpy (header + sizeof (CORBA_unsigned_long), m_data->name, m_data->name_len + 1); align = len + (sizeof (CORBA_unsigned_long) - 1); align &= ~(sizeof (CORBA_unsigned_long) - 1); memset (header + len, 0, align - len); dprintf (MESSAGES, "Align = %d\n", align); op_vec.iov_len = align; op_vec.iov_base = header; } send_buffer = giop_send_buffer_use_request ( cnx->giop_version, request_id, (m_data->flags & ORBit_I_METHOD_1_WAY) == 0, obj->object_key, &op_vec, NULL); if (!send_buffer) return FALSE; dprintf (MESSAGES, "Marshal: id 0x%x\n", request_id); for (i = 0; i < m_data->arguments._length; i++) { ORBit_IArg *a = &m_data->arguments._buffer [i]; gpointer p; if (!(a->flags & (ORBit_I_ARG_IN | ORBit_I_ARG_INOUT))) continue; tc = a->tc; while (tc->kind == CORBA_tk_alias) tc = tc->subtypes [0]; dump_arg (a, tc); p = args [i]; tprintf_trace_value (&p, tc); p = args [i]; do_marshal_value (send_buffer, &p, tc); if (i < m_data->arguments._length - 1) tprintf (", "); } tprintf (")"); if (m_data->contexts._length > 0) ORBit_small_marshal_context (send_buffer, m_data, ctx); do_giop_dump_send (send_buffer); if (giop_send_buffer_write (send_buffer, cnx, FALSE)) { g_warning ("Failed to send buffer"); giop_recv_list_destroy_queue_entry (mqe); return FALSE; } giop_send_buffer_unuse (send_buffer); return TRUE; } typedef enum { MARSHAL_SYS_EXCEPTION_INCOMPLETE, MARSHAL_SYS_EXCEPTION_COMPLETE, MARSHAL_EXCEPTION_COMPLETE, MARSHAL_RETRY, MARSHAL_CLEAN } DeMarshalRetType; static DeMarshalRetType orbit_small_demarshal (CORBA_Object obj, GIOPConnection **cnx, GIOPRecvBuffer *recv_buffer, CORBA_Environment *ev, gpointer ret, ORBit_IMethod *m_data, gpointer *args) { gpointer data, p; CORBA_TypeCode tc; CORBA_ORB orb = obj->orb; if (!recv_buffer) { dprintf (MESSAGES, "No recv buffer ...\n"); return MARSHAL_SYS_EXCEPTION_INCOMPLETE; } if (giop_recv_buffer_reply_status (recv_buffer) != GIOP_NO_EXCEPTION) goto msg_exception; if ((tc = m_data->ret) && tc->kind != CORBA_tk_void) { tprintf (" =>: "); g_assert (ret != NULL); while (tc->kind == CORBA_tk_alias) tc = tc->subtypes [0]; switch (tc->kind) { case BASE_TYPES: case OBJ_STRING_TYPES: p = ret; do_demarshal_value (recv_buffer, &ret, tc, orb); tprintf_trace_value (&p, tc); break; case STRUCT_UNION_TYPES: if (m_data->flags & ORBit_I_COMMON_FIXED_SIZE) { p = ret; do_demarshal_value (recv_buffer, &ret, tc, orb); tprintf_trace_value (&p, tc); break; } /* drop through */ case SEQ_ANY_TYPES: case CORBA_tk_array: default: data = ORBit_demarshal_arg (recv_buffer, tc, orb); if (!data) return MARSHAL_SYS_EXCEPTION_COMPLETE; p = data; tprintf_trace_value (&p, tc); *((gpointer *)ret) = data; break; } } { int i; int trace_have_out = 0; for (i = 0; i < m_data->arguments._length; i++) { const ORBit_IArg *a; gpointer arg; a = &m_data->arguments._buffer [i]; if (!(a->flags & (ORBit_I_ARG_OUT | ORBit_I_ARG_INOUT))) continue; tc = a->tc; while (tc->kind == CORBA_tk_alias) tc = tc->subtypes [0]; dump_arg (a, tc); if (a->flags & ORBit_I_ARG_OUT) /* this may read (&discard) uninitialized memory, * see 'foo' below. This is for simplicity. */ arg = *(gpointer *)args [i]; else arg = args [i]; switch (tc->kind) { case OBJ_STRING_TYPES: { if (a->flags & ORBit_I_ARG_INOUT) { if (tc->kind == CORBA_tk_TypeCode || tc->kind == CORBA_tk_objref) CORBA_Object_release (*(gpointer *)arg, ev); else if (tc->kind == CORBA_tk_string || tc->kind == CORBA_tk_wstring) ORBit_free (*(gpointer *) arg); } /* drop through */ case BASE_TYPES: if (!trace_have_out++) tprintf (" out: ("); p = arg; do_demarshal_value (recv_buffer, &arg, tc, orb); tprintf_trace_value (&p, tc); break; } case STRUCT_UNION_TYPES: case SEQ_ANY_TYPES: case CORBA_tk_array: default: p = arg; if (a->flags & ORBit_I_COMMON_FIXED_SIZE) { do_demarshal_value (recv_buffer, &arg, tc, orb); } else if (a->flags & ORBit_I_ARG_INOUT) { ORBit_freekids_via_TypeCode (tc, arg); do_demarshal_value (recv_buffer, &arg, tc, orb); } else /* 'foo' - don't use the bogus 'arg' contents */ *(gpointer *)args [i] = p = ORBit_demarshal_arg ( recv_buffer, tc, obj->orb); if (!trace_have_out++) tprintf (" out: ("); tprintf_trace_value (&p, tc); break; } if (trace_have_out && i < m_data->arguments._length - 1) tprintf (", "); } if (trace_have_out) tprintf (" )"); } return MARSHAL_CLEAN; demarshal_exception: /* FIXME: may well leak */ CORBA_exception_set_system(ev, ex_CORBA_MARSHAL, CORBA_COMPLETED_MAYBE); return MARSHAL_EXCEPTION_COMPLETE; msg_exception: if (giop_recv_buffer_reply_status (recv_buffer) == GIOP_LOCATION_FORWARD) { *cnx = ORBit_handle_location_forward (recv_buffer, obj); tprintf (" Exception: forward (%p)", *cnx); if (!*cnx) { CORBA_exception_set_system(ev, ex_CORBA_MARSHAL, CORBA_COMPLETED_MAYBE); return MARSHAL_SYS_EXCEPTION_INCOMPLETE; } return MARSHAL_RETRY; } else { ORBit_handle_exception_array ( recv_buffer, ev, &m_data->exceptions, obj->orb); #ifdef G_ENABLE_DEBUG if (_orbit_debug_flags & ORBIT_DEBUG_TRACES) { if (ev->_major == CORBA_SYSTEM_EXCEPTION) tprintf (" System Exception: '%s' ", ev->_id); else { tprintf (" User Exception: '%s' ", ev->_id); ORBit_trace_any (&ev->_any); } } #endif /* G_ENABLE_DEBUG */ return MARSHAL_EXCEPTION_COMPLETE; } } void ORBit_small_invoke_stub_n (CORBA_Object object, ORBit_IMethods *methods, glong index, gpointer ret, gpointer *args, CORBA_Context ctx, CORBA_Environment *ev) { if (index < 0 || index > methods->_length) { dprintf (MESSAGES, "Cannot invoke OOB method (%ld,%lu)\n", index, (gulong)methods->_length); CORBA_exception_set_system (ev, ex_CORBA_NO_IMPLEMENT, CORBA_COMPLETED_NO); } else ORBit_small_invoke_stub (object, &methods->_buffer[index], ret, args, ctx, ev); } void ORBit_small_invoke_stub (CORBA_Object obj, ORBit_IMethod *m_data, gpointer ret, gpointer *args, CORBA_Context ctx, CORBA_Environment *ev) { CORBA_unsigned_long request_id; CORBA_completion_status completion_status; GIOPConnection *cnx = NULL; GIOPMessageQueueEntry mqe; ORBit_OAObject adaptor_obj; GIOPRecvBuffer *recv_buffer = NULL; CORBA_Object xt_proxy = CORBA_OBJECT_NIL; ORBitPolicy *invoke_policy = CORBA_OBJECT_NIL; gboolean timeout = FALSE; CORBA_exception_init (ev); if (!obj) { dprintf (MESSAGES, "Cannot invoke method on null object\n"); CORBA_exception_set_system (ev, ex_CORBA_INV_OBJREF, CORBA_COMPLETED_NO); goto clean_out; } if ((invoke_policy = ORBit_object_get_policy (obj))) ORBit_policy_push (invoke_policy); adaptor_obj = obj->adaptor_obj; if (adaptor_obj) { /* FIXME: unchecked cast */ if (ORBit_poa_allow_cross_thread_call ((ORBit_POAObject) adaptor_obj, m_data->flags)) { tprintf_header (obj, m_data); tprintf ("[in-proc]"); ORBit_small_handle_request (adaptor_obj, m_data->name, ret, args, ctx, NULL, ev); goto clean_out; } else { tprintf ("[in-proc-XT]"); /* * FIXME: this is _really_ slow, can easily be optimised * by shoving the GIOP data straight on the incoming * queue */ xt_proxy = ORBit_objref_get_proxy (obj); obj = xt_proxy; } } else giop_thread_new_check (NULL); cnx = ORBit_object_get_connection (obj); if (!cnx) { dprintf (MESSAGES, "Null connection on object '%p'\n", obj); completion_status = CORBA_COMPLETED_NO; goto system_exception; } retry_request: request_id = GPOINTER_TO_UINT (&obj); completion_status = CORBA_COMPLETED_NO; giop_recv_list_setup_queue_entry (&mqe, cnx, GIOP_REPLY, request_id); if (!orbit_small_marshal (obj, cnx, &mqe, request_id, m_data, args, ctx)) goto system_exception; completion_status = CORBA_COMPLETED_MAYBE; if (m_data->flags & ORBit_I_METHOD_1_WAY) { tprintf ("[ one way ]"); giop_recv_list_destroy_queue_entry (&mqe); goto clean_out; } recv_buffer = giop_recv_buffer_get (&mqe, &timeout); if (timeout) goto timeout_exception; switch (orbit_small_demarshal (obj, &cnx, recv_buffer, ev, ret, m_data, args)) { case MARSHAL_SYS_EXCEPTION_COMPLETE: completion_status = CORBA_COMPLETED_YES; dprintf (MESSAGES, "Sys exception completed on id 0x%x\n\n", request_id); goto system_exception; case MARSHAL_SYS_EXCEPTION_INCOMPLETE: dprintf (MESSAGES, "Sys exception incomplete on id 0x%x\n\n", request_id); goto system_exception; case MARSHAL_EXCEPTION_COMPLETE: dprintf (MESSAGES, "Clean demarshal of exception on id 0x%x\n\n", request_id); break; case MARSHAL_RETRY: dprintf (MESSAGES, "Retry demarshal on id 0x%x\n\n", request_id); goto retry_request; case MARSHAL_CLEAN: dprintf (MESSAGES, "Clean demarshal on id 0x%x\n\n", request_id); break; }; clean_out: ORBit_RootObject_release (xt_proxy); giop_recv_buffer_unuse (recv_buffer); tprintf_end_method (); if (cnx) giop_connection_unref (cnx); if (invoke_policy) { ORBit_policy_pop (); ORBit_policy_unref (invoke_policy); } return; system_exception: tprintf ("[System exception comm failure] )"); CORBA_exception_set_system (ev, ex_CORBA_COMM_FAILURE, completion_status); goto clean_out; timeout_exception: tprintf ("[System exception timeout] )"); CORBA_exception_set_system (ev, ex_CORBA_TIMEOUT, CORBA_COMPLETED_NO); goto clean_out; } void ORBit_small_invoke_adaptor (ORBit_OAObject adaptor_obj, GIOPRecvBuffer *recv_buffer, ORBit_IMethod *m_data, gpointer data, CORBA_Environment *ev) { struct CORBA_Context_type ctx; gpointer *args = NULL; gpointer *scratch = NULL; gpointer pretval = NULL; gpointer retval = NULL; GIOPSendBuffer *send_buffer; CORBA_ORB orb; CORBA_TypeCode tc; gboolean has_context; int i; orb = ((ORBit_POAObject)adaptor_obj)->poa->orb; has_context = (m_data->contexts._length > 0); tprintf_header (adaptor_obj->objref, m_data); if ((tc = m_data->ret) && tc->kind != CORBA_tk_void) { while (tc->kind == CORBA_tk_alias) tc = tc->subtypes [0]; switch (tc->kind) { case BASE_TYPES: case OBJ_STRING_TYPES: retval = g_alloca (ORBit_gather_alloc_info (tc)); break; case STRUCT_UNION_TYPES: if (m_data->flags & ORBit_I_COMMON_FIXED_SIZE) { retval = ORBit_alloc_by_tc (tc); break; } /* drop through */ default: retval = &pretval; pretval = NULL; break; } } if (m_data->arguments._length > 0) { int len = m_data->arguments._length * sizeof (gpointer); args = g_alloca (len); memset (args, 0, len); scratch = g_alloca (len); memset (scratch, 0, len); } for (i = 0; i < m_data->arguments._length; i++) { ORBit_IArg *a = &m_data->arguments._buffer [i]; if (a->flags & ORBit_I_ARG_IN || a->flags & ORBit_I_ARG_INOUT) { gpointer p; tc = a->tc; while (tc->kind == CORBA_tk_alias) tc = tc->subtypes [0]; switch (tc->kind) { case BASE_TYPES: case OBJ_STRING_TYPES: p = args [i] = g_alloca (ORBit_gather_alloc_info (tc)); do_demarshal_value (recv_buffer, &p, tc, orb); p = args [i]; tprintf_trace_value (&p, tc); break; case STRUCT_UNION_TYPES: case CORBA_tk_array: if (a->flags & ORBit_I_COMMON_FIXED_SIZE) { p = args [i] = g_alloca (ORBit_gather_alloc_info (tc)); do_demarshal_value (recv_buffer, &p, tc, orb); p = args [i]; tprintf_trace_value (&p, tc); break; } /* drop through */ default: args [i] = ORBit_demarshal_arg (recv_buffer, a->tc, orb); p = args [i]; tprintf_trace_value (&p, tc); break; } } else { /* Out */ tc = a->tc; while (tc->kind == CORBA_tk_alias) tc = tc->subtypes [0]; args [i] = &scratch [i]; switch (tc->kind) { case BASE_TYPES: case OBJ_STRING_TYPES: scratch [i] = g_alloca (ORBit_gather_alloc_info (tc)); break; case STRUCT_UNION_TYPES: case CORBA_tk_array: if (a->flags & ORBit_I_COMMON_FIXED_SIZE) { scratch [i] = ORBit_alloc_by_tc (tc); break; } /* drop through */ default: scratch [i] = NULL; break; } } if (i < m_data->arguments._length - 1) tprintf (", "); } tprintf (")"); if (has_context) { tprintf ("[FIXME:context]"); if (ORBit_Context_demarshal (NULL, &ctx, recv_buffer)) g_warning ("FIXME: handle context demarshaling failure"); } ORBit_OAObject_invoke (adaptor_obj, retval, args, &ctx, data, ev); if (has_context) ORBit_Context_server_free (&ctx); if (m_data->flags & ORBit_I_METHOD_1_WAY) goto clean_out; else goto handle_possible_exception; demarshal_exception: CORBA_exception_set_system (ev, ex_CORBA_MARSHAL, CORBA_COMPLETED_NO); handle_possible_exception: /* FIXME: should we be using the connection's GIOP version ? */ send_buffer = giop_send_buffer_use_reply ( recv_buffer->giop_version, giop_recv_buffer_get_request_id (recv_buffer), ev->_major); if (!send_buffer) { dprintf (MESSAGES, "Weird, no send_buffer"); return; } else if (ev->_major == CORBA_USER_EXCEPTION) { if (!ORBit_small_send_user_exception ( send_buffer, ev, &m_data->exceptions)) { /* Tried to marshal an unknown exception, so we throw a system exception next */ dprintf (MESSAGES, "Re-sending an exception, this time %d: '%s'", ev->_major, ev->_id); goto handle_possible_exception; } tprintf ("User exception '%s'", ev->_id); } else if (ev->_major != CORBA_NO_EXCEPTION) { ORBit_send_system_exception (send_buffer, ev); tprintf ("System exception"); } else { /* Marshal return values */ int trace_have_out = 0; if ((tc = m_data->ret) && tc->kind != CORBA_tk_void) { gpointer p = retval; tprintf (" =>; "); while (tc->kind == CORBA_tk_alias) tc = tc->subtypes [0]; switch (tc->kind) { case BASE_TYPES: case OBJ_STRING_TYPES: ORBit_marshal_arg (send_buffer, retval, m_data->ret); tprintf_trace_value (&p, tc); break; case STRUCT_UNION_TYPES: if (m_data->flags & ORBit_I_COMMON_FIXED_SIZE) { ORBit_marshal_arg (send_buffer, retval, m_data->ret); tprintf_trace_value (&p, tc); break; } /* drop through */ case CORBA_tk_any: case CORBA_tk_sequence: case CORBA_tk_array: default: p = *(gpointer *) retval; ORBit_marshal_arg (send_buffer, *(gpointer *)retval, m_data->ret); tprintf_trace_value (&p, tc); break; } } for (i = 0; i < m_data->arguments._length; i++) { ORBit_IArg *a = &m_data->arguments._buffer [i]; gpointer p; tc = a->tc; while (tc->kind == CORBA_tk_alias) tc = tc->subtypes [0]; if (a->flags & ORBit_I_ARG_INOUT) { if (!trace_have_out++) tprintf (" out: ("); ORBit_marshal_arg (send_buffer, args [i], tc); p = args [i]; tprintf_trace_value (&p, tc); } else if (a->flags & ORBit_I_ARG_OUT) { if (!trace_have_out++) tprintf (" out: ("); ORBit_marshal_arg (send_buffer, scratch [i], tc); p = scratch [i]; tprintf_trace_value (&p, tc); } if (trace_have_out && i < m_data->arguments._length - 1 && m_data->arguments._buffer [i + 1].flags & (ORBit_I_ARG_OUT | ORBit_I_ARG_INOUT)) tprintf (", "); } if (trace_have_out) tprintf (" )"); } do_giop_dump_send (send_buffer); giop_send_buffer_write (send_buffer, recv_buffer->connection, FALSE); giop_send_buffer_unuse (send_buffer); if (m_data->ret && tc->kind != CORBA_tk_void) { switch (m_data->ret->kind) { case BASE_TYPES: break; case CORBA_tk_objref: case CORBA_tk_TypeCode: if (ev->_major == CORBA_NO_EXCEPTION) CORBA_Object_release (*(CORBA_Object *) retval, ev); break; case CORBA_tk_string: case CORBA_tk_wstring: if (ev->_major == CORBA_NO_EXCEPTION) ORBit_free (*(char **) retval); break; case STRUCT_UNION_TYPES: if (m_data->flags & ORBit_I_COMMON_FIXED_SIZE) { ORBit_free (retval); break; } /* drop through */ default: if (ev->_major == CORBA_NO_EXCEPTION) ORBit_free (pretval); break; } } clean_out: tprintf_end_method (); for (i = 0; i < m_data->arguments._length; i++) { ORBit_IArg *a = &m_data->arguments._buffer [i]; tc = a->tc; while (tc->kind == CORBA_tk_alias) tc = tc->subtypes [0]; if (a->flags & ORBit_I_ARG_IN || a->flags & ORBit_I_ARG_INOUT) { switch (tc->kind) { case BASE_TYPES: break; case CORBA_tk_objref: case CORBA_tk_TypeCode: CORBA_Object_release (*(CORBA_Object *) args [i], ev); break; case CORBA_tk_string: case CORBA_tk_wstring: ORBit_free (*(char **) args [i]); break; case STRUCT_UNION_TYPES: case CORBA_tk_array: if (a->flags & ORBit_I_COMMON_FIXED_SIZE) { ORBit_freekids_via_TypeCode (tc, args [i]); break; } /* drop through */ default: ORBit_free (args [i]); break; } } else { /* Out */ switch (tc->kind) { case BASE_TYPES: break; case CORBA_tk_objref: case CORBA_tk_TypeCode: if (ev->_major == CORBA_NO_EXCEPTION) CORBA_Object_release (*(CORBA_Object *) scratch [i], ev); break; case CORBA_tk_string: case CORBA_tk_wstring: if (ev->_major == CORBA_NO_EXCEPTION) ORBit_free (*(char **) scratch [i]); break; case STRUCT_UNION_TYPES: case CORBA_tk_array: if (a->flags & ORBit_I_COMMON_FIXED_SIZE) { ORBit_free (scratch [i]); break; } /* drop through */ default: if (ev->_major == CORBA_NO_EXCEPTION) ORBit_free (scratch [i]); break; } } } CORBA_exception_free (ev); } #ifdef DEBUG gpointer ORBit_small_getepv (CORBA_Object obj, CORBA_unsigned_long class_id) { PortableServer_ServantBase *servant; PortableServer_ClassInfo *class_info; CORBA_unsigned_long offset; ORBit_POAObject pobj; if (obj->adaptor_obj->interface->adaptor_type != ORBIT_ADAPTOR_POA) return NULL; pobj = (ORBit_POAObject)obj->adaptor_obj; servant = pobj->servant; class_info = servant->vepv[0]->_private; g_assert (class_info != NULL); g_assert (class_id < class_info->vepvlen); offset = class_info->vepvmap [class_id]; return servant->vepv [offset]; } #endif struct _ORBitAsyncQueueEntry { GIOPMessageQueueEntry mqe; CORBA_Object obj; ORBitAsyncInvokeFunc fn; gpointer user_data; ORBit_IMethod *m_data; CORBA_completion_status completion_status; }; void ORBit_small_demarshal_async (ORBitAsyncQueueEntry *aqe, gpointer ret, gpointer *args, CORBA_Environment *ev) { g_return_if_fail (aqe->mqe.buffer != NULL); switch (orbit_small_demarshal (aqe->obj, &aqe->mqe.cnx, aqe->mqe.buffer, ev, ret, aqe->m_data, args)) { case MARSHAL_SYS_EXCEPTION_COMPLETE: aqe->completion_status = CORBA_COMPLETED_YES; dprintf (MESSAGES, "Sys exception completed on id 0x%x\n\n", aqe->mqe.request_id); goto system_exception; case MARSHAL_SYS_EXCEPTION_INCOMPLETE: dprintf (MESSAGES, "Sys exception incomplete on id 0x%x\n\n", aqe->mqe.request_id); goto system_exception; case MARSHAL_EXCEPTION_COMPLETE: dprintf (MESSAGES, "Clean demarshal of exception on id 0x%x\n\n", aqe->mqe.request_id); break; case MARSHAL_RETRY: g_warning ("Retry demarshal failed on id 0x%x\n\n", aqe->mqe.request_id); return; case MARSHAL_CLEAN: dprintf (MESSAGES, "Clean demarshal on id 0x%x\n\n", aqe->mqe.request_id); break; }; goto clean_out; system_exception: tprintf ("[System exception comm failure] )"); CORBA_exception_set_system (ev, ex_CORBA_COMM_FAILURE, aqe->completion_status); clean_out: tprintf_end_method (); } static void async_recv_cb (ORBitAsyncQueueEntry *aqe) { CORBA_Environment *ev, real_ev; ev = &real_ev; CORBA_exception_init (ev); /* So we don't get invoked again */ aqe->mqe.async_cb = NULL; if (!aqe->mqe.cnx || aqe->mqe.cnx->parent.status == LINK_DISCONNECTED) CORBA_exception_set_system (ev, ex_CORBA_COMM_FAILURE, aqe->completion_status); if (aqe->mqe.cnx && aqe->mqe.cnx->parent.status == LINK_TIMEOUT) CORBA_exception_set_system (ev, ex_CORBA_TIMEOUT, aqe->completion_status); if (aqe->fn) aqe->fn (aqe->obj, aqe->m_data, aqe, aqe->user_data, ev); ORBit_RootObject_release (aqe->obj); /* ORBit_RootObject_release (aqe->m_data); */ giop_recv_list_destroy_queue_entry (&aqe->mqe); g_free (aqe); CORBA_exception_free (ev); } /** * ORBit_small_invoke_async: * @obj: * @m_data: * @fn: * @user_data: * @args: * @ctx: * @ev: * * This method is used to invoke a remote (or local) method * asynchronously. @fn is called back on return - either with an empty * CORBA_Environment indicating success, or with the error. **/ void ORBit_small_invoke_async (CORBA_Object obj, ORBit_IMethod *m_data, ORBitAsyncInvokeFunc fn, gpointer user_data, gpointer *args, CORBA_Context ctx, CORBA_Environment *ev) { CORBA_unsigned_long request_id; GIOPConnection *cnx; ORBitAsyncQueueEntry *aqe = g_new (ORBitAsyncQueueEntry, 1); if (obj->adaptor_obj) /* a local object, we need a remote handle */ aqe->obj = ORBit_objref_get_proxy (obj); else aqe->obj = ORBit_RootObject_duplicate (obj); cnx = ORBit_object_get_connection (aqe->obj); if (!cnx) { tprintf ("Null connection on object '%p'\n", aqe->obj); aqe->completion_status = CORBA_COMPLETED_NO; goto system_exception; } request_id = GPOINTER_TO_UINT (aqe); aqe->completion_status = CORBA_COMPLETED_NO; giop_recv_list_setup_queue_entry (&aqe->mqe, cnx, GIOP_REPLY, request_id); if (! (m_data->flags & ORBit_I_METHOD_1_WAY)) giop_recv_list_setup_queue_entry_async ( &aqe->mqe, (GIOPAsyncCallback) async_recv_cb); else if (fn) g_warning ("oneway method being invoked async with a callback"); if (!orbit_small_marshal (aqe->obj, cnx, &aqe->mqe, request_id, m_data, args, ctx)) goto system_exception; if (m_data->flags & ORBit_I_METHOD_1_WAY) giop_recv_list_destroy_queue_entry (&aqe->mqe); aqe->completion_status = CORBA_COMPLETED_MAYBE; aqe->fn = fn; aqe->user_data = user_data; /* FIXME: perenial ORBit_IMethod lifecycle issues */ aqe->m_data = /* ORBit_RootObject_duplicate */ (m_data); clean_out: if (cnx) giop_connection_unref (cnx); tprintf_end_method (); return; system_exception: tprintf ("[System exception comm failure] )"); CORBA_exception_set_system (ev, ex_CORBA_COMM_FAILURE, aqe->completion_status); g_free (aqe); goto clean_out; } gpointer ORBit_small_get_servant (CORBA_Object obj) { ORBit_POAObject pobj; if (!obj || !obj->adaptor_obj || !obj->adaptor_obj->interface) return NULL; if (obj->adaptor_obj->interface->adaptor_type != ORBIT_ADAPTOR_POA) { g_warning ("Not a poa object !"); return NULL; } pobj = (ORBit_POAObject)obj->adaptor_obj; return pobj ? pobj->servant : NULL; } static ORBitConnectionStatus get_status (GIOPConnection *cnx) { ORBitConnectionStatus ret; g_return_val_if_fail (cnx != NULL, ORBIT_CONNECTION_DISCONNECTED); switch (link_connection_get_status (LINK_CONNECTION (cnx))) { case LINK_CONNECTED: ret = ORBIT_CONNECTION_CONNECTED; break; case LINK_CONNECTING: ret = ORBIT_CONNECTION_CONNECTED; break; default: ret = ORBIT_CONNECTION_DISCONNECTED; break; } return ret; } ORBitConnectionStatus ORBit_small_get_connection_status (CORBA_Object obj) { ORBitConnectionStatus ret; g_return_val_if_fail (obj != CORBA_OBJECT_NIL, ORBIT_CONNECTION_DISCONNECTED); if (ORBit_small_get_servant (obj)) ret = ORBIT_CONNECTION_IN_PROC; else { GIOPConnection *cnx; cnx = ORBit_object_get_connection (obj); if (cnx) { ret = get_status (cnx); giop_connection_unref (cnx); } else ret = ORBIT_CONNECTION_DISCONNECTED; } return ret; } ORBitConnectionStatus ORBit_small_listen_for_broken (CORBA_Object obj, GCallback fn, gpointer user_data) { ORBitConnectionStatus ret; if (!obj) ret = ORBIT_CONNECTION_DISCONNECTED; else if (ORBit_small_get_servant (obj)) ret = ORBIT_CONNECTION_IN_PROC; else { GIOPConnection *cnx; cnx = ORBit_object_get_connection (obj); if (cnx) { ret = get_status (cnx); link_connection_add_broken_cb (LINK_CONNECTION (cnx), (LinkBrokenCallback)fn, user_data); giop_connection_unref (cnx); } else ret = ORBIT_CONNECTION_DISCONNECTED; } return ret; } ORBitConnectionStatus ORBit_small_unlisten_for_broken_full (CORBA_Object obj, GCallback fn, gpointer user_data) { ORBitConnectionStatus ret; if (!obj) ret = ORBIT_CONNECTION_DISCONNECTED; else if (ORBit_small_get_servant (obj)) ret = ORBIT_CONNECTION_IN_PROC; else { GIOPConnection *cnx; cnx = ORBit_object_peek_connection (obj); if (cnx) { ret = get_status (cnx); link_connection_remove_broken_cb (LINK_CONNECTION (cnx), (LinkBrokenCallback)fn, user_data); giop_connection_unref (cnx); } else ret = ORBIT_CONNECTION_DISCONNECTED; } return ret; } ORBitConnectionStatus ORBit_small_unlisten_for_broken (CORBA_Object obj, GCallback fn) { return ORBit_small_unlisten_for_broken_full (obj, fn, NULL); } ORBitConnection * ORBit_small_get_connection_ref (CORBA_Object obj) { return (ORBitConnection *) ORBit_object_get_connection (obj); } ORBitConnection * ORBit_small_get_connection (CORBA_Object obj) { ORBitConnection *cnx; cnx = ORBit_small_get_connection_ref (obj); /* This sucks but compatibily */ ORBit_small_connection_unref (cnx); return cnx; } void ORBit_small_connection_unref (ORBitConnection *cnx) { if (cnx) giop_connection_unref (GIOP_CONNECTION (cnx)); } void ORBit_connection_set_max_buffer (ORBitConnection *cnx, gulong max_buffer_bytes) { LinkConnection *lcnx = (LinkConnection *) cnx; g_return_if_fail (LINK_IS_CONNECTION (lcnx)); link_connection_set_max_buffer (lcnx, max_buffer_bytes); } ORBit2-2.14.19/src/orb/orb-core/Makefile.in0000644000175000001440000005464011450333734015010 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/Makefile.shared subdir = src/orb/orb-core ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) liborb_core_la_LIBADD = am__liborb_core_la_SOURCES_DIST = orbit-interface-common.c \ corba-defs-common.c iop-defs-common.c corba-ops-stubs.c \ corba-ops-common.c corba-ops-skels.c corba-ops.h corba-orb.c \ orbit-object.c orbit-small.c orbit-typelib.c orbit-trace.c \ corba-object.c corba-loc.c corba-policy.c orbit-policy.c \ orbit-policy.h corba-env.c corba-string.c allocators.c \ corba-typecode.c corba-types.c corba-any.c corba-context.c \ orb-core-private.h orb-core-export.h corba-nvlist.c \ corba-request.c iop-profiles.c iop-profiles.h orbit-debug.h \ orbhttp.c orbhttp.h am__objects_1 = orbit-interface-common.lo am__objects_2 = corba-defs-common.lo am__objects_3 = iop-defs-common.lo am__objects_4 = corba-ops-stubs.lo corba-ops-common.lo \ corba-ops-skels.lo am__objects_5 = am__objects_6 = $(am__objects_1) $(am__objects_2) $(am__objects_3) \ $(am__objects_4) $(am__objects_5) am__objects_7 = orbhttp.lo @ENABLE_HTTP_TRUE@am__objects_8 = $(am__objects_7) am__objects_9 = corba-orb.lo orbit-object.lo orbit-small.lo \ orbit-typelib.lo orbit-trace.lo corba-object.lo corba-loc.lo \ corba-policy.lo orbit-policy.lo corba-env.lo corba-string.lo \ allocators.lo corba-typecode.lo corba-types.lo corba-any.lo \ corba-context.lo corba-nvlist.lo corba-request.lo \ iop-profiles.lo $(am__objects_8) am_liborb_core_la_OBJECTS = $(am__objects_6) $(am__objects_9) liborb_core_la_OBJECTS = $(am_liborb_core_la_OBJECTS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(liborb_core_la_SOURCES) DIST_SOURCES = $(am__liborb_core_la_SOURCES_DIST) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_LTLIBRARIES = liborb-core.la TYPELIB_DIR = $(libdir)/orbit-2.0 INCLUDES = \ -I. \ -I$(srcdir) \ -I$(top_builddir)/include \ -I$(top_builddir)/include/orbit/orb-core \ -I$(top_srcdir)/include \ -I$(top_srcdir)/include/orbit/orb-core \ -DORBIT_TYPELIB_DIR=\""$(TYPELIB_DIR)"\" \ -DORBIT2_INTERNAL_API \ $(WARN_CFLAGS) \ $(DISABLE_DEPRECATED_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_CFLAGS) HTTP_FILES = orbhttp.c orbhttp.h @ENABLE_HTTP_TRUE@ORBHTTP = $(HTTP_FILES) main_src = \ corba-orb.c \ orbit-object.c \ orbit-small.c \ orbit-typelib.c \ orbit-trace.c \ corba-object.c \ corba-loc.c \ corba-policy.c \ orbit-policy.c \ orbit-policy.h \ corba-env.c \ corba-string.c \ allocators.c \ corba-typecode.c \ corba-types.c \ corba-any.c \ corba-context.c \ orb-core-private.h \ orb-core-export.h \ corba-nvlist.c \ corba-request.c \ iop-profiles.c \ iop-profiles.h \ orbit-debug.h \ $(ORBHTTP) liborb_core_la_SOURCES = \ $(BUILT_SOURCES) \ $(main_src) IDLOUT = corba-defs-common.c DEFS_IDLOUT = iop-defs-common.c OPS_IDLOUT_H = corba-ops.h OPS_IDLOUT_C = corba-ops-stubs.c corba-ops-common.c corba-ops-skels.c IFACE_IDLOUT = orbit-interface-common.c IDL_FLAGS = -I$(top_srcdir)/src/idl/CORBA_PIDL \ -I$(top_srcdir)/src/idl/CORBA \ -I$(top_srcdir)/src/idl/misc \ -I$(top_srcdir)/src/idl/interop -I. \ -D_PRE_3_0_COMPILER_ \ --noskels --nodefskels --nostubs --noidata --noheaders \ --define=Object=OObject --define=TypeCode=TTypeCode \ --showcpperrors IDL_FILES = corba-defs.idl iop-defs.idl corba-ops.idl orbit-interface.idl IDL_DIR = $(top_srcdir)/src/orb/orb-core/ @MAINTAINER_MODE_TRUE@IDL_DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) @MAINTAINER_MODE_TRUE@IDL_DEP_FILES = $(IDL_FILES:%.idl=.deps/%.idl.P) IDL_FLAGS_CORBA_OPS = --showcpperrors IDL_FLAGS_INTERFACE = --nostubs --noskels --showcpperrors --noheaders BUILT_SOURCES = $(IFACE_IDLOUT) $(IDLOUT) $(DEFS_IDLOUT) $(OPS_IDLOUT_C) $(OPS_IDLOUT_H) CLEANFILES = $(BUILT_SOURCES) EXTRA_DIST = $(IDL_FILES) $(HTTP_FILES) all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.shared $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/orb/orb-core/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/orb/orb-core/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done liborb-core.la: $(liborb_core_la_OBJECTS) $(liborb_core_la_DEPENDENCIES) $(LINK) $(liborb_core_la_OBJECTS) $(liborb_core_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/allocators.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/corba-any.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/corba-context.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/corba-defs-common.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/corba-env.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/corba-loc.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/corba-nvlist.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/corba-object.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/corba-ops-common.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/corba-ops-skels.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/corba-ops-stubs.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/corba-orb.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/corba-policy.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/corba-request.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/corba-string.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/corba-typecode.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/corba-types.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iop-defs-common.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iop-profiles.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbhttp.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-interface-common.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-object.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-policy.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-small.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-trace.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-typelib.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-local distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES ctags dist-hook \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-local distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am $(liborb_core_la_OBJECTS) : $(BUILT_SOURCES) %-stubs.c %-skels.c %-common.c %-imodule.c %-skelimpl.c: %.h true %.h: $(IDL_DIR)%.idl $(IDL_COMPILER) -(rm -f $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c || true) > /dev/null $(IDL_COMPILER) $(IDL_FLAGS) --deps $(*D)/.deps/$(*F).idl.P $< for I in $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c; do \ if test -f $$I; then \ sed -e 's,OObject,Object,g' -e 's,TTypeCode,TypeCode,g' $$I > $$I.out; \ mv $$I.out $$I ; \ fi; \ done @MAINTAINER_MODE_TRUE@-include $(IDL_DEP_FILES) distclean-local: -rm -rf .deps $(OPS_IDLOUT_C): $(OPS_IDLOUT_H) $(OPS_IDLOUT_H): corba-ops.idl $(IDL_COMPILER) -(rm -f $(OPS_IDLOUT_C) $(OPS_IDLOUT_H) || true) > /dev/null $(IDL_COMPILER) $(IDL_FLAGS_CORBA_OPS) --deps .deps/corba-ops.idl.P $< for I in $(OPS_IDLOUT_C) $(OPS_IDLOUT_H); do \ sed -e 's,ZZZis_a,_is_a,g' -e 's,ZZis_a,is_a,g' $$I > $$I.out; mv $$I.out $$I; \ done; \ sed -e "s,Z,_,g" corba-ops-skels.c > corba-ops-skels.c.out; \ mv corba-ops-skels.c.out corba-ops-skels.c; $(IFACE_IDLOUT) : orbit-interface.idl $(IDL_COMPILER) -(rm -f $(IFACE_IDLOUT) || true) > /dev/null $(IDL_COMPILER) $(IDL_FLAGS_INTERFACE) --deps .deps/orbit-interface.idl.P $< dist-hook: cd $(distdir); rm -f $(BUILT_SOURCES) $(IDL_COMPILER): @cd $(top_builddir)/src/idl-compiler && $(MAKE) $(AM_MAKEFLAGS) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/src/orb/orb-core/iop-defs.idl0000644000175000001440000000035011334247617015135 00000000000000#pragma inhibit push #include "corba-defs.idl" #pragma inhibit pop #include "IIOP.idl" #include "GIOP.idl" #include "CSI.idl" #include "CSIIOP.idl" #include "BiDirPolicy.idl" #include "conv_frame.idl" #include "orbit-specific.idl" ORBit2-2.14.19/src/orb/orb-core/orbit-debug.h0000644000175000001440000000656011334247617015322 00000000000000#ifndef __ORBIT_DEBUG_H__ #define __ORBIT_DEBUG_H__ typedef enum { ORBIT_DEBUG_NONE = 0, ORBIT_DEBUG_TRACES = 1 << 0, ORBIT_DEBUG_INPROC_TRACES = 1 << 1, ORBIT_DEBUG_TIMINGS = 1 << 2, ORBIT_DEBUG_TYPES = 1 << 3, ORBIT_DEBUG_MESSAGES = 1 << 4, ORBIT_DEBUG_ERRORS = 1 << 5, ORBIT_DEBUG_OBJECTS = 1 << 6, ORBIT_DEBUG_GIOP = 1 << 7, ORBIT_DEBUG_REFS = 1 << 8, ORBIT_DEBUG_FORCE_THREADED = 1 << 9 } OrbitDebugFlags; #ifndef G_ENABLE_DEBUG /*static inline void dprintf (OrbitDebugFlags flags, const char *format, ...) { };*/ #ifdef G_HAVE_ISO_VARARGS # define dprintf(...) # define tprintf(...) #elif defined(G_HAVE_GNUC_VARARGS) # define dprintf(args...) # define tprintf(args...) #else /* This sucks for compatibility - fix your compiler */ #define MESSAGES (OrbitDebugFlags)0 #define TYPES (OrbitDebugFlags)0 #define OBJECTS (OrbitDebugFlags)0 #define GIOP (OrbitDebugFlags)0 #define ERRORS (OrbitDebugFlags)0 static inline void dprintf (OrbitDebugFlags flags, const char *format, ...) { } static inline void tprintf (const char *format, ...) { } #endif #define dump_arg(a,b) #define tprintf_header(obj,md) #define tprintf_trace_value(a,b) #define tprintf_timestamp() #define tprintf_end_method() #define tprintf_timestamp() #else /* G_ENABLE_DEBUG */ #include extern OrbitDebugFlags _orbit_debug_flags; #ifdef G_HAVE_ISO_VARARGS # define dprintf(type, ...) G_STMT_START { \ if (_orbit_debug_flags & ORBIT_DEBUG_##type) \ fprintf (stderr, __VA_ARGS__); \ } G_STMT_END #elif defined(G_HAVE_GNUC_VARARGS) # define dprintf(type, args...) G_STMT_START { \ if (_orbit_debug_flags & ORBIT_DEBUG_##type) \ fprintf (stderr, args); \ } G_STMT_END #endif static inline void dump_arg (const ORBit_IArg *a, CORBA_TypeCode tc) { if (_orbit_debug_flags & ORBIT_DEBUG_MESSAGES) fprintf (stderr, " '%s' : kind - %d, %c%c", a->name, tc->kind, a->flags & (ORBit_I_ARG_IN | ORBit_I_ARG_INOUT) ? 'i' : ' ', a->flags & (ORBit_I_ARG_OUT | ORBit_I_ARG_INOUT) ? 'o' : ' '); } void ORBit_trace_objref (const CORBA_Object obj); void ORBit_trace_any (const CORBA_any *any); void ORBit_trace_typecode (const CORBA_TypeCode tc); void ORBit_trace_value (gconstpointer *val, CORBA_TypeCode tc); void ORBit_trace_header (CORBA_Object object, ORBit_IMethod *m_data); void ORBit_trace_end_method (void); void ORBit_trace_profiles (CORBA_Object obj); void ORBit_trace_timestamp (void); #ifdef G_HAVE_ISO_VARARGS # define tprintf(...) dprintf (TRACES, __VA_ARGS__) #elif defined(G_HAVE_GNUC_VARARGS) # define tprintf(args...) dprintf (TRACES, args) #endif #define tprintf_header(obj,md) G_STMT_START { \ if (_orbit_debug_flags & ORBIT_DEBUG_TRACES) \ ORBit_trace_header (obj,md); \ } G_STMT_END #define tprintf_trace_value(a,b) G_STMT_START { \ if (_orbit_debug_flags & ORBIT_DEBUG_TRACES) \ ORBit_trace_value ((gconstpointer *)(a), (b)); \ } G_STMT_END #define tprintf_end_method() G_STMT_START { \ if (_orbit_debug_flags & ORBIT_DEBUG_TRACES) \ ORBit_trace_end_method (); \ } G_STMT_END #define tprintf_timestamp() G_STMT_START { \ if (_orbit_debug_flags & ORBIT_DEBUG_TIMINGS) \ ORBit_trace_timestamp (); \ } G_STMT_END #endif /* G_ENABLE_DEBUG */ #endif /* __ORBIT_DEBUG_H__ */ ORBit2-2.14.19/src/orb/orb-core/orbit-interface.idl0000644000175000001440000000222211334247617016504 00000000000000#ifndef _ORBIT_INTERFACE_IDL_ #define _ORBIT_INTERFACE_IDL_ module ORBit { typedef long IArgFlag; /* Reserved common Arg / Retval flags -> 16 */ const long I_COMMON_FIXED_SIZE = 1; const long I_ARG_IN = 32; const long I_ARG_OUT = 64; const long I_ARG_INOUT = 128; struct IArg { TypeCode tc; IArgFlag flags; string name; }; typedef sequence IArgs; typedef sequence ITypes; typedef sequence IContexts; typedef long IMethodFlag; const long I_METHOD_1_WAY = 32; const long I_METHOD_ALL_BASE = 64; const long I_METHOD_NO_OUT = 128; const long I_METHOD_HAS_CONTEXT = 256; struct IMethod { IArgs arguments; IContexts contexts; ITypes exceptions; TypeCode ret; string name; long name_len; IMethodFlag flags; }; typedef sequence IMethods; struct IInterface { TypeCode tc; IMethods methods; sequence base_interfaces; }; typedef sequence IInterfaces; exception NoIInterface {}; }; /* module ORBit */ #endif /* _ORBIT_INTERFACE_IDL_ */ ORBit2-2.14.19/src/orb/orb-core/corba-policy.c0000644000175000001440000000315111334247617015466 00000000000000#include "config.h" #include #include "../util/orbit-purify.h" static void ORBit_Policy_release (ORBit_RootObject obj) { struct CORBA_Policy_type *policy = (struct CORBA_Policy_type *)obj; p_free (policy, struct CORBA_Policy_type); } static ORBit_RootObject_Interface ORBit_Policy_interface = { ORBIT_ROT_POLICY, ORBit_Policy_release }; CORBA_Policy ORBit_Policy_new (CORBA_unsigned_long type, CORBA_unsigned_long value) { struct CORBA_Policy_type *policy; policy = g_new0 (struct CORBA_Policy_type, 1); ORBit_RootObject_init ((ORBit_RootObject)policy, &ORBit_Policy_interface); policy->type = type; policy->value = value; return (CORBA_Policy)ORBit_RootObject_duplicate (policy); } CORBA_PolicyType CORBA_Policy__get_policy_type (CORBA_Policy p, CORBA_Environment *ev) { struct CORBA_Policy_type *policy = (struct CORBA_Policy_type *)p; return policy->type; } CORBA_Policy CORBA_Policy_copy (CORBA_Policy p, CORBA_Environment *ev) { struct CORBA_Policy_type *policy = (struct CORBA_Policy_type *)p; return ORBit_Policy_new (policy->type, policy->value); } void CORBA_Policy_destroy (CORBA_Policy p, CORBA_Environment *ev) { } CORBA_Policy CORBA_DomainManager_get_domain_policy (CORBA_DomainManager p, const CORBA_PolicyType policy_type, CORBA_Environment *ev) { return CORBA_OBJECT_NIL; } void CORBA_ConstructionPolicy_make_domain_manager (CORBA_ConstructionPolicy p, const CORBA_InterfaceDef object_type, const CORBA_boolean constr_policy, CORBA_Environment *ev) { } ORBit2-2.14.19/src/orb/orb-core/corba-loc.c0000644000175000001440000002671611334247617014760 00000000000000#include "config.h" #include #include #include #include #include #include "corba-ops.h" #include "orb-core-private.h" #include "orb-core-export.h" #include "orbit-debug.h" #include "../util/orbit-purify.h" #include "iop-profiles.h" #define OMG_LOCATOR "2809" /* does not preserve @profile string, inserts '\0' as seperator, * @return FALSE on failure and TRUE otherwise, on success restults * will be assigned to @ver and @host and @port, do not _free_ * @host */ static gboolean corbaloc_profile_iiop_parse (gchar *profile, GIOPVersion *ver, gchar **host, unsigned short *port, gboolean *ssl) { gchar *_prof = NULL; gchar *_token = NULL; gchar *_ver = NULL; gchar *_host = NULL; gchar *_port = NULL; /* [iiop]:[1.2@]host-name[:port] */ _prof = profile; if (!strncmp (_prof, ":", strlen (":")) || !strncmp (_prof, "iiop:", strlen ("iiop:"))) *ssl = FALSE; else if (!strncmp (_prof, "iiops:", strlen ("iiops:")) || !strncmp (_prof, "ssliop:", strlen ("ssliop:"))) *ssl = TRUE; else goto ret_error; _token = strchr (_prof, ':'); _token++; /* point right of ':' */ /* skip leading '/' */ while (*_token == '/') ++_token; if (strchr (_token, '@')) { _ver = _token; _token = strchr (_token, '@'); *_token = '\0'; ++_token; } else { _ver = *ssl ? "1.1" : "1.0"; } _host = _token; if (strchr (_token, ':')) { _port = strchr (_token, ':'); *_port = '\0'; ++_port; } else { _port = OMG_LOCATOR; } /* asure strings are not empty */ if (!strlen (_ver)) goto ret_error; if (!strlen (_host)) goto ret_error; if (!strlen (_port)) goto ret_error; /* verify @_port is ushort */ if (atoi(_port) < 0 || atoi (_port) > USHRT_MAX) goto ret_error; *port = (unsigned short) atoi (_port); while (*_port) if (!isdigit (*_port++)) goto ret_error; /* verify @_ver is one of GIOP 1.0, 1.1. or 1.2 */ if (!strncmp (_ver, "1.0", strlen ("1.0"))) *ver = GIOP_1_0; else if (!strncmp (_ver, "1.1", strlen ("1.1"))) *ver = GIOP_1_1; else if (!strncmp (_ver, "1.2", strlen ("1.2"))) *ver = GIOP_1_2; else goto ret_error; *host = _host; return TRUE; ret_error: return FALSE; } static gboolean corbaloc_profile_uiop_parse (gchar *profile, gchar **socket_path, gushort *ipv6_port ) { g_assert (profile && strlen (profile) > 0 ); /* [uiop]: ['//'] socket-path ':' [ port ] */ if (strncmp (profile, "uiop:", strlen ("uiop:"))) goto ret_error; profile = strchr (profile, ':'); profile++; /* point behind ':' */ /* skip leading '/', step back to last */ while (*profile == '/') ++profile; --profile; *socket_path = profile; if (!(profile = strrchr (profile, ':'))) goto ret_error; *profile++ = '\0'; if (strlen (profile)) { if (atoi(profile) < 0 || atoi (profile) > USHRT_MAX) goto ret_error; *ipv6_port = atoi (profile); while (*profile) if (!isdigit (*profile++)) goto ret_error; } else { *ipv6_port = 0; } if (!strlen (*socket_path)) goto ret_error; return TRUE; ret_error: return FALSE; } static IOP_TAG_INTERNET_IOP_info* corbaloc_profile_iiop (gchar *token, ORBit_ObjectKey *objkey) { IOP_TAG_INTERNET_IOP_info* iiop = NULL; GIOPVersion ver = GIOP_1_0; gchar *host = NULL; unsigned short port = 0; /* invalid port number */ gboolean ssl = FALSE; /* will insert '\0' into token [i] */ if (!corbaloc_profile_iiop_parse (token, &ver, &host, &port, &ssl)) return NULL; if (ssl && ver < GIOP_1_1) return NULL; iiop = g_new0 (IOP_TAG_INTERNET_IOP_info, 1); iiop->parent.profile_type = IOP_TAG_INTERNET_IOP; iiop->iiop_version = ver; iiop->host = g_strdup (host); iiop->port = ssl ? 0 : port; iiop->object_key = IOP_ObjectKey_copy (objkey); iiop->components = NULL; /* FIXME, set CodeSet utf8,utf16 etc.*/ if (ssl) { IOP_TAG_SSL_SEC_TRANS_info *sslsec; sslsec = g_new0 (IOP_TAG_SSL_SEC_TRANS_info, 1); sslsec->parent.component_type = IOP_TAG_SSL_SEC_TRANS; sslsec->target_supports = /* CSIIOP_NoProtection | */ CSIIOP_Integrity | CSIIOP_Confidentiality | CSIIOP_DetectReplay | CSIIOP_DetectMisordering | CSIIOP_EstablishTrustInTarget | CSIIOP_EstablishTrustInClient; sslsec->target_requires = CSIIOP_Integrity | CSIIOP_Confidentiality; sslsec->port = port; iiop->components = g_slist_append ( iiop->components, sslsec); } return iiop; } static IOP_TAG_ORBIT_SPECIFIC_info* corbaloc_profile_uiop (gchar *token, ORBit_ObjectKey *objkey) { IOP_TAG_ORBIT_SPECIFIC_info* osi = NULL; gchar *socket_path = NULL; gushort ipv6_port = 0; /* will insert '\0' into token [i] */ if (!corbaloc_profile_uiop_parse (token, &socket_path, &ipv6_port)) return NULL; osi = g_new0 (IOP_TAG_ORBIT_SPECIFIC_info, 1); osi->parent.profile_type = IOP_TAG_ORBIT_SPECIFIC; osi->unix_sock_path = g_strdup (socket_path); osi->ipv6_port = ipv6_port; osi->object_key = IOP_ObjectKey_copy (objkey); return osi; } /* taken from Mico ORB */ static gchar orbit_from_xdigit(gchar c) { c = tolower (c); g_assert (isxdigit (c)); return isdigit (c) ? c - '0' : c - 'a' + 10; } /* taken from Mico ORB */ static ORBit_ObjectKey* orbit_url_decode (const char * ptr) { ORBit_ObjectKey *retval = NULL; guchar * buf = NULL; retval = CORBA_sequence_CORBA_octet__alloc (); retval->_length = 0; retval->_maximum = strlen (ptr)+1; retval->_buffer = CORBA_sequence_CORBA_octet_allocbuf (retval->_maximum); retval->_release = CORBA_TRUE; buf = retval->_buffer; while (*ptr) { if (*ptr == '%') { if (!isxdigit((unsigned char)ptr[1]) || !isxdigit((unsigned char)ptr[2])) { CORBA_free (retval); return NULL; } *buf = (orbit_from_xdigit(ptr[1])<<4 | orbit_from_xdigit(ptr[2])); ptr += 3; } else { *buf = *ptr++; } buf++; (retval->_length)++; } /* * Null-terminate the result so that it can be used as a * string. The null is deliberately not added to the length, * because it isn't part of the string. */ *buf = 0; return retval; } GSList* ORBit_corbaloc_parse (const gchar *corbaloc) { GSList *profiles = NULL; ORBit_ObjectKey *objkey = NULL; gchar *loc = NULL; gchar **token = NULL; gchar *okey = NULL; glong i = 0; g_return_val_if_fail (corbaloc, NULL); if (!strchr (corbaloc, '/')) /* any object key ? */ goto ret_error; if (!strncmp (corbaloc, "corbaloc:", strlen("corbaloc:"))) corbaloc += strlen("corbaloc:"); /* dup. multi profile + object key */ loc = g_strdup (corbaloc); /* split at last '/' */ okey = strrchr (loc, '/'); if (!okey || strlen (okey)==0) goto ret_error; *okey = '\0'; ++okey; if (!strlen(okey)) goto ret_error; if (!(objkey = orbit_url_decode (okey))) goto ret_error; if (!(token = g_strsplit (loc, ",", G_MAXINT))) goto ret_error; /* [ 'iiop' ] ':' [ '//' ] [ version '@' ] host [ ':' port ] */ /* [ 'iiops' ] ':' [ '//' ] [ version '@' ] host [ ':' port ] */ /* [ 'ssliop' ] ':' [ '//' ] [ version '@' ] host [ ':' port ] */ /* [ 'uiop' ] ':' [ '//' ] socket ':' [ port ] */ for (i=0; token[i]; ++i) { switch (token [i][0]) { case ':': case 'i': case 's': { IOP_TAG_INTERNET_IOP_info *iiop_profile = corbaloc_profile_iiop (token[i], objkey); if (!iiop_profile) goto ret_error; profiles = g_slist_append (profiles, iiop_profile); break; } case 'u': { IOP_TAG_ORBIT_SPECIFIC_info *osi_profile = corbaloc_profile_uiop (token[i], objkey); if (!osi_profile) goto ret_error; profiles = g_slist_append (profiles, osi_profile); break; } default: goto ret_error; } } goto ret_ok; ret_error: if (profiles) { IOP_delete_profiles (NULL, &profiles); profiles = NULL; } ret_ok: if (loc) g_free (loc); /* also free's okey */ if (token) g_strfreev (token); if (objkey) CORBA_free (objkey); return profiles; } static gboolean as_corbaloc (GSList *profile_list) { gboolean valid = FALSE; GSList *cur = NULL; for (cur = profile_list; cur; cur = cur->next) { IOP_Profile_info *info = cur->data; switch (info->profile_type) { case IOP_TAG_INTERNET_IOP: case IOP_TAG_ORBIT_SPECIFIC: valid = TRUE; break; default: break; } } if (!valid) { dprintf (OBJECTS, "none IIOP, SSLIOP or UIOP profile found\n"); } return valid; } static IOP_TAG_SSL_SEC_TRANS_info* get_ssl_component (GSList *components) { GSList *cur = NULL; for (cur = components; cur; cur = cur->next) { IOP_Component_info *comp = cur->data; switch (comp->component_type) { case IOP_TAG_SSL_SEC_TRANS: return (IOP_TAG_SSL_SEC_TRANS_info*) comp; break; default: break; } } return NULL; } static gchar* giop_version_str (GIOPVersion ver) { static gchar *str[] = {"1.0", "1.1", "1.2"}; g_return_val_if_fail (ver == GIOP_1_0 || ver == GIOP_1_1 || ver == GIOP_1_2, str [2]); return str [ver]; } CORBA_char* ORBit_corbaloc_from (GSList *profile_list, ORBit_ObjectKey *object_key) { CORBA_char *retval; GString *str; GSList *cur; gboolean first_profile; if (!as_corbaloc (profile_list)) return NULL; str = g_string_sized_new (256); g_string_printf (str, "corbaloc:"); first_profile = TRUE; for (cur = profile_list; cur; cur = cur->next) { IOP_Profile_info *info = cur->data; switch (info->profile_type) { case IOP_TAG_INTERNET_IOP: { IOP_TAG_INTERNET_IOP_info *iiop = cur->data; IOP_TAG_SSL_SEC_TRANS_info *ssl_info = NULL; gint i = 0; if (!first_profile) g_string_append_printf (str, ","); first_profile = FALSE; if ((ssl_info = get_ssl_component (iiop->components))) { g_assert (ssl_info->port != 0); g_string_append_printf (str, "ssliop:%s@%s:%d/", giop_version_str (iiop->iiop_version), iiop->host, ssl_info->port); } else g_string_append_printf (str, "iiop:%s@%s:%d/", giop_version_str (iiop->iiop_version), iiop->host, iiop->port); /* url encoding */ for (i = 0; i < object_key->_length; i++) g_string_append_printf (str, "%%%02x", object_key->_buffer [i]); break; } case IOP_TAG_ORBIT_SPECIFIC: { IOP_TAG_ORBIT_SPECIFIC_info *os = cur->data; gint i = 0; if (!first_profile) g_string_append_printf (str, ","); first_profile = FALSE; /* suppress ipv6_port if possible to be * compliant to uiop syntax known by * 'openorb' */ if (os->ipv6_port) g_string_append_printf (str, "uiop:%s:%d/", os->unix_sock_path, os->ipv6_port); else g_string_append_printf (str, "uiop:%s:/", os->unix_sock_path); /* url encoding */ for (i = 0; i < object_key->_length; i++) g_string_append_printf (str, "%%%02x", object_key->_buffer [i]); break; } case IOP_TAG_GENERIC_IOP: default: /* ignore */ break; } } retval = CORBA_string_dup (str->str); g_string_free (str, TRUE); return retval; } ORBit2-2.14.19/src/orb/orb-core/orbit-trace.c0000644000175000001440000001371411334247617015324 00000000000000#ifdef G_ENABLE_DEBUG #include "config.h" #include #include #include #include #include #include #include "orb-core-private.h" #include "orbit-debug.h" /* * Flip this switch to debug the * debug code. */ #undef DEBUG_TRACE #define NOT_NULL(str) ((str) == NULL ? "(null)" : (str)) void ORBit_trace_objref (const CORBA_Object obj) { if (!obj) tprintf ("[nil]"); else tprintf ("[%p]", obj); } void ORBit_trace_typecode (const CORBA_TypeCode tc) { g_return_if_fail (tc != NULL); tprintf ("tc:%s", NOT_NULL (TC_CORBA_TCKind->subnames [tc->kind])); } void ORBit_trace_any (const CORBA_any *any) { gconstpointer p; g_return_if_fail (any != NULL); tprintf ("{ "); ORBit_trace_typecode (any->_type); tprintf (", "); p = any->_value; ORBit_trace_value (&p, any->_type); tprintf (" }"); } void ORBit_trace_value (gconstpointer *val, CORBA_TypeCode tc) { CORBA_unsigned_long i; gconstpointer subval; #ifdef DEBUG_TRACE fprintf (stderr, "\ntrace '%s' %p align %d, (size %d)\n", NOT_NULL (TC_CORBA_TCKind->subnames [tc->kind]), *val, tc->c_align, ORBit_gather_alloc_info (tc)); #endif *val = ALIGN_ADDRESS (*val, tc->c_align); switch (tc->kind) { case CORBA_tk_alias: { subval = *val; ORBit_trace_value (&subval, tc->subtypes[0]); break; } #define _ORBIT_HANDLE_TYPE(ctk,typ,ctpye,wirebits,wirebytes,format) \ case CORBA_tk_##ctk: \ tprintf (format, *(CORBA_##typ *) *val); \ break; /* CORBA_tk_, CORBA_ type, C-stack type, wire size (bits), wire size (bytes), print format */ _ORBIT_HANDLE_TYPE (short, short, int, 16, 2, "%d"); _ORBIT_HANDLE_TYPE (long, long, int, 32, 4, "0x%x"); /* FIXME: for an enum, would be nice to dump the string name ! */ _ORBIT_HANDLE_TYPE (enum, long, int, 32, 4, "%d"); _ORBIT_HANDLE_TYPE (ushort, unsigned_short, unsigned int, 16, 2, "%u"); _ORBIT_HANDLE_TYPE (ulong, unsigned_long, unsigned int, 32, 4, "0x%x"); _ORBIT_HANDLE_TYPE (longlong, long_long, long long, 64, 8, "%"G_GINT64_FORMAT); _ORBIT_HANDLE_TYPE (ulonglong, unsigned_long_long, unsigned long long, 64, 8, "%"G_GUINT64_FORMAT); _ORBIT_HANDLE_TYPE (boolean, boolean, int, 8, 1, "%d"); _ORBIT_HANDLE_TYPE (char, char, int, 8, 1, "'%c'"); _ORBIT_HANDLE_TYPE (wchar, wchar, int, 16, 2, "'%lc'"); _ORBIT_HANDLE_TYPE (octet, octet, int, 8, 1, "0x%x"); _ORBIT_HANDLE_TYPE (float, float, double, 32, 4, "%f"); _ORBIT_HANDLE_TYPE (double, double, double, 64, 8, "%g"); case CORBA_tk_any: ORBit_trace_any (*val); break; case CORBA_tk_objref: ORBit_trace_objref (*(CORBA_Object*)*val); break; case CORBA_tk_TypeCode: ORBit_trace_typecode (*(CORBA_TypeCode *)*val); break; case CORBA_tk_except: case CORBA_tk_struct: subval = *val; tprintf ("{ "); for (i = 0; i < tc->sub_parts; i++) { ORBit_trace_value (&subval, tc->subtypes [i]); if (i < tc->sub_parts - 1) tprintf (", "); } tprintf (" }"); break; case CORBA_tk_union: { CORBA_TypeCode subtc; int al = 0, sz = 0; gconstpointer body, discrim; subval = *val; tprintf ("{ d="); ORBit_trace_value (&subval, tc->discriminator); tprintf (" v="); discrim = *val; subtc = ORBit_get_union_tag (tc, &discrim, FALSE); for (i = 0; i < tc->sub_parts; i++) { al = MAX (al, tc->subtypes [i]->c_align); sz = MAX (sz, ORBit_gather_alloc_info (tc->subtypes [i])); } body = ALIGN_ADDRESS (subval, al); ORBit_trace_value (&body, subtc); tprintf (" }"); break; } case CORBA_tk_wstring: tprintf ("wstring"); break; case CORBA_tk_string: { const char * v = (*(const char **)*val); if (v == NULL) tprintf("(null)"); else { static int max = -1; const char * v = (*(const char **)*val); GString *str; int len = strlen (v); if (max < 0) { max = 64; if (g_getenv ("ORBIT2_DEBUG_STRMAX")) max = atoi (g_getenv ("ORBIT2_DEBUG_STRMAX")); } str = g_string_sized_new (max + 8); for (i = 0; i < MIN (max, len); i++) { if (g_ascii_isprint (v[i]) && v[i] != '#') g_string_append_c (str, v[i]); else { g_string_append_c (str, '#'); g_string_append_printf (str, "0x%2x", v[i]); g_string_append_c (str, '#'); } } if (len > max) g_string_append (str, " ..."); tprintf ("'%s'", str->str); g_string_free (str, TRUE); } break; } case CORBA_tk_sequence: { const CORBA_sequence_CORBA_octet *sval = *val; subval = sval->_buffer; tprintf ("seq[%d]={ ", sval->_length); for(i = 0; i < sval->_length; i++) { ORBit_trace_value (&subval, tc->subtypes[0]); if (i < sval->_length - 1) tprintf (", "); } tprintf (" }"); break; } case CORBA_tk_array: { subval = *val; tprintf ("array[%d]={ ", tc->length); for(i = 0; i < tc->length; i++) { ORBit_trace_value (&subval, tc->subtypes[0]); if (i < tc->length - 1) tprintf (", "); } tprintf (" }"); break; } case CORBA_tk_longdouble: case CORBA_tk_fixed: tprintf ("wierd"); break; case CORBA_tk_null: tprintf ("null"); break; case CORBA_tk_void: tprintf ("void"); break; default: g_error("Can't encode unknown type %d", tc->kind); } *val = ((guchar *)*val) + ORBit_gather_alloc_info (tc); } void ORBit_trace_timestamp (void) { GTimeVal t; g_get_current_time (&t); tprintf ("%lu.%06lu ", t.tv_sec, t.tv_usec); } void ORBit_trace_header (CORBA_Object object, ORBit_IMethod *m_data) { tprintf ("p%5d ", getpid ()); tprintf_timestamp (); tprintf (": ("); ORBit_trace_objref (object); tprintf (")->%s (", NOT_NULL (m_data->name)); } void ORBit_trace_end_method (void) { tprintf (" "); tprintf_timestamp (); tprintf ("\n"); } void ORBit_trace_profiles (CORBA_Object obj) { tprintf ("p %d: Obj %p (%s) profiles: ", getpid (), obj, g_quark_to_string (obj ? obj->type_qid : 0)); if (obj) { GSList *l; for (l = obj->profile_list; l; l = l->next) { char *s; s = IOP_profile_dump (obj, l->data); tprintf ("'%s' ", s); g_free (s); } } tprintf ("\n"); } #endif /* G_ENABLE_DEBUG */ ORBit2-2.14.19/src/orb/orb-core/corba-types.c0000644000175000001440000000067511334247617015343 00000000000000#include "config.h" #include #include CORBA_sequence_CORBA_octet* ORBit_sequence_CORBA_octet_dup (const CORBA_sequence_CORBA_octet *in) { CORBA_sequence_CORBA_octet *retval = CORBA_sequence_CORBA_octet__alloc (); *retval = *in; if (in->_buffer) { retval->_buffer = ORBit_alloc_simple (in->_length); memcpy (retval->_buffer, in->_buffer, in->_length); retval->_release = CORBA_TRUE; } return retval; } ORBit2-2.14.19/src/orb/orb-core/corba-string.c0000644000175000001440000000161011334247617015473 00000000000000#include "config.h" #include #include CORBA_char * CORBA_string_alloc (CORBA_unsigned_long len) { return ORBit_alloc_string (len + 1); } CORBA_char * CORBA_string_dup (const CORBA_char *str) { CORBA_char *retval; CORBA_unsigned_long len; if (!str) return NULL; len = strlen (str) + 1; retval = ORBit_alloc_string (len); memcpy (retval, str, len); return retval; } CORBA_wchar * CORBA_wstring_alloc (CORBA_unsigned_long len) { return ORBit_alloc_simple ((len + 1) * 2); } CORBA_unsigned_long CORBA_wstring_len (CORBA_wchar *ws) { int i; for (i = 0; ws [i]; i++) ; /**/ return i; } CORBA_wchar * CORBA_wstring_dup (const CORBA_wchar *str) { CORBA_wchar *retval; CORBA_unsigned_long len; if (!str) return NULL; len = CORBA_wstring_len (str); retval = CORBA_wstring_alloc (len); memcpy (retval, str, (len + 1) * 2); return retval; } ORBit2-2.14.19/src/orb/orb-core/iop-profiles.h0000644000175000001440000000463611334247617015531 00000000000000#ifndef __IOP_PROFILES_H__ #define __IOP_PROFILES_H__ 1 #define IOP_PROFILES_CODE_SET_UTF8 ((CORBA_unsigned_long) 0x05010001) #define IOP_PROFILES_CODE_SET_UTF16 ((CORBA_unsigned_long) 0x00010109) #define IOP_PROFILES_CODE_SET_ISO_8859_1 ((CORBA_unsigned_long) 0x00010001) #define IOP_PROFILES_CODE_SET_ISO_8859_2 ((CORBA_unsigned_long) 0x00010002) #define IOP_PROFILES_CODE_SET_ISO_8859_3 ((CORBA_unsigned_long) 0x00010003) #define IOP_PROFILES_CODE_SET_ISO_8859_4 ((CORBA_unsigned_long) 0x00010004) typedef struct { IOP_ProfileId profile_type; } IOP_Profile_info; typedef struct { IOP_Profile_info parent; GIOPVersion iiop_version; gchar *host; CORBA_unsigned_short port; ORBit_ObjectKey *object_key; GSList *components; } IOP_TAG_INTERNET_IOP_info; typedef struct { IOP_Profile_info parent; GIOPVersion iiop_version; gchar *proto; gchar *host; gchar *service; GSList *components; } IOP_TAG_GENERIC_IOP_info; typedef struct { IOP_Profile_info parent; gchar *unix_sock_path; CORBA_unsigned_short ipv6_port; ORBit_ObjectKey *object_key; } IOP_TAG_ORBIT_SPECIFIC_info; typedef struct { IOP_Profile_info parent; GSList *components; } IOP_TAG_MULTIPLE_COMPONENTS_info; typedef struct { IOP_Profile_info parent; CORBA_sequence_CORBA_octet data; } IOP_UnknownProfile_info; typedef struct { IOP_ComponentId component_type; } IOP_Component_info; typedef struct { IOP_Component_info parent; gchar *service; } IOP_TAG_GENERIC_SSL_SEC_TRANS_info; typedef struct { IOP_Component_info parent; CORBA_unsigned_long target_supports; CORBA_unsigned_long target_requires; CORBA_unsigned_short port; } IOP_TAG_SSL_SEC_TRANS_info; typedef struct { IOP_Component_info parent; ORBit_ObjectKey *object_key; } IOP_TAG_COMPLETE_OBJECT_KEY_info; typedef struct { IOP_Component_info parent; CONV_FRAME_CodeSetComponentInfo data; } IOP_TAG_CODE_SETS_info; typedef struct { IOP_Component_info parent; CORBA_sequence_CORBA_octet data; } IOP_UnknownComponent_info; #endif /* __IOP_PROFILES_H__ */ ORBit2-2.14.19/src/orb/orb-core/corba-any.c0000644000175000001440000010666111334247617014770 00000000000000#include "config.h" #include #include "orb-core-private.h" #include #define PTR_PLUS(ptr, offset) \ ((gpointer) (((guchar *)(ptr)) + (offset))) #define CONST_PTR_PLUS(ptr, offset) \ ((gconstpointer) (((const guchar *)(ptr)) + (offset))) /** Adds the size of TYPE to the gpointer PTR. */ #define ADDSIZE(ptr, type) \ ((gpointer) (((guchar *)(ptr)) + sizeof (type))) #define SKIP_ALIAS(tc) \ while ((tc)->kind == CORBA_tk_alias) { (tc) = (tc)->subtypes [0]; } static void giop_byteswap (guchar *outdata, const guchar *data, gulong datalen) { const guchar *source_ptr = data; guchar *dest_ptr = (guchar *) outdata + datalen - 1; while (dest_ptr >= outdata) *dest_ptr-- = *source_ptr++; } size_t ORBit_gather_alloc_info (CORBA_TypeCode tc) { SKIP_ALIAS (tc); switch (tc->kind) { case CORBA_tk_long: case CORBA_tk_ulong: case CORBA_tk_enum: return sizeof (CORBA_long); case CORBA_tk_short: case CORBA_tk_ushort: return sizeof (CORBA_short); case CORBA_tk_float: return sizeof (CORBA_float); case CORBA_tk_double: return sizeof (CORBA_double); case CORBA_tk_boolean: case CORBA_tk_char: case CORBA_tk_octet: return sizeof (CORBA_octet); case CORBA_tk_any: return sizeof (CORBA_any); case CORBA_tk_TypeCode: return sizeof (CORBA_TypeCode); case CORBA_tk_Principal: return sizeof (CORBA_Principal); case CORBA_tk_objref: return sizeof (CORBA_Object); case CORBA_tk_except: case CORBA_tk_struct: { int i, sum; for (sum = i = 0; i < tc->sub_parts; i++) { sum = ALIGN_VALUE (sum, tc->subtypes[i]->c_align); sum += ORBit_gather_alloc_info (tc->subtypes[i]); } sum = ALIGN_VALUE (sum, tc->c_align); return sum; } case CORBA_tk_union: { int i, n, align, prevalign, prev, sum; sum = ORBit_gather_alloc_info (tc->discriminator); n = -1; align = 1; for (prev = prevalign = i = 0; i < tc->sub_parts; i++) { prevalign = align; align = tc->subtypes[i]->c_align; if (align > prevalign) n = i; prev = MAX (prev, ORBit_gather_alloc_info (tc->subtypes[i])); } if (n >= 0) sum = ALIGN_VALUE (sum, tc->subtypes[n]->c_align); sum += prev; sum = ALIGN_VALUE (sum, tc->c_align); return sum; } case CORBA_tk_wstring: case CORBA_tk_string: return sizeof (char *); case CORBA_tk_sequence: return sizeof (CORBA_sequence_CORBA_octet); case CORBA_tk_array: return ORBit_gather_alloc_info (tc->subtypes[0]) * tc->length; case CORBA_tk_longlong: case CORBA_tk_ulonglong: return sizeof (CORBA_long_long); case CORBA_tk_longdouble: return sizeof (CORBA_long_double); case CORBA_tk_wchar: return sizeof (CORBA_wchar); case CORBA_tk_fixed: return sizeof (CORBA_fixed_d_s); case CORBA_tk_void: case CORBA_tk_null: default: return 0; } } /* * ORBit_marshal_value: * @buf: the send buffer. * @val: a pointer to the location of the value. * @tc: the TypeCode indicating the type of the value. * * Marshals the value onto the buffer and changes @val to point * to the location after the value. */ void ORBit_marshal_value (GIOPSendBuffer *buf, gconstpointer *val, CORBA_TypeCode tc) { CORBA_unsigned_long i, ulval; gconstpointer subval; SKIP_ALIAS (tc); switch (tc->kind) { case CORBA_tk_wchar: case CORBA_tk_ushort: case CORBA_tk_short: giop_send_buffer_append_aligned (buf, *val, sizeof (CORBA_short)); *val = ((guchar *)*val) + sizeof (CORBA_short); break; case CORBA_tk_enum: case CORBA_tk_long: case CORBA_tk_ulong: giop_send_buffer_append_aligned (buf, *val, sizeof (CORBA_long)); *val = ((guchar *)*val) + sizeof (CORBA_long); break; case CORBA_tk_float: giop_send_buffer_append_aligned (buf, *val, sizeof (CORBA_float)); *val = ((guchar *)*val) + sizeof (CORBA_float); break; case CORBA_tk_double: giop_send_buffer_append_aligned (buf, *val, sizeof (CORBA_double)); *val = ((guchar *)*val) + sizeof (CORBA_double); break; case CORBA_tk_boolean: case CORBA_tk_char: case CORBA_tk_octet: giop_send_buffer_append (buf, *val, sizeof (CORBA_octet)); *val = ((guchar *)*val) + sizeof (CORBA_octet); break; case CORBA_tk_any: ORBit_marshal_any (buf, *val); *val = ((guchar *)*val) + sizeof (CORBA_any); break; case CORBA_tk_Principal: ulval = *(CORBA_unsigned_long *) (*val); giop_send_buffer_append (buf, *val, sizeof (CORBA_unsigned_long)); giop_send_buffer_append (buf, *(char **) ((char *)*val + sizeof (CORBA_unsigned_long)), ulval); *val = ((guchar *)*val) + sizeof (CORBA_Principal); break; case CORBA_tk_objref: ORBit_marshal_object (buf, *(CORBA_Object *)*val); *val = ((guchar *)*val) + sizeof (CORBA_Object); break; case CORBA_tk_TypeCode: ORBit_encode_CORBA_TypeCode (*(CORBA_TypeCode *)*val, buf); *val = ((guchar *)*val) + sizeof (CORBA_TypeCode); break; case CORBA_tk_except: case CORBA_tk_struct: { gconstpointer val0 = *val; int offset; for (i = offset = 0; i < tc->sub_parts; i++) { offset = ALIGN_VALUE (offset, tc->subtypes[i]->c_align); *val = PTR_PLUS (val0, offset); ORBit_marshal_value (buf, val, tc->subtypes[i]); offset += ORBit_gather_alloc_info (tc->subtypes[i]); } offset = ALIGN_VALUE (offset, tc->c_align); *val = PTR_PLUS (val0, offset); break; } case CORBA_tk_union: { gconstpointer val0 = *val; gconstpointer discrim, body; CORBA_TypeCode subtc; int sz = 0; discrim = *val; ORBit_marshal_value (buf, val, tc->discriminator); subtc = ORBit_get_union_tag (tc, &discrim, FALSE); for (i = 0; i < tc->sub_parts; i++) sz = MAX (sz, ORBit_gather_alloc_info (tc->subtypes[i])); *val = PTR_PLUS (val0, ALIGN_VALUE (ORBit_gather_alloc_info (tc->discriminator), tc->c_align)); body = *val; ORBit_marshal_value (buf, &body, subtc); /* FIXME: * WATCHOUT: end of subtc may not be end of union */ *val = PTR_PLUS (*val, ALIGN_VALUE (sz, tc->c_align)); break; } case CORBA_tk_wstring: { CORBA_wchar endian_marker = 0xfeff; ulval = (CORBA_wstring_len (*(CORBA_wchar **)*val) + 1) * 2; giop_send_buffer_append_aligned (buf, &ulval, sizeof (CORBA_unsigned_long)); giop_send_buffer_append (buf, &endian_marker, 2); giop_send_buffer_append (buf, *(CORBA_wchar **)*val, ulval - 2); *val = ((guchar *)*val) + sizeof (CORBA_wchar *); break; } case CORBA_tk_string: giop_send_buffer_append_string (buf, *(char **)*val); *val = ((guchar *)*val) + sizeof (char *); break; case CORBA_tk_sequence: { const CORBA_sequence_CORBA_octet *sval; sval = *val; giop_send_buffer_align (buf, sizeof (CORBA_unsigned_long)); giop_send_buffer_append (buf, &sval->_length, sizeof (CORBA_unsigned_long)); subval = sval->_buffer; switch (tc->subtypes[0]->kind) { case CORBA_tk_boolean: case CORBA_tk_char: case CORBA_tk_octet: giop_send_buffer_append (buf, subval, sval->_length); break; default: for (i = 0; i < sval->_length; i++) ORBit_marshal_value (buf, &subval, tc->subtypes[0]); break; } *val = ((guchar *)*val) + sizeof (CORBA_sequence_CORBA_octet); break; } case CORBA_tk_array: switch (tc->subtypes[0]->kind) { case CORBA_tk_boolean: case CORBA_tk_char: case CORBA_tk_octet: giop_send_buffer_append (buf, *val, tc->length); *val = ((guchar *)*val) + tc->length; break; default: for (i = 0; i < tc->length; i++) ORBit_marshal_value (buf, val, tc->subtypes[0]); break; } break; case CORBA_tk_longlong: case CORBA_tk_ulonglong: giop_send_buffer_append_aligned (buf, *val, sizeof (CORBA_long_long)); *val = ((guchar *)*val) + sizeof (CORBA_long_long); break; case CORBA_tk_longdouble: giop_send_buffer_append_aligned (buf, *val, sizeof (CORBA_long_double)); *val = ((guchar *)*val) + sizeof (CORBA_long_double); break; case CORBA_tk_fixed: /* XXX todo */ g_error ("CORBA_fixed NYI"); break; case CORBA_tk_null: case CORBA_tk_void: break; default: g_error ("Can't encode unknown type %d", tc->kind); break; } } static glong ORBit_get_union_switch (CORBA_TypeCode tc, gconstpointer *val, gboolean update) { glong retval = 0; /* Quiet gcc */ SKIP_ALIAS (tc); switch (tc->kind) { case CORBA_tk_ulong: case CORBA_tk_long: case CORBA_tk_enum: { CORBA_long tmp; memcpy (&tmp, *val, sizeof (CORBA_long)); retval = (glong) tmp; if (update) *val = ((guchar *)*val) + sizeof (CORBA_long); break; } case CORBA_tk_ushort: case CORBA_tk_short: { CORBA_short tmp; memcpy (&tmp, *val, sizeof (CORBA_short)); retval = (glong) tmp; if (update) *val = ((guchar *)*val) + sizeof (CORBA_short); break; } case CORBA_tk_char: case CORBA_tk_boolean: case CORBA_tk_octet: retval = *(CORBA_octet *)*val; if (update) *val = ((guchar *)*val) + sizeof (CORBA_char); break; default: g_error ("Wow, some nut has passed us a weird " "type[%d] as a union discriminator!", tc->kind); } return retval; } /* This function (and the one above it) exist for the sole purpose of finding out which CORBA_TypeCode a union discriminator value indicates. If {update} is TRUE, {*val} will be advanced by the native size of the descriminator type. Hairy stuff. */ CORBA_TypeCode ORBit_get_union_tag (CORBA_TypeCode union_tc, gconstpointer *val, gboolean update) { CORBA_TypeCode retval = CORBA_OBJECT_NIL; glong discrim_val; int i; discrim_val = ORBit_get_union_switch ( union_tc->discriminator, val, update); for (i = 0; i < union_tc->sub_parts; i++) { if (i == union_tc->default_index) continue; if (union_tc->sublabels [i] == discrim_val) { retval = union_tc->subtypes[i]; break; } } if (retval) return retval; else if (union_tc->default_index >= 0) return union_tc->subtypes[union_tc->default_index]; else return TC_null; } void ORBit_marshal_arg (GIOPSendBuffer *buf, gconstpointer val, CORBA_TypeCode tc) { ORBit_marshal_value (buf, &val, tc); } void ORBit_marshal_any (GIOPSendBuffer *buf, const CORBA_any *val) { gconstpointer mval = val->_value; ORBit_encode_CORBA_TypeCode (val->_type, buf); ORBit_marshal_value (buf, &mval, val->_type); } /* FIXME: we need two versions of this - one for swap * endianness, and 1 for not */ gboolean ORBit_demarshal_value (CORBA_TypeCode tc, gpointer *val, GIOPRecvBuffer *buf, CORBA_ORB orb) { CORBA_long i; SKIP_ALIAS (tc); switch (tc->kind) { case CORBA_tk_short: case CORBA_tk_ushort: case CORBA_tk_wchar: { CORBA_unsigned_short *ptr; buf->cur = ALIGN_ADDRESS (buf->cur, sizeof (CORBA_short)); if ((buf->cur + sizeof (CORBA_short)) > buf->end) return TRUE; ptr = *val; *ptr = *(CORBA_unsigned_short *)buf->cur; if (giop_msg_conversion_needed (buf)) *ptr = GUINT16_SWAP_LE_BE (*ptr); buf->cur += sizeof (CORBA_short); *val = ((guchar *)*val) + sizeof (CORBA_short); break; } case CORBA_tk_long: case CORBA_tk_ulong: case CORBA_tk_enum: { CORBA_unsigned_long *ptr; buf->cur = ALIGN_ADDRESS (buf->cur, sizeof (CORBA_long)); if ((buf->cur + sizeof (CORBA_long)) > buf->end) return TRUE; ptr = *val; *ptr = *(CORBA_unsigned_long *)buf->cur; if (giop_msg_conversion_needed (buf)) *ptr = GUINT32_SWAP_LE_BE (*ptr); buf->cur += sizeof (CORBA_long); *val = ((guchar *)*val) + sizeof (CORBA_long); break; } case CORBA_tk_longlong: case CORBA_tk_ulonglong: { CORBA_unsigned_long_long *ptr; buf->cur = ALIGN_ADDRESS (buf->cur, sizeof (CORBA_long_long)); if ((buf->cur + sizeof (CORBA_long_long)) > buf->end) return TRUE; ptr = *val; *ptr = *(CORBA_unsigned_long_long *)buf->cur; if (giop_msg_conversion_needed (buf)) *ptr = GUINT64_SWAP_LE_BE (*ptr); buf->cur += sizeof (CORBA_long_long); *val = ((guchar *)*val) + sizeof (CORBA_long_long); break; } case CORBA_tk_longdouble: { CORBA_long_double *ptr; buf->cur = ALIGN_ADDRESS (buf->cur, sizeof (CORBA_long_double)); if ((buf->cur + sizeof (CORBA_long_double)) > buf->end) return TRUE; ptr = *val; if (giop_msg_conversion_needed (buf)) giop_byteswap ((guchar *)ptr, buf->cur, sizeof (CORBA_long_double)); else *ptr = *(CORBA_long_double *)buf->cur; buf->cur += sizeof (CORBA_long_double); *val = ((guchar *)*val) + sizeof (CORBA_long_double); break; } case CORBA_tk_float: { CORBA_float *ptr; buf->cur = ALIGN_ADDRESS (buf->cur, sizeof (CORBA_float)); if ((buf->cur + sizeof (CORBA_float)) > buf->end) return TRUE; ptr = *val; if (giop_msg_conversion_needed (buf)) giop_byteswap ((guchar *)ptr, buf->cur, sizeof (CORBA_float)); else *ptr = *(CORBA_float *)buf->cur; buf->cur += sizeof (CORBA_float); *val = ((guchar *)*val) + sizeof (CORBA_float); break; } case CORBA_tk_double: { CORBA_double *ptr; buf->cur = ALIGN_ADDRESS (buf->cur, sizeof (CORBA_double)); if ((buf->cur + sizeof (CORBA_double)) > buf->end) return TRUE; ptr = *val; if (giop_msg_conversion_needed (buf)) giop_byteswap ((guchar *)ptr, buf->cur, sizeof (CORBA_double)); else *ptr = *(CORBA_double *)buf->cur; buf->cur += sizeof (CORBA_double); *val = ((guchar *)*val) + sizeof (CORBA_double); break; } case CORBA_tk_boolean: case CORBA_tk_char: case CORBA_tk_octet: { CORBA_octet *ptr; if ((buf->cur + sizeof (CORBA_octet)) > buf->end) return TRUE; ptr = *val; *ptr = *buf->cur; buf->cur++; *val = ((guchar *)*val) + sizeof (CORBA_octet); break; } case CORBA_tk_any: { CORBA_any *decoded; decoded = *val; decoded->_release = CORBA_FALSE; if (ORBit_demarshal_any (buf, decoded, orb)) return TRUE; *val = ((guchar *)*val) + sizeof (CORBA_any); break; } case CORBA_tk_Principal: { CORBA_Principal *p; p = *val; buf->cur = ALIGN_ADDRESS (buf->cur, sizeof (CORBA_long)); p->_release = TRUE; if ((buf->cur + sizeof (CORBA_unsigned_long)) > buf->end) return TRUE; if (giop_msg_conversion_needed (buf)) p->_length = GUINT32_SWAP_LE_BE (*(CORBA_unsigned_long *)buf->cur); else p->_length = *(CORBA_unsigned_long *)buf->cur; buf->cur += sizeof (CORBA_unsigned_long); if ((buf->cur + p->_length) > buf->end || (buf->cur + p->_length) < buf->cur) return TRUE; p->_buffer = ORBit_alloc_simple (p->_length); memcpy (p->_buffer, buf->cur, p->_length); buf->cur += p->_length; *val = ((guchar *)*val) + sizeof (CORBA_sequence_CORBA_octet); break; } case CORBA_tk_objref: if (ORBit_demarshal_object ((CORBA_Object *)*val, buf, orb)) return TRUE; *val = ((guchar *)*val) + sizeof (CORBA_Object); break; case CORBA_tk_TypeCode: if (ORBit_decode_CORBA_TypeCode (*val, buf)) return TRUE; *val = ((guchar *)*val) + sizeof (CORBA_TypeCode); break; case CORBA_tk_except: case CORBA_tk_struct: { int offset; gpointer val0 = *val; for (i = offset = 0; i < tc->sub_parts; i++) { offset = ALIGN_VALUE (offset, tc->subtypes[i]->c_align); *val = PTR_PLUS (val0, offset); if (ORBit_demarshal_value (tc->subtypes[i], val, buf, orb)) return TRUE; offset += ORBit_gather_alloc_info (tc->subtypes[i]); } offset = ALIGN_VALUE (offset, tc->c_align); *val = PTR_PLUS (val0, offset); break; } case CORBA_tk_union: { gpointer val0 = *val; CORBA_TypeCode subtc; gpointer discrim; gpointer body; int sz = 0; discrim = *val; if (ORBit_demarshal_value (tc->discriminator, val, buf, orb)) return TRUE; subtc = ORBit_get_union_tag (tc, (gconstpointer*)&discrim, FALSE); for (i = 0; i < tc->sub_parts; i++) sz = MAX (sz, ORBit_gather_alloc_info (tc->subtypes[i])); *val = PTR_PLUS (val0, ALIGN_VALUE (ORBit_gather_alloc_info (tc->discriminator), tc->c_align)); body = *val; if (ORBit_demarshal_value (subtc, &body, buf, orb)) return TRUE; /* WATCHOUT: end subtc body may not be end of union */ *val = PTR_PLUS (*val, ALIGN_VALUE (sz, tc->c_align)); break; } case CORBA_tk_string: buf->cur = ALIGN_ADDRESS (buf->cur, sizeof (CORBA_long)); if ((buf->cur + sizeof (CORBA_long)) > buf->end) return TRUE; i = *(CORBA_unsigned_long *)buf->cur; if (giop_msg_conversion_needed (buf)) i = GUINT32_SWAP_LE_BE (i); buf->cur += sizeof (CORBA_unsigned_long); if ((buf->cur + i) > buf->end || (buf->cur + i) < buf->cur) return TRUE; *(char **)*val = CORBA_string_dup ((char *)buf->cur); *val = ((guchar *)*val) + sizeof (CORBA_char *); buf->cur += i; break; case CORBA_tk_wstring: { CORBA_wchar endian_marker = 0, *ptr; buf->cur = ALIGN_ADDRESS (buf->cur, sizeof (CORBA_long)); if ((buf->cur + sizeof (CORBA_long)) > buf->end) return TRUE; i = *(CORBA_unsigned_long *)buf->cur; if (giop_msg_conversion_needed (buf)) i = GUINT32_SWAP_LE_BE (i); buf->cur += sizeof (CORBA_unsigned_long); if ((buf->cur + i) > buf->end || (buf->cur + i) < buf->cur) return TRUE; if (i >= 2) { endian_marker = *(CORBA_wchar *)buf->cur; if (endian_marker != 0xfeff && endian_marker != 0xfffe) endian_marker = 0; else { i -= 2; buf->cur += 2; } } if (!endian_marker) { ((unsigned char *)&endian_marker)[0] = 0xfe; ((unsigned char *)&endian_marker)[1] = 0xff; } ptr = CORBA_wstring_alloc ((i + 1) / 2); *(CORBA_wchar **)*val = ptr; if (endian_marker == 0xfffe) { while(i >= 2) { *ptr++ = GUINT16_SWAP_LE_BE( *((CORBA_wchar *)buf->cur)); buf->cur += 2; i -= 2; } *ptr = 0; } else { memcpy(ptr, buf->cur, i); ptr[(i + 1) / 2] = 0; buf->cur += i; i = 0; } *val = ((guchar *)*val) + sizeof (CORBA_wchar *); buf->cur += i; break; } case CORBA_tk_sequence: { CORBA_sequence_CORBA_octet *p; gpointer subval; p = *val; p->_release = TRUE; buf->cur = ALIGN_ADDRESS (buf->cur, sizeof (CORBA_long)); if ((buf->cur + sizeof (CORBA_long)) > buf->end) return TRUE; if (giop_msg_conversion_needed (buf)) p->_length = GUINT32_SWAP_LE_BE (*(CORBA_unsigned_long *)buf->cur); else p->_length = *(CORBA_unsigned_long *)buf->cur; buf->cur += sizeof (CORBA_long); p->_maximum = p->_length; if (p->_length == 0) p->_buffer = NULL; else if (tc->subtypes[0]->kind == CORBA_tk_octet || tc->subtypes[0]->kind == CORBA_tk_boolean || tc->subtypes[0]->kind == CORBA_tk_char) { /* This special-casing could be taken further to apply to all atoms... */ if ((buf->cur + p->_length) > buf->end || (buf->cur + p->_length) < buf->cur) return TRUE; p->_buffer = ORBit_alloc_simple (p->_length); memcpy (p->_buffer, buf->cur, p->_length); buf->cur = ((guchar *)buf->cur) + p->_length; } else { CORBA_unsigned_long alloc = 4096; p->_buffer = ORBit_alloc_tcval (tc->subtypes[0], MIN (p->_length, alloc)); subval = p->_buffer; for (i = 0; i < p->_length; i++) { if (i == alloc) { size_t delta = (guchar *)subval - (guchar *)p->_buffer; p->_buffer = ORBit_realloc_tcval ( p->_buffer, tc->subtypes [0], alloc, MIN (alloc * 2, p->_length)); alloc = alloc * 2; /* exponential */ subval = p->_buffer + delta; } if (ORBit_demarshal_value (tc->subtypes[0], &subval, buf, orb)) { CORBA_free (p->_buffer); p->_buffer = NULL; p->_length = 0; return TRUE; } } } *val = ((guchar *)*val) + sizeof (CORBA_sequence_CORBA_octet); break; } case CORBA_tk_array: for (i = 0; i < tc->length; i++) if (ORBit_demarshal_value (tc->subtypes[0], val, buf, orb)) return TRUE; break; case CORBA_tk_void: case CORBA_tk_null: break; case CORBA_tk_fixed: default: return TRUE; break; } return FALSE; } gpointer ORBit_demarshal_arg (GIOPRecvBuffer *buf, CORBA_TypeCode tc, CORBA_ORB orb) { gpointer retval, val; retval = val = ORBit_alloc_by_tc (tc); if (ORBit_demarshal_value (tc, &val, buf, orb)) { CORBA_free (retval); return NULL; } return retval; } gboolean ORBit_demarshal_any (GIOPRecvBuffer *buf, CORBA_any *retval, CORBA_ORB orb) { gpointer val; CORBA_any_set_release (retval, CORBA_TRUE); if (ORBit_decode_CORBA_TypeCode (&retval->_type, buf)) return TRUE; val = retval->_value = ORBit_alloc_by_tc (retval->_type); if (ORBit_demarshal_value (retval->_type, &val, buf, orb)) return TRUE; return FALSE; } gpointer CORBA_any__freekids (gpointer mem, gpointer dat) { CORBA_any *t; t = mem; if (t->_type) ORBit_RootObject_release_T ( (ORBit_RootObject) t->_type); if (t->_release) ORBit_free_T (t->_value); return t + 1; } CORBA_any * CORBA_any__alloc (void) { return ORBit_alloc_by_tc (TC_CORBA_any); } void ORBit_copy_value_core (gconstpointer *val, gpointer *newval, CORBA_TypeCode tc) { CORBA_long i; gconstpointer pval1; gpointer pval2; SKIP_ALIAS (tc); switch (tc->kind) { case CORBA_tk_wchar: case CORBA_tk_short: case CORBA_tk_ushort: *(CORBA_short *)*newval = *(CORBA_short *)*val; *val = ((guchar *)*val) + sizeof (CORBA_short); *newval = ((guchar *)*newval) + sizeof (CORBA_short); break; case CORBA_tk_enum: case CORBA_tk_long: case CORBA_tk_ulong: *(CORBA_long *)*newval = *(CORBA_long *)*val; *val = ((guchar *)*val) + sizeof (CORBA_long); *newval = ((guchar *)*newval) + sizeof (CORBA_long); break; case CORBA_tk_longlong: case CORBA_tk_ulonglong: *(CORBA_long_long *)*newval = *(CORBA_long_long *)*val; *val = ((guchar *)*val) + sizeof (CORBA_long_long); *newval = ((guchar *)*newval) + sizeof (CORBA_long_long); break; case CORBA_tk_longdouble: *(CORBA_long_double *)*newval = *(CORBA_long_double *)*val; *val = ((guchar *)*val) + sizeof (CORBA_long_double); *newval = ((guchar *)*newval) + sizeof (CORBA_long_double); break; case CORBA_tk_float: *(CORBA_long *)*newval = *(CORBA_long *)*val; *val = ((guchar *)*val) + sizeof (CORBA_float); *newval = ((guchar *)*newval) + sizeof (CORBA_float); break; case CORBA_tk_double: *(CORBA_double *)*newval = *(CORBA_double *)*val; *val = ((guchar *)*val) + sizeof (CORBA_double); *newval = ((guchar *)*newval) + sizeof (CORBA_double); break; case CORBA_tk_boolean: case CORBA_tk_char: case CORBA_tk_octet: *(CORBA_octet *)*newval = *(CORBA_octet *)*val; *val = ((guchar *)*val) + sizeof (CORBA_octet); *newval = ((guchar *)*newval) + sizeof (CORBA_octet); break; case CORBA_tk_any: { const CORBA_any *oldany; CORBA_any *newany; oldany = *val; newany = *newval; newany->_type = ORBit_RootObject_duplicate (oldany->_type); newany->_value = ORBit_copy_value (oldany->_value, oldany->_type); newany->_release = CORBA_TRUE; *val = ((guchar *)*val) + sizeof (CORBA_any); *newval = ((guchar *)*newval) + sizeof (CORBA_any); break; } case CORBA_tk_Principal: *(CORBA_Principal *)*newval = *(CORBA_Principal *)*val; ((CORBA_Principal *)*newval)->_buffer = CORBA_sequence_CORBA_octet_allocbuf (((CORBA_Principal *)*newval)->_length); ((CORBA_Principal *)*newval)->_release = CORBA_TRUE; memcpy (((CORBA_Principal *)*newval)->_buffer, ((CORBA_Principal *)*val)->_buffer, ((CORBA_Principal *)*val)->_length); *val = ((guchar *)*val) + sizeof (CORBA_Principal); *newval = ((guchar *)*newval) + sizeof (CORBA_Principal); break; case CORBA_tk_TypeCode: case CORBA_tk_objref: *(CORBA_Object *)*newval = ORBit_RootObject_duplicate (*(CORBA_Object *)*val); *val = ((guchar *)*val) + sizeof (CORBA_Object); *newval = ((guchar *)*newval) + sizeof (CORBA_Object); break; case CORBA_tk_struct: case CORBA_tk_except: { int offset; gconstpointer val0 = *val; gpointer newval0 = *newval; for (i = offset = 0; i < tc->sub_parts; i++) { offset = ALIGN_VALUE (offset, tc->subtypes[i]->c_align); *val = PTR_PLUS (val0, offset); *newval = PTR_PLUS (newval0, offset); ORBit_copy_value_core (val, newval, tc->subtypes[i]); offset += ORBit_gather_alloc_info (tc->subtypes[i]); } offset = ALIGN_VALUE (offset, tc->c_align); *val = PTR_PLUS (val0, offset); *newval = PTR_PLUS (newval0, offset); break; } case CORBA_tk_union: { gconstpointer val0 = *val; gpointer newval0 = *newval; CORBA_TypeCode utc; gint union_align = tc->c_align; size_t union_size = ORBit_gather_alloc_info (tc); size_t aligned_size; pval1 = *val; pval2 = *newval; utc = ORBit_get_union_tag (tc, (gconstpointer *)val, FALSE); ORBit_copy_value_core (&pval1, &pval2, tc->discriminator); aligned_size = ALIGN_VALUE (ORBit_gather_alloc_info (tc->discriminator), union_align); pval1 = PTR_PLUS (val0, aligned_size); pval2 = PTR_PLUS (newval0, aligned_size); ORBit_copy_value_core (&pval1, &pval2, utc); *val = ((guchar *)*val) + union_size; *newval = ((guchar *)*newval) + union_size; break; } case CORBA_tk_wstring: case CORBA_tk_string: *(CORBA_char **)*newval = CORBA_string_dup (*(CORBA_char **)*val); *val = ((guchar *)*val) + sizeof (CORBA_char *); *newval = ((guchar *)*newval) + sizeof (CORBA_char *); break; case CORBA_tk_sequence: ((CORBA_Principal *)*newval)->_release = CORBA_TRUE; ((CORBA_Principal *)*newval)->_length = ((CORBA_Principal *)*newval)->_maximum = ((CORBA_Principal *)*val)->_length; ((CORBA_Principal *)*newval)->_buffer = pval2 = ORBit_alloc_tcval (tc->subtypes[0], ((CORBA_Principal *)*val)->_length); pval1 = ((CORBA_Principal *)*val)->_buffer; for (i = 0; i < ((CORBA_Principal *)*newval)->_length; i++) ORBit_copy_value_core (&pval1, &pval2, tc->subtypes [0]); *val = ((guchar *)*val) + sizeof (CORBA_sequence_CORBA_octet); *newval = ((guchar *)*newval) + sizeof (CORBA_sequence_CORBA_octet); break; case CORBA_tk_array: for (i = 0; i < tc->length; i++) ORBit_copy_value_core (val, newval, tc->subtypes[0]); break; case CORBA_tk_fixed: g_error ("CORBA_fixed NYI!"); break; case CORBA_tk_void: case CORBA_tk_null: break; default: g_error ("Can't handle copy of value kind %d", tc->kind); } } gpointer ORBit_copy_value (gconstpointer value, CORBA_TypeCode tc) { gpointer retval, newval; if (!value) return NULL; retval = newval = ORBit_alloc_by_tc (tc); ORBit_copy_value_core (&value, &newval, tc); return retval; } void CORBA_any__copy (CORBA_any *out, const CORBA_any *in) { out->_type = ORBit_RootObject_duplicate (in->_type); out->_value = ORBit_copy_value (in->_value, in->_type); out->_release = CORBA_TRUE; } #define ALIGN_COMPARE(a,b,tk,type,align) \ case CORBA_tk_##tk: \ ret = *(CORBA_##type *) *a == *(CORBA_##type *) *b; \ *a = ((guchar *) *a) + sizeof (CORBA_##type); \ *b = ((guchar *) *b) + sizeof (CORBA_##type); \ return ret CORBA_boolean ORBit_value_equivalent (gpointer *a, gpointer *b, CORBA_TypeCode tc, CORBA_Environment *ev) { gboolean ret; int i; SKIP_ALIAS (tc); switch (tc->kind) { case CORBA_tk_null: case CORBA_tk_void: return TRUE; ALIGN_COMPARE (a, b, short, short, ORBIT_ALIGNOF_CORBA_SHORT); ALIGN_COMPARE (a, b, ushort, short, ORBIT_ALIGNOF_CORBA_SHORT); ALIGN_COMPARE (a, b, wchar, short, ORBIT_ALIGNOF_CORBA_SHORT); ALIGN_COMPARE (a, b, enum, long, ORBIT_ALIGNOF_CORBA_LONG); ALIGN_COMPARE (a, b, long, long, ORBIT_ALIGNOF_CORBA_LONG); ALIGN_COMPARE (a, b, ulong, long, ORBIT_ALIGNOF_CORBA_LONG); ALIGN_COMPARE (a, b, longlong, long_long, ORBIT_ALIGNOF_CORBA_LONG_LONG); ALIGN_COMPARE (a, b, ulonglong, long_long, ORBIT_ALIGNOF_CORBA_LONG_LONG); ALIGN_COMPARE (a, b, longdouble, long_double, ORBIT_ALIGNOF_CORBA_LONG_DOUBLE); ALIGN_COMPARE (a, b, float, float, ORBIT_ALIGNOF_CORBA_FLOAT); ALIGN_COMPARE (a, b, double, double, ORBIT_ALIGNOF_CORBA_DOUBLE); ALIGN_COMPARE (a, b, char, octet, ORBIT_ALIGNOF_CORBA_OCTET); ALIGN_COMPARE (a, b, octet, octet, ORBIT_ALIGNOF_CORBA_OCTET); case CORBA_tk_boolean: { gboolean ba, bb; ba = *(CORBA_octet *) *a; bb = *(CORBA_octet *) *b; *a = ((guchar *) *a) + sizeof (CORBA_octet); *b = ((guchar *) *b) + sizeof (CORBA_octet); return (ba && bb) || (!ba && !bb); } case CORBA_tk_string: ret = !strcmp (*(char **)*a, *(char **)*b); *a = ((guchar *) *a) + sizeof (CORBA_char *); *b = ((guchar *) *b) + sizeof (CORBA_char *); return ret; case CORBA_tk_wstring: g_warning ("wstring totaly broken"); return FALSE; case CORBA_tk_TypeCode: case CORBA_tk_objref: ret = CORBA_Object_is_equivalent (*a, *b, ev); *a = ((guchar *) *a) + sizeof (CORBA_Object); *b = ((guchar *) *b) + sizeof (CORBA_Object); return ret; case CORBA_tk_any: { CORBA_any *any_a, *any_b; any_a = *((CORBA_any **) *a); any_b = *((CORBA_any **) *b); ret = ORBit_any_equivalent (any_a, any_b, ev); *a = ((guchar *) *a) + sizeof (CORBA_any *); *b = ((guchar *) *b) + sizeof (CORBA_any *); return ret; } case CORBA_tk_struct: case CORBA_tk_except: { int offset; gpointer a0 = *a; gpointer b0 = *b; int i; for (i = offset = 0; i < tc->sub_parts; i++) { offset = ALIGN_VALUE (offset, tc->subtypes[i]->c_align); *a = PTR_PLUS (a0, offset); *b = PTR_PLUS (b0, offset); if (!ORBit_value_equivalent (a, b, tc->subtypes [i], ev)) return FALSE; offset += ORBit_gather_alloc_info (tc->subtypes[i]); } offset = ALIGN_VALUE (offset, tc->c_align); *a = PTR_PLUS (a0, offset); *b = PTR_PLUS (b0, offset); return TRUE; } case CORBA_tk_sequence: { CORBA_Principal *ap, *bp; gpointer a_val, b_val; ap = (CORBA_Principal *) *a; bp = (CORBA_Principal *) *b; if (ap->_length != bp->_length) return FALSE; a_val = ap->_buffer; b_val = bp->_buffer; for (i = 0; i < ap->_length; i++) { if (!ORBit_value_equivalent (&a_val, &b_val, tc->subtypes [0], ev)) return FALSE; } *a = ((guchar *) *a) + sizeof (CORBA_sequence_CORBA_octet); *b = ((guchar *) *b) + sizeof (CORBA_sequence_CORBA_octet); return TRUE; } case CORBA_tk_union: { CORBA_TypeCode utc_a, utc_b; gint union_align = tc->c_align; size_t union_size = ORBit_gather_alloc_info (tc); gpointer a_orig, b_orig; size_t aligned_size; a_orig = *a; b_orig = *b; utc_a = ORBit_get_union_tag (tc, (gconstpointer *)a, FALSE); utc_b = ORBit_get_union_tag (tc, (gconstpointer *)b, FALSE); if (!CORBA_TypeCode_equal (utc_a, utc_b, ev)) return FALSE; if (!ORBit_value_equivalent (a, b, tc->discriminator, ev)) return FALSE; aligned_size = ALIGN_VALUE (ORBit_gather_alloc_info (tc->discriminator), union_align); *a = PTR_PLUS (a_orig, aligned_size); *b = PTR_PLUS (b_orig, aligned_size); if (!ORBit_value_equivalent (a, b, utc_a, ev)) return FALSE; *a = ((guchar *) a_orig) + ALIGN_VALUE (union_size, union_align); *b = ((guchar *) b_orig) + ALIGN_VALUE (union_size, union_align); return TRUE; } case CORBA_tk_array: for (i = 0; i < tc->length; i++) { if (!ORBit_value_equivalent (a, b, tc->subtypes [0], ev)) return FALSE; } return TRUE; default: g_warning ("ORBit_value_equivalent unimplemented"); return FALSE; }; } /* * Compares the typecodes of each any */ CORBA_boolean ORBit_any_equivalent (CORBA_any *obj, CORBA_any *any, CORBA_Environment *ev) { gpointer a, b; /* Is this correct ? */ if (obj == NULL && any == NULL) return TRUE; if (!obj || !any) return FALSE; if (!obj->_type || !any->_type) { CORBA_exception_set_system ( ev, ex_CORBA_BAD_PARAM, CORBA_COMPLETED_NO); return FALSE; } if (!CORBA_TypeCode_equal (obj->_type, any->_type, ev)) return FALSE; if (ev->_major != CORBA_NO_EXCEPTION) return FALSE; a = obj->_value; b = any->_value; return ORBit_value_equivalent (&a, &b, any->_type, ev); } /* Friendly sequence allocators */ #define BASE_TYPES \ CORBA_tk_short: \ case CORBA_tk_long: \ case CORBA_tk_enum: \ case CORBA_tk_ushort: \ case CORBA_tk_ulong: \ case CORBA_tk_float: \ case CORBA_tk_double: \ case CORBA_tk_boolean: \ case CORBA_tk_char: \ case CORBA_tk_octet: \ case CORBA_tk_longlong: \ case CORBA_tk_ulonglong: \ case CORBA_tk_longdouble: \ case CORBA_tk_wchar gpointer ORBit_sequence_alloc (CORBA_TypeCode sequence_tc, CORBA_unsigned_long length) { CORBA_TypeCode tc = sequence_tc; CORBA_sequence_CORBA_octet *seq; g_return_val_if_fail (sequence_tc != NULL, NULL); SKIP_ALIAS (tc); g_return_val_if_fail (tc->kind == CORBA_tk_sequence, NULL); seq = ORBit_alloc_by_tc (sequence_tc); seq->_buffer = ORBit_small_allocbuf (tc, length); seq->_length = length; seq->_maximum = length; CORBA_sequence_set_release (seq, CORBA_TRUE); g_assert (ORBit_alloc_get_tcval (seq) == sequence_tc); return seq; } void ORBit_sequence_set_size (gpointer sequence, CORBA_unsigned_long length) { CORBA_TypeCode tc, subtc; CORBA_sequence_CORBA_octet *seq = sequence; g_return_if_fail (seq != NULL); g_return_if_fail (seq->_length <= seq->_maximum); if (seq->_length == length) return; tc = ORBit_alloc_get_tcval (sequence); SKIP_ALIAS (tc); g_return_if_fail (tc->kind == CORBA_tk_sequence); subtc = tc->subtypes[0]; if (length < seq->_length) { guint i; switch (subtc->kind) { case BASE_TYPES: /* leave some in-line values */ break; default: { guint element_size = ORBit_gather_alloc_info (subtc); for (i = length; i < seq->_length; i++) ORBit_freekids_via_TypeCode (subtc, (guchar *)seq->_buffer + i * element_size); /* Don't trust the API user not to poke at it again */ memset ((guchar *)seq->_buffer + length * element_size, 0, (seq->_length - length) * element_size); break; } } } else { if (length > seq->_maximum) { guint new_len = MAX (length, seq->_maximum * 2); seq->_buffer = ORBit_realloc_tcval (seq->_buffer, subtc, seq->_maximum, new_len); seq->_maximum = new_len; } } seq->_length = length; } void ORBit_sequence_append (gpointer sequence, gconstpointer element) { guint element_size; guchar *dest; CORBA_TypeCode tc, subtc; CORBA_sequence_CORBA_octet *seq = sequence; g_return_if_fail (seq != NULL); g_return_if_fail (seq->_length <= seq->_maximum); tc = ORBit_alloc_get_tcval (sequence); SKIP_ALIAS (tc); subtc = tc->subtypes [0]; g_return_if_fail (tc->kind == CORBA_tk_sequence); if (seq->_length == seq->_maximum) { guint new_len = MAX (2, (seq->_maximum * 2)); seq->_buffer = ORBit_realloc_tcval (seq->_buffer, subtc, seq->_maximum, new_len ); seq->_maximum = new_len; } element_size = ORBit_gather_alloc_info (subtc); dest = seq->_buffer; dest += element_size * seq->_length; ORBit_copy_value_core (&element, (gpointer)&dest, subtc); seq->_length++; } void ORBit_sequence_remove (gpointer sequence, guint idx) { guint element_size, remaining; guchar *elem; CORBA_TypeCode tc, subtc; CORBA_sequence_CORBA_octet *seq = sequence; tc = ORBit_alloc_get_tcval (sequence); SKIP_ALIAS (tc); g_return_if_fail (tc->kind == CORBA_tk_sequence); g_return_if_fail (seq != NULL); g_return_if_fail (seq->_length <= seq->_maximum); g_return_if_fail (idx < seq->_length); subtc = tc->subtypes [0]; element_size = ORBit_gather_alloc_info (subtc); elem = seq->_buffer + element_size*idx; remaining = seq->_length - idx - 1; ORBit_freekids_via_TypeCode (subtc, elem); /* shift remaining elements into free slot */ memmove (elem, elem + element_size, element_size*remaining); /* zero last element */ memset (elem + element_size*remaining, 0, element_size); seq->_length--; } void ORBit_sequence_concat (gpointer sequence, gconstpointer append) { gint i; guint element_size; guchar *src; CORBA_TypeCode tc, subtc; CORBA_sequence_CORBA_octet *seq = (CORBA_sequence_CORBA_octet *)append; g_return_if_fail (seq != NULL); g_return_if_fail (seq->_length <= seq->_maximum); tc = ORBit_alloc_get_tcval (sequence); SKIP_ALIAS (tc); subtc = tc->subtypes [0]; g_return_if_fail (tc->kind == CORBA_tk_sequence); element_size = ORBit_gather_alloc_info (subtc); src = seq->_buffer; for (i = 0; i < seq->_length; ++i, src += element_size) ORBit_sequence_append (sequence, (gpointer)src); } ORBit2-2.14.19/src/orb/orb-core/orbit-policy.h0000644000175000001440000000070011334247617015521 00000000000000/** * orbit-policy.h: re-enterancy policy object for client invocations * * Author: * Michael Meeks (michael@ximian.com) * * Copyright 2003 Ximian, Inc. */ #ifndef _ORBIT_POLICY_H_ #define _ORBIT_POLICY_H_ #include G_BEGIN_DECLS struct _ORBitPolicy { struct ORBit_RootObject_struct parent; GPtrArray *allowed_poas; }; gboolean ORBit_policy_validate (ORBitPolicy *policy); G_END_DECLS #endif /* _ORBIT_POLICY_H_ */ ORBit2-2.14.19/src/orb/orb-core/orb-core-export.h0000644000175000001440000000043111334247617016135 00000000000000#ifndef ORB_CORE_EXPORT_H #define ORB_CORE_EXPORT_H ORBitSmallSkeleton get_small_skel_CORBA_Object (PortableServer_Servant servant, const char *opname, gpointer *m_data, gpointer *impl); #endif /* ORB_CORE_EXPORT_H */ ORBit2-2.14.19/src/orb/orb-core/corba-request.c0000644000175000001440000000154511334247617015664 00000000000000#include "config.h" #include void CORBA_Request_add_arg (CORBA_Request _obj, const CORBA_char *name, const CORBA_TypeCode arg_type, const CORBA_OpaqueValue value, const CORBA_long len, const CORBA_Flags arg_flags, CORBA_Environment *ev) { } void CORBA_Request_invoke(CORBA_Request _obj, const CORBA_Flags invoke_flags, CORBA_Environment * ev) { } void CORBA_Request_delete(CORBA_Request _obj, CORBA_Environment * ev) { } void CORBA_Request_send(CORBA_Request _obj, const CORBA_Flags invoke_flags, CORBA_Environment * ev) { } void CORBA_Request_get_response(CORBA_Request _obj, CORBA_Environment * ev) { } CORBA_boolean CORBA_Request_poll_response(CORBA_Request _obj, CORBA_Environment * ev) { return CORBA_FALSE; } ORBit2-2.14.19/src/orb/orb-core/corba-orb.c0000644000175000001440000011507211334247617014757 00000000000000 #include #include #include #include #include #include "../orbit-init.h" #include "../poa/orbit-poa-export.h" #include "../util/orbit-options.h" #include "../util/orbit-purify.h" #include "iop-profiles.h" #include "orb-core-private.h" #if defined ENABLE_HTTP #include "orbhttp.h" #endif #include "orbit-debug.h" extern const ORBit_option orbit_supported_options[]; #ifdef G_ENABLE_DEBUG OrbitDebugFlags _orbit_debug_flags = ORBIT_DEBUG_NONE; #endif /* * Command line option handling. */ #ifdef G_OS_WIN32 static gboolean orbit_use_ipv4 = TRUE; #else static gboolean orbit_use_ipv4 = FALSE; #endif static gboolean orbit_use_ipv6 = FALSE; #ifdef G_OS_WIN32 static gboolean orbit_use_usocks = FALSE; #else static gboolean orbit_use_usocks = TRUE; #endif static gint orbit_initial_recv_limit = -1; static gboolean orbit_use_irda = FALSE; static gboolean orbit_use_ssl = FALSE; static gboolean orbit_use_genuid_simple = FALSE; #ifdef G_OS_WIN32 static gboolean orbit_local_only = TRUE; #else static gboolean orbit_local_only = FALSE; #endif static char *orbit_net_id = NULL; static gboolean orbit_use_http_iors = FALSE; static char *orbit_ipsock = NULL; static const char *orbit_ipname = NULL; static char *orbit_debug_options = NULL; static char *orbit_naming_ref = NULL; static GSList *orbit_initref_list = NULL; static gboolean orbit_use_corbaloc = FALSE; static guint orbit_timeout_msec = 60000; /* 60 seconds - 0 will disable timeouts altogether */ void ORBit_ORB_start_servers (CORBA_ORB orb) { LinkProtocolInfo *info; LinkConnectionOptions create_options = 0; LINK_MUTEX_LOCK (orb->lock); if (orb->servers) { /* beaten to it */ LINK_MUTEX_UNLOCK (orb->lock); return; } if (orbit_local_only) create_options |= LINK_CONNECTION_LOCAL_ONLY; if (orbit_local_only || (orbit_use_usocks && !(orbit_use_ipv4 || orbit_use_ipv6 || orbit_use_irda || orbit_use_ssl))) link_use_local_hostname (LINK_NET_ID_IS_LOCAL); else { do { if (!orbit_net_id) break; if (!strcmp(orbit_net_id, "local")) { link_use_local_hostname (LINK_NET_ID_IS_LOCAL); break; } if (!strcmp(orbit_net_id, "short")) { link_use_local_hostname (LINK_NET_ID_IS_SHORT_HOSTNAME); break; } if (!strcmp(orbit_net_id, "fqdn")) { link_use_local_hostname (LINK_NET_ID_IS_FQDN); break; } if (!strcmp(orbit_net_id, "ipaddr")) { link_use_local_hostname (LINK_NET_ID_IS_IPADDR); break; } link_set_local_hostname(orbit_net_id); } while (0); } if (!orbit_ipname) orbit_ipname = link_get_local_hostname(); else link_set_local_hostname(orbit_ipname); for (info = link_protocol_all (); info->name; info++) { GIOPServer *server; if (!ORBit_proto_use (info->name)) continue; server = giop_server_new ( orb->default_giop_version, info->name, orbit_ipname, orbit_ipsock, create_options, orb); if (server) { orb->servers = g_slist_prepend (orb->servers, server); if (!(info->flags & LINK_PROTOCOL_SECURE)) { if (!ORBit_proto_use ("SSL")) continue; server = giop_server_new ( orb->default_giop_version, info->name, NULL, NULL, LINK_CONNECTION_SSL | create_options, orb); if (server) orb->servers = g_slist_prepend (orb->servers, server); } #ifdef DEBUG fprintf (stderr, "ORB created giop server '%s'\n", info->name); #endif } #ifdef DEBUG else fprintf (stderr, "ORB failed to create giop server '%s'\n", info->name); #endif } orb->profiles = IOP_start_profiles (orb); LINK_MUTEX_UNLOCK (orb->lock); } static void strip_object_profiles (gpointer o, gpointer b, gpointer c) { CORBA_Object obj = o; IOP_delete_profiles (obj->orb, &obj->profile_list); IOP_delete_profiles (obj->orb, &obj->forward_locations); obj->orb = NULL; } static void ORBit_ORB_shutdown_servers (CORBA_ORB orb) { LINK_MUTEX_LOCK (orb->lock); if (orb->objrefs) { g_hash_table_foreach (orb->objrefs, strip_object_profiles, NULL); g_hash_table_destroy (orb->objrefs); orb->objrefs = NULL; } IOP_shutdown_profiles (orb->profiles); orb->profiles = NULL; g_slist_foreach (orb->servers, (GFunc) g_object_unref, NULL); g_slist_free (orb->servers); orb->servers = NULL; LINK_MUTEX_UNLOCK (orb->lock); } static ORBitGenUidType ORBit_genuid_type (void) { ORBitGenUidType retval = ORBIT_GENUID_STRONG;; if (orbit_use_genuid_simple) retval = ORBIT_GENUID_SIMPLE; else if (orbit_use_usocks && !orbit_use_ipv4 && !orbit_use_ipv6 && !orbit_use_irda) retval = ORBIT_GENUID_SIMPLE; return retval; } static void genuid_init (void) { /* We treat the 'local_only' mode as a very special case */ if (orbit_local_only && orbit_use_genuid_simple) g_error ("It is impossible to isolate one user from another " "with only simple cookie generation, you cannot " "explicitely enable this option and LocalOnly mode " "at the same time"); else if (!ORBit_genuid_init (ORBit_genuid_type ())) { if (orbit_local_only) g_error ("Failed to find a source of randomness good " "enough to insulate local users from each " "other. If you use Solaris you need /dev/random " "from the SUNWski package"); } } static void ORBit_service_list_free_ref (gpointer key, ORBit_RootObject objref, gpointer dummy) { ORBit_RootObject_release (objref); } static void CORBA_ORB_release_fn (ORBit_RootObject robj) { CORBA_ORB orb = (CORBA_ORB)robj; g_ptr_array_free (orb->adaptors, TRUE); g_hash_table_destroy (orb->initial_refs); p_free (orb, struct CORBA_ORB_type); } GMutex *ORBit_RootObject_lifecycle_lock = NULL; static void ORBit_locks_initialize (void) { ORBit_RootObject_lifecycle_lock = link_mutex_new (); } #ifdef G_ENABLE_DEBUG static void ORBit_setup_debug_flags (void) { static GDebugKey debug_keys[] = { { "traces", ORBIT_DEBUG_TRACES }, { "inproc_traces", ORBIT_DEBUG_INPROC_TRACES }, { "timings", ORBIT_DEBUG_TIMINGS }, { "types", ORBIT_DEBUG_TYPES }, { "messages", ORBIT_DEBUG_MESSAGES }, { "errors", ORBIT_DEBUG_ERRORS }, { "objects", ORBIT_DEBUG_OBJECTS }, { "giop", ORBIT_DEBUG_GIOP }, { "refs", ORBIT_DEBUG_REFS }, { "force_threaded", ORBIT_DEBUG_FORCE_THREADED } }; const char *env_string; env_string = g_getenv ("ORBIT2_DEBUG"); if (env_string) _orbit_debug_flags |= g_parse_debug_string (env_string, debug_keys, G_N_ELEMENTS (debug_keys)); if (orbit_debug_options) _orbit_debug_flags |= g_parse_debug_string (orbit_debug_options, debug_keys, G_N_ELEMENTS (debug_keys)); if (_orbit_debug_flags & ORBIT_DEBUG_INPROC_TRACES) ORBit_small_flags |= ORBIT_SMALL_FORCE_GENERIC_MARSHAL; } #endif /* G_ENABLE_DEBUG */ static CORBA_ORB _ORBit_orb = NULL; static gulong init_level = 0; static gboolean atexit_shutdown = FALSE; #ifndef G_OS_WIN32 /* See comment at g_atexit() call below */ /* * This is neccessary to clean up any remaining UDS * and to flush any remaining oneway traffic in buffers. */ static void shutdown_orb (void) { CORBA_ORB orb; CORBA_Environment ev; if (!(orb = _ORBit_orb)) return; init_level = 1; /* clobber it */ atexit_shutdown = TRUE; CORBA_exception_init (&ev); CORBA_ORB_destroy (orb, &ev); ORBit_RootObject_release (orb); CORBA_exception_free (&ev); atexit_shutdown = FALSE; } #endif static gboolean ORBit_initial_reference_protected_id (gchar* id) { return (!strncmp (id, "RootPOA", strlen("RootPOA")) || !strncmp (id, "POACurrent", strlen("POACurrent"))); } static void ORBit_initial_references_by_user (CORBA_ORB orb, gchar *naming_ref, GSList *initref_list, CORBA_Environment *ev) { GSList *l; CORBA_Object objref; if (ev->_major != CORBA_NO_EXCEPTION) return; if (naming_ref) { objref = CORBA_ORB_string_to_object (orb, naming_ref, ev); /* FIXME, should abort if invalid option, don't forget * to free resources allocated by ORB */ if (ev->_major != CORBA_NO_EXCEPTION) { g_warning ("Option ORBNamingIOR has invalid object reference: %s", naming_ref); CORBA_exception_free (ev); } else { /* FIXME, test type of object for * IDL:omg.org/CosNaming/NamingContext using _is_a() * operation */ ORBit_set_initial_reference (orb, "NameService", objref); ORBit_RootObject_release (objref); } } for (l = initref_list; l; l = l->next) { ORBit_OptionKeyValue *tuple = l->data; g_assert (tuple != NULL); g_assert (tuple->key != (gchar*)NULL); g_assert (tuple->value != (gchar*)NULL); objref = CORBA_ORB_string_to_object (orb, tuple->value, ev); /* FIXME, should abort if invalid option, * don't forget to free resources allocated by * ORB */ if (ev->_major != CORBA_NO_EXCEPTION) { g_warning ("Option ORBInitRef has invalid object reference: %s=%s", tuple->key, tuple->value); CORBA_exception_free (ev); } else { if (ORBit_initial_reference_protected_id(tuple->key)) { g_warning ("Option ORBInitRef permission denied: %s=%s", tuple->key, tuple->value); } else { ORBit_set_initial_reference (orb, tuple->key, objref); } ORBit_RootObject_release (objref); } } } CORBA_ORB CORBA_ORB_init (int *argc, char **argv, CORBA_ORBid orb_identifier, CORBA_Environment *ev) { gboolean thread_safe; CORBA_ORB retval; static ORBit_RootObject_Interface orb_if = { ORBIT_ROT_ORB, CORBA_ORB_release_fn }; init_level++; if ((retval = _ORBit_orb)) return ORBit_RootObject_duplicate (retval); /* the allocation code uses the bottom bit of any pointer */ g_assert (ORBIT_ALIGNOF_CORBA_DOUBLE > 2); if (orb_identifier && strstr (orb_identifier, "orbit-local-non-threaded-orb") != NULL) thread_safe = FALSE; else thread_safe = TRUE; ORBit_option_parse (argc, argv, orbit_supported_options); #ifdef G_ENABLE_DEBUG ORBit_setup_debug_flags (); if (_orbit_debug_flags & ORBIT_DEBUG_FORCE_THREADED) { g_warning ("-- Forced orb into threaded mode --"); thread_safe |= TRUE; } #endif /* G_ENABLE_DEBUG */ giop_recv_set_limit (orbit_initial_recv_limit); giop_set_timeout (orbit_timeout_msec); giop_init (thread_safe, orbit_use_ipv4 || orbit_use_ipv6 || orbit_use_irda || orbit_use_ssl); if (orb_identifier && thread_safe && strstr (orb_identifier, "orbit-io-thread") != NULL) link_set_io_thread (TRUE); genuid_init (); _ORBit_object_init (); ORBit_poa_init (); ORBit_locks_initialize (); retval = g_new0 (struct CORBA_ORB_type, 1); ORBit_RootObject_init (&retval->root_object, &orb_if); /* released by CORBA_ORB_destroy */ _ORBit_orb = ORBit_RootObject_duplicate (retval); _ORBit_orb->lock = link_mutex_new (); #ifndef G_OS_WIN32 /* atexit(), which g_atexit() is just a #define for on Win32, * often causes breakage when invoked from DLLs. It causes the * registered function to be called when the calling DLL is * being unloaded. At that time, however, random other DLLs * might also have already been unloaded. There is no * guarantee WinSock even works any longer. Etc. Best to avoid * atexit() completely on Win32, and hope that just exiting * the process and thus severing all connections will be * noticed by all peers the process was connected to and acted * upon properly. * * In the evolution-exchange-storage process's case, the * shutdown_orb() function caused the process to hang and not * exit, leaving the sockets it was listening on still in a * LISTEN state. bonobo-activation-server thought the bonobo * servers in evolution-exchange-storage were still OK and * tried to contact them when Evolution was started the next * time, causing it to hang, too. */ g_atexit (shutdown_orb); #endif retval->default_giop_version = GIOP_LATEST; retval->adaptors = g_ptr_array_new (); /* init the forward bind hashtable*/ retval->forw_binds = g_hash_table_new_full ( g_str_hash, g_str_equal, g_free, NULL); ORBit_init_internals (retval, ev); /* FIXME, handle exceptions */ ORBit_initial_references_by_user (retval, orbit_naming_ref, orbit_initref_list, ev); /* FIXME, handle exceptions */ return ORBit_RootObject_duplicate (retval); } CORBA_char * CORBA_ORB_object_to_string (CORBA_ORB orb, const CORBA_Object obj, CORBA_Environment *ev) { GIOPSendBuffer *buf; CORBA_octet endianness = GIOP_FLAG_ENDIANNESS; CORBA_char *out; int i, j, k; g_return_val_if_fail (ev != NULL, NULL); if(!orb || !obj || ORBIT_ROOT_OBJECT_TYPE (obj) != ORBIT_ROT_OBJREF) { CORBA_exception_set_system ( ev, ex_CORBA_BAD_PARAM, CORBA_COMPLETED_NO); return NULL; } if (orbit_use_corbaloc) { out = ORBit_object_to_corbaloc (obj, ev); if (ev->_major == CORBA_NO_EXCEPTION) return out; CORBA_exception_free (ev); /* fall thru, common marshalling */ } buf = giop_send_buffer_use (orb->default_giop_version); g_assert (buf->num_used == 1); buf->header_size = 0; buf->lastptr = NULL; buf->num_used = 0; /* we don't want the header in there */ buf->msg.header.message_size = 0; giop_send_buffer_append (buf, &endianness, 1); ORBit_marshal_object (buf, obj); out = CORBA_string_alloc (4 + (buf->msg.header.message_size * 2) + 1); strcpy (out, "IOR:"); for (i = 0, k = 4; i < buf->num_used; i++) { struct iovec *curvec; guchar *ptr; curvec = &buf->iovecs [i]; ptr = curvec->iov_base; for (j = 0; j < curvec->iov_len; j++, ptr++) { int n1, n2; n1 = (*ptr & 0xF0) >> 4; n2 = (*ptr & 0xF); out [k++] = num2hexdigit (n1); out [k++] = num2hexdigit (n2); } } out [k++] = '\0'; giop_send_buffer_unuse (buf); return out; } CORBA_Object CORBA_ORB_string_to_object (CORBA_ORB orb, const CORBA_char *string, CORBA_Environment *ev) { CORBA_Object retval = CORBA_OBJECT_NIL; CORBA_unsigned_long len; GIOPRecvBuffer *buf; #if defined ENABLE_HTTP gchar *ior = NULL; #endif guchar *tmpbuf; int i; if (strncmp (string, "IOR:", strlen("IOR:")) && strncmp (string, "corbaloc:", strlen ("corbaloc:")) && strncmp (string, "iiop:", strlen ("iiop:")) && strncmp (string, "iiops:", strlen ("iiops:")) && strncmp (string, "ssliop:", strlen ("ssliop:")) && strncmp (string, "uiop:", strlen ("uiop:"))) { #if defined ENABLE_HTTP if (orbit_use_http_iors && strstr (string, "://")) { /* FIXME: this code is a security hazard */ ior = orb_http_resolve (string); if (!ior) { /* FIXME, set error minor code * (vendor's error code) to tell user * initial location of error, ie my * local ORB, proxy's ORB, server's * ORB, etc. */ CORBA_exception_set_system ( ev, ex_CORBA_BAD_PARAM, CORBA_COMPLETED_NO); return CORBA_OBJECT_NIL; } string = ior; } else #endif { CORBA_exception_set_system ( ev, ex_CORBA_BAD_PARAM, CORBA_COMPLETED_NO); return CORBA_OBJECT_NIL; } } if (!strncmp (string, "IOR:", strlen ("IOR:"))) { string += 4; len = strlen (string); while (len > 0 && !g_ascii_isxdigit (string [len - 1])) len--; if (len % 2) { #if defined ENABLE_HTTP g_free (ior); #endif return CORBA_OBJECT_NIL; } tmpbuf = g_alloca (len / 2); for (i = 0; i < len; i += 2) tmpbuf [i/2] = (g_ascii_xdigit_value (string [i]) << 4) | g_ascii_xdigit_value (string [i + 1]); buf = giop_recv_buffer_use_encaps (tmpbuf, len / 2); if (ORBit_demarshal_object (&retval, buf, orb)) { CORBA_exception_set_system ( ev, ex_CORBA_MARSHAL, CORBA_COMPLETED_NO); retval = CORBA_OBJECT_NIL; } giop_recv_buffer_unuse (buf); #if defined ENABLE_HTTP g_free (ior); #endif return retval; } else { return ORBit_object_by_corbaloc (orb, string, ev); } } void CORBA_ORB_create_list (CORBA_ORB obj, const CORBA_long count, CORBA_NVList *new_list, CORBA_Environment *ev) { CORBA_NVList nvlist; nvlist = g_new0 (struct CORBA_NVList_type, 1); nvlist->list = g_array_new (FALSE, TRUE, sizeof (CORBA_NamedValue)); *new_list = nvlist; } void CORBA_ORB_create_operation_list (CORBA_ORB orb, const CORBA_OperationDef oper, CORBA_NVList *new_list, CORBA_Environment *ev) { } void CORBA_ORB_send_multiple_requests_oneway (CORBA_ORB orb, const CORBA_RequestSeq *req, CORBA_Environment *ev) { } void CORBA_ORB_send_multiple_requests_deferred (CORBA_ORB orb, const CORBA_RequestSeq *req, CORBA_Environment *ev) { } CORBA_boolean CORBA_ORB_poll_next_response (CORBA_ORB orb, CORBA_Environment *ev) { return CORBA_FALSE; } void CORBA_ORB_get_next_response (CORBA_ORB orb, CORBA_Request *req, CORBA_Environment *ev) { *req = NULL; } CORBA_boolean CORBA_ORB_get_service_information (CORBA_ORB orb, const CORBA_ServiceType service_type, CORBA_ServiceInformation **service_information, CORBA_Environment *ev) { /* FIXME: * see http://mail.gnome.org/archives/orbit-list/2003-May/msg00093.html * Assigning NULL to parameter service_information is not * compliant to CORBA spec. This operation is part of pseudo * interface and must react like operation of true remote * interface. The question is what value it should point to in * case CORBA_FALSE is returned to caller. 4.2.2 Getting Service Information 4.2.2.1 get_service_information boolean get_service_information (in ServiceType service_type; out ServiceInformation service_information;); * The get_service_information operation is used to obtain * information about CORBA facilities and services that are * supported by this ORB. The service type for which * information is being requested is passed in as the in * parameter service_type, the values defined by constants in * the CORBA module. If service information is available for * that type, that is returned in the out parameter * service_information, and the operation returns the value * TRUE. If no information for the requested services type is * available, the operation returns FALSE (i.e., the service * is not supported by this ORB). */ *service_information = NULL; return CORBA_FALSE; } struct ORBit_service_list_info { CORBA_ORB_ObjectIdList *list; CORBA_long index; }; static void ORBit_service_list_add_id (CORBA_string key, gpointer value, struct ORBit_service_list_info *info) { info->list->_buffer [info->index++] = CORBA_string_dup (key); } CORBA_ORB_ObjectIdList * CORBA_ORB_list_initial_services (CORBA_ORB orb, CORBA_Environment *ev) { CORBA_ORB_ObjectIdList *retval; retval = CORBA_ORB_ObjectIdList__alloc(); if (orb->initial_refs) { struct ORBit_service_list_info *info; info = g_alloca (sizeof (struct ORBit_service_list_info)); info->index = 0; info->list = retval; retval->_length = g_hash_table_size (orb->initial_refs); retval->_maximum = retval->_length; retval->_buffer = CORBA_sequence_CORBA_ORB_ObjectId_allocbuf ( retval->_length); g_hash_table_foreach (orb->initial_refs, (GHFunc)ORBit_service_list_add_id, info); retval->_release = CORBA_TRUE; g_assert (info->index == retval->_length); } else { retval->_length = 0; retval->_buffer = NULL; } return retval; } /** The InvalidName exception is raised at @ev when * ORB.resolve_initial_references is passed an @identifier for which * there is no initial reference. */ CORBA_Object CORBA_ORB_resolve_initial_references (CORBA_ORB orb, const CORBA_char *identifier, CORBA_Environment *ev) { CORBA_Object objref; /* FIXME, verify identifier and raise exception for invalid * service names, valid names might be: NameService, RootPOA, * SecurityCurrent, PolicyCurrent, etc. */ if (!orb->initial_refs || !(objref = g_hash_table_lookup (orb->initial_refs, identifier))) return CORBA_OBJECT_NIL; return ORBit_RootObject_duplicate (objref); #if 0 raise_invalid_name: CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_CORBA_ORB_InvalidName, NULL); return CORBA_OBJECT_NIL; #endif } static CORBA_TypeCode ORBit_TypeCode_allocate (void) { CORBA_TypeCode tc = g_new0 (struct CORBA_TypeCode_struct, 1); ORBit_RootObject_init (&tc->parent, &ORBit_TypeCode_epv); return ORBit_RootObject_duplicate (tc); } CORBA_TypeCode CORBA_ORB_create_struct_tc (CORBA_ORB orb, const CORBA_char *id, const CORBA_char *name, const CORBA_StructMemberSeq *members, CORBA_Environment *ev) { CORBA_TypeCode retval; int i; retval = ORBit_TypeCode_allocate (); retval->subtypes = g_new0 (CORBA_TypeCode, members->_length); retval->subnames = g_new0 (char *, members->_length); retval->kind = CORBA_tk_struct; retval->name = g_strdup (name); retval->repo_id = g_strdup (id); retval->sub_parts = members->_length; retval->length = members->_length; for(i = 0; i < members->_length; i++) { CORBA_StructMember *member = &members->_buffer [i]; g_assert (&member->type != CORBA_OBJECT_NIL); retval->subtypes [i] = ORBit_RootObject_duplicate (member->type); retval->subnames [i] = g_strdup (member->name); } return retval; } static void copy_case_value (CORBA_long *dest, CORBA_any *src) { CORBA_TypeCode tc = src->_type; if (tc->kind == CORBA_tk_alias) tc = tc->subtypes [0]; switch (tc->kind) { case CORBA_tk_ulong: case CORBA_tk_long: case CORBA_tk_enum: *dest = *(CORBA_long *) src->_value; break; case CORBA_tk_ushort: case CORBA_tk_short: *dest = *(CORBA_short *) src->_value; break; case CORBA_tk_char: case CORBA_tk_boolean: case CORBA_tk_octet: *dest = *(CORBA_octet *) src->_value; break; default: g_assert_not_reached (); break; } } CORBA_TypeCode CORBA_ORB_create_union_tc (CORBA_ORB orb, const CORBA_char *id, const CORBA_char *name, const CORBA_TypeCode discriminator_type, const CORBA_UnionMemberSeq *members, CORBA_Environment *ev) { CORBA_TypeCode retval; int i; retval = ORBit_TypeCode_allocate (); retval->discriminator = ORBit_RootObject_duplicate (discriminator_type); retval->subtypes = g_new0 (CORBA_TypeCode, members->_length); retval->subnames = g_new0 (char *, members->_length); retval->sublabels = g_new0 (CORBA_long, members->_length); retval->kind = CORBA_tk_union; retval->name = g_strdup (name); retval->repo_id = g_strdup (id); retval->sub_parts = members->_length; retval->length = members->_length; retval->default_index = -1; for (i = 0; i < members->_length; i++) { CORBA_UnionMember *member = &members->_buffer [i]; g_assert (member->type != CORBA_OBJECT_NIL); copy_case_value (&retval->sublabels [i], &member->label); retval->subtypes [i] = ORBit_RootObject_duplicate (member->type); retval->subnames [i] = g_strdup (member->name); if (member->label._type->kind == CORBA_tk_octet) retval->default_index = i; } return retval; } CORBA_TypeCode CORBA_ORB_create_enum_tc (CORBA_ORB orb, const CORBA_char *id, const CORBA_char *name, const CORBA_EnumMemberSeq *members, CORBA_Environment *ev) { CORBA_TypeCode retval; int i; retval = ORBit_TypeCode_allocate (); retval->subnames=g_new0 (char *, members->_length); retval->kind = CORBA_tk_enum; retval->name = g_strdup (name); retval->repo_id = g_strdup (id); retval->sub_parts = members->_length; retval->length = members->_length; for (i = 0; i < members->_length; i++) retval->subnames [i] = g_strdup (members->_buffer [i]); return retval; } CORBA_TypeCode CORBA_ORB_create_alias_tc (CORBA_ORB orb, const CORBA_char *id, const CORBA_char *name, const CORBA_TypeCode original_type, CORBA_Environment *ev) { CORBA_TypeCode retval; retval = ORBit_TypeCode_allocate (); retval->subtypes = g_new0 (CORBA_TypeCode, 1); retval->kind = CORBA_tk_alias; retval->name = g_strdup (name); retval->repo_id = g_strdup (id); retval->sub_parts = 1; retval->length = 1; retval->subtypes [0] = ORBit_RootObject_duplicate (original_type); return retval; } CORBA_TypeCode CORBA_ORB_create_exception_tc (CORBA_ORB orb, const CORBA_char *id, const CORBA_char *name, const CORBA_StructMemberSeq *members, CORBA_Environment *ev) { CORBA_TypeCode retval; int i; retval = ORBit_TypeCode_allocate (); if (members->_length) { retval->subtypes = g_new0 (CORBA_TypeCode, members->_length); retval->subnames = g_new0 (char *, members->_length); } retval->kind = CORBA_tk_except; retval->name = g_strdup (name); retval->repo_id = g_strdup (id); retval->sub_parts = members->_length; retval->length = members->_length; for (i = 0; i < members->_length; i++) { CORBA_StructMember *member = &members->_buffer [i]; g_assert (member->type != CORBA_OBJECT_NIL); retval->subtypes [i] = ORBit_RootObject_duplicate (member->type); retval->subnames [i] = g_strdup (member->name); } return retval; } CORBA_TypeCode CORBA_ORB_create_interface_tc (CORBA_ORB orb, const CORBA_char *id, const CORBA_char *name, CORBA_Environment *ev) { CORBA_TypeCode retval; retval = ORBit_TypeCode_allocate (); retval->kind = CORBA_tk_objref; retval->name = g_strdup (name); retval->repo_id = g_strdup (id); return retval; } CORBA_TypeCode CORBA_ORB_create_string_tc (CORBA_ORB orb, const CORBA_unsigned_long bound, CORBA_Environment *ev) { CORBA_TypeCode retval; retval = ORBit_TypeCode_allocate (); retval->kind = CORBA_tk_string; retval->length = bound; return retval; } CORBA_TypeCode CORBA_ORB_create_wstring_tc (CORBA_ORB orb, const CORBA_unsigned_long bound, CORBA_Environment *ev) { CORBA_TypeCode retval; retval = ORBit_TypeCode_allocate (); retval->kind = CORBA_tk_wstring; retval->length = bound; return retval; } CORBA_TypeCode CORBA_ORB_create_fixed_tc (CORBA_ORB orb, const CORBA_unsigned_short digits, const CORBA_short scale, CORBA_Environment *ev) { CORBA_TypeCode retval; retval = ORBit_TypeCode_allocate (); retval->kind = CORBA_tk_fixed; retval->digits = digits; retval->scale = scale; return retval; } CORBA_TypeCode CORBA_ORB_create_sequence_tc (CORBA_ORB orb, const CORBA_unsigned_long bound, const CORBA_TypeCode element_type, CORBA_Environment *ev) { CORBA_TypeCode retval; retval = ORBit_TypeCode_allocate (); retval->subtypes = g_new0 (CORBA_TypeCode, 1); retval->kind = CORBA_tk_sequence; retval->sub_parts = 1; retval->length = bound; retval->subtypes [0] = ORBit_RootObject_duplicate (element_type); return retval; } CORBA_TypeCode CORBA_ORB_create_recursive_sequence_tc (CORBA_ORB orb, const CORBA_unsigned_long bound, const CORBA_unsigned_long offset, CORBA_Environment *ev) { CORBA_TypeCode retval; retval=ORBit_TypeCode_allocate (); retval->subtypes = g_new0 (CORBA_TypeCode, 1); retval->kind = CORBA_tk_sequence; retval->sub_parts = 1; retval->length = bound; retval->subtypes [0] = ORBit_TypeCode_allocate (); retval->subtypes [0]->kind = CORBA_tk_recursive; retval->subtypes [0]->recurse_depth = offset; return retval; } CORBA_TypeCode CORBA_ORB_create_array_tc (CORBA_ORB orb, const CORBA_unsigned_long length, const CORBA_TypeCode element_type, CORBA_Environment *ev) { CORBA_TypeCode tc; tc = ORBit_TypeCode_allocate (); tc->subtypes = g_new0 (CORBA_TypeCode, 1); tc->kind = CORBA_tk_array; tc->sub_parts = 1; tc->length = length; tc->subtypes [0] = ORBit_RootObject_duplicate (element_type); return (tc); } CORBA_TypeCode CORBA_ORB_create_value_tc (CORBA_ORB orb, const CORBA_char *id, const CORBA_char *name, const CORBA_ValueModifier type_modifier, const CORBA_TypeCode concrete_base, const CORBA_ValueMemberSeq *members, CORBA_Environment *ev) { return CORBA_OBJECT_NIL; } CORBA_TypeCode CORBA_ORB_create_value_box_tc (CORBA_ORB orb, const CORBA_char *id, const CORBA_char *name, const CORBA_TypeCode boxed_type, CORBA_Environment *ev) { return CORBA_OBJECT_NIL; } CORBA_TypeCode CORBA_ORB_create_native_tc (CORBA_ORB orb, const CORBA_char *id, const CORBA_char *name, CORBA_Environment *ev) { return CORBA_OBJECT_NIL; } CORBA_TypeCode CORBA_ORB_create_recursive_tc (CORBA_ORB orb, const CORBA_char *id, CORBA_Environment *ev) { return CORBA_OBJECT_NIL; } CORBA_TypeCode CORBA_ORB_create_abstract_interface_tc (CORBA_ORB orb, const CORBA_char *id, const CORBA_char *name, CORBA_Environment *ev) { return CORBA_OBJECT_NIL; } CORBA_boolean CORBA_ORB_work_pending (CORBA_ORB orb, CORBA_Environment *ev) { return link_main_pending (); } void CORBA_ORB_perform_work (CORBA_ORB orb, CORBA_Environment *ev) { link_main_iteration (FALSE); } void CORBA_ORB_run (CORBA_ORB orb, CORBA_Environment *ev) { giop_main_run (); } void CORBA_ORB_shutdown (CORBA_ORB orb, const CORBA_boolean wait_for_completion, CORBA_Environment *ev) { PortableServer_POA root_poa; root_poa = g_ptr_array_index (orb->adaptors, 0); if (root_poa) { PortableServer_POA_destroy ( root_poa, TRUE, wait_for_completion, ev); if (ev->_major) { if (wait_for_completion) g_warning ("FIXME: wait for " "completion unimplemented"); else return; } } giop_shutdown (); ORBit_ORB_shutdown_servers (orb); } void CORBA_ORB_destroy (CORBA_ORB orb, CORBA_Environment *ev) { PortableServer_POA root_poa; if (orb->life_flags & ORBit_LifeF_Destroyed) return; init_level--; if (init_level > 0) return; CORBA_ORB_shutdown (orb, TRUE, ev); g_assert (_ORBit_orb == orb); _ORBit_orb = NULL; if (ev->_major) return; root_poa = g_ptr_array_index (orb->adaptors, 0); if (root_poa && ((ORBit_RootObject) root_poa)->refs != 1) { #ifdef G_ENABLE_DEBUG if (!atexit_shutdown) g_warning ("CORBA_ORB_destroy: Application still has %d " "refs to RootPOA.", ((ORBit_RootObject)root_poa)->refs - 1); #endif CORBA_exception_set_system ( ev, ex_CORBA_FREE_MEM, CORBA_COMPLETED_NO); } g_hash_table_foreach (orb->initial_refs, (GHFunc)ORBit_service_list_free_ref, NULL); ORBit_RootObject_release (orb->default_ctx); orb->default_ctx = CORBA_OBJECT_NIL; { int i; int leaked_adaptors = 0; /* Each poa has a ref on the ORB */ for (i = 0; i < orb->adaptors->len; i++) { ORBit_ObjectAdaptor adaptor; adaptor = g_ptr_array_index (orb->adaptors, i); if (adaptor) leaked_adaptors++; } if (leaked_adaptors) { #ifdef G_ENABLE_DEBUG if (!atexit_shutdown) g_warning ("CORBA_ORB_destroy: leaked '%d' Object Adaptors", leaked_adaptors); #endif CORBA_exception_set_system ( ev, ex_CORBA_FREE_MEM, CORBA_COMPLETED_NO); } if (((ORBit_RootObject)orb)->refs != 2 + leaked_adaptors) { #ifdef G_ENABLE_DEBUG if (!atexit_shutdown) { if (((ORBit_RootObject)orb)->refs == 1 + leaked_adaptors) g_warning ("CORBA_ORB_destroy: ORB unreffed but not _destroy'd"); else g_warning ("CORBA_ORB_destroy: ORB still has %d refs.", ((ORBit_RootObject)orb)->refs - 1 - leaked_adaptors); } #endif CORBA_exception_set_system ( ev, ex_CORBA_FREE_MEM, CORBA_COMPLETED_NO); } } /* destroy the forward bind hashtable*/ g_hash_table_destroy (orb->forw_binds); orb->forw_binds = NULL; orb->life_flags |= ORBit_LifeF_Destroyed; if (orb->lock) { g_mutex_free (orb->lock); orb->lock = NULL; } ORBit_RootObject_release (orb); /* At this stage there should be 1 ref left in the system - * on the ORB */ if (ORBit_RootObject_shutdown (!atexit_shutdown)) CORBA_exception_set_system ( ev, ex_CORBA_FREE_MEM, CORBA_COMPLETED_NO); } CORBA_Policy CORBA_ORB_create_policy (CORBA_ORB orb, const CORBA_PolicyType type, const CORBA_any *val, CORBA_Environment *ev) { return CORBA_OBJECT_NIL; } CORBA_ValueFactory CORBA_ORB_register_value_factory (CORBA_ORB orb, const CORBA_char *id, const CORBA_ValueFactory factory, CORBA_Environment *ev) { return CORBA_OBJECT_NIL; } void CORBA_ORB_unregister_value_factory (CORBA_ORB orb, const CORBA_char *id, CORBA_Environment *ev) { } CORBA_ValueFactory CORBA_ORB_lookup_value_factory (CORBA_ORB orb, const CORBA_char *id, CORBA_Environment *ev) { return CORBA_OBJECT_NIL; } void ORBit_set_initial_reference (CORBA_ORB orb, gchar *identifier, gpointer objref) { CORBA_Object old_objref; if (!orb->initial_refs) orb->initial_refs = g_hash_table_new (g_str_hash, g_str_equal); if ((old_objref = g_hash_table_lookup (orb->initial_refs, identifier))) { ORBit_RootObject_release (old_objref); g_hash_table_remove (orb->initial_refs, identifier); } g_hash_table_insert (orb->initial_refs, identifier, ORBit_RootObject_duplicate (objref)); } void ORBit_ORB_forw_bind (CORBA_ORB orb, CORBA_sequence_CORBA_octet *objkey, CORBA_Object obj, CORBA_Environment *ev) { if (obj) g_hash_table_insert (orb->forw_binds, objkey->_buffer, obj); else { g_hash_table_remove(orb->forw_binds, objkey->_buffer); } } gboolean ORBit_proto_use (const char *name) { if ((orbit_use_ipv4 && !strcmp ("IPv4", name)) || (orbit_use_ipv6 && !strcmp ("IPv6", name)) || (orbit_use_usocks && !strcmp ("UNIX", name)) || (orbit_use_irda && !strcmp ("IrDA", name)) || (orbit_use_ssl && !strcmp ("SSL", name))) return TRUE; return FALSE; } /** * ORBit_get_giop_recv_limit: * * This function will return the GIOP receive limit. The * GIOP receive limit is the maximum number of bytes that * are allowed be received in any one ingoing GIOP * communication. This function is essential if an application * is about to receive a big amount of data. Knowing the GIOP * receive limit will enable the application to poll to data * in chunks that are below the receive limit. * * Since: 2.14.1 */ glong ORBit_get_giop_recv_limit (void) { return giop_recv_get_limit (); } const ORBit_option orbit_supported_options[] = { { "ORBid", ORBIT_OPTION_STRING, NULL }, /* FIXME: unimplemented */ { "ORBImplRepoIOR", ORBIT_OPTION_STRING, NULL }, /* FIXME: unimplemented */ { "ORBIfaceRepoIOR", ORBIT_OPTION_STRING, NULL }, /* FIXME: unimplemented */ { "ORBNamingIOR", ORBIT_OPTION_STRING, &orbit_naming_ref}, { "ORBRootPOAIOR", ORBIT_OPTION_STRING, NULL }, /* FIXME: huh? */ { "ORBIIOPIPName", ORBIT_OPTION_STRING, &orbit_ipname }, /* Will always take precedence over ORBNetID */ { "ORBIIOPIPSock", ORBIT_OPTION_STRING, &orbit_ipsock }, { "ORBInitialMsgLimit", ORBIT_OPTION_INT, &orbit_initial_recv_limit }, { "ORBLocalOnly", ORBIT_OPTION_BOOLEAN, &orbit_local_only }, { "ORBNetID", ORBIT_OPTION_STRING, &orbit_net_id }, /* warning: this option is a security risk unless used with LocalOnly */ { "ORBIIOPIPv4", ORBIT_OPTION_BOOLEAN, &orbit_use_ipv4 }, { "ORBIIOPIPv6", ORBIT_OPTION_BOOLEAN, &orbit_use_ipv6 }, { "ORBIIOPUSock", ORBIT_OPTION_BOOLEAN, &orbit_use_usocks }, { "ORBIIOPUNIX", ORBIT_OPTION_BOOLEAN, &orbit_use_usocks }, { "ORBIIOPIrDA", ORBIT_OPTION_BOOLEAN, &orbit_use_irda }, { "ORBIIOPSSL", ORBIT_OPTION_BOOLEAN, &orbit_use_ssl }, /* warning: this option is a security risk */ { "ORBHTTPIORs", ORBIT_OPTION_BOOLEAN, &orbit_use_http_iors }, /* warning: this option is a security risk */ { "ORBSimpleUIDs", ORBIT_OPTION_BOOLEAN, &orbit_use_genuid_simple }, { "ORBDebugFlags", ORBIT_OPTION_STRING, &orbit_debug_options }, { "ORBInitRef", ORBIT_OPTION_KEY_VALUE, &orbit_initref_list}, { "ORBCorbaloc", ORBIT_OPTION_BOOLEAN, &orbit_use_corbaloc}, { "GIOPTimeoutMSEC", ORBIT_OPTION_ULONG, &orbit_timeout_msec }, { NULL, 0, NULL } }; #ifdef G_OS_WIN32 /* DllMain function used to store the DLL handle */ static HMODULE hmodule; G_LOCK_DEFINE_STATIC (mutex); /* Silence gcc warnings about no prototype */ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved); const gchar *ORBit_win32_get_typelib_dir (void); const gchar *ORBit_win32_get_system_rcfile (void); BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { switch (fdwReason) { case DLL_PROCESS_ATTACH: hmodule = hinstDLL; break; } return TRUE; } static const char *typelib_dir = NULL; static const char *system_rcfile = NULL; static void setup (void) { gchar *prefix; G_LOCK (mutex); if (typelib_dir != NULL) { G_UNLOCK (mutex); return; } prefix = g_win32_get_package_installation_directory_of_module (hmodule); if (prefix == NULL) { /* Just to not crash... */ prefix = g_strdup (""); } typelib_dir = g_strconcat (prefix, "\\lib\\orbit-2.0", NULL); system_rcfile = g_strconcat (prefix, "\\etc\\orbitrc", NULL); G_UNLOCK (mutex); g_free (prefix); } const gchar * ORBit_win32_get_typelib_dir (void) { setup (); return typelib_dir; } const gchar * ORBit_win32_get_system_rcfile (void) { setup (); return system_rcfile; } #endif ORBit2-2.14.19/src/orb/orb-core/iop-profiles.c0000644000175000001440000013363411413117255015515 00000000000000#include #include #include #include #include #include "iop-profiles.h" #include "orb-core-private.h" #include "../poa/orbit-poa-export.h" #include "orbit-debug.h" #undef DEBUG /* FIXME: this whole module is horribly unneccesary - if we just used the wire structures more intelligently we could store everything far more sensibly */ static void IOP_profile_free (IOP_Profile_info *p); #ifdef LINK_SSL_SUPPORT static IOP_Component_info * IOP_component_find (GSList *list, IOP_ComponentId type, GSList **pos) { for (; list; list = list->next) { IOP_Component_info *pi = list->data; if(pi->component_type == type) return pi; } return NULL; } #endif /* LINK_SSL_SUPPORT */ static gchar * IOP_ObjectKey_dump (ORBit_ObjectKey *objkey) { int i; GString *str = g_string_sized_new (objkey->_length * 2 + 4); for (i = 0; i < objkey->_length; i++) g_string_append_printf (str, "%02x", objkey->_buffer [i]); return g_string_free (str, FALSE); } G_GNUC_UNUSED gchar * IOP_profile_dump (CORBA_Object obj, gpointer p) { IOP_ProfileId t; char *key = NULL; GString *str = g_string_sized_new (64); t = ((IOP_Profile_info *)p)->profile_type; switch (t) { case IOP_TAG_INTERNET_IOP: { IOP_TAG_INTERNET_IOP_info *iiop = p; g_assert (!iiop->object_key); key = IOP_ObjectKey_dump (obj->object_key); g_string_printf (str, "P-IIOP %s:0x%x '%s'", iiop->host, iiop->port, key); g_free (key); break; } case IOP_TAG_GENERIC_IOP: { IOP_TAG_GENERIC_IOP_info *giop = p; g_string_printf (str, "P-GIOP %s:%s:%s", giop->proto, giop->service, giop->host); break; } case IOP_TAG_ORBIT_SPECIFIC: { IOP_TAG_ORBIT_SPECIFIC_info *os = p; g_assert (!os->object_key); key = IOP_ObjectKey_dump (obj->object_key); g_string_printf (str, "P-OS %s:0x%x '%s'", os->unix_sock_path, os->ipv6_port, key); g_free (key); break; } case IOP_TAG_MULTIPLE_COMPONENTS: default: g_string_printf (str, "P-"); break; } return g_string_free (str, FALSE); } /* * IOP_profiles_sync_objkey: * @profiles: newly demarshalled profile list. * * This method scans @profiles for object keys and returns one * of this object keys. All other keys are freed. * * This is based on the (potentially) dangerous assumption that * no ORB would have two different object keys representing the * same object. For this reason the object keys are compared and * if they do not match an error is displayed. * * Return Value: An #ORBit_ObjectKey pointer. */ ORBit_ObjectKey* IOP_profiles_sync_objkey (GSList *profiles) { ORBit_ObjectKey *objkey; IOP_Profile_info *pi; GSList *l; gboolean match; objkey = NULL; match = TRUE; for(l = profiles; l; l = l->next) { pi = l->data; switch (pi->profile_type) { case IOP_TAG_INTERNET_IOP: { IOP_TAG_INTERNET_IOP_info *iiopi = (IOP_TAG_INTERNET_IOP_info *)pi; if (!objkey) objkey = iiopi->object_key; else { match = IOP_ObjectKey_equal (objkey, iiopi->object_key); ORBit_free (iiopi->object_key); } iiopi->object_key = NULL; } break; case IOP_TAG_ORBIT_SPECIFIC: { IOP_TAG_ORBIT_SPECIFIC_info *osi = (IOP_TAG_ORBIT_SPECIFIC_info *)pi; if (!objkey) objkey = osi->object_key; else { match = IOP_ObjectKey_equal (objkey, osi->object_key); ORBit_free (osi->object_key); } osi->object_key = NULL; } break; case IOP_TAG_MULTIPLE_COMPONENTS: { IOP_TAG_MULTIPLE_COMPONENTS_info *mci = (IOP_TAG_MULTIPLE_COMPONENTS_info *)pi; GSList *mcl = mci->components; for(; mcl; mcl = mcl->next) if (((IOP_Component_info *)mcl->data)->component_type == IOP_TAG_COMPLETE_OBJECT_KEY) { IOP_TAG_COMPLETE_OBJECT_KEY_info *coki = (IOP_TAG_COMPLETE_OBJECT_KEY_info *)mcl->data; if (!objkey) objkey = coki->object_key; else { match = IOP_ObjectKey_equal ( objkey, coki->object_key); ORBit_free (coki->object_key); } coki->object_key = NULL; } } break; default: break; } /* * FIXME: * We might want to remove this check after a while. */ if (!match) g_warning ("Object Keys in different profiles don't match.\n" "Scream and Shout on orbit-list@gnome\n." "You might want to mention what ORB you're using\n"); } return objkey; } gboolean IOP_profile_get_info (CORBA_Object obj, gpointer *pinfo, GIOPVersion *iiop_version, char **proto, char **host, char **service, gboolean *ssl, char *tmpbuf) { IOP_TAG_ORBIT_SPECIFIC_info *osi; IOP_TAG_INTERNET_IOP_info *iiop; IOP_TAG_GENERIC_IOP_info *giop; IOP_Profile_info *pi = (IOP_Profile_info *)pinfo; *ssl = FALSE; #ifdef DEBUG { char *str; fprintf (stderr, "profile for object '%p' '%s'\n", obj, (str = IOP_profile_dump (obj, pi))); g_free (str); } #endif switch(pi->profile_type) { case IOP_TAG_INTERNET_IOP: iiop = (IOP_TAG_INTERNET_IOP_info *)pi; *iiop_version = iiop->iiop_version; *proto = "IPv4"; *host = iiop->host; *service = tmpbuf; g_snprintf(tmpbuf, 8, "%d", iiop->port); #ifdef LINK_SSL_SUPPORT { IOP_TAG_SSL_SEC_TRANS_info *ssli; ssli = (IOP_TAG_SSL_SEC_TRANS_info *) IOP_component_find(iiop->components, IOP_TAG_SSL_SEC_TRANS, NULL); if(ssli) { g_snprintf(tmpbuf, 8, "%d", ssli->port); *ssl = TRUE; } } #endif return TRUE; break; case IOP_TAG_GENERIC_IOP: giop = (IOP_TAG_GENERIC_IOP_info *)pi; *iiop_version = giop->iiop_version; *proto = giop->proto; *host = giop->host; *service = giop->service; #ifdef LINK_SSL_SUPPORT { IOP_TAG_GENERIC_SSL_SEC_TRANS_info *ssli; ssli = (IOP_TAG_GENERIC_SSL_SEC_TRANS_info *) IOP_component_find(giop->components, IOP_TAG_GENERIC_SSL_SEC_TRANS, NULL); if(ssli) { *service = ssli->service; *ssl = TRUE; } } #endif return TRUE; break; case IOP_TAG_ORBIT_SPECIFIC: /* Due to (a) my brain deadness in putting multiple protocols in one profile in ORBit 0.[3-5].x (b) the inability of this current code to support multiple protocols per profile, this only works to pull out the UNIX socket path OR IPv6. It's not like anyone used IPv6 with old ORBit, anyways - most people just want UNIX sockets. */ osi = (IOP_TAG_ORBIT_SPECIFIC_info *)pi; if(osi->unix_sock_path && *osi->unix_sock_path) { *iiop_version = GIOP_1_0; *proto = "UNIX"; *host = ""; *service = osi->unix_sock_path; return TRUE; } break; default: break; } return FALSE; } static IOP_TAG_MULTIPLE_COMPONENTS_info * IOP_get_mci (GSList *p) { for (; p; p = p->next) { if (((IOP_Profile_info *)p->data)->profile_type == IOP_TAG_MULTIPLE_COMPONENTS) return p->data; } return NULL; } gboolean IOP_ObjectKey_equal (ORBit_ObjectKey *a, ORBit_ObjectKey *b) { if (a->_length != b->_length) return FALSE; if (memcmp (a->_buffer, b->_buffer, a->_length)) return FALSE; return TRUE; } static guint IOP_mem_hash (gconstpointer key, gulong len) { guint h = 0; const char *p, *pend; for (p = key, pend = p + len; p < pend; p++) h = (h << 5) - h + *p; return h; } guint IOP_ObjectKey_hash (ORBit_ObjectKey *k) { return IOP_mem_hash (k->_buffer, k->_length); } gboolean IOP_profile_equal (CORBA_Object obj1, CORBA_Object obj2, gpointer d1, gpointer d2) { IOP_TAG_MULTIPLE_COMPONENTS_info *mci1, *mci2; IOP_ProfileId t1, t2; mci1 = IOP_get_mci(obj1->profile_list); mci2 = IOP_get_mci(obj2->profile_list); t1 = ((IOP_Profile_info *)d1)->profile_type; t2 = ((IOP_Profile_info *)d2)->profile_type; if(t1 != t2) return FALSE; switch (t1) { case IOP_TAG_INTERNET_IOP: { IOP_TAG_INTERNET_IOP_info *iiop1 = d1; IOP_TAG_INTERNET_IOP_info *iiop2 = d2; g_assert (!iiop1->object_key && !iiop2->object_key); if (iiop1->port != iiop2->port) return FALSE; if (strcmp (iiop1->host, iiop2->host)) return FALSE; /* FIXME, also compare ssl ports */ break; } case IOP_TAG_GENERIC_IOP: { IOP_TAG_GENERIC_IOP_info *giop1 = d1; IOP_TAG_GENERIC_IOP_info *giop2 = d2; if (!(mci1 || mci2)) return FALSE; if (strcmp (giop1->service, giop2->service)) return FALSE; if (strcmp (giop1->host, giop2->host)) return FALSE; if (strcmp (giop1->proto, giop2->proto)) return FALSE; break; } case IOP_TAG_ORBIT_SPECIFIC: { IOP_TAG_ORBIT_SPECIFIC_info *os1 = d1; IOP_TAG_ORBIT_SPECIFIC_info *os2 = d2; g_assert (!os1->object_key && !os2->object_key); if (os1->ipv6_port != os2->ipv6_port) return FALSE; if (strcmp (os1->unix_sock_path, os2->unix_sock_path)) return FALSE; break; } case IOP_TAG_MULTIPLE_COMPONENTS: { static int warned = 0; if (!(warned++)) /* FIXME: */ g_warning ("IOP_profile_equal: no multiple " "components support"); return FALSE; break; } default: g_warning ("No IOP_Profile_match for component"); return FALSE; break; } return TRUE; } /* * This performs really badly, and is pretty useless. */ void IOP_profile_hash (gpointer item, gpointer data) { IOP_Profile_info *p = item; guint *h = data; IOP_TAG_INTERNET_IOP_info *iiop; IOP_TAG_GENERIC_IOP_info *giop; IOP_TAG_ORBIT_SPECIFIC_info *osi; IOP_TAG_MULTIPLE_COMPONENTS_info *mci; IOP_UnknownProfile_info *upi; *h ^= p->profile_type; switch (p->profile_type) { case IOP_TAG_ORBIT_SPECIFIC: osi = item; *h ^= g_str_hash(osi->unix_sock_path); break; case IOP_TAG_INTERNET_IOP: iiop = item; *h ^= g_str_hash(iiop->host); *h ^= iiop->port; break; case IOP_TAG_GENERIC_IOP: giop = item; *h ^= g_str_hash(giop->proto); *h ^= g_str_hash(giop->host); *h ^= g_str_hash(giop->service); break; case IOP_TAG_MULTIPLE_COMPONENTS: mci = item; *h ^= g_slist_length(mci->components); break; default: upi = item; *h ^= IOP_mem_hash(upi->data._buffer, upi->data._length); break; } } void IOP_delete_profiles (CORBA_ORB orb, GSList **profiles) { if (!profiles || !*profiles) return; if (orb && *profiles == orb->profiles) *profiles = NULL; else { g_slist_foreach (*profiles, (GFunc)IOP_profile_free, NULL); g_slist_free (*profiles); *profiles = NULL; } } GSList * IOP_start_profiles (CORBA_ORB orb) { GSList *l; GSList *common_profiles = NULL; gboolean need_objkey_component = FALSE; IOP_TAG_MULTIPLE_COMPONENTS_info *mci = NULL; IOP_TAG_ORBIT_SPECIFIC_info *osi = NULL; IOP_TAG_INTERNET_IOP_info *iiop = NULL; for (l = orb->servers ; l != NULL ; l = l->next) { LinkServer *serv = l->data; gboolean ipv4, uds, ssl; ipv4 = !strcmp (serv->proto->name, "IPv4"); uds = !strcmp (serv->proto->name, "UNIX"); ssl = (serv->create_options & LINK_CONNECTION_SSL); if (!osi && uds) { osi = g_new0 (IOP_TAG_ORBIT_SPECIFIC_info, 1); osi->parent.profile_type = IOP_TAG_ORBIT_SPECIFIC; } if (uds && !osi->unix_sock_path) osi->unix_sock_path = g_strdup (serv->local_serv_info); if (ipv4) { if (!iiop) { iiop = g_new0 (IOP_TAG_INTERNET_IOP_info, 1); iiop->host = g_strdup (serv->local_host_info); common_profiles = g_slist_append (common_profiles, iiop); } if (ssl) { IOP_TAG_SSL_SEC_TRANS_info *sslsec; sslsec = g_new0 (IOP_TAG_SSL_SEC_TRANS_info, 1); sslsec->parent.component_type = IOP_TAG_SSL_SEC_TRANS; /* integrity & confidentiality */ sslsec->target_supports = sslsec->target_requires = 2|4; sslsec->port = atoi (serv->local_serv_info); iiop->components = g_slist_append ( iiop->components, sslsec); } else { g_assert (!iiop->port); iiop->port = atoi (serv->local_serv_info); iiop->iiop_version = orb->default_giop_version; } } else { GSList *l2; IOP_TAG_GENERIC_IOP_info *giop; for (giop = NULL, l2 = common_profiles; l2; l2 = l2->next) { IOP_TAG_GENERIC_IOP_info *giopt; giopt = l2->data; if (giopt->parent.profile_type == IOP_TAG_GENERIC_IOP && !strcmp (giopt->proto, serv->proto->name)) { giop = giopt; break; } } if (!giop) { giop = g_new0 (IOP_TAG_GENERIC_IOP_info, 1); giop->parent.profile_type = IOP_TAG_GENERIC_IOP; giop->iiop_version = orb->default_giop_version; giop->proto = g_strdup (serv->proto->name); giop->host = g_strdup (serv->local_host_info); common_profiles = g_slist_append (common_profiles, giop); } if (ssl) { IOP_TAG_GENERIC_SSL_SEC_TRANS_info *sslsec; sslsec = g_new0 (IOP_TAG_GENERIC_SSL_SEC_TRANS_info, 1); sslsec->parent.component_type = IOP_TAG_GENERIC_SSL_SEC_TRANS; sslsec->service = g_strdup (serv->local_serv_info); giop->components = g_slist_append (giop->components, sslsec); } else { g_assert (!giop->service); giop->service = g_strdup (serv->local_serv_info); } } need_objkey_component = TRUE; } if (osi) common_profiles = g_slist_append (common_profiles, osi); /* We always create this to marshal the TAG_CODE_SET component */ mci = g_new0 (IOP_TAG_MULTIPLE_COMPONENTS_info, 1); mci->parent.profile_type = IOP_TAG_MULTIPLE_COMPONENTS; if (need_objkey_component) { IOP_TAG_COMPLETE_OBJECT_KEY_info *coki; coki = g_new0 (IOP_TAG_COMPLETE_OBJECT_KEY_info, 1); coki->parent.component_type = IOP_TAG_COMPLETE_OBJECT_KEY; mci->components = g_slist_append (mci->components, coki); } { IOP_TAG_CODE_SETS_info *csets; csets = g_new0 (IOP_TAG_CODE_SETS_info, 1); csets->parent.component_type = IOP_TAG_CODE_SETS; csets->data.ForCharData.native_code_set = IOP_PROFILES_CODE_SET_UTF8; csets->data.ForWcharData.native_code_set = IOP_PROFILES_CODE_SET_UTF16; mci->components = g_slist_append (mci->components, csets); } return g_slist_append (common_profiles, mci); } void IOP_shutdown_profiles (GSList *profiles) { g_slist_foreach (profiles, (GFunc)IOP_profile_free, NULL); g_slist_free (profiles); } void IOP_generate_profiles (CORBA_Object obj) { CORBA_ORB orb; ORBit_OAObject adaptor_obj; g_assert (obj && (obj->profile_list == NULL) && obj->orb); orb = obj->orb; adaptor_obj = obj->adaptor_obj; /* * no need to have any listening sockets until now. * if the ORB has been shutdown and restarted, * the profiles must be regenerated. */ if (!orb->servers) ORBit_ORB_start_servers (orb); if (!obj->object_key && adaptor_obj) obj->object_key = ORBit_OAObject_object_to_objkey (adaptor_obj); obj->profile_list = orb->profiles; } static void IOP_component_free (IOP_Component_info *c) { switch (c->component_type) { case IOP_TAG_GENERIC_SSL_SEC_TRANS: g_free (((IOP_TAG_GENERIC_SSL_SEC_TRANS_info *)c)->service); break; case IOP_TAG_COMPLETE_OBJECT_KEY: { IOP_TAG_COMPLETE_OBJECT_KEY_info *coki = (IOP_TAG_COMPLETE_OBJECT_KEY_info *)c; if (coki->object_key) ORBit_free_T (coki->object_key); coki->object_key = NULL; break; } case IOP_TAG_SSL_SEC_TRANS: break; case IOP_TAG_CODE_SETS: { IOP_TAG_CODE_SETS_info *csets = (IOP_TAG_CODE_SETS_info*)c; CORBA_sequence_CONV_FRAME_CodeSetId *conv_codesets; conv_codesets = &(csets->data.ForCharData.conversion_code_sets); if (conv_codesets->_buffer) ORBit_free_T (conv_codesets->_buffer); conv_codesets = &(csets->data.ForWcharData.conversion_code_sets); if (conv_codesets->_buffer) ORBit_free_T (conv_codesets->_buffer); break; } default: g_free (((IOP_UnknownProfile_info*)c)->data._buffer); break; } g_free(c); } static void IOP_components_free (GSList **components) { g_slist_foreach (*components, (GFunc)IOP_component_free, NULL); g_slist_free (*components); *components = NULL; } static void IOP_TAG_MULTIPLE_COMPONENTS_free (IOP_Profile_info *p) { IOP_TAG_MULTIPLE_COMPONENTS_info *info = (IOP_TAG_MULTIPLE_COMPONENTS_info *)p; IOP_components_free (&info->components); } static void IOP_TAG_INTERNET_IOP_free (IOP_Profile_info *p) { IOP_TAG_INTERNET_IOP_info *info = (IOP_TAG_INTERNET_IOP_info *)p; IOP_components_free (&info->components); g_free (info->host); if (info->object_key) ORBit_free_T (info->object_key); info->object_key = NULL; } static void IOP_TAG_GENERIC_IOP_free (IOP_Profile_info *p) { IOP_TAG_GENERIC_IOP_info *info = (IOP_TAG_GENERIC_IOP_info *)p; IOP_components_free (&info->components); g_free (info->proto); g_free (info->host); g_free (info->service); } static void IOP_TAG_ORBIT_SPECIFIC_free (IOP_Profile_info *p) { IOP_TAG_ORBIT_SPECIFIC_info *info = (IOP_TAG_ORBIT_SPECIFIC_info *)p; g_free (info->unix_sock_path); if (info->object_key) ORBit_free_T (info->object_key); info->object_key = NULL; } static void IOP_UnknownProfile_free (IOP_Profile_info *p) { IOP_UnknownProfile_info *info = (IOP_UnknownProfile_info *)p; g_free (info->data._buffer); } static void IOP_profile_free (IOP_Profile_info *p) { switch (p->profile_type) { case IOP_TAG_INTERNET_IOP: IOP_TAG_INTERNET_IOP_free (p); break; case IOP_TAG_MULTIPLE_COMPONENTS: IOP_TAG_MULTIPLE_COMPONENTS_free (p); break; case IOP_TAG_GENERIC_IOP: IOP_TAG_GENERIC_IOP_free (p); break; case IOP_TAG_ORBIT_SPECIFIC: IOP_TAG_ORBIT_SPECIFIC_free (p); break; default: IOP_UnknownProfile_free (p); break; } g_free (p); } static void IOP_ObjectKey_marshal (CORBA_Object obj, GIOPSendBuffer *buf, ORBit_ObjectKey *objkey) { giop_send_buffer_append_aligned (buf, &objkey->_length, 4); giop_send_buffer_append (buf, objkey->_buffer, objkey->_length); } static void IOP_TAG_GENERIC_SSL_SEC_TRANS_marshal (CORBA_Object obj, GIOPSendBuffer *buf, IOP_Component_info *ci) { IOP_TAG_GENERIC_SSL_SEC_TRANS_info *ssli; ssli = (IOP_TAG_GENERIC_SSL_SEC_TRANS_info *)ci; giop_send_buffer_append_string (buf, ssli->service); } static void IOP_TAG_SSL_SEC_TRANS_marshal(CORBA_Object obj, GIOPSendBuffer *buf, IOP_Component_info *ci) { IOP_TAG_SSL_SEC_TRANS_info *ssli = (IOP_TAG_SSL_SEC_TRANS_info *) ci; giop_send_buffer_align (buf, 4); giop_send_buffer_append (buf, &ssli->target_supports, 10); } static void IOP_TAG_COMPLETE_OBJECT_KEY_marshal (CORBA_Object obj, GIOPSendBuffer *buf, IOP_Component_info *ci) { IOP_ObjectKey_marshal (obj, buf, obj->object_key); } static void CodeSetComponent_marshal (GIOPSendBuffer *buf, CORBA_unsigned_long native_code_set, CORBA_sequence_CORBA_unsigned_long *opt_conversion_code_sets) { /* native_code_set */ giop_send_buffer_append_aligned (buf, &native_code_set, 4); if (opt_conversion_code_sets && opt_conversion_code_sets->_buffer) { CORBA_unsigned_long length = opt_conversion_code_sets->_length; giop_send_buffer_append_aligned (buf, &length, 4); giop_send_buffer_append (buf, opt_conversion_code_sets->_buffer, length * sizeof(CORBA_unsigned_long)); } else { CORBA_unsigned_long length = 0; giop_send_buffer_append_aligned (buf, &length, 4); } } /* we always marshal the same thing: see 13.7.2.4 */ static void IOP_TAG_CODE_SETS_marshal(CORBA_Object obj, GIOPSendBuffer *buf, IOP_Component_info *ci) { /* To get these magic numbers see the 'OSF Character and Codeset Registry'; ftp.opengroup.org/pub/code_set_registry */ /* CORBA_unsigned_long utf8_key = 0x05010001; */ /* CORBA_unsigned_long utf16_key = 0x00010109; */ IOP_TAG_CODE_SETS_info *csets = (IOP_TAG_CODE_SETS_info*) ci; /* Marshal a CodeSetComponentInfo structure */ CodeSetComponent_marshal (buf, csets->data.ForCharData.native_code_set, &(csets->data.ForCharData.conversion_code_sets)); CodeSetComponent_marshal (buf, csets->data.ForWcharData.native_code_set, &(csets->data.ForWcharData.conversion_code_sets)); } static void IOP_UnknownComponent_marshal (CORBA_Object obj, GIOPSendBuffer *buf, IOP_Component_info *ci) { IOP_UnknownComponent_info *uci = (IOP_UnknownComponent_info *) ci; giop_send_buffer_append (buf, &uci->data._length, 4); giop_send_buffer_append (buf, uci->data._buffer, uci->data._length); } static void IOP_components_marshal (CORBA_Object obj, GIOPSendBuffer *buf, GSList *components) { CORBA_unsigned_long len; GSList *cur; guchar *marker; len = g_slist_length (components); giop_send_buffer_append_aligned (buf, &len, 4); for (cur = components; cur; cur = cur->next) { IOP_Component_info *ci = cur->data; giop_send_buffer_align (buf, 4); giop_send_buffer_append (buf, &ci->component_type, 4); switch (ci->component_type) { case IOP_TAG_GENERIC_SSL_SEC_TRANS: case IOP_TAG_SSL_SEC_TRANS: case IOP_TAG_CODE_SETS: marker = giop_send_buffer_append_aligned (buf, &len, 4); len = buf->msg.header.message_size; giop_send_buffer_append (buf, &buf->msg.header.flags, 1); break; default: marker = NULL; break; } switch (ci->component_type) { case IOP_TAG_GENERIC_SSL_SEC_TRANS: IOP_TAG_GENERIC_SSL_SEC_TRANS_marshal (obj, buf, ci); break; case IOP_TAG_SSL_SEC_TRANS: IOP_TAG_SSL_SEC_TRANS_marshal (obj, buf, ci); break; case IOP_TAG_COMPLETE_OBJECT_KEY: IOP_TAG_COMPLETE_OBJECT_KEY_marshal (obj, buf, ci); break; case IOP_TAG_CODE_SETS: IOP_TAG_CODE_SETS_marshal (obj, buf, ci); break; default: IOP_UnknownComponent_marshal (obj, buf, ci); break; } if (marker) { len = buf->msg.header.message_size - len; memcpy (marker, &len, 4); } } } static void IOP_TAG_INTERNET_IOP_marshal (CORBA_Object obj, GIOPSendBuffer *buf, IOP_Profile_info *profile) { IOP_TAG_INTERNET_IOP_info *iiop; iiop = (IOP_TAG_INTERNET_IOP_info *) profile; giop_send_buffer_append ( buf, giop_version_ids [iiop->iiop_version], 2); giop_send_buffer_append_string (buf, iiop->host); giop_send_buffer_align (buf, 2); giop_send_buffer_append (buf, &iiop->port, 2); IOP_ObjectKey_marshal (obj, buf, obj->object_key); IOP_components_marshal (obj, buf, iiop->components); } static void IOP_TAG_GENERIC_IOP_marshal (CORBA_Object obj, GIOPSendBuffer *buf, IOP_Profile_info *profile) { IOP_TAG_GENERIC_IOP_info *giop = (IOP_TAG_GENERIC_IOP_info *) profile; giop_send_buffer_append (buf, giop_version_ids [giop->iiop_version], 2); giop_send_buffer_append_string (buf, giop->proto); giop_send_buffer_append_string (buf, giop->host); giop_send_buffer_append_string (buf, giop->service); IOP_components_marshal (obj, buf, giop->components); } static void IOP_TAG_MULTIPLE_COMPONENTS_marshal (CORBA_Object obj, GIOPSendBuffer *buf, IOP_Profile_info *profile) { IOP_TAG_MULTIPLE_COMPONENTS_info *mci; mci = (IOP_TAG_MULTIPLE_COMPONENTS_info*) profile; IOP_components_marshal(obj, buf, mci->components); } static void IOP_TAG_ORBIT_SPECIFIC_marshal (CORBA_Object obj, GIOPSendBuffer *buf, IOP_Profile_info *profile) { IOP_TAG_ORBIT_SPECIFIC_info *osi; guchar compat_version[2] = { 1, 2 }; /* for ORBit1 */ osi = (IOP_TAG_ORBIT_SPECIFIC_info*) profile; giop_send_buffer_append (buf, compat_version, 2); giop_send_buffer_append_string (buf, osi->unix_sock_path); giop_send_buffer_align (buf, 2); giop_send_buffer_append (buf, &osi->ipv6_port, 2); IOP_ObjectKey_marshal (obj, buf, obj->object_key); } static void IOP_UnknownProfile_marshal(CORBA_Object obj, GIOPSendBuffer *buf, IOP_Profile_info *pi) { IOP_UnknownProfile_info *upi = (IOP_UnknownProfile_info *) pi; giop_send_buffer_append ( buf, upi->data._buffer, upi->data._length); } void IOP_profile_marshal (CORBA_Object obj, GIOPSendBuffer *buf, gpointer *p) { IOP_Profile_info *profile = (IOP_Profile_info *)p; CORBA_unsigned_long seqlen, msgsz; guchar *marker; giop_send_buffer_append_aligned (buf, &profile->profile_type, 4); marker = giop_send_buffer_append_aligned (buf, NULL, 4); msgsz = buf->msg.header.message_size; switch (profile->profile_type) { case IOP_TAG_INTERNET_IOP: giop_send_buffer_append (buf, &buf->msg.header.flags, 1); IOP_TAG_INTERNET_IOP_marshal (obj, buf, profile); break; case IOP_TAG_ORBIT_SPECIFIC: giop_send_buffer_append (buf, &buf->msg.header.flags, 1); IOP_TAG_ORBIT_SPECIFIC_marshal (obj, buf, profile); break; case IOP_TAG_GENERIC_IOP: giop_send_buffer_append (buf, &buf->msg.header.flags, 1); IOP_TAG_GENERIC_IOP_marshal (obj, buf, profile); break; case IOP_TAG_MULTIPLE_COMPONENTS: giop_send_buffer_append (buf, &buf->msg.header.flags, 1); IOP_TAG_MULTIPLE_COMPONENTS_marshal (obj, buf, profile); break; default: IOP_UnknownProfile_marshal (obj, buf, profile); break; } seqlen = buf->msg.header.message_size - msgsz; memcpy (marker, &seqlen, 4); } /* * demarshalling routines. */ static ORBit_ObjectKey* IOP_ObjectKey_demarshal (GIOPRecvBuffer *buf) { ORBit_ObjectKey *objkey; CORBA_unsigned_long len; buf->cur = ALIGN_ADDRESS (buf->cur, 4); if ((buf->cur + 4) > buf->end) return NULL; len = *(CORBA_unsigned_long *)buf->cur; if (giop_msg_conversion_needed (buf)) len = GUINT32_SWAP_LE_BE (len); buf->cur += 4; if ((buf->cur + len) > buf->end || (buf->cur + len) < buf->cur) return NULL; objkey = CORBA_sequence_CORBA_octet__alloc (); objkey->_length = objkey->_maximum = len; objkey->_buffer = CORBA_sequence_CORBA_octet_allocbuf (objkey->_length); objkey->_release = CORBA_TRUE; memcpy (objkey->_buffer, buf->cur, len); buf->cur += len; return objkey; } ORBit_ObjectKey * IOP_ObjectKey_copy (ORBit_ObjectKey *src) { ORBit_ObjectKey *objkey; if (!src) return NULL; objkey = CORBA_sequence_CORBA_octet__alloc (); objkey->_length = objkey->_maximum = src->_length; objkey->_buffer = CORBA_sequence_CORBA_octet_allocbuf (src->_length); objkey->_release = CORBA_TRUE; memcpy (objkey->_buffer, src->_buffer, src->_length); return objkey; } static IOP_Component_info * IOP_TAG_SSL_SEC_TRANS_demarshal(IOP_ComponentId id, GIOPRecvBuffer *buf) { IOP_TAG_SSL_SEC_TRANS_info *retval = NULL; GIOPRecvBuffer *sub; sub = giop_recv_buffer_use_encaps_buf(buf); if(!sub) return NULL; sub->cur = ALIGN_ADDRESS(sub->cur, 4); if((sub->cur + 10) > sub->end) { giop_recv_buffer_unuse(sub); return NULL; } retval = g_new(IOP_TAG_SSL_SEC_TRANS_info, 1); retval->parent.component_type = id; retval->target_supports = *(CORBA_unsigned_long *)sub->cur; if(giop_msg_conversion_needed(buf)) retval->target_supports = GUINT32_SWAP_LE_BE(retval->target_supports); sub->cur += 4; retval->target_requires = *(CORBA_unsigned_long *)sub->cur; if(giop_msg_conversion_needed(buf)) retval->target_requires = GUINT32_SWAP_LE_BE(retval->target_requires); sub->cur += 4; retval->port = *(CORBA_unsigned_short *)sub->cur; if(giop_msg_conversion_needed(buf)) retval->port = GUINT16_SWAP_LE_BE(retval->port); sub->cur += 2; giop_recv_buffer_unuse(sub); return (IOP_Component_info *)retval; } static IOP_Component_info * IOP_TAG_GENERIC_SSL_SEC_TRANS_demarshal(IOP_ComponentId id, GIOPRecvBuffer *buf) { IOP_TAG_GENERIC_SSL_SEC_TRANS_info *retval = NULL; GIOPRecvBuffer *sub; CORBA_unsigned_long len; sub = giop_recv_buffer_use_encaps_buf(buf); if(!sub) return NULL; sub->cur = ALIGN_ADDRESS(sub->cur, 4); if((sub->cur + 4) > sub->end) goto errout; len = *(CORBA_unsigned_long *)sub->cur; if(giop_msg_conversion_needed(buf)) len = GUINT32_SWAP_LE_BE(len); sub->cur += 4; if((sub->cur + len) > sub->end || (sub->cur + len) < sub->cur) goto errout; retval = g_new(IOP_TAG_GENERIC_SSL_SEC_TRANS_info, 1); retval->parent.component_type = id; retval->service = g_memdup(sub->cur, len); giop_recv_buffer_unuse(sub); return (IOP_Component_info *)retval; errout: g_free(retval); giop_recv_buffer_unuse(sub); return NULL; } static IOP_Component_info * IOP_TAG_COMPLETE_OBJECT_KEY_demarshal (IOP_ComponentId id, GIOPRecvBuffer *buf) { IOP_TAG_COMPLETE_OBJECT_KEY_info *retval; ORBit_ObjectKey *objkey; objkey = IOP_ObjectKey_demarshal (buf); if (!objkey) return NULL; retval = g_new (IOP_TAG_COMPLETE_OBJECT_KEY_info, 1); retval->parent.component_type = id; retval->object_key = objkey; return (IOP_Component_info *)retval; } static gboolean CodeSetComponent_demarshal (GIOPRecvBuffer *buf, CONV_FRAME_CodeSetComponent *component) { CORBA_unsigned_long sequence_length; buf->cur = ALIGN_ADDRESS (buf->cur, 4); if (buf->cur + 8 > buf->end) return FALSE; component->native_code_set = *(CORBA_unsigned_long *)buf->cur; if (giop_msg_conversion_needed (buf)) component->native_code_set = GUINT32_SWAP_LE_BE (component->native_code_set); buf->cur += 4; sequence_length = *(CORBA_unsigned_long *)buf->cur; if (giop_msg_conversion_needed (buf)) sequence_length = GUINT32_SWAP_LE_BE (sequence_length); buf->cur += 4; if (buf->cur + sequence_length * 4 > buf->end) return FALSE; if (sequence_length > 0) { int i; dprintf (OBJECTS, "Ignoring incoming code_sets component"); component->conversion_code_sets._maximum = sequence_length; component->conversion_code_sets._length = sequence_length; component->conversion_code_sets._release = TRUE; component->conversion_code_sets._buffer = CORBA_sequence_CORBA_unsigned_long_allocbuf (sequence_length); for (i=0; iconversion_code_sets._buffer [i] = *(CORBA_unsigned_long *)buf->cur; if (giop_msg_conversion_needed (buf)) component->conversion_code_sets._buffer [i] = GUINT32_SWAP_LE_BE (component->conversion_code_sets._buffer [i]); buf->cur += 4; } } return TRUE; } static IOP_Component_info * IOP_TAG_CODE_SETS_demarshal (IOP_ComponentId id, GIOPRecvBuffer *buf) { IOP_TAG_CODE_SETS_info *retval; GIOPRecvBuffer *encaps; if (!(encaps = giop_recv_buffer_use_encaps_buf (buf))) return NULL; retval = g_new0 (IOP_TAG_CODE_SETS_info, 1); retval->parent.component_type = id; /* We don't care about the data much */ if (!CodeSetComponent_demarshal (encaps, &(retval->data.ForCharData)) || !CodeSetComponent_demarshal (encaps, &(retval->data.ForWcharData))) { giop_recv_buffer_unuse (encaps); if (retval->data.ForCharData.conversion_code_sets._buffer) ORBit_free_T (retval->data.ForCharData.conversion_code_sets._buffer); if (retval->data.ForWcharData.conversion_code_sets._buffer) ORBit_free_T (retval->data.ForWcharData.conversion_code_sets._buffer); g_free (retval); return NULL; } giop_recv_buffer_unuse (encaps); return (IOP_Component_info *) retval; } static IOP_Component_info * IOP_UnknownComponent_demarshal(IOP_ComponentId p, GIOPRecvBuffer *buf) { IOP_UnknownComponent_info *retval; CORBA_unsigned_long len; buf->cur = ALIGN_ADDRESS(buf->cur, 4); if((buf->cur + 4) > buf->end) return NULL; len = *(CORBA_unsigned_long *)buf->cur; if(giop_msg_conversion_needed(buf)) len = GUINT32_SWAP_LE_BE(len); buf->cur += 4; if((buf->cur + len) > buf->end || (buf->cur + len) < buf->cur) return NULL; retval = g_new(IOP_UnknownComponent_info, 1); retval->parent.component_type = p; retval->data._length = len; retval->data._buffer = g_memdup(buf->cur, len); retval->data._release = CORBA_FALSE; /* We free this manually */ buf->cur += len; return (IOP_Component_info *)retval; } static gboolean IOP_components_demarshal (GIOPRecvBuffer *buf, GSList **components) { GSList *retval; IOP_ComponentId cid; CORBA_unsigned_long len, i; *components = retval = NULL; buf->cur = ALIGN_ADDRESS (buf->cur, 4); if ((buf->cur + 4) > buf->end) return TRUE; len = *(CORBA_unsigned_long*) buf->cur; if (giop_msg_conversion_needed (buf)) len = GUINT32_SWAP_LE_BE (len); buf->cur += 4; for (i = 0; i < len; i++) { IOP_Component_info *c; buf->cur = ALIGN_ADDRESS (buf->cur, 4); if ((buf->cur + 4) > buf->end) goto errout; cid = *(CORBA_unsigned_long *) buf->cur; if (giop_msg_conversion_needed (buf)) cid = GUINT32_SWAP_LE_BE (cid); buf->cur += 4; switch (cid) { case IOP_TAG_COMPLETE_OBJECT_KEY: c = IOP_TAG_COMPLETE_OBJECT_KEY_demarshal (cid, buf); break; case IOP_TAG_GENERIC_SSL_SEC_TRANS: c = IOP_TAG_GENERIC_SSL_SEC_TRANS_demarshal (cid, buf); break; case IOP_TAG_SSL_SEC_TRANS: c = IOP_TAG_SSL_SEC_TRANS_demarshal (cid, buf); break; case IOP_TAG_CODE_SETS: c = IOP_TAG_CODE_SETS_demarshal (cid, buf); break; default: c = IOP_UnknownComponent_demarshal (cid, buf); break; } if (c) retval = g_slist_append (retval, c); else goto errout; } *components = retval; return FALSE; errout: IOP_components_free (&retval); return TRUE; } static IOP_Profile_info * IOP_UnknownProfile_demarshal(IOP_ProfileId p, GIOPRecvBuffer *buf, CORBA_ORB orb) { IOP_UnknownProfile_info *retval; CORBA_unsigned_long len; buf->cur = ALIGN_ADDRESS(buf->cur, 4); if((buf->cur + 4) > buf->end) goto errout; len = *(CORBA_unsigned_long*)buf->cur; if(giop_msg_conversion_needed(buf)) len = GUINT32_SWAP_LE_BE(len); buf->cur += 4; if((buf->cur + len) > buf->end || (buf->cur + len) < buf->cur) goto errout; retval = g_new(IOP_UnknownProfile_info, 1); retval->parent.profile_type = p; retval->data._length = len; retval->data._buffer = g_memdup(buf->cur, len); retval->data._release = CORBA_FALSE; /* We free this manually */ buf->cur += len; return (IOP_Profile_info *)retval; errout: return NULL; } static IOP_Profile_info * IOP_TAG_ORBIT_SPECIFIC_demarshal (IOP_ProfileId p, GIOPRecvBuffer *pbuf, CORBA_ORB orb) { IOP_TAG_ORBIT_SPECIFIC_info *retval = NULL; CORBA_unsigned_long len; GIOPRecvBuffer *buf; gboolean msg_conversion; buf = giop_recv_buffer_use_encaps_buf (pbuf); if (!buf) goto errout; /* Ignore the version info */ if ((buf->cur + 2) > buf->end) return NULL; buf->cur += 2; msg_conversion = giop_msg_conversion_needed (buf); buf->cur = ALIGN_ADDRESS (buf->cur, 4); if ((buf->cur + 4) > buf->end) return NULL; len = *(CORBA_unsigned_long *) buf->cur; if (msg_conversion) len = GUINT32_SWAP_LE_BE (len); buf->cur += 4; if ((buf->cur + len) > buf->end || (buf->cur + len) < buf->cur) goto errout; retval = g_new (IOP_TAG_ORBIT_SPECIFIC_info, 1); retval->parent.profile_type = p; retval->unix_sock_path = g_malloc (len); memcpy (retval->unix_sock_path, buf->cur, len); buf->cur += len; buf->cur = ALIGN_ADDRESS (buf->cur, 2); if ((buf->cur + 2) > buf->end) goto errout; retval->ipv6_port = *(CORBA_unsigned_short *) buf->cur; if (msg_conversion) retval->ipv6_port = GUINT16_SWAP_LE_BE (retval->ipv6_port); buf->cur += 2; retval->object_key = IOP_ObjectKey_demarshal (buf); if (!retval->object_key) goto errout; giop_recv_buffer_unuse (buf); return (IOP_Profile_info *) retval; errout: if (retval) { ORBit_free (retval->object_key); g_free (retval->unix_sock_path); g_free (retval); } giop_recv_buffer_unuse (buf); return NULL; } static IOP_Profile_info * IOP_TAG_MULTIPLE_COMPONENTS_demarshal (IOP_ProfileId p, GIOPRecvBuffer *pbuf, CORBA_ORB orb) { IOP_TAG_MULTIPLE_COMPONENTS_info *retval = NULL; GIOPRecvBuffer *buf; GSList *components; buf = giop_recv_buffer_use_encaps_buf (pbuf); if (buf && !IOP_components_demarshal (buf, &components)) { retval = g_new (IOP_TAG_MULTIPLE_COMPONENTS_info, 1); retval->parent.profile_type = p; retval->components = components; } giop_recv_buffer_unuse (buf); return (IOP_Profile_info*) retval; } static IOP_Profile_info * IOP_TAG_GENERIC_IOP_demarshal(IOP_ProfileId p, GIOPRecvBuffer *pbuf, CORBA_ORB orb) { IOP_TAG_GENERIC_IOP_info *retval; CORBA_octet v1, v2; GIOPVersion version; CORBA_unsigned_long len; GIOPRecvBuffer *buf; buf = giop_recv_buffer_use_encaps_buf(pbuf); if(!buf) goto eo2; if((buf->cur + 2) > buf->end) goto eo2; v1 = *(buf->cur++); v2 = *(buf->cur++); switch(v1) { case 1: switch(v2) { case 0: version = GIOP_1_0; break; case 1: version = GIOP_1_1; break; case 2: version = GIOP_1_2; break; default: goto eo2; break; } break; default: goto eo2; break; } buf->cur = ALIGN_ADDRESS(buf->cur, 4); if((buf->cur + 4) > buf->end) goto eo2; len = *(CORBA_unsigned_long *)buf->cur; if(giop_msg_conversion_needed(buf)) len = GUINT32_SWAP_LE_BE(len); buf->cur += 4; retval = g_new0(IOP_TAG_GENERIC_IOP_info, 1); retval->parent.profile_type = IOP_TAG_GENERIC_IOP; retval->iiop_version = version; if((buf->cur + len) > buf->end || (buf->cur + len) < buf->cur) goto errout; retval->proto = g_memdup(buf->cur, len); buf->cur += len; buf->cur = ALIGN_ADDRESS(buf->cur, 4); if((buf->cur + 4) > buf->end) goto errout; len = *(CORBA_unsigned_long *)buf->cur; if(giop_msg_conversion_needed(buf)) len = GUINT32_SWAP_LE_BE(len); buf->cur += 4; if((buf->cur + len) > buf->end || (buf->cur + len) < buf->cur) goto errout; retval->host = g_memdup(buf->cur, len); buf->cur += len; buf->cur = ALIGN_ADDRESS(buf->cur, 4); if((buf->cur + 4) > buf->end) goto errout; len = *(CORBA_unsigned_long *)buf->cur; if(giop_msg_conversion_needed(buf)) len = GUINT32_SWAP_LE_BE(len); buf->cur += 4; if((buf->cur + len) > buf->end || (buf->cur + len) < buf->cur) goto errout; retval->service = g_memdup(buf->cur, len); buf->cur += len; if(IOP_components_demarshal(buf, &retval->components)) goto errout; giop_recv_buffer_unuse(buf); return (IOP_Profile_info *)retval; errout: if(retval) { IOP_components_free (&retval->components); g_free(retval->proto); g_free(retval->host); g_free(retval->service); } g_free(retval); eo2: giop_recv_buffer_unuse(buf); return NULL; } static IOP_Profile_info * IOP_TAG_INTERNET_IOP_demarshal(IOP_ProfileId p, GIOPRecvBuffer *pbuf, CORBA_ORB orb) { IOP_TAG_INTERNET_IOP_info *retval; CORBA_octet v1, v2; GIOPVersion version; CORBA_unsigned_long len; GIOPRecvBuffer *buf; buf = giop_recv_buffer_use_encaps_buf(pbuf); if(!buf) goto eo2; if((buf->cur + 2) > buf->end) goto eo2; v1 = *(buf->cur++); v2 = *(buf->cur++); switch(v1) { case 1: switch(v2) { case 0: version = GIOP_1_0; break; case 1: version = GIOP_1_1; break; case 2: version = GIOP_1_2; break; default: goto eo2; break; } break; default: goto eo2; break; } buf->cur = ALIGN_ADDRESS(buf->cur, 4); if((buf->cur + 4) > buf->end) goto eo2; len = *(CORBA_unsigned_long *)buf->cur; if(giop_msg_conversion_needed(buf)) len = GUINT32_SWAP_LE_BE(len); buf->cur += 4; retval = g_new0(IOP_TAG_INTERNET_IOP_info, 1); retval->parent.profile_type = IOP_TAG_INTERNET_IOP; retval->iiop_version = version; if((buf->cur + len) > buf->end || (buf->cur + len) < buf->cur) goto errout; retval->host = g_memdup(buf->cur, len); buf->cur += len; buf->cur = ALIGN_ADDRESS(buf->cur, 2); if((buf->cur + 2) > buf->end) goto errout; if(giop_msg_conversion_needed(buf)) retval->port = GUINT16_SWAP_LE_BE(*(CORBA_unsigned_short *)buf->cur); else retval->port = *(CORBA_unsigned_short *)buf->cur; buf->cur += 2; retval->object_key = IOP_ObjectKey_demarshal(buf); if(!retval->object_key) goto errout; if(version > GIOP_1_0) { if(IOP_components_demarshal(buf, &retval->components)) goto errout; } else retval->components = NULL; giop_recv_buffer_unuse(buf); return (IOP_Profile_info *)retval; errout: if(retval) { IOP_components_free (&retval->components); g_free (retval->host); ORBit_free (retval->object_key); g_free (retval); } eo2: giop_recv_buffer_unuse(buf); return NULL; } static IOP_Profile_info * IOP_profile_demarshal (GIOPRecvBuffer *buf, CORBA_ORB orb) { IOP_ProfileId p; IOP_Profile_info *retval; buf->cur = ALIGN_ADDRESS (buf->cur, 4); if ((buf->cur + 4) > buf->end) return NULL; p = *(CORBA_unsigned_long *) buf->cur; if (giop_msg_conversion_needed (buf)) p = GUINT32_SWAP_LE_BE (p); buf->cur += 4; switch (p) { case IOP_TAG_INTERNET_IOP: retval = IOP_TAG_INTERNET_IOP_demarshal (p, buf, orb); break; case IOP_TAG_MULTIPLE_COMPONENTS: retval = IOP_TAG_MULTIPLE_COMPONENTS_demarshal (p, buf, orb); break; case IOP_TAG_GENERIC_IOP: retval = IOP_TAG_GENERIC_IOP_demarshal (p, buf, orb); break; case IOP_TAG_ORBIT_SPECIFIC: retval = IOP_TAG_ORBIT_SPECIFIC_demarshal (p, buf, orb); break; default: retval = IOP_UnknownProfile_demarshal (p, buf, orb); break; } return retval; } gboolean ORBit_demarshal_IOR (CORBA_ORB orb, GIOPRecvBuffer *buf, gchar **ret_type_id, GSList **ret_profiles) { CORBA_unsigned_long num_profiles; CORBA_unsigned_long len; GSList *profiles = NULL; gchar *type_id; int i; buf->cur = ALIGN_ADDRESS (buf->cur, 4); if ((buf->cur + 4) > buf->end) return TRUE; len = *(CORBA_unsigned_long *)buf->cur; if (giop_msg_conversion_needed (buf)) len = GUINT32_SWAP_LE_BE (len); buf->cur += 4; if ((buf->cur + len) > buf->end) return TRUE; type_id = buf->cur; buf->cur = ALIGN_ADDRESS (buf->cur + len, 4); if ((buf->cur + 4) > buf->end) return TRUE; num_profiles = *(CORBA_unsigned_long *)buf->cur; if (giop_msg_conversion_needed (buf)) num_profiles = GUINT32_SWAP_LE_BE (num_profiles); buf->cur += 4; if (!type_id [0] && num_profiles == 0) return FALSE; for (i = 0; i < num_profiles; i++) { IOP_Profile_info *profile; profile = IOP_profile_demarshal (buf, orb); if (profile) profiles = g_slist_append (profiles, profile); else { IOP_delete_profiles (orb, &profiles); return TRUE; } } if (ret_profiles) *ret_profiles = profiles; if (ret_type_id) *ret_type_id = type_id; return FALSE; } static void IOP_TAG_COMPLETE_OBJECT_KEY_copy (IOP_TAG_COMPLETE_OBJECT_KEY_info *dest, const IOP_TAG_COMPLETE_OBJECT_KEY_info *src) { dest->object_key = IOP_ObjectKey_copy (src->object_key); } static void IOP_TAG_GENERIC_SSL_SEC_TRANS_copy (IOP_TAG_GENERIC_SSL_SEC_TRANS_info *dest, const IOP_TAG_GENERIC_SSL_SEC_TRANS_info *src) { dest->service = g_strdup (src->service); } static void IOP_TAG_SSL_SEC_TRANS_copy (IOP_TAG_SSL_SEC_TRANS_info *dest, const IOP_TAG_SSL_SEC_TRANS_info *src) { dest->port = src->port; dest->target_supports = src->target_supports; dest->target_requires = src->target_requires; } static void IOP_TAG_CODE_SETS_copy (IOP_TAG_CODE_SETS_info *dest, const IOP_TAG_CODE_SETS_info *src) { /* no-op */ } static void IOP_UnknownComponent_copy (IOP_UnknownComponent_info *dest, const IOP_UnknownComponent_info *src) { gconstpointer src_data = &src->data; gpointer dest_data = &dest->data; ORBit_copy_value_core ( &src_data, &dest_data, TC_CORBA_sequence_CORBA_octet); } static IOP_Component_info * IOP_component_copy (IOP_Component_info *src) { #define CPY(src,type) \ G_STMT_START { \ type##_info *ret = g_new0 (type##_info, 1); \ ret->parent.component_type = src->component_type; \ type##_copy (ret, (type##_info *) src); \ \ return (IOP_Component_info *) ret; \ } G_STMT_END switch (src->component_type) { case IOP_TAG_COMPLETE_OBJECT_KEY: CPY (src, IOP_TAG_COMPLETE_OBJECT_KEY); break; case IOP_TAG_GENERIC_SSL_SEC_TRANS: CPY (src, IOP_TAG_GENERIC_SSL_SEC_TRANS); break; case IOP_TAG_SSL_SEC_TRANS: CPY (src, IOP_TAG_SSL_SEC_TRANS); break; case IOP_TAG_CODE_SETS: CPY (src, IOP_TAG_CODE_SETS); break; default: CPY (src, IOP_UnknownComponent); break; } #undef CPY } static GSList * IOP_components_copy (GSList *components) { GSList *ret = NULL, *l; for (l = components; l; l = l->next) ret = g_slist_prepend (ret, IOP_component_copy (l->data)); return ret; } static void IOP_TAG_INTERNET_IOP_copy (IOP_TAG_INTERNET_IOP_info *dest, const IOP_TAG_INTERNET_IOP_info *src) { dest->iiop_version = src->iiop_version; dest->host = g_strdup (src->host); dest->port = src->port; dest->object_key = IOP_ObjectKey_copy (src->object_key); dest->components = IOP_components_copy (src->components); } static void IOP_TAG_GENERIC_IOP_copy (IOP_TAG_GENERIC_IOP_info *dest, const IOP_TAG_GENERIC_IOP_info *src) { dest->iiop_version = src->iiop_version; dest->proto = g_strdup (src->proto); dest->host = g_strdup (src->host); dest->service = g_strdup (src->service); dest->components = IOP_components_copy (src->components); } static void IOP_TAG_ORBIT_SPECIFIC_copy (IOP_TAG_ORBIT_SPECIFIC_info *dest, const IOP_TAG_ORBIT_SPECIFIC_info *src) { dest->unix_sock_path = g_strdup (src->unix_sock_path); dest->ipv6_port = src->ipv6_port; dest->object_key = IOP_ObjectKey_copy (src->object_key); } static void IOP_TAG_MULTIPLE_COMPONENTS_copy (IOP_TAG_MULTIPLE_COMPONENTS_info *dest, const IOP_TAG_MULTIPLE_COMPONENTS_info *src) { dest->components = IOP_components_copy (src->components); } static void IOP_UnknownProfile_copy (IOP_UnknownProfile_info *dest, const IOP_UnknownProfile_info *src) { gconstpointer src_data = &src->data; gpointer dest_data = &dest->data; ORBit_copy_value_core ( &src_data, &dest_data, TC_CORBA_sequence_CORBA_octet); } static IOP_Profile_info * IOP_profile_copy (IOP_Profile_info *src) { #define CPY(src,type) \ G_STMT_START { \ type##_info *ret = g_new0 (type##_info, 1); \ ret->parent.profile_type = src->profile_type; \ type##_copy (ret, (type##_info *) src); \ \ return (IOP_Profile_info *) ret; \ } G_STMT_END switch (src->profile_type) { case IOP_TAG_INTERNET_IOP: CPY (src, IOP_TAG_INTERNET_IOP); break; case IOP_TAG_MULTIPLE_COMPONENTS: CPY (src, IOP_TAG_MULTIPLE_COMPONENTS); break; case IOP_TAG_GENERIC_IOP: CPY (src, IOP_TAG_GENERIC_IOP); break; case IOP_TAG_ORBIT_SPECIFIC: CPY (src, IOP_TAG_ORBIT_SPECIFIC); break; default: CPY (src, IOP_UnknownProfile); break; } #undef CPY } GSList * IOP_profiles_copy (GSList *profile_list) { GSList *ret = NULL; GSList *l; for (l = profile_list; l; l = l->next) ret = g_slist_prepend (ret, IOP_profile_copy (l->data)); return ret; } ORBit2-2.14.19/src/orb/orb-core/orbhttp.h0000644000175000001440000000016611334247617014575 00000000000000#ifndef __ORB_HTTP_H__ #define __ORB_HTTP_H__ char *orb_http_resolve (const char *url); #endif /* __ORB_HTTP_H__ */ ORBit2-2.14.19/src/orb/orb-core/corba-context.c0000644000175000001440000002275511334247617015666 00000000000000#include "config.h" #include #include #include "orb-core-export.h" #include "../util/orbit-purify.h" static gboolean free_entry (gpointer key, gpointer value, gpointer user_data) { g_free (key); g_free (value); return TRUE; } static void ORBit_Context_free_fn(ORBit_RootObject ctx); static void free_child (gpointer value, gpointer user_data) { CORBA_Context ctx = value; ctx->parent.refs = 0; ctx->parent_ctx = CORBA_OBJECT_NIL; ORBit_Context_free_fn (ORBIT_ROOT_OBJECT (ctx)); } static void ORBit_Context_free_fn (ORBit_RootObject obj_in) { CORBA_Context ctx = (CORBA_Context) obj_in; if (ctx->children) { g_slist_foreach (ctx->children, free_child, NULL); g_slist_free (ctx->children); } if (ctx->mappings) { g_hash_table_foreach_remove (ctx->mappings, free_entry, NULL); g_hash_table_destroy (ctx->mappings); } if (ctx->parent_ctx != CORBA_OBJECT_NIL) ctx->parent_ctx->children = g_slist_remove ( ctx->parent_ctx->children, ctx); g_free (ctx->the_name); p_free (ctx, struct CORBA_Context_type); } static const ORBit_RootObject_Interface CORBA_Context_epv = { ORBIT_ROT_CONTEXT, ORBit_Context_free_fn }; static CORBA_Context CORBA_Context_new (CORBA_Context parent, const char *name, CORBA_Environment *ev) { CORBA_Context retval; retval = g_new0 (struct CORBA_Context_type, 1); ORBit_RootObject_init (&retval->parent, &CORBA_Context_epv); if (name) retval->the_name = g_strdup (name); retval->parent_ctx = parent; if (parent) parent->children = g_slist_prepend (parent->children, retval); return ORBit_RootObject_duplicate (retval); } void CORBA_ORB_get_default_context (CORBA_ORB orb, CORBA_Context *ctx, CORBA_Environment *ev) { g_return_if_fail (ev != NULL); if (!orb->default_ctx) orb->default_ctx = CORBA_Context_new ( CORBA_OBJECT_NIL, NULL, ev); *ctx = ORBit_RootObject_duplicate (orb->default_ctx); } void CORBA_Context_set_one_value (CORBA_Context ctx, const CORBA_char *prop_name, const CORBA_char *value, CORBA_Environment *ev) { gpointer old_nom, old_value; g_return_if_fail (ev != NULL); if (!ctx->mappings) ctx->mappings = g_hash_table_new (g_str_hash, g_str_equal); if (g_hash_table_lookup_extended ( ctx->mappings, prop_name, &old_nom, &old_value)) { g_hash_table_remove (ctx->mappings, prop_name); g_free (old_nom); g_free (old_value); } g_hash_table_insert (ctx->mappings, g_strdup (prop_name), g_strdup (value)); } void CORBA_Context_set_values(CORBA_Context ctx, const CORBA_NVList values, CORBA_Environment * ev) { int i; for(i = 0; i < values->list->len; i++) { CORBA_NamedValue *nvp; nvp = ((CORBA_NamedValue *)values->list->data) + i; g_assert(nvp->argument._type == TC_CORBA_string); CORBA_Context_set_one_value(ctx, nvp->name, nvp->argument._value, ev); } } typedef struct { CORBA_Context ctx; const CORBA_char *prop_name; CORBA_NVList values; CORBA_Environment *ev; int len; } CTXSearchInfo; static gboolean list_has_key (CORBA_NVList list, const char *key) { int i; for (i = 0; i < list->list->len; i++) { CORBA_NamedValue *nvp; nvp = ((CORBA_NamedValue *)list->list->data) + i; if (!strcmp(nvp->name, key)) return TRUE; } return FALSE; } static void search_props (gpointer key, gpointer value, CTXSearchInfo *csi) { if (strncmp (key, csi->prop_name, csi->len)) return; if (list_has_key (csi->values, key)) return; CORBA_NVList_add_item ( csi->values, key, TC_CORBA_string, (CORBA_OpaqueValue) &value, strlen (value) + 1, CORBA_IN_COPY_VALUE, NULL); } static void ctx_get_values (CORBA_Context ctx, CORBA_Flags op_flags, const CORBA_char *prop_name, CORBA_NVList *values, gint is_wc, CORBA_Environment *ev) { gboolean go_up = FALSE; if (is_wc >= 0) { CTXSearchInfo csi; csi.ctx = ctx; csi.prop_name = prop_name; csi.values = *values; csi.ev = ev; csi.len = is_wc; if (ctx->mappings) g_hash_table_foreach ( ctx->mappings, (GHFunc) search_props, &csi); go_up = TRUE; } else { char *val = NULL; if (ctx->mappings) val = g_hash_table_lookup (ctx->mappings, prop_name); if (val) CORBA_NVList_add_item ( *values, prop_name, TC_CORBA_string, (CORBA_OpaqueValue) &val, strlen (val) + 1, CORBA_IN_COPY_VALUE, ev); else go_up = TRUE; } if (go_up && ctx->parent_ctx && !(op_flags & CORBA_CTX_RESTRICT_SCOPE)) ctx_get_values (ctx->parent_ctx, op_flags, prop_name, values, is_wc, ev); } void CORBA_Context_get_values (CORBA_Context ctx, const CORBA_char *start_scope, const CORBA_Flags op_flags, const CORBA_char *prop_name, CORBA_NVList *values, CORBA_Environment *ev) { if (start_scope && *start_scope) { while (ctx && (!ctx->the_name || strcmp (ctx->the_name, start_scope))) ctx = ctx->parent_ctx; if (!ctx) { CORBA_exception_set_system ( ev, ex_CORBA_INV_IDENT, CORBA_COMPLETED_NO); return; } } CORBA_ORB_create_list (CORBA_OBJECT_NIL, 0, values, ev); ctx_get_values (ctx, op_flags, prop_name, values, (prop_name [strlen (prop_name) - 1] == '*'), ev); if ((*values)->list->len == 0) { CORBA_NVList_free (*values, ev); *values = NULL; CORBA_exception_set_system ( ev, ex_CORBA_UNKNOWN, CORBA_COMPLETED_NO); } } static void delete_props (gpointer key, gpointer value, CTXSearchInfo *csi) { if (strncmp (key, csi->prop_name, csi->len)) return; g_hash_table_remove (csi->ctx->mappings, key); g_free (key); g_free (value); } void CORBA_Context_delete_values (CORBA_Context ctx, const CORBA_char *prop_name, CORBA_Environment *ev) { char *ctmp; int wc_pos; if (!ctx->mappings) return; ctmp = strchr (prop_name, '*'); if (ctmp) wc_pos = ctmp - prop_name; else wc_pos = -1; if (wc_pos >= 0) { CTXSearchInfo csi; memset (&csi, 0, sizeof (csi)); csi.ctx = ctx; csi.prop_name = prop_name; csi.ev = ev; csi.len = wc_pos; g_hash_table_foreach (ctx->mappings, (GHFunc) delete_props, &csi); } else { gpointer old_nom, old_value; if (g_hash_table_lookup_extended ( ctx->mappings, prop_name, &old_nom, &old_value)) { g_free (old_nom); g_free (old_value); } } } void CORBA_Context_create_child (CORBA_Context ctx, const CORBA_char *ctx_name, CORBA_Context *child_ctx, CORBA_Environment *ev) { *child_ctx = CORBA_Context_new (ctx, ctx_name, ev); } void CORBA_Context_delete (CORBA_Context ctx, const CORBA_Flags del_flags, CORBA_Environment *ev) { if ((del_flags & CORBA_CTX_DELETE_DESCENDENTS) || !ctx->children) free_child (ctx, NULL); } void ORBit_Context_marshal (CORBA_Context ctx, const ORBit_ContextMarshalItem *mlist, CORBA_unsigned_long nitems, GIOPSendBuffer *buf) { CORBA_unsigned_long real_nitems, ltmp; guchar *marker; int i; marker = giop_send_buffer_append_aligned (buf, &nitems, 4); if (!ctx->mappings) { real_nitems = 0; memcpy (marker, &real_nitems, 4); return; } for (real_nitems = i = 0; i < nitems; i++) { char *value; value = g_hash_table_lookup (ctx->mappings, mlist[i].str); if (!value) continue; /* Key */ giop_send_buffer_append_aligned (buf, &mlist[i].len, sizeof(mlist[i].len)); giop_send_buffer_append (buf, mlist[i].str, mlist[i].len); real_nitems++; /* Value */ ltmp = strlen (value) + 1; giop_send_buffer_append_aligned (buf, <mp, 4); giop_send_buffer_append (buf, value, ltmp); real_nitems++; } memcpy (marker, &real_nitems, 4); } #define ALIGNFOR(x) recv_buffer->cur = ALIGN_ADDRESS(recv_buffer->cur, sizeof(x)) gboolean ORBit_Context_demarshal (CORBA_Context parent, CORBA_Context initme, GIOPRecvBuffer *buf) { CORBA_unsigned_long nstrings, keylen, vallen, i; char *key, *value; initme->parent.refs = ORBIT_REFCOUNT_STATIC; initme->parent_ctx = parent; initme->mappings = NULL; buf->cur = ALIGN_ADDRESS (buf->cur, 4); if ((buf->cur + 4) > buf->end) goto errout; nstrings = *(CORBA_unsigned_long *) buf->cur; if (giop_msg_conversion_needed (buf)) nstrings = GUINT32_SWAP_LE_BE (nstrings); buf->cur += 4; if ((buf->cur + nstrings * 8) > buf->end) goto errout; if (nstrings) initme->mappings = g_hash_table_new (g_str_hash, g_str_equal); else goto errout; for (i = 0; i < nstrings; ) { buf->cur = ALIGN_ADDRESS (buf->cur, 4); if ((buf->cur + 4) > buf->end) goto errout; keylen = *(CORBA_unsigned_long *) buf->cur; if (giop_msg_conversion_needed (buf)) keylen = GUINT32_SWAP_LE_BE(keylen); buf->cur += 4; if ((buf->cur + keylen) > buf->end || (buf->cur + keylen) < buf->cur) goto errout; key = buf->cur; buf->cur += keylen; i++; if (i >= nstrings) break; buf->cur = ALIGN_ADDRESS (buf->cur, 4); if ((buf->cur + 4) > buf->end) goto errout; vallen = *(CORBA_unsigned_long *) buf->cur; if (giop_msg_conversion_needed (buf)) vallen = GUINT32_SWAP_LE_BE(vallen); buf->cur += 4; if ((buf->cur + vallen) > buf->end || (buf->cur + vallen) < buf->cur) goto errout; value = buf->cur; buf->cur += vallen; i++; g_hash_table_insert (initme->mappings, key, value); } return FALSE; errout: if (initme->mappings) g_hash_table_destroy (initme->mappings); return TRUE; } void ORBit_Context_server_free (CORBA_Context ctx) { g_hash_table_destroy (ctx->mappings); } ORBit2-2.14.19/src/orb/orb-core/corba-nvlist.c0000644000175000001440000000370411334247617015512 00000000000000#include "config.h" #include void CORBA_NVList_add_item (CORBA_NVList list, const CORBA_char *item_name, const CORBA_TypeCode item_type, const CORBA_OpaqueValue value, const CORBA_long value_len, const CORBA_Flags item_flags, CORBA_Environment *ev) { CORBA_NamedValue newval; g_assert (list != NULL); newval.name = CORBA_string_dup (item_name); newval.argument._type = ORBit_RootObject_duplicate ( item_type); if (item_flags & CORBA_IN_COPY_VALUE) { newval.argument._value = ORBit_copy_value ( value, item_type); newval.argument._release = CORBA_TRUE; } else { newval.argument._value = value; newval.argument._release = CORBA_FALSE; } newval.len = value_len; /* Is this even useful? *sigh* */ newval.arg_modes = item_flags; g_array_append_val (list->list, newval); } static void ORBit_NamedValue_free (CORBA_NamedValue *nv) { ORBit_free (nv->name); nv->name = NULL; } void CORBA_NVList_free (CORBA_NVList list, CORBA_Environment *ev) { int i; CORBA_NVList_free_memory (list, ev); if (list->list) { for (i = 0; i < list->list->len; i++) { CORBA_NamedValue *nv; nv = &g_array_index ( list->list, CORBA_NamedValue, i); ORBit_NamedValue_free (nv); } g_array_free (list->list, TRUE); list->list = NULL; } g_free (list); } void CORBA_NVList_free_memory (CORBA_NVList list, CORBA_Environment *ev) { int i; if (list->list) { for (i = 0; i < list->list->len; i++) { CORBA_NamedValue *nv; nv = &g_array_index ( list->list, CORBA_NamedValue, i); if (nv->argument._release) ORBit_free (nv->argument._value); nv->argument._value = NULL; ORBit_RootObject_release (nv->argument._type); nv->argument._type = NULL; } } } void CORBA_NVList_get_count (CORBA_NVList list, CORBA_long *count, CORBA_Environment *ev) { *count = list->list->len; } ORBit2-2.14.19/src/orb/orb-core/corba-env.c0000644000175000001440000001553111334247617014764 00000000000000#include "config.h" #include #include static void CORBA_exception_free_T (CORBA_Environment *ev) { if (ev->_major != CORBA_NO_EXCEPTION) { ev->_major = CORBA_NO_EXCEPTION; ORBit_free_T (ev->_id); ev->_id = NULL; CORBA_any__freekids (&ev->_any, NULL); ev->_any._type = NULL; ev->_any._value = NULL; ev->_any._release = CORBA_FALSE; } } void CORBA_exception_free (CORBA_Environment *ev) { g_return_if_fail (ev != NULL); if (ev->_major != CORBA_NO_EXCEPTION) { LINK_MUTEX_LOCK (ORBit_RootObject_lifecycle_lock); CORBA_exception_free_T (ev); LINK_MUTEX_UNLOCK (ORBit_RootObject_lifecycle_lock); } } static gpointer CORBA_exception__freekids (gpointer mem, gpointer dat) { CORBA_Environment *env; env = mem; CORBA_exception_free_T (env); return env + 1; } CORBA_Environment * CORBA_exception__alloc (void) { CORBA_Environment *retval = ORBit_alloc_with_free_fn ( sizeof (CORBA_Environment), 1, CORBA_exception__freekids); CORBA_exception_init (retval); return retval; } CORBA_Environment * CORBA_exception__copy (const CORBA_Environment *ev) { CORBA_Environment *dest; dest = CORBA_exception__alloc (); if (ev->_major != CORBA_NO_EXCEPTION) { *dest = *ev; dest->_id = CORBA_string_dup (ev->_id); if (dest->_any._type != CORBA_OBJECT_NIL) CORBA_any__copy (&dest->_any, &ev->_any); else /* FIXME: we need good type data here ! */ dest->_any._value = NULL; } return dest; } void ORBit_handle_system_exception (CORBA_Environment *ev, const CORBA_char *nom, CORBA_completion_status status, GIOPRecvBuffer *buf, GIOPSendBuffer *sendbuf) { CORBA_exception_set_system (ev, nom, status); giop_recv_buffer_unuse (buf); giop_send_buffer_unuse (sendbuf); } void CORBA_exception_set_system (CORBA_Environment *ev, const CORBA_char *except_repos_id, CORBA_completion_status completed) { CORBA_SystemException *se; g_return_if_fail (ev != NULL); se = CORBA_SystemException__alloc (); /* I have never seen a case where 'minor' is actually necessary */ se->minor = 0 /* minor */; se->completed = completed; CORBA_exception_set ( ev, CORBA_SYSTEM_EXCEPTION, except_repos_id, se); } void CORBA_exception_set (CORBA_Environment *ev, CORBA_exception_type major, const CORBA_char *except_repos_id, void *param) { g_return_if_fail (ev != NULL); CORBA_exception_free(ev); ev->_major = major; if (major != CORBA_NO_EXCEPTION) { ev->_id = CORBA_string_dup (except_repos_id); if (ev->_any._release) CORBA_free (ev->_any._value); /* FIXME: we can get this from the typelib */ ev->_any._type = NULL; /* CORBA sucks */ ev->_any._value = param; ev->_any._release = CORBA_TRUE; } } CORBA_char * CORBA_exception_id (CORBA_Environment *ev) { if (ev->_major != CORBA_NO_EXCEPTION) return ev->_id; return NULL; } void * CORBA_exception_value (CORBA_Environment *ev) { if (ev->_major != CORBA_NO_EXCEPTION) return ev->_any._value; return NULL; } /* An ORBit extension that seems to be perpetuated */ void CORBA_exception_init (CORBA_Environment *ev) { g_return_if_fail (ev != NULL); memset (ev, 0, sizeof (CORBA_Environment)); ev->_major = CORBA_NO_EXCEPTION; } CORBA_any * CORBA_exception_as_any (CORBA_Environment *ev) { return &ev->_any; } void ORBit_handle_exception(GIOPRecvBuffer *rb, CORBA_Environment *ev, const ORBit_exception_demarshal_info *ex_info, CORBA_ORB orb) { CORBA_SystemException *new; CORBA_unsigned_long len, completion_status, reply_status; CORBA_char *my_repoid; CORBA_exception_free(ev); rb->cur = ALIGN_ADDRESS(rb->cur, sizeof(len)); if((rb->cur + 4) > rb->end) goto errout; len = *(CORBA_unsigned_long *)rb->cur; rb->cur += 4; if(giop_msg_conversion_needed(rb)) len = GUINT32_SWAP_LE_BE(len); if(len) { my_repoid = rb->cur; rb->cur += len; } else my_repoid = NULL; reply_status = giop_recv_buffer_reply_status(rb); if(reply_status == CORBA_SYSTEM_EXCEPTION) { CORBA_unsigned_long minor; ev->_major = CORBA_SYSTEM_EXCEPTION; rb->cur = ALIGN_ADDRESS(rb->cur, sizeof(minor)); if((rb->cur + sizeof(minor)) > rb->end) goto errout; minor = *(CORBA_unsigned_long*)rb->cur; rb->cur += 4; if(giop_msg_conversion_needed(rb)) minor = GUINT32_SWAP_LE_BE(minor); rb->cur = ALIGN_ADDRESS(rb->cur, sizeof(completion_status)); if((rb->cur + sizeof(completion_status)) > rb->end) goto errout; completion_status = *(CORBA_unsigned_long*)rb->cur; rb->cur += 4; if(giop_msg_conversion_needed(rb)) completion_status = GUINT32_SWAP_LE_BE(completion_status); new = CORBA_SystemException__alloc(); new->minor=minor; new->completed=completion_status; /* XXX what should the repo ID be? */ CORBA_exception_set(ev, CORBA_SYSTEM_EXCEPTION, my_repoid, new); } else if(reply_status == CORBA_USER_EXCEPTION) { int i; if(!ex_info) { /* weirdness; they raised an exception that we don't know about */ CORBA_exception_set_system(ev, ex_CORBA_MARSHAL, CORBA_COMPLETED_MAYBE); } else { for(i = 0; ex_info[i].tc != CORBA_OBJECT_NIL; i++) if(my_repoid && !strcmp(ex_info[i].tc->repo_id, my_repoid)) break; if(ex_info[i].tc == CORBA_OBJECT_NIL) /* weirdness; they raised an exception that we don't know about */ CORBA_exception_set_system(ev, ex_CORBA_MARSHAL, CORBA_COMPLETED_MAYBE); else ex_info[i].demarshal(rb, ev); } }; return; /* ignore LOCATION_FORWARD here, that gets handled in the stub */ errout: CORBA_exception_set_system(ev, ex_CORBA_MARSHAL, CORBA_COMPLETED_MAYBE); } void ORBit_send_system_exception (GIOPSendBuffer *buf, CORBA_Environment *ev) { CORBA_SystemException *se = ev->_any._value; g_assert (ev->_major == CORBA_SYSTEM_EXCEPTION); giop_send_buffer_append_string (buf, ev->_id); giop_send_buffer_append_aligned (buf, &se->minor, 4); giop_send_buffer_append_aligned (buf, &se->completed, 4); } void ORBit_send_user_exception (GIOPSendBuffer *send_buffer, CORBA_Environment *ev, const ORBit_exception_marshal_info *user_exceptions) { int i; for (i = 0; user_exceptions [i].tc != CORBA_OBJECT_NIL; i++) { if (!strcmp (user_exceptions [i].tc->repo_id, ev->_id)) break; } if (user_exceptions[i].tc == CORBA_OBJECT_NIL) { CORBA_Environment fakeev; CORBA_exception_init (&fakeev); CORBA_exception_set_system (&fakeev, ex_CORBA_UNKNOWN, CORBA_COMPLETED_MAYBE); ORBit_send_system_exception (send_buffer, &fakeev); CORBA_exception_free (&fakeev); } else { giop_send_buffer_append_string (send_buffer, ev->_id); if (user_exceptions[i].marshal && ev->_any._value) user_exceptions[i].marshal (send_buffer, ev); } } ORBit2-2.14.19/src/orb/orb-core/orbit-policy.c0000644000175000001440000000430111334247617015515 00000000000000#include #include #include "../util/orbit-purify.h" #include "orbit-policy.h" #include "orbit-debug.h" #include "orbit-object.h" #include "orbit/GIOP/giop.h" GType ORBit_policy_ex_get_type (void) { return 0; /* FIXME: maybe use GObject some day ? */ } static void ORBit_policy_free_fn (ORBit_RootObject obj) { ORBitPolicy *p = (ORBitPolicy *) obj; g_ptr_array_free (p->allowed_poas, TRUE); p_free (p, ORBitPolicy); } static const ORBit_RootObject_Interface ORBit_Policy_epv = { ORBIT_ROT_CLIENT_POLICY, ORBit_policy_free_fn }; ORBitPolicy * ORBit_policy_new (GType type, const char *first_prop, ...) { va_list args; const char *name; ORBitPolicy *policy = g_new0 (ORBitPolicy, 1); ORBit_RootObject_init (&policy->parent, &ORBit_Policy_epv); policy->allowed_poas = g_ptr_array_sized_new (1); va_start (args, first_prop); for (name = first_prop; name; name = va_arg (args, char *)) { if (!strcmp (name, "allow")) { gpointer poa = va_arg (args, void *); g_ptr_array_add (policy->allowed_poas, poa); } } va_end (args); return ORBit_RootObject_duplicate_T (policy); } ORBitPolicy * ORBit_policy_ref (ORBitPolicy *p) { return ORBit_RootObject_duplicate (p); } void ORBit_policy_unref (ORBitPolicy *p) { ORBit_RootObject_release (p); } void ORBit_object_set_policy (CORBA_Object obj, ORBitPolicy *p) { if (obj == CORBA_OBJECT_NIL) return; ORBit_policy_unref (obj->invoke_policy); obj->invoke_policy = ORBit_policy_ref (p); } ORBitPolicy * ORBit_object_get_policy (CORBA_Object obj) { if (obj == CORBA_OBJECT_NIL) return CORBA_OBJECT_NIL; else return ORBit_policy_ref (obj->invoke_policy); } void ORBit_policy_push (ORBitPolicy *p) { GIOPThread *tdata = giop_thread_self (); if (!tdata->invoke_policies) tdata->invoke_policies = g_queue_new (); g_queue_push_head (tdata->invoke_policies, ORBit_policy_ref (p)); } void ORBit_policy_pop (void) { GIOPThread *tdata = giop_thread_self (); if (!tdata->invoke_policies) g_warning ("No policy queue to pop from"); else { ORBitPolicy *p; p = g_queue_pop_head (tdata->invoke_policies); ORBit_policy_unref (p); } } gboolean ORBit_policy_validate (ORBitPolicy *policy) { return TRUE; } ORBit2-2.14.19/src/orb/orb-core/corba-object.c0000644000175000001440000005744611334247617015455 00000000000000#include "config.h" #include #include #include #include "corba-ops.h" #include "orb-core-private.h" #include "orb-core-export.h" #include "orbit-debug.h" #include "../util/orbit-purify.h" static GMutex *object_lock = NULL; #define OBJECT_LOCK(obj) LINK_MUTEX_LOCK (object_lock) #define OBJECT_UNLOCK(obj) LINK_MUTEX_UNLOCK (object_lock) /* * obj->orb -> construct time property ... * obj->type_qid -> construct time property ? * * obj->profile_list -> needs locking */ static guint g_CORBA_Object_hash (gconstpointer key) { CORBA_Object obj = (gpointer) key; /* type_id is not reliable: cf. corbaloc */ g_assert (obj->object_key != NULL); return IOP_ObjectKey_hash (obj->object_key); } static gboolean g_CORBA_Object_equal (gconstpointer a, gconstpointer b) { GSList *cur1, *cur2; CORBA_Object _obj = (CORBA_Object) a; CORBA_Object other_object = (CORBA_Object) b; g_assert (_obj->object_key && other_object->object_key); if (!IOP_ObjectKey_equal (_obj->object_key, other_object->object_key)) return FALSE; for (cur1 = _obj->profile_list; cur1; cur1 = cur1->next) { for (cur2 = other_object->profile_list; cur2; cur2 = cur2->next) { if (IOP_profile_equal (_obj, other_object, cur1->data, cur2->data)) { #ifdef G_ENABLE_DEBUG if (_orbit_debug_flags & ORBIT_DEBUG_OBJECTS) { char *a, *b; a = IOP_profile_dump (_obj, cur1->data); b = IOP_profile_dump (other_object, cur2->data); fprintf (stderr, "Profiles match:\n'%s':%s\n'%s':%s\n", g_quark_to_string (_obj->type_qid), a, g_quark_to_string (other_object->type_qid), b); g_free (a); g_free (b); } #endif /* G_ENABLE_DEBUG */ return TRUE; } } } return FALSE; } void ORBit_register_objref (CORBA_Object obj) { CORBA_ORB orb = obj->orb; g_assert (orb != NULL); g_assert (obj->object_key != NULL); g_assert (obj->profile_list != NULL); LINK_MUTEX_LOCK (orb->lock); if (!orb->objrefs) orb->objrefs = g_hash_table_new ( g_CORBA_Object_hash, g_CORBA_Object_equal); g_hash_table_insert (orb->objrefs, obj, obj); LINK_MUTEX_UNLOCK (orb->lock); } static CORBA_Object ORBit_lookup_objref (CORBA_Object obj) { CORBA_Object result; CORBA_ORB orb = obj->orb; g_assert (orb != NULL); LINK_MUTEX_LOCK (orb->lock); if (!orb->objrefs || !obj->profile_list) result = NULL; else result = g_hash_table_lookup (orb->objrefs, obj); LINK_MUTEX_UNLOCK (orb->lock); return result; } static void CORBA_Object_release_cb (ORBit_RootObject robj) { CORBA_Object obj = (CORBA_Object) robj; CORBA_ORB orb = obj->orb; if (orb && obj->profile_list) { LINK_MUTEX_LOCK (orb->lock); g_hash_table_remove (orb->objrefs, obj); LINK_MUTEX_UNLOCK (orb->lock); } ORBit_free_T (obj->object_key); IOP_delete_profiles (obj->orb, &obj->profile_list); IOP_delete_profiles (obj->orb, &obj->forward_locations); if (obj->adaptor_obj) { obj->adaptor_obj->objref = NULL; ORBit_RootObject_release_T (obj->adaptor_obj); } if (obj->connection) { LINK_MUTEX_UNLOCK (ORBit_RootObject_lifecycle_lock); giop_connection_unref (obj->connection); LINK_MUTEX_LOCK (ORBit_RootObject_lifecycle_lock); } p_free (obj, struct CORBA_Object_type); } static ORBit_RootObject_Interface objref_if = { ORBIT_ROT_OBJREF, CORBA_Object_release_cb }; CORBA_Object ORBit_objref_new (CORBA_ORB orb, ORBit_OAObject adaptor_obj, GQuark type_id) { CORBA_Object retval; retval = g_new0 (struct CORBA_Object_type, 1); ORBit_RootObject_init ((ORBit_RootObject) retval, &objref_if); retval->type_qid = type_id; retval->orb = orb; retval->adaptor_obj = ORBit_RootObject_duplicate (adaptor_obj); return retval; } static CORBA_Object ORBit_objref_find (CORBA_ORB orb, const char *type_id, GSList *profiles) { CORBA_Object retval = CORBA_OBJECT_NIL; struct CORBA_Object_type fakeme = {{NULL}}; fakeme.orb = orb; fakeme.type_qid = g_quark_from_string (type_id); fakeme.profile_list = profiles; fakeme.object_key = IOP_profiles_sync_objkey (profiles); LINK_MUTEX_LOCK (ORBit_RootObject_lifecycle_lock); retval = ORBit_lookup_objref (&fakeme); dprintf (OBJECTS, "Lookup '%s' (%p) == %p\n", type_id, profiles, retval); #ifdef G_ENABLE_DEBUG if (_orbit_debug_flags & ORBIT_DEBUG_OBJECTS) { GSList *l; fprintf (stderr, "Profiles: "); for (l = profiles; l; l = l->next) { char *str; fprintf (stderr, "%s", (str = IOP_profile_dump (&fakeme, l->data))); g_free (str); } fprintf (stderr, "\n"); } #endif /* G_ENABLE_DEBUG */ if (!retval) { retval = ORBit_objref_new (orb, NULL, fakeme.type_qid); retval->profile_list = profiles; retval->object_key = fakeme.object_key; ORBit_register_objref (retval); } else { ORBit_free_T (fakeme.object_key); IOP_delete_profiles (orb, &profiles); } retval = ORBit_RootObject_duplicate_T (retval); LINK_MUTEX_UNLOCK (ORBit_RootObject_lifecycle_lock); return retval; } static gboolean is_localhost (const char *host) { return (host && !strcmp (link_get_local_hostname (), host)) ? TRUE : FALSE; } /** * ORBit_objref_get_proxy: * @obj: the local object * * Creates a 'remote' alike object for the fully local * object reference, so that we can deal with it * asynchronously. Defeats the orb cleverness to stop this, * doesn't register in the global object / profile hash. * * You almost certainly don't want to use this routine. * * FIXME: we should have an ORB wide 'socketpair' profile * that is private for purely in-proc local loopback support. * * Return value: a proxy object **/ CORBA_Object ORBit_objref_get_proxy (CORBA_Object obj) { CORBA_Object iobj; OBJECT_LOCK (obj); if (!obj->profile_list) { IOP_generate_profiles (obj); ORBit_register_objref (obj); } OBJECT_UNLOCK (obj); /* We need a pseudo-remote reference */ iobj = ORBit_objref_new (obj->orb, NULL, obj->type_qid); iobj->profile_list = IOP_profiles_copy (obj->profile_list); iobj->object_key = IOP_ObjectKey_copy (obj->object_key); return ORBit_RootObject_duplicate (iobj); } static gboolean ORBit_try_connection_T (CORBA_Object obj) { gboolean retval = FALSE; LinkConnectionStatus status; LinkConnection *cnx = LINK_CONNECTION (obj->connection); OBJECT_UNLOCK (obj); status = link_connection_wait_connected (cnx); switch (status) { case LINK_CONNECTING: g_assert_not_reached(); break; case LINK_CONNECTED: retval = TRUE; break; case LINK_DISCONNECTED: case LINK_TIMEOUT: /* Have a go at reviving it */ dprintf (MESSAGES, "re-connecting dropped cnx %p: ", cnx); if (giop_connection_try_reconnect (GIOP_CONNECTION (cnx)) == LINK_CONNECTED) retval = TRUE; dprintf (MESSAGES, retval ? "connected\n" : "not connected\n" ); break; } OBJECT_LOCK (obj); g_assert (LINK_CONNECTION (obj->connection) == cnx); return retval; } GIOPConnection * ORBit_object_peek_connection (CORBA_Object obj) { GIOPConnection *cnx; OBJECT_LOCK (obj); if ((cnx = obj->connection)) giop_connection_ref (cnx); OBJECT_UNLOCK (obj); return cnx; } GIOPConnection * ORBit_object_get_connection (CORBA_Object obj) { GSList *plist, *cur; char tbuf[20]; /* Information we have to come up with */ ORBit_ObjectKey *objkey; char *proto = NULL, *host, *service; gboolean is_ssl = FALSE; GIOPVersion iiop_version = GIOP_1_2; GIOPConnection *cnx = NULL; gboolean unix_socket_enabled = FALSE; gboolean ipv4_ipv6_enabled = FALSE; gboolean unix_socket_failed = FALSE; OBJECT_LOCK (obj); unix_socket_enabled = ORBit_proto_use ("UNIX"); ipv4_ipv6_enabled = (ORBit_proto_use ("IPv4") || ORBit_proto_use ("IPv6")); if (obj->connection) { if (ORBit_try_connection_T (obj)) { cnx = obj->connection; giop_connection_ref (cnx); OBJECT_UNLOCK (obj); return cnx; } else { OBJECT_UNLOCK (obj); return NULL; } } g_assert (obj->connection == NULL); if (!obj->forward_locations) { plist = obj->profile_list; objkey = obj->object_key; } else { plist = obj->forward_locations; objkey = IOP_profiles_sync_objkey (plist); } for (cur = plist; cur; cur = cur->next) { gpointer *pinfo = cur->data; if (IOP_profile_get_info (obj, pinfo, &iiop_version, &proto, &host, &service, &is_ssl, tbuf)) { if (unix_socket_failed && ipv4_ipv6_enabled && is_localhost (host)) continue; obj->connection = giop_connection_initiate ( obj->orb, proto, host, service, is_ssl ? LINK_CONNECTION_SSL : 0, iiop_version); if (!obj->connection && unix_socket_enabled && ipv4_ipv6_enabled) { if (!strcmp (proto,"UNIX")) unix_socket_failed = TRUE; } if (obj->connection && ORBit_try_connection_T (obj)) { if (!IOP_ObjectKey_equal (obj->object_key, objkey)) { /* We need to remove and re-add the object from the * objrefs hash table since changing the object key will * change the object's hash value. */ LINK_MUTEX_LOCK (obj->orb->lock); g_hash_table_remove (obj->orb->objrefs, obj); obj->object_key = objkey; g_hash_table_insert (obj->orb->objrefs, obj, obj); LINK_MUTEX_UNLOCK (obj->orb->lock); } else { obj->object_key = objkey; } obj->connection->orb_data = obj->orb; dprintf (OBJECTS, "Initiated a connection to '%s' '%s' '%s'\n", proto, host, service); cnx = obj->connection; giop_connection_ref (cnx); break; } } } OBJECT_UNLOCK (obj); return cnx; } GIOPConnection * ORBit_handle_location_forward (GIOPRecvBuffer *buf, CORBA_Object obj) { GSList *profiles = NULL; GIOPConnection *old_connection; if (ORBit_demarshal_IOR (obj->orb, buf, NULL, &profiles)) return NULL; OBJECT_LOCK (obj); IOP_delete_profiles (obj->orb, &obj->forward_locations); obj->forward_locations = profiles; /* We need to clear the connection because forwarding results in a different connection */ old_connection = obj->connection; obj->connection = NULL; OBJECT_UNLOCK (obj); giop_connection_unref (old_connection); return ORBit_object_get_connection (obj); } CORBA_InterfaceDef CORBA_Object_get_interface (CORBA_Object obj, CORBA_Environment *ev) { /* FIXME: we can use the IInterface info for this */ return CORBA_OBJECT_NIL; } CORBA_boolean CORBA_Object_is_nil (CORBA_Object obj, CORBA_Environment *ev) { return obj ? CORBA_FALSE : CORBA_TRUE; } CORBA_Object CORBA_Object_duplicate (CORBA_Object obj, CORBA_Environment *ev) { return ORBit_RootObject_duplicate (obj); } void CORBA_Object_release (CORBA_Object obj, CORBA_Environment *ev) { ORBit_RootObject_release (obj); } CORBA_boolean CORBA_Object_non_existent (CORBA_Object obj, CORBA_Environment *ev) { gboolean retval; GIOPConnection *cnx; ORBit_OAObject adaptor_obj; if (obj == CORBA_OBJECT_NIL) return TRUE; adaptor_obj = obj->adaptor_obj; if (adaptor_obj && adaptor_obj->interface->is_active (adaptor_obj)) return FALSE; cnx = ORBit_object_get_connection (obj); if (cnx) { LinkConnectionStatus status; status = link_connection_wait_connected (LINK_CONNECTION (cnx)); retval = (status == LINK_CONNECTED) ? FALSE : TRUE; giop_connection_unref (cnx); } else retval = TRUE; return retval; } /* * We already ensure uniqueness of the CORBA_Object structure */ CORBA_boolean CORBA_Object_is_equivalent (CORBA_Object obj, const CORBA_Object other_object, CORBA_Environment *ev) { return obj == other_object; } /* * We already ensure uniqueness of the CORBA_Object structure */ CORBA_unsigned_long CORBA_Object_hash (CORBA_Object obj, const CORBA_unsigned_long maximum, CORBA_Environment *ev) { CORBA_unsigned_long retval; retval = GPOINTER_TO_UINT (obj); return maximum ? (retval % maximum) : retval; } void CORBA_Object_create_request (CORBA_Object _obj, const CORBA_Context ctx, const CORBA_char *operation, const CORBA_NVList arg_list, CORBA_NamedValue *result, CORBA_Request *request, const CORBA_Flags req_flag, CORBA_Environment *ev) { CORBA_exception_set_system (ev, ex_CORBA_NO_IMPLEMENT, CORBA_COMPLETED_NO); } CORBA_Policy CORBA_Object_get_policy (CORBA_Object obj, const CORBA_PolicyType policy_type, CORBA_Environment *ev) { CORBA_exception_set_system (ev, ex_CORBA_NO_IMPLEMENT, CORBA_COMPLETED_NO); return CORBA_OBJECT_NIL; } CORBA_DomainManagersList * CORBA_Object_get_domain_managers (CORBA_Object obj, CORBA_Environment *ev) { CORBA_exception_set_system (ev, ex_CORBA_NO_IMPLEMENT, CORBA_COMPLETED_NO); return NULL; } CORBA_Object CORBA_Object_set_policy_overrides (CORBA_Object obj, const CORBA_PolicyList *policies, const CORBA_SetOverrideType set_add, CORBA_Environment *ev) { CORBA_exception_set_system (ev, ex_CORBA_NO_IMPLEMENT, CORBA_COMPLETED_NO); return CORBA_OBJECT_NIL; } void ORBit_marshal_object (GIOPSendBuffer *buf, CORBA_Object obj) { GSList *cur; const char *typeid; CORBA_unsigned_long num_profiles = 0; if (!obj) { dprintf (OBJECTS, "Marshal NIL object\n"); giop_send_buffer_append_string (buf, ""); giop_send_buffer_append_aligned (buf, &num_profiles, 4); return; } typeid = g_quark_to_string (obj->type_qid); if (!typeid) g_error ("Attempted to marshal a bogus / " "dead object %p type", obj); giop_send_buffer_append_string (buf, typeid); OBJECT_LOCK (obj); if (!obj->profile_list) { IOP_generate_profiles (obj); ORBit_register_objref (obj); } num_profiles = g_slist_length (obj->profile_list); g_assert (num_profiles > 0); giop_send_buffer_append_aligned (buf, &num_profiles, 4); dprintf (OBJECTS, "Marshal object '%p'\n", obj); for (cur = obj->profile_list; cur; cur = cur->next) { #ifdef G_ENABLE_DEBUG if (_orbit_debug_flags & ORBIT_DEBUG_OBJECTS) { char *str; fprintf (stderr, "%s\n", (str = IOP_profile_dump (obj, cur->data))); g_free (str); } #endif /* G_ENABLE_DEBUG */ IOP_profile_marshal (obj, buf, cur->data); } OBJECT_UNLOCK (obj); } gboolean ORBit_demarshal_object (CORBA_Object *obj, GIOPRecvBuffer *buf, CORBA_ORB orb) { gchar *type_id = NULL; GSList *profiles = NULL; g_return_val_if_fail (orb != CORBA_OBJECT_NIL, TRUE); if (ORBit_demarshal_IOR (orb, buf, &type_id, &profiles)) return TRUE; if (type_id) *obj = ORBit_objref_find (orb, type_id, profiles); else *obj = CORBA_OBJECT_NIL; return FALSE; } CORBA_char* ORBit_object_to_corbaloc (CORBA_Object obj, CORBA_Environment *ev) { CORBA_char *retval = NULL; if (!obj) { dprintf (OBJECTS, "Corbaloc NIL object\n"); return CORBA_string_dup ("corbaloc::/"); } OBJECT_LOCK (obj); if (!obj->profile_list) { IOP_generate_profiles (obj); ORBit_register_objref (obj); } if (!(retval = ORBit_corbaloc_from (obj->profile_list, obj->object_key))) { CORBA_exception_set_system ( ev, ex_CORBA_BAD_PARAM, CORBA_COMPLETED_NO); /* FIXME, set minor code with vendor specific id */ } OBJECT_UNLOCK (obj); return retval; } CORBA_Object ORBit_object_by_corbaloc (CORBA_ORB orb, const gchar *corbaloc, CORBA_Environment *ev) { CORBA_Object retval = CORBA_OBJECT_NIL; GSList *profile_list = NULL; g_return_val_if_fail (orb!=NULL, CORBA_OBJECT_NIL); g_return_val_if_fail (corbaloc!=NULL, CORBA_OBJECT_NIL); g_return_val_if_fail (ev!=NULL, CORBA_OBJECT_NIL); if (!strncmp (corbaloc, "corbaloc::/", 1 + strlen ("corbaloc::/"))) return CORBA_OBJECT_NIL; if (!(profile_list = ORBit_corbaloc_parse (corbaloc))) { CORBA_exception_set_system ( ev, ex_CORBA_BAD_PARAM, CORBA_COMPLETED_NO); /* FIXME, set minor code with vendor specific id */ return CORBA_OBJECT_NIL; } if (!(retval = ORBit_objref_find (orb, "", profile_list))) { CORBA_exception_set_system ( ev, ex_CORBA_BAD_PARAM, CORBA_COMPLETED_NO); /* FIXME, set minor code with vendor specific id */ IOP_delete_profiles (orb, &profile_list); return CORBA_OBJECT_NIL; } return retval; } static gboolean ORBit_IInterface_is_a (ORBit_IInterface *idata, const char *type_id) { int i; if (!strcmp (idata->tc->repo_id, type_id)) return TRUE; for (i = 0; i < idata->base_interfaces._length; i++ ) if (!strcmp (idata->base_interfaces._buffer [i], type_id)) return TRUE; return FALSE; } static void ORBit_impl_CORBA_Object_is_a(PortableServer_ServantBase *servant, gpointer ret, gpointer *args, gpointer ctx, CORBA_Environment *ev, gpointer imp) { PortableServer_ClassInfo *ci = ORBIT_SERVANT_TO_CLASSINFO (servant); const char *type_id = *(const char **)args[0]; *(CORBA_boolean *)ret = ORBit_IInterface_is_a (ci->idata, type_id); } CORBA_boolean CORBA_Object_is_a (CORBA_Object obj, const CORBA_char *logical_type_id, CORBA_Environment *ev) { static GQuark corba_object_quark = 0; static GQuark omg_corba_object_quark = 0; CORBA_boolean retval; gpointer servant; gpointer args[] = { NULL }; GQuark logical_type_quark; args[0] = (gpointer *)&logical_type_id; if (!corba_object_quark) corba_object_quark = g_quark_from_static_string ( "IDL:CORBA/Object:1.0"); if (!omg_corba_object_quark) omg_corba_object_quark = g_quark_from_static_string ( "IDL:omg.org/CORBA/Object:1.0"); logical_type_quark = g_quark_from_string (logical_type_id); if (logical_type_quark == corba_object_quark) return CORBA_TRUE; if (logical_type_quark == omg_corba_object_quark) return CORBA_TRUE; if (!obj) return CORBA_FALSE; if (logical_type_quark == obj->type_qid) return CORBA_TRUE; if ((servant = ORBit_small_get_servant (obj))) ORBit_impl_CORBA_Object_is_a (servant, &retval, args, NULL, ev, NULL); else /* warning: obeys POA policies */ ORBit_small_invoke_stub (obj, &CORBA_Object__imethods[4], &retval, args, NULL, ev); return retval; } static void ORBit_impl_ORBit_get_type_id (PortableServer_ServantBase *servant, gpointer ret, gpointer *args, gpointer ctx, CORBA_Environment *ev, gpointer imp) { PortableServer_ClassInfo *ci = ORBIT_SERVANT_TO_CLASSINFO (servant); *(CORBA_char **)ret = CORBA_string_dup (ci->idata->tc->repo_id); } static void ORBit_impl_ORBit_get_iinterface (PortableServer_ServantBase *servant, gpointer ret, gpointer *args, gpointer ctx, CORBA_Environment *ev, gpointer imp) { const char *repo_id = *(const char **)args[0]; *(ORBit_IInterface **)ret = ORBit_small_get_iinterface ( CORBA_OBJECT_NIL, repo_id, ev); } ORBitSmallSkeleton get_small_skel_CORBA_Object(PortableServer_Servant servant, const char *opname, gpointer * m_data, gpointer * impl) { if (!strcmp (opname, "_is_a")) { *impl = *m_data = (gpointer)&CORBA_Object__imethods [4]; return (ORBitSmallSkeleton) ORBit_impl_CORBA_Object_is_a; } else if (!strcmp (opname, "ORBit_get_type_id")) { *impl = *m_data = (gpointer)&CORBA_Object__imethods [ CORBA_OBJECT_SMALL_GET_TYPE_ID]; return (ORBitSmallSkeleton) ORBit_impl_ORBit_get_type_id; } else if (!strcmp (opname, "ORBit_get_iinterface")) { *impl = *m_data = (gpointer)&CORBA_Object__imethods [ CORBA_OBJECT_SMALL_GET_IINTERFACE]; return (ORBitSmallSkeleton) ORBit_impl_ORBit_get_iinterface; } return NULL; } /* * Arguments' Definitions. */ static ORBit_IArg CORBA_Object_is_a__arginfo[] = { { TC_CORBA_string, ORBit_I_ARG_IN, "logical_type_id" }, {NULL, 0, NULL} }; static ORBit_IArg CORBA_Object_is_equivalent__arginfo[] = { { TC_CORBA_Object, ORBit_I_ARG_IN, "other_object" }, {NULL, 0, NULL} }; static ORBit_IArg CORBA_Object_hash__arginfo[] = { { TC_CORBA_unsigned_long, ORBit_I_ARG_IN | ORBit_I_COMMON_FIXED_SIZE, "maximum" }, {NULL, 0, NULL} }; static ORBit_IArg CORBA_Object_create_request__arginfo[] = { { TC_CORBA_Context, ORBit_I_ARG_IN, "ctx" }, { TC_CORBA_Identifier, ORBit_I_ARG_IN, "operation" }, { TC_CORBA_NVList, ORBit_I_ARG_IN, "arg_list" }, { TC_CORBA_NamedValue, ORBit_I_ARG_INOUT, "result" }, { TC_CORBA_Request, ORBit_I_ARG_OUT, "request" }, { TC_CORBA_Flags, ORBit_I_ARG_IN | ORBit_I_COMMON_FIXED_SIZE, "req_flag" }, {NULL, 0, NULL} }; static ORBit_IArg CORBA_Object_get_policy__arginfo[] = { { TC_CORBA_PolicyType, ORBit_I_ARG_IN | ORBit_I_COMMON_FIXED_SIZE, "policy_type" }, {NULL, 0, NULL} }; static ORBit_IArg CORBA_Object_ORBit_get_iinterface__arginfo[] = { { TC_CORBA_string, ORBit_I_ARG_IN, "type_id" }, {NULL, 0, NULL} }; static CORBA_TypeCode CORBA_Object_ORBit_get_iinterface__exceptinfo[] = { TC_ORBit_NoIInterface, NULL }; static ORBit_IArg CORBA_Object_set_policy_overrides__arginfo[] = { { TC_CORBA_PolicyList, ORBit_I_ARG_IN, "policies" }, { TC_CORBA_SetOverrideType, ORBit_I_ARG_IN | ORBit_I_COMMON_FIXED_SIZE, "set_add" }, {NULL, 0, NULL} }; /* * Methods' Definitions. */ ORBit_IMethod CORBA_Object__imethods[] = { { {0, 0, NULL, FALSE}, {0, 0, NULL, FALSE}, {0, 0, NULL, FALSE}, TC_CORBA_InterfaceDef, "_interface", 10, 0 }, { {0, 0, NULL, FALSE}, {0, 0, NULL, FALSE}, {0, 0, NULL, FALSE}, TC_CORBA_boolean, "is_nil", 6, 0 | ORBit_I_COMMON_FIXED_SIZE }, { {0, 0, NULL, FALSE}, {0, 0, NULL, FALSE}, {0, 0, NULL, FALSE}, TC_CORBA_Object, "duplicate", 9, 0 }, { {0, 0, NULL, FALSE}, {0, 0, NULL, FALSE}, {0, 0, NULL, FALSE}, CORBA_OBJECT_NIL, "release", 7, 0 }, { {1, 1, CORBA_Object_is_a__arginfo, FALSE}, {0, 0, NULL, FALSE}, {0, 0, NULL, FALSE}, TC_CORBA_boolean, "_is_a", 5, 0 | ORBit_I_COMMON_FIXED_SIZE }, { {0, 0, NULL, FALSE}, {0, 0, NULL, FALSE}, {0, 0, NULL, FALSE}, TC_CORBA_boolean, "_non_existent", 13, 0 | ORBit_I_COMMON_FIXED_SIZE }, { {1, 1, CORBA_Object_is_equivalent__arginfo, FALSE}, {0, 0, NULL, FALSE}, {0, 0, NULL, FALSE}, TC_CORBA_boolean, "is_equivalent", 13, 0 | ORBit_I_COMMON_FIXED_SIZE }, { {1, 1, CORBA_Object_hash__arginfo, FALSE}, {0, 0, NULL, FALSE}, {0, 0, NULL, FALSE}, TC_CORBA_unsigned_long, "hash", 4, 0 | ORBit_I_COMMON_FIXED_SIZE }, { {6, 6, CORBA_Object_create_request__arginfo, FALSE}, {0, 0, NULL, FALSE}, {0, 0, NULL, FALSE}, CORBA_OBJECT_NIL, "create_request", 14, 0 }, { {1, 1, CORBA_Object_get_policy__arginfo, FALSE}, {0, 0, NULL, FALSE}, {0, 0, NULL, FALSE}, TC_CORBA_Policy, "get_policy", 10, 0 }, { {0, 0, NULL, FALSE}, {0, 0, NULL, FALSE}, {0, 0, NULL, FALSE}, TC_CORBA_DomainManagersList, "get_domain_managers", 19, 0 }, { {2, 2, CORBA_Object_set_policy_overrides__arginfo, FALSE}, {0, 0, NULL, FALSE}, {0, 0, NULL, FALSE}, TC_CORBA_Object, "set_policy_overrides", 20, 0 }, /* ORBit-small bits */ { {0, 0, NULL, FALSE}, {0, 0, NULL, FALSE}, {0, 0, NULL, FALSE}, TC_CORBA_string, "ORBit_get_type_id", 17, 0 }, { {1, 1, CORBA_Object_ORBit_get_iinterface__arginfo, FALSE}, {0, 0, NULL, FALSE}, {1, 1, CORBA_Object_ORBit_get_iinterface__exceptinfo, FALSE}, TC_ORBit_IInterface, "ORBit_get_iinterface", 20, 0 } }; /* * Interface Definition. */ ORBit_IInterface CORBA_Object__iinterface = { TC_CORBA_Object, {12, 12, CORBA_Object__imethods, FALSE}, {0, 0, NULL, FALSE} }; void _ORBit_object_init (void) { object_lock = link_mutex_new(); } ORBit2-2.14.19/src/orb/orb-core/orbhttp.c0000644000175000001440000005023011334247617014565 00000000000000/* * orbhttp.c: hacked up * nanohttp.c: minimalist HTTP GET implementation to fetch external subsets. * focuses on size, streamability, reentrancy and portability * * This is clearly not a general purpose HTTP implementation * If you look for one, check: * http://www.w3.org/Library/ * * See Copyright for the status of this software. * * Daniel.Veillard@w3.org */ /* TODO add compression support, Send the Accept- , and decompress on the fly with ZLIB if found at compile-time */ #include "config.h" #include #include #include #include #ifdef HAVE_UNISTD_H # include #endif #ifdef HAVE_WINSOCK2_H # include # ifndef _WINSOCKAPI_ # define _WINSOCKAPI_ # endif # define read(s, b, l) recv(s, b, l, 0) # define write(s, b, l) send(s, b, l, 0) # define EINPROGRESS WSAEINPROGRESS # define close closesocket #else /* !HAVE_WINSOCK2_H */ # ifdef HAVE_SYS_SOCKET_H # include # endif # ifdef HAVE_NETINET_IN_H # include # endif # ifdef HAVE_ARPA_INET_H # include # endif # include #endif /* !HAVE_WINSOCK2_H */ #include #include #ifdef HAVE_SYS_TIME_H # include #endif #ifdef HAVE_SYS_SELECT_H # include #endif #define CHECK_URI(str) \ (!strncmp(str, "IOR:", strlen("IOR:")) \ || !strncmp(str, "iiop://", strlen("iiop://")) \ || !strncmp(str, "iioploc://", strlen("iioploc://"))) static void orbHTTPInit (void); static void orbHTTPScanProxy (const char *URL); static void * orbHTTPOpen (const char *URL); static int orbHTTPRead (void *ctx, void *dest, int len); static void orbHTTPClose (void *ctx); #include "orbhttp.h" #ifdef STANDALONE #define DEBUG_HTTP #endif #define ORB_HTTP_MAX_REDIR 10 #define ORB_HTTP_CHUNK 4096 #define ORB_TEMP_BUF_SIZE 4096 #define ORB_HTTP_CLOSED 0 #define ORB_HTTP_WRITE 1 #define ORB_HTTP_READ 2 #define ORB_HTTP_NONE 4 typedef struct orbHTTPCtxt { char *protocol; /* the protocol name */ char *hostname; /* the host name */ int port; /* the port */ char *path; /* the path within the URL */ int fd; /* the file descriptor for the socket */ int state; /* WRITE / READ / CLOSED */ char *out; /* buffer sent (zero terminated) */ char *outptr; /* index within the buffer sent */ char *in; /* the receiving buffer */ char *content; /* the start of the content */ char *inptr; /* the next byte to read from network */ char *inrptr; /* the next byte to give back to the client */ int inlen; /* len of the input buffer */ int last; /* return code for last operation */ int returnValue; /* the protocol return value */ char *contentType; /* the MIME type for the input */ char *location; /* the new URL in case of redirect */ } orbHTTPCtxt, *orbHTTPCtxtPtr; static int initialized = 0; static char *proxy = NULL; /* the proxy name if any */ static int proxyPort; /* the proxy port if any */ /** * orbHTTPInit: * * Initialize the HTTP protocol layer. * Currently it just checks for proxy informations */ static void orbHTTPInit (void) { const char *env; if (initialized) return; if (!proxy) { proxyPort = 80; env = g_getenv ("no_proxy"); if (env) goto done; if ((env = g_getenv ("http_proxy")) || (env = g_getenv ("HTTP_PROXY"))) orbHTTPScanProxy (env); } done: initialized = 1; } /** * orbHTTPScanURL: * @ctxt: an HTTP context * @URL: The URL used to initialize the context * * (Re)Initialize an HTTP context by parsing the URL and finding * the protocol host port and path it indicates. */ static void orbHTTPScanURL (orbHTTPCtxtPtr ctxt, const char *URL) { const char *cur = URL; char buf[ORB_TEMP_BUF_SIZE]; int index = 0; int port = 0; if (ctxt->protocol != NULL) { g_free(ctxt->protocol); ctxt->protocol = NULL; } if (ctxt->hostname != NULL) { g_free(ctxt->hostname); ctxt->hostname = NULL; } if (ctxt->path != NULL) { g_free(ctxt->path); ctxt->path = NULL; } if (URL == NULL) return; buf[index] = 0; while (*cur != 0) { if ((cur[0] == ':') && (cur[1] == '/') && (cur[2] == '/')) { buf[index] = 0; ctxt->protocol = g_strdup(buf); index = 0; cur += 3; break; } buf[index++] = *cur++; } if (*cur == 0) return; buf[index] = 0; while (1) { if (cur[0] == ':') { buf[index] = 0; ctxt->hostname = g_strdup(buf); index = 0; cur += 1; while ((*cur >= '0') && (*cur <= '9')) { port *= 10; port += *cur - '0'; cur++; } if (port != 0) ctxt->port = port; while ((cur[0] != '/') && (*cur != 0)) cur++; break; } if ((*cur == '/') || (*cur == 0)) { buf[index] = 0; ctxt->hostname = g_strdup(buf); index = 0; break; } buf[index++] = *cur++; } if (*cur == 0) ctxt->path = g_strdup("/"); else { index = 0; buf[index] = 0; while (*cur != 0) buf[index++] = *cur++; buf[index] = 0; ctxt->path = g_strdup(buf); } } /** * orbHTTPScanProxy: * @URL: The proxy URL used to initialize the proxy context * * (Re)Initialize the HTTP Proxy context by parsing the URL and finding * the protocol host port it indicates. * Should be like http://myproxy/ or http://myproxy:3128/ * A NULL URL cleans up proxy informations. */ static void orbHTTPScanProxy (const char *URL) { const char *cur = URL; char buf[ORB_TEMP_BUF_SIZE]; int index; int port = 0; g_free (proxy); proxy = NULL; if (proxyPort != 0) proxyPort = 0; #ifdef DEBUG_HTTP if (!URL) printf ("Removing HTTP proxy info\n"); else printf ("Using HTTP proxy %s\n", URL); #endif if (!URL) return; index = 0; buf [index] = 0; while (*cur != '\0') { if ((cur[0] == ':') && (cur[1] == '/') && (cur[2] == '/')) { buf[index] = 0; index = 0; cur += 3; break; } buf[index++] = *cur++; } if (*cur == '\0') return; buf[index] = 0; while (1) { if (cur[0] == ':') { buf[index] = 0; proxy = g_strdup(buf); index = 0; cur += 1; while ((*cur >= '0') && (*cur <= '9')) { port *= 10; port += *cur - '0'; cur++; } if (port != 0) proxyPort = port; while ((cur[0] != '/') && (*cur != 0)) cur++; break; } if ((*cur == '/') || (*cur == '\0')) { buf[index] = 0; proxy = g_strdup(buf); index = 0; break; } buf[index++] = *cur++; } } /** * orbHTTPNewCtxt: * @URL: The URL used to initialize the context * * Allocate and initialize a new HTTP context. * * Returns an HTTP context or NULL in case of error. */ static orbHTTPCtxtPtr orbHTTPNewCtxt (const char *URL) { orbHTTPCtxtPtr ret; ret = g_new (orbHTTPCtxt, 1); memset (ret, 0, sizeof(orbHTTPCtxt)); ret->port = 80; ret->returnValue = 0; orbHTTPScanURL (ret, URL); return ret; } /** * orbHTTPFreeCtxt: * @ctxt: an HTTP context * * Frees the context after closing the connection. */ static void orbHTTPFreeCtxt(orbHTTPCtxtPtr ctxt) { if (ctxt == NULL) return; if (ctxt->hostname != NULL) g_free(ctxt->hostname); if (ctxt->protocol != NULL) g_free(ctxt->protocol); if (ctxt->path != NULL) g_free(ctxt->path); if (ctxt->out != NULL) g_free(ctxt->out); if (ctxt->in != NULL) g_free(ctxt->in); if (ctxt->contentType != NULL) g_free(ctxt->contentType); if (ctxt->location != NULL) g_free(ctxt->location); ctxt->state = ORB_HTTP_NONE; if (ctxt->fd >= 0) close(ctxt->fd); ctxt->fd = -1; g_free(ctxt); } /** * orbHTTPSend: * @ctxt: an HTTP context * * Send the input needed to initiate the processing on the server side */ static void orbHTTPSend (orbHTTPCtxtPtr ctxt) { if (ctxt->state & ORB_HTTP_WRITE) ctxt->last = write ( ctxt->fd, ctxt->outptr, strlen (ctxt->outptr)); } /** * orbHTTPRecv: * @ctxt: an HTTP context * * Read information coming from the HTTP connection. * This is a blocking call (but it blocks in select(), not read()). * * Returns the number of byte read or -1 in case of error. */ static int orbHTTPRecv (orbHTTPCtxtPtr ctxt) { fd_set rfd; struct timeval tv; #define ORB_HTTP_DYN_BUFSIZE 65000 while (ctxt->state & ORB_HTTP_READ) { if (ctxt->in == NULL) { ctxt->in = (char *) g_malloc(ORB_HTTP_DYN_BUFSIZE * sizeof(char)); ctxt->inlen = ORB_HTTP_DYN_BUFSIZE; ctxt->inptr = ctxt->content = ctxt->inrptr = ctxt->in; } if (ctxt->inrptr > ctxt->in + ORB_HTTP_CHUNK) { int delta = ctxt->inrptr - ctxt->in; int len = ctxt->inptr - ctxt->inrptr; memmove(ctxt->in, ctxt->inrptr, len); ctxt->inrptr -= delta; ctxt->content -= delta; ctxt->inptr -= delta; } if ((ctxt->in + ctxt->inlen) < (ctxt->inptr + ORB_HTTP_CHUNK)) { int d_inptr = ctxt->inptr - ctxt->in; int d_content = ctxt->content - ctxt->in; int d_inrptr = ctxt->inrptr - ctxt->in; ctxt->inlen *= 2; ctxt->in = (char *) g_realloc(ctxt->in, ctxt->inlen); ctxt->inptr = ctxt->in + d_inptr; ctxt->content = ctxt->in + d_content; ctxt->inrptr = ctxt->in + d_inrptr; } ctxt->last = read(ctxt->fd, ctxt->inptr, ORB_HTTP_CHUNK); if (ctxt->last > 0) { ctxt->inptr += ctxt->last; return(ctxt->last); } if (ctxt->last == 0) { return(0); } #ifdef EWOULDBLOCK if ((ctxt->last == -1) && (errno != EWOULDBLOCK)) { return(0); } #endif tv.tv_sec=10; tv.tv_usec=0; FD_ZERO(&rfd); FD_SET(ctxt->fd, &rfd); if(select(ctxt->fd+1, &rfd, NULL, NULL, &tv)<1) return(0); } return(0); } /** * orbHTTPReadLine: * @ctxt: an HTTP context * * Read one line in the HTTP server output, usually for extracting * the HTTP protocol informations from the answer header. * * Returns a newly allocated string with a copy of the line, or NULL * which indicate the end of the input. */ static char * orbHTTPReadLine(orbHTTPCtxtPtr ctxt) { char buf[ORB_TEMP_BUF_SIZE]; char *bp=buf; while(bp - buf < (ORB_TEMP_BUF_SIZE-1)) { if(ctxt->inrptr == ctxt->inptr) { if (orbHTTPRecv(ctxt) == 0) { if (bp == buf) return(NULL); else *bp = 0; return(g_strdup(buf)); } } *bp = *ctxt->inrptr++; if(*bp == '\n') { *bp = 0; return(g_strdup(buf)); } if(*bp != '\r') bp++; } buf[ORB_TEMP_BUF_SIZE-1] = 0; return(g_strdup(buf)); } /** * orbHTTPScanAnswer: * @ctxt: an HTTP context * @line: an HTTP header line * * Try to extract useful informations from the server answer. * We currently parse and process: * - The HTTP revision/ return code * - The Content-Type * - The Location for redirrect processing. * * Returns -1 in case of failure, the file descriptor number otherwise */ static void orbHTTPScanAnswer(orbHTTPCtxtPtr ctxt, const char *line) { const char *cur = line; if (line == NULL) return; if (!strncmp(line, "HTTP/", 5)) { int version = 0; int ret = 0; cur += 5; while ((*cur >= '0') && (*cur <= '9')) { version *= 10; version += *cur - '0'; cur++; } if (*cur == '.') { cur++; if ((*cur >= '0') && (*cur <= '9')) { version *= 10; version += *cur - '0'; cur++; } while ((*cur >= '0') && (*cur <= '9')) cur++; } else version *= 10; if ((*cur != ' ') && (*cur != '\t')) return; while ((*cur == ' ') || (*cur == '\t')) cur++; if ((*cur < '0') || (*cur > '9')) return; while ((*cur >= '0') && (*cur <= '9')) { ret *= 10; ret += *cur - '0'; cur++; } if ((*cur != 0) && (*cur != ' ') && (*cur != '\t')) return; ctxt->returnValue = ret; } else if (!g_ascii_strncasecmp(line, "content-type:", 13) || !g_ascii_strncasecmp(line, "contenttype:", 12)) { cur = strchr(cur, ':') + 1; if (ctxt->contentType != NULL) return; while ((*cur == ' ') || (*cur == '\t')) cur++; ctxt->contentType = g_strdup(cur); } else if (!g_ascii_strncasecmp(line, "Location:", 9)) { cur += 9; while ((*cur == ' ') || (*cur == '\t')) cur++; if (ctxt->location != NULL) g_free(ctxt->location); ctxt->location = g_strdup(cur); } } /** * orbHTTPConnectAttempt: * @ia: an internet adress structure * @port: the port number * * Attempt a connection to the given IP:port endpoint. It forces * non-blocking semantic on the socket, and allow 60 seconds for * the host to answer. * * Returns -1 in case of failure, the file descriptor number otherwise */ static int orbHTTPConnectAttempt(struct in_addr ia, int port) { int s=socket(PF_INET, SOCK_STREAM, IPPROTO_TCP); struct sockaddr_in sin; fd_set wfd; struct timeval tv; int status; if(s==-1) { #ifdef DEBUG_HTTP perror("socket"); #endif return(-1); } #ifdef _WINSOCKAPI_ { int rv = 0 ; u_long one = 1; status = ioctlsocket(s, FIONBIO, &one) == SOCKET_ERROR ? -1 : 0; } #else /* _WINSOCKAPI_ */ #if defined(VMS) { int enable = 1; status = IOCTL(s, FIONBIO, &enable); } #else /* VMS */ if((status = fcntl(s, F_GETFL, 0)) != -1) { #ifdef O_NONBLOCK status |= O_NONBLOCK; #else /* O_NONBLOCK */ #ifdef F_NDELAY status |= F_NDELAY; #endif /* F_NDELAY */ #endif /* !O_NONBLOCK */ status = fcntl(s, F_SETFL, status); } if(status < 0) { #ifdef DEBUG_HTTP perror("nonblocking"); #endif close(s); return(-1); } #endif /* !VMS */ #endif /* !_WINSOCKAPI_ */ sin.sin_family = AF_INET; sin.sin_addr = ia; sin.sin_port = htons(port); if((connect(s, (struct sockaddr *)&sin, sizeof(sin))==-1) && (errno != EINPROGRESS)) { perror("connect"); close(s); return(-1); } tv.tv_sec = 60; /* We use 60 second timeouts for now */ tv.tv_usec = 0; FD_ZERO(&wfd); FD_SET(s, &wfd); switch(select(s+1, NULL, &wfd, NULL, &tv)) { case 0: /* Time out */ close(s); return(-1); case -1: /* Ermm.. ?? */ #ifdef DEBUG_HTTP perror("select"); #endif close(s); return(-1); } if ( FD_ISSET(s, &wfd) ) { unsigned int len; /* was socklen_t barfed on some systems :-( */ len = sizeof(status); if (getsockopt(s, SOL_SOCKET, SO_ERROR, &status, &len) < 0 ) { /* Solaris error code */ return (-1); } if ( status ) { close (s); errno = status; return (-1); } } else { /* pbm */ return (-1); } return(s); } /** * orbHTTPConnectHost: * @host: the host name * @port: the port number * * Attempt a connection to the given host:port endpoint. It tries * the multiple IP provided by the DNS if available. * * Returns -1 in case of failure, the file descriptor number otherwise */ static int orbHTTPConnectHost(const char *host, int port) { struct hostent *h; int i; int s; h=gethostbyname(host); if(h==NULL) { #ifdef DEBUG_HTTP fprintf(stderr,"unable to resolve '%s'.\n", host); #endif return(-1); } for(i=0; h->h_addr_list[i]; i++) { struct in_addr ia; memcpy(&ia, h->h_addr_list[i],4); s = orbHTTPConnectAttempt(ia, port); if(s != -1) return(s); } #ifdef DEBUG_HTTP fprintf(stderr, "unable to connect to '%s'.\n", host); #endif return(-1); } /** * orbHTTPOpen: * @URL: The URL to load * @contentType: if available the Content-Type information will be * returned at that location * * This function try to open a connection to the indicated resource * via HTTP GET. * * Returns NULL in case of failure, otherwise a request handler. * The contentType, if provided must be freed by the caller */ static void* orbHTTPOpen(const char *URL) { orbHTTPCtxtPtr ctxt; char buf[ORB_TEMP_BUF_SIZE]; int ret; char *p; int head; int nbRedirects = 0; char *redirURL = NULL; orbHTTPInit(); retry: if (redirURL == NULL) ctxt = orbHTTPNewCtxt(URL); else if(CHECK_URI(redirURL)) { ctxt = orbHTTPNewCtxt(""); ctxt->location = redirURL; return ctxt; } else { ctxt = orbHTTPNewCtxt(redirURL); g_free(redirURL); redirURL = NULL; } if ((ctxt->protocol == NULL) || (strcmp(ctxt->protocol, "http"))) { orbHTTPFreeCtxt(ctxt); if (redirURL != NULL) g_free(redirURL); return(NULL); } if (ctxt->hostname == NULL) { orbHTTPFreeCtxt(ctxt); return(NULL); } if (proxy) ret = orbHTTPConnectHost(proxy, proxyPort); else ret = orbHTTPConnectHost(ctxt->hostname, ctxt->port); if (ret < 0) { orbHTTPFreeCtxt(ctxt); return(NULL); } ctxt->fd = ret; if (proxy) { if (ctxt->port != 80) g_snprintf(buf, sizeof(buf), "GET http://%s:%d%s HTTP/1.0\r\nHost: %s\r\n\r\n", ctxt->hostname, ctxt->port, ctxt->path, ctxt->hostname); else g_snprintf(buf, sizeof(buf),"GET http://%s%s HTTP/1.0\r\nHost: %s\r\n\r\n", ctxt->hostname, ctxt->path, ctxt->hostname); #ifdef DEBUG_HTTP if (ctxt->port != 80) printf("-> Proxy GET http://%s:%d%s HTTP/1.0\n-> Host: %s\n\n", ctxt->hostname, ctxt->port, ctxt->path, ctxt->hostname); else printf("-> Proxy GET http://%s%s HTTP/1.0\n-> Host: %s\n\n", ctxt->hostname, ctxt->path, ctxt->hostname); #endif } else { g_snprintf(buf, sizeof(buf),"GET %s HTTP/1.0\r\nHost: %s\r\n\r\n", ctxt->path, ctxt->hostname); #ifdef DEBUG_HTTP printf("-> GET %s HTTP/1.0\n-> Host: %s\n\n", ctxt->path, ctxt->hostname); #endif } ctxt->outptr = ctxt->out = g_strdup(buf); ctxt->state = ORB_HTTP_WRITE; orbHTTPSend(ctxt); ctxt->state = ORB_HTTP_READ; head = 1; while ((p = orbHTTPReadLine(ctxt)) != NULL) { if (head && (*p == 0)) { head = 0; ctxt->content = ctxt->inrptr; g_free(p); break; } orbHTTPScanAnswer(ctxt, p); #ifdef DEBUG_HTTP if (p != NULL) printf("<- %s\n", p); #endif if (p != NULL) g_free(p); } if ((ctxt->location != NULL) && (ctxt->returnValue >= 300) && (ctxt->returnValue < 400)) { #ifdef DEBUG_HTTP printf("\nRedirect to: %s\n", ctxt->location); #endif while (orbHTTPRecv(ctxt)) ; if (nbRedirects < ORB_HTTP_MAX_REDIR) { nbRedirects++; redirURL = g_strdup(ctxt->location); orbHTTPFreeCtxt(ctxt); goto retry; } orbHTTPFreeCtxt(ctxt); #ifdef DEBUG_HTTP printf("Too many redirrects, aborting ...\n"); #endif return(NULL); } #ifdef DEBUG_HTTP if (ctxt->contentType != NULL) printf("\nCode %d, content-type '%s'\n\n", ctxt->returnValue, ctxt->contentType); else printf("\nCode %d, no content-type\n\n", ctxt->returnValue); #endif return((void *) ctxt); } /** * orbHTTPRead: * @ctx: the HTTP context * @dest: a buffer * @len: the buffer length * * This function tries to read @len bytes from the existing HTTP connection * and saves them in @dest. This is a blocking call. * * Returns the number of byte read. 0 is an indication of an end of connection. * -1 indicates a parameter error. */ static int orbHTTPRead(void *ctx, void *dest, int len) { orbHTTPCtxtPtr ctxt = (orbHTTPCtxtPtr) ctx; if (ctx == NULL) return(-1); if (dest == NULL) return(-1); if (len <= 0) return(0); while (ctxt->inptr - ctxt->inrptr < len) { if (orbHTTPRecv(ctxt) == 0) break; } if (ctxt->inptr - ctxt->inrptr < len) len = ctxt->inptr - ctxt->inrptr; memcpy(dest, ctxt->inrptr, len); ctxt->inrptr += len; return(len); } /** * orbHTTPClose: * @ctx: the HTTP context * * This function closes an HTTP context, it ends up the connection and * free all data related to it. */ static void orbHTTPClose(void *ctx) { orbHTTPCtxtPtr ctxt = (orbHTTPCtxtPtr) ctx; if (ctx == NULL) return; orbHTTPFreeCtxt(ctxt); } #ifndef DEBUG_HTTP #define DEBUG_HTTP #endif char * orb_http_resolve(const char *URL) { orbHTTPCtxtPtr ctxt; char buf[ORB_TEMP_BUF_SIZE]; int len_read, len; char *content_type, *retval = NULL; content_type = NULL; ctxt = orbHTTPOpen(URL); if (ctxt == NULL) return NULL; if(ctxt->location && CHECK_URI(ctxt->location)) /* Was a redirect to an IOR */ retval = g_strdup(ctxt->location); else { len_read = 0; do { len = orbHTTPRead(ctxt, buf + len_read, sizeof(buf) - len_read); len_read += len; } while(len > 0); len_read += len; buf[len_read] = '\0'; g_strstrip(buf); if(CHECK_URI(buf)) retval = g_strdup(buf); } orbHTTPClose(ctxt); return retval; } ORBit2-2.14.19/src/orb/orb-core/corba-defs.idl0000644000175000001440000000101411334247617015432 00000000000000#include "orb.idl" module CORBA { /* Vendor Minor Code IDs. These tags are same as used for VPVIDs. */ const unsigned long VMCID_OMG = OMGVMCID; const unsigned long VMCID_ORBit0 = 0x4f540000; /* "OT\x00\x00" */ /* Vendor PolicyType ValueSet ID */ const unsigned long VPVID_OMG = OMGVMCID; const unsigned long VPVID_ORBit0 = VMCID_ORBit0; struct SystemException { unsigned long minor; completion_status completed; }; }; #pragma pidl push #include "pseudo_orb.idl" #pragma pidl pop ORBit2-2.14.19/src/orb/GIOP/0000755000175000001440000000000011450334027012034 500000000000000ORBit2-2.14.19/src/orb/GIOP/Makefile.am0000644000175000001440000000055711334247617014030 00000000000000INCLUDES = \ -I$(top_srcdir)/include \ -I$(top_builddir)/include \ -DORBIT2_INTERNAL_API \ $(WARN_CFLAGS) \ $(DISABLE_DEPRECATED_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_CFLAGS) noinst_LTLIBRARIES=libGIOP.la libGIOP_la_SOURCES=giop-connection.c \ giop-server.c \ giop.c \ giop-debug.h \ giop-private.h \ giop-send-buffer.c \ giop-recv-buffer.c ORBit2-2.14.19/src/orb/GIOP/Makefile.in0000644000175000001440000003777211450333733014044 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/orb/GIOP DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libGIOP_la_LIBADD = am_libGIOP_la_OBJECTS = giop-connection.lo giop-server.lo giop.lo \ giop-send-buffer.lo giop-recv-buffer.lo libGIOP_la_OBJECTS = $(am_libGIOP_la_OBJECTS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libGIOP_la_SOURCES) DIST_SOURCES = $(libGIOP_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = \ -I$(top_srcdir)/include \ -I$(top_builddir)/include \ -DORBIT2_INTERNAL_API \ $(WARN_CFLAGS) \ $(DISABLE_DEPRECATED_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_CFLAGS) noinst_LTLIBRARIES = libGIOP.la libGIOP_la_SOURCES = giop-connection.c \ giop-server.c \ giop.c \ giop-debug.h \ giop-private.h \ giop-send-buffer.c \ giop-recv-buffer.c all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/orb/GIOP/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/orb/GIOP/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libGIOP.la: $(libGIOP_la_OBJECTS) $(libGIOP_la_DEPENDENCIES) $(LINK) $(libGIOP_la_OBJECTS) $(libGIOP_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/giop-connection.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/giop-recv-buffer.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/giop-send-buffer.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/giop-server.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/giop.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/src/orb/GIOP/giop-private.h0000644000175000001440000000037111334247617014545 00000000000000#ifndef GIOP_PRIVATE_H #define GIOP_PRIVATE_H 1 #include "config.h" #include #include #include void giop_send_buffer_init (gboolean wipe); void giop_recv_buffer_init (void); #endif ORBit2-2.14.19/src/orb/GIOP/giop.c0000644000175000001440000004361511334247617013100 00000000000000#include #include #include #ifdef HAVE_UNISTD_H # include #endif #include #include #include #include #ifdef HAVE_UTIME_H # include #endif #include "giop-private.h" #include "giop-debug.h" #include #include /* FIXME: need to clean this up at shutdown */ static int corba_wakeup_fds[2]; #define WAKEUP_POLL corba_wakeup_fds [0] #define WAKEUP_WRITE corba_wakeup_fds [1] static GSource *giop_main_source = NULL; static GIOPThread *giop_main_thread = NULL; /* Incoming dispatch thread pool */ static GThreadPool *giop_thread_pool = NULL; static GMutex *giop_pool_hash_lock = NULL; static GHashTable *giop_pool_hash = NULL; const char giop_version_ids [GIOP_NUM_VERSIONS][2] = { {1,0}, {1,1}, {1,2} }; #define S_PRINT(a) g_warning a static gboolean test_safe_socket_dir (const char *dirname) { struct stat statbuf; if (g_stat (dirname, &statbuf) != 0) { S_PRINT (("Can not stat %s\n", dirname)); return FALSE; } #ifndef G_PLATFORM_WIN32 if (getuid() != 0 && statbuf.st_uid != getuid ()) { S_PRINT (("Owner of %s is not the current user\n", dirname)); return FALSE; } if ((statbuf.st_mode & (S_IRWXG|S_IRWXO)) || !S_ISDIR (statbuf.st_mode)) { S_PRINT (("Wrong permissions for %s\n", dirname)); return FALSE; } #endif return TRUE; } /* * In the absence of being told which directory to * use, we have to scan /tmp/orbit-$USER-* to work out * which directory to use. */ static char * scan_socket_dir (const char *dir, const char *prefix) { int prefix_len; int len; char *cur_dir = NULL; GDir *dirh; const char *dent; char *prefix_with_hyphen; g_return_val_if_fail (dir != NULL, NULL); g_return_val_if_fail (prefix != NULL, NULL); dirh = g_dir_open (dir, 0, NULL); if (!dirh) return NULL; prefix_with_hyphen = g_strdup_printf ("%s-", prefix); prefix_len = strlen (prefix_with_hyphen); while ((dent = g_dir_read_name (dirh))) { char *name; len = (strlen (dent) > strlen (prefix)) ? strlen (dent) : strlen (prefix); if (strncmp (dent, prefix, len) && strncmp (dent, prefix_with_hyphen, prefix_len)) continue; name = g_build_filename (dir, dent, NULL); /* Check it's credentials */ if (!test_safe_socket_dir (name)) { dprintf (GIOP, "DOS attack with '%s'\n", name); g_free (name); continue; } /* Sort into some repeatable order */ if (!cur_dir || strcmp (cur_dir, name) > 0) { g_free (cur_dir); cur_dir = name; } else g_free (name); } g_dir_close (dirh); g_free (prefix_with_hyphen); return cur_dir; } static void giop_tmpdir_init (void) { const char *tmp_root; char *dirname; char *safe_dir = NULL; long iteration = 0; const gchar *env_dir; static gboolean inited = FALSE; if (inited) return; inited = TRUE; #ifndef G_OS_WIN32 env_dir = g_getenv("ORBIT_SOCKETDIR"); if (env_dir && test_safe_socket_dir (env_dir)) { link_set_tmpdir (env_dir); return; } #endif tmp_root = g_get_tmp_dir (); dirname = g_strdup_printf ("orbit-%s", g_get_user_name ()); while (!safe_dir) { char *newname; safe_dir = scan_socket_dir (tmp_root, dirname); if (safe_dir) { dprintf (GIOP, "Have safe dir '%s'\n", safe_dir); link_set_tmpdir (safe_dir); break; } if (iteration == 0) newname = g_build_filename (tmp_root, dirname, NULL); else { struct { guint32 a; guint32 b; } id; ORBit_genuid_buffer ((guint8 *)&id, sizeof (id), ORBIT_GENUID_OBJECT_ID); newname = g_strdup_printf ( "%s" G_DIR_SEPARATOR_S "%s-%4x", tmp_root, dirname, id.b); } if (g_mkdir (newname, 0700) < 0) { switch (errno) { case EACCES: g_error ("I can't write to '%s', ORB init failed", newname); break; case ENAMETOOLONG: g_error ("Name '%s' too long your system is broken", newname); break; case ENOMEM: #ifdef ELOOP case ELOOP: #endif case ENOSPC: case ENOTDIR: case ENOENT: g_error ("Resource problem creating '%s'", newname); break; default: /* carry on going */ break; } } #if defined (HAVE_UTIME_H) && !defined (G_OS_WIN32) /* This seems pretty useless, forget it on Win32 */ { /* Hide some information ( apparently ) */ struct utimbuf utb; memset (&utb, 0, sizeof (utb)); utime (newname, &utb); } #endif /* Possible race - so we re-scan. */ iteration++; g_free (newname); if (iteration == 1000) g_error ("Cannot find a safe socket path in '%s'", tmp_root); } #ifndef G_OS_WIN32 g_setenv ("ORBIT_SOCKETDIR", safe_dir, TRUE); #endif g_free (safe_dir); g_free (dirname); } gboolean giop_thread_safe (void) { return link_thread_safe (); } gboolean giop_thread_io (void) { return link_thread_io (); } void giop_dump (FILE *out, guint8 const *ptr, guint32 len, guint32 offset) { guint32 lp,lp2; guint32 off; for (lp = 0;lp<(len+15)/16;lp++) { fprintf (out, "0x%.4x: ", offset + lp * 16); for (lp2=0;lp2<16;lp2++) { fprintf (out, "%s", lp2%4?" ":" "); off = lp2 + (lp<<4); off'!'&&ptr[off]<127?ptr[off]:'.'):'*'); } fprintf (out, "\n"); } fprintf (out, " --- \n"); } void giop_dump_send (GIOPSendBuffer *send_buffer) { gulong nvecs; struct iovec *curvec; guint32 offset = 0; g_return_if_fail (send_buffer != NULL); nvecs = send_buffer->num_used; curvec = (struct iovec *) send_buffer->iovecs; fprintf (stderr, "Outgoing IIOP data:\n"); while (nvecs-- > 0) { giop_dump (stderr, curvec->iov_base, curvec->iov_len, offset); offset += curvec->iov_len; curvec++; } } void giop_dump_recv (GIOPRecvBuffer *recv_buffer) { const char *status; g_return_if_fail (recv_buffer != NULL); if (recv_buffer->connection && LINK_CONNECTION (recv_buffer->connection)->status == LINK_CONNECTED) status = "connected"; else status = "not connected"; fprintf (stderr, "Incoming IIOP data: %s\n", status); giop_dump (stderr, (guint8 *)recv_buffer, sizeof (GIOPMsgHeader), 0); giop_dump (stderr, recv_buffer->message_body + 12, recv_buffer->msg.header.message_size, 12); } static GIOPThread * giop_thread_new (GMainContext *context) { GIOPThread *tdata = g_new0 (GIOPThread, 1); tdata->lock = g_mutex_new (); tdata->incoming = g_cond_new (); tdata->wake_context = context; tdata->keys = NULL; tdata->async_ents = NULL; tdata->request_queue = NULL; if (giop_main_thread) tdata->request_handler = giop_main_thread->request_handler; return tdata; } static void giop_thread_key_add_T (GIOPThread *tdata, gpointer key) { /* We don't allow a key to be reused */ gpointer reused = g_hash_table_lookup (giop_pool_hash, key); g_assert (!reused); tdata->keys = g_list_prepend (tdata->keys, key); g_hash_table_insert (giop_pool_hash, key, tdata); } static void giop_thread_key_release_T (gpointer key) { g_hash_table_remove (giop_pool_hash, key); } static void giop_thread_free (GIOPThread *tdata) { GList *l; if (tdata == giop_main_thread) giop_main_thread = NULL; if (giop_thread_safe ()) { g_mutex_lock (giop_pool_hash_lock); for (l = tdata->keys; l != NULL; l = l->next) { giop_thread_key_release_T (l->data); } g_mutex_unlock (giop_pool_hash_lock); } g_list_free (tdata->keys); tdata->keys = NULL; g_mutex_free (tdata->lock); tdata->lock = NULL; g_cond_free (tdata->incoming); tdata->incoming = NULL; #ifdef G_ENABLE_DEBUG if (tdata->async_ents) g_warning ("Leaked async ents"); if (tdata->request_queue) g_warning ("Leaked request queue"); #endif if (tdata->invoke_policies) { g_queue_free (tdata->invoke_policies); tdata->invoke_policies = NULL; } g_free (tdata); } static GPrivate *giop_tdata_private = NULL; GIOPThread * giop_thread_self (void) { GIOPThread *tdata; if (!giop_thread_safe ()) return NULL; if (!(tdata = g_private_get (giop_tdata_private))) { tdata = giop_thread_new (NULL); g_private_set (giop_tdata_private, tdata); } return tdata; } void giop_thread_key_add (GIOPThread *tdata, gpointer key) { g_mutex_lock (giop_pool_hash_lock); LINK_MUTEX_LOCK (tdata->lock); giop_thread_key_add_T (tdata, key); LINK_MUTEX_UNLOCK (tdata->lock); g_mutex_unlock (giop_pool_hash_lock); } void giop_thread_key_release (gpointer key) { GIOPThread *tdata; if (giop_thread_safe ()) { g_mutex_lock (giop_pool_hash_lock); tdata = g_hash_table_lookup (giop_pool_hash, key); if (tdata != NULL) { tdata->keys = g_list_remove (tdata->keys, key); giop_thread_key_release_T (key); } g_mutex_unlock (giop_pool_hash_lock); } } void giop_thread_request_push_key (gpointer key, gpointer *poa_object, gpointer *recv_buffer) { GIOPThread *tdata, *new_tdata = NULL; g_mutex_lock (giop_pool_hash_lock); if (!(tdata = g_hash_table_lookup (giop_pool_hash, key))) { new_tdata = giop_thread_new (NULL); tdata = new_tdata; if (key) giop_thread_key_add_T (tdata, key); dprintf (GIOP, "Create new thread %p for op\n", tdata); } else dprintf (GIOP, "Re-use thread %p for op\n", tdata); giop_thread_request_push (tdata, poa_object, recv_buffer); if (new_tdata) g_thread_pool_push (giop_thread_pool, tdata, NULL); g_mutex_unlock (giop_pool_hash_lock); } gboolean giop_thread_same_key (gpointer key, gboolean no_key_default) { gboolean same; GIOPThread *tdata; g_mutex_lock (giop_pool_hash_lock); if (!(tdata = g_hash_table_lookup (giop_pool_hash, key))) same = no_key_default; else same = tdata == giop_thread_self (); g_mutex_unlock (giop_pool_hash_lock); return same; } static gboolean giop_mainloop_handle_input (GIOChannel *source, GIOCondition condition, gpointer data) { char c; GIOPThread *tdata = giop_thread_self (); #ifdef HAVE_WINSOCK2_H recv (WAKEUP_POLL, &c, sizeof (c), 0); #else read (WAKEUP_POLL, &c, sizeof (c)); #endif LINK_MUTEX_LOCK (tdata->lock); while (!giop_thread_queue_empty_T (tdata)) { LINK_MUTEX_UNLOCK (tdata->lock); giop_thread_queue_process (tdata); LINK_MUTEX_LOCK (tdata->lock); } LINK_MUTEX_UNLOCK (tdata->lock); return TRUE; } static void giop_request_handler_thread (gpointer data, gpointer user_data) { gboolean done; GList *l; GIOPThread *tdata = data; g_private_set (giop_tdata_private, tdata); dprintf (GIOP, "Thread %p woken to handle request\n", tdata); do { giop_thread_queue_process (tdata); g_mutex_lock (giop_pool_hash_lock); LINK_MUTEX_LOCK (tdata->lock); if ((done = giop_thread_queue_empty_T (tdata))) { for (l = tdata->keys; l != NULL; l = l->next) giop_thread_key_release_T (l->data); g_list_free (tdata->keys); tdata->keys = NULL; } LINK_MUTEX_UNLOCK (tdata->lock); g_mutex_unlock (giop_pool_hash_lock); } while (!done); dprintf (GIOP, "Thread %p returning to pool\n", tdata); giop_thread_free (tdata); g_private_set (giop_tdata_private, NULL); } const char * ORBit_get_safe_tmp (void) { giop_tmpdir_init (); return link_get_tmpdir (); } void giop_init (gboolean thread_safe, gboolean blank_wire_data) { link_init (thread_safe); if (giop_thread_safe ()) { GIOPThread *tdata; /* We need a destructor to clean up if giopthreads are used * outside of ORBit controlled threads */ giop_tdata_private = g_private_new ((GDestroyNotify)giop_thread_free); giop_main_thread = tdata = giop_thread_new ( g_main_context_default ()); /* main thread */ if (link_pipe (corba_wakeup_fds) < 0) /* cf. g_main_context_init_pipe */ g_error ("Can't create CORBA main-thread wakeup pipe"); #ifdef HAVE_WINSOCK2_H { u_long yes = 1; ioctlsocket (WAKEUP_WRITE, FIONBIO, &yes); } #else fcntl (WAKEUP_WRITE, F_SETFL, O_NONBLOCK); #endif giop_main_source = link_source_create_watch ( g_main_context_default (), WAKEUP_POLL, NULL, (G_IO_IN | G_IO_PRI), giop_mainloop_handle_input, NULL); g_private_set (giop_tdata_private, tdata); /* Setup thread pool for incoming requests */ giop_thread_pool = g_thread_pool_new (giop_request_handler_thread, NULL, -1, FALSE, NULL); giop_pool_hash_lock = link_mutex_new (); giop_pool_hash = g_hash_table_new (NULL, NULL); } giop_tmpdir_init (); giop_send_buffer_init (blank_wire_data); giop_recv_buffer_init (); } static void wakeup_mainloop (void) { char c = 'A'; /* magic */ int res; #ifdef HAVE_WINSOCK2_H if ((res = send (WAKEUP_WRITE, &c, sizeof (c), 0)) == SOCKET_ERROR) { res = -1; link_map_winsock_error_to_errno (); } #else while ((res = write (WAKEUP_WRITE, &c, sizeof (c))) < 0 && errno == EINTR ); #endif if (res < 0 && errno == EAGAIN) return; if (res < 0) g_warning ("Failed to write to GIOP mainloop wakeup " "pipe %d 0x%x(%d) (%d)", res, errno, errno, WAKEUP_WRITE); } void giop_incoming_signal_T (GIOPThread *tdata, GIOPMsgType t) { g_cond_signal (tdata->incoming); if (t != GIOP_REPLY && tdata->wake_context) wakeup_mainloop (); } void giop_invoke_async (GIOPMessageQueueEntry *ent) { GIOPRecvBuffer *buf = ent->buffer; dprintf (GIOP, "About to invoke %p:%p (%d) (%p:%p)\n", ent, ent->async_cb, giop_thread_io(), ent->src_thread, giop_main_thread); if (!giop_thread_io ()) ent->async_cb (ent); else if (ent->src_thread == giop_thread_self ()) ent->async_cb (ent); else { GIOPThread *tdata = ent->src_thread; g_mutex_lock (tdata->lock); /* ent_lock */ buf = NULL; tdata->async_ents = g_list_prepend (tdata->async_ents, ent); giop_incoming_signal_T (tdata, GIOP_REQUEST); g_mutex_unlock (tdata->lock); /* ent_unlock */ } /* NB. At the tail end of async_cb 'Ent' is invalid / freed */ giop_recv_buffer_unuse (buf); } static GMainLoop *giop_main_loop = NULL; void giop_main_run (void) { if (giop_thread_io ()) { g_assert (giop_main_loop == NULL); giop_main_loop = g_main_loop_new (NULL, TRUE); g_main_loop_run (giop_main_loop); g_main_loop_unref (giop_main_loop); giop_main_loop = NULL; } else link_main_loop_run (); } void giop_shutdown (void) { link_connections_close (); if (link_loop) /* break into the linc loop */ g_main_loop_quit (link_loop); if (giop_main_loop) g_main_loop_quit (giop_main_loop); if (giop_thread_safe ()) { if (giop_main_source) { g_source_destroy (giop_main_source); g_source_unref (giop_main_source); giop_main_source = NULL; } if (WAKEUP_WRITE >= 0) { #ifdef HAVE_WINSOCK2_H closesocket (WAKEUP_WRITE); closesocket (WAKEUP_POLL); #else close (WAKEUP_WRITE); close (WAKEUP_POLL); #endif WAKEUP_WRITE = -1; WAKEUP_POLL = -1; } } } typedef struct { gpointer poa_object; gpointer recv_buffer; } GIOPQueueEntry; /* this sucks, we need a wider scale re-factor */ #include "../orb-core/orbit-policy.h" #include "orbit/poa/poa-types.h" static GList * first_valid_request (GIOPThread *tdata, gboolean *no_policy) { GList *l; ORBitPolicy *policy; if (!tdata->invoke_policies || !tdata->invoke_policies->head) { *no_policy = TRUE; return NULL; } *no_policy = FALSE; policy = g_queue_peek_head (tdata->invoke_policies); for (l = tdata->request_queue; l; l = l->next) { int i; GIOPQueueEntry *qe = l->data; ORBit_POAObject pobj = qe->poa_object; for (i = 0; i < policy->allowed_poas->len; i++) if (g_ptr_array_index (policy->allowed_poas, i) == pobj->poa) return l; } return NULL; } gboolean giop_thread_queue_empty_T (GIOPThread *tdata) { gboolean no_policy; if (first_valid_request (tdata, &no_policy)) return FALSE; else if (no_policy) return (!tdata->request_queue && !tdata->async_ents); else return TRUE; } static gpointer giop_list_pop (GList **list) { gpointer p; if (!*list) return NULL; p = (*list)->data; *list = g_list_delete_link (*list, *list); return p; } void giop_thread_queue_process (GIOPThread *tdata) { GIOPMessageQueueEntry *ent; GIOPQueueEntry *qe = NULL; GList *request; gboolean no_policy; if (!tdata) tdata = giop_thread_self (); request = first_valid_request (tdata, &no_policy); dprintf (MESSAGES, "handle queued input [%p], (%d)\n", request, no_policy); LINK_MUTEX_LOCK (tdata->lock); /* ent_lock */ if (no_policy) ent = giop_list_pop (&tdata->async_ents); else ent = NULL; if (!ent) { if (no_policy) qe = giop_list_pop (&tdata->request_queue); else if (request) { qe = request->data; tdata->request_queue = g_list_delete_link (tdata->request_queue, request); } } dprintf (MESSAGES, "Queue pop %p, %p, %d", ent, qe, no_policy); LINK_MUTEX_UNLOCK (tdata->lock); /* ent_unlock */ if (ent) giop_invoke_async (ent); if (qe) { tdata->request_handler (qe->poa_object, qe->recv_buffer, NULL); g_free (qe); } } void giop_thread_queue_tail_wakeup (GIOPThread *tdata) { if (!tdata) return; /* FIXME: no I/O thread */ LINK_MUTEX_LOCK (tdata->lock); /* ent_lock */ if ((tdata->request_queue || tdata->async_ents) && tdata->wake_context) wakeup_mainloop (); LINK_MUTEX_UNLOCK (tdata->lock); /* ent_unlock */ } void giop_thread_request_push (GIOPThread *tdata, gpointer *poa_object, gpointer *recv_buffer) { GIOPQueueEntry *qe; g_return_if_fail (tdata != NULL); g_return_if_fail (poa_object != NULL); g_return_if_fail (recv_buffer != NULL); qe = g_new (GIOPQueueEntry, 1); qe->poa_object = *poa_object; qe->recv_buffer = *recv_buffer; *poa_object = NULL; *recv_buffer = NULL; LINK_MUTEX_LOCK (tdata->lock); tdata->request_queue = g_list_append (tdata->request_queue, qe); giop_incoming_signal_T (tdata, GIOP_REQUEST); LINK_MUTEX_UNLOCK (tdata->lock); } GIOPThread * giop_thread_get_main (void) { return giop_main_thread; } void giop_thread_set_main_handler (gpointer request_handler) { if (!giop_thread_safe ()) return; g_assert (giop_main_thread != NULL); giop_main_thread->request_handler = request_handler; } void giop_thread_new_check (GIOPThread *opt_self) { if (!link_thread_safe ()) return; if (!opt_self) opt_self = giop_thread_self (); if (opt_self && opt_self != giop_thread_get_main () && !link_thread_io ()) link_set_io_thread (TRUE); } ORBit2-2.14.19/src/orb/GIOP/giop-server.c0000644000175000001440000000406411334247617014377 00000000000000#include "config.h" #include #include #ifdef G_ENABLE_DEBUG void (*giop_debug_hook_new_connection) (GIOPServer *server, GIOPConnection *new_cnx) = NULL; #endif GIOPServer * giop_server_new (GIOPVersion giop_version, const char *proto_name, const char *local_host_info, const char *local_serv_info, LinkConnectionOptions create_options, gpointer create_orb_data) { GIOPServer *server = (GIOPServer *) g_object_new (GIOP_TYPE_SERVER, NULL); create_options |= LINK_CONNECTION_NONBLOCKING; server->giop_version = giop_version; if (!link_server_setup (LINK_SERVER (server), proto_name, local_host_info, local_serv_info, create_options)) { g_object_unref (G_OBJECT (server)); return NULL; } else server->orb_data = create_orb_data; return server; } static LinkConnection * giop_server_handle_create_connection (LinkServer *server) { GIOPConnection *retval; GIOPServer *gserver = (GIOPServer *) server; retval = g_object_new (giop_connection_get_type (), "orb", gserver->orb_data, "version", (guint) gserver->giop_version, NULL); #ifdef G_ENABLE_DEBUG if (giop_debug_hook_new_connection) giop_debug_hook_new_connection (gserver, retval); #endif return (LinkConnection *)retval; } static void giop_server_class_init (GIOPServerClass *klass) { klass->parent_class.create_connection = giop_server_handle_create_connection; } GType giop_server_get_type(void) { static GType object_type = 0; if (!object_type) { static const GTypeInfo object_info = { sizeof (GIOPServerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) giop_server_class_init, NULL, /* class_finalize */ NULL, /* class_data */ sizeof (GIOPServer), 0, /* n_preallocs */ (GInstanceInitFunc) NULL }; object_type = g_type_register_static ( link_server_get_type (), "GIOPServer", &object_info, 0); } return object_type; } ORBit2-2.14.19/src/orb/GIOP/giop-debug.h0000644000175000001440000000251711334247617014165 00000000000000#ifndef __GIOP_DEBUG__ #define __GIOP_DEBUG__ #include "../orb-core/orbit-debug.h" #ifndef G_ENABLE_DEBUG #define do_giop_dump(fh, ptr, len, off) #define do_giop_dump_send(buff) #define do_giop_dump_recv(buff) #else /* G_ENABLE_DEBUG */ /* Hooks for security / regression testing */ extern void (*giop_debug_hook_unexpected_reply) (GIOPRecvBuffer *buf); extern void (*giop_debug_hook_spoofed_reply) (GIOPRecvBuffer *buf, GIOPMessageQueueEntry *ent); extern void (*giop_debug_hook_incoming_mangler) (GIOPRecvBuffer *buf); extern void (*giop_debug_hook_new_connection) (GIOPServer *server, GIOPConnection *new_cnx); #define do_giop_dump(fh, ptr, len, off) G_STMT_START { \ if (_orbit_debug_flags & ORBIT_DEBUG_GIOP) \ giop_dump (fh, ptr, len, off); \ } G_STMT_END #define do_giop_dump_send(buff) G_STMT_START { \ if (_orbit_debug_flags & ORBIT_DEBUG_GIOP) \ giop_dump_send (buff); \ } G_STMT_END #define do_giop_dump_recv(buff) G_STMT_START { \ if (_orbit_debug_flags & ORBIT_DEBUG_GIOP) \ giop_dump_recv (buff); \ } G_STMT_END #endif /* G_ENABLE_DEBUG */ void giop_dump (FILE *out, guint8 const *ptr, guint32 len, guint32 offset); void giop_dump_send (GIOPSendBuffer *send_buffer); void giop_dump_recv (GIOPRecvBuffer *recv_buffer); #endif /* __GIOP_DEBUG__ */ ORBit2-2.14.19/src/orb/GIOP/giop-recv-buffer.c0000644000175000001440000010575411334247617015307 00000000000000#include #include #include #include #include #include #include "giop-private.h" #include "giop-debug.h" #include #include #undef DEBUG #ifdef G_ENABLE_DEBUG void (*giop_debug_hook_unexpected_reply) (GIOPRecvBuffer *buf) = NULL; void (*giop_debug_hook_spoofed_reply) (GIOPRecvBuffer *buf, GIOPMessageQueueEntry *ent) = NULL; void (*giop_debug_hook_incoming_mangler) (GIOPRecvBuffer *buf) = NULL; #endif #define MORE_FRAGMENTS_FOLLOW(buf) ((buf)->msg.header.flags & GIOP_FLAG_FRAGMENTED) /* * FIXME: pretty much this whole module, * and all the giop-types headers should be * auto-generated and generic ... */ /* A list of GIOPMessageQueueEntrys */ static GList *giop_queued_messages = NULL; static GMutex *giop_queued_messages_lock = NULL; /* Don't do this genericaly, union's suck genericaly */ static gboolean giop_GIOP_TargetAddress_demarshal (GIOPRecvBuffer *buf, GIOP_TargetAddress *value) { gboolean do_bswap = giop_msg_conversion_needed (buf); buf->cur = ALIGN_ADDRESS(buf->cur, 2); if ((buf->cur + 2) > buf->end) return TRUE; if (do_bswap) value->_d = GUINT16_SWAP_LE_BE ( *(guint16 *) buf->cur); else value->_d = *(guint16 *) buf->cur; buf->cur += 2; switch (value->_d) { case GIOP_KeyAddr: buf->cur = ALIGN_ADDRESS (buf->cur, 4); if ((buf->cur + 4) > buf->end) return TRUE; value->_u.object_key._release = CORBA_FALSE; if (do_bswap) value->_u.object_key._length = GUINT32_SWAP_LE_BE(*((guint32 *)buf->cur)); else value->_u.object_key._length = *((guint32 *)buf->cur); buf->cur += 4; if ((buf->cur + value->_u.object_key._length) > buf->end || (buf->cur + value->_u.object_key._length) < buf->cur) return TRUE; value->_u.object_key._buffer = buf->cur; buf->cur += value->_u.object_key._length; break; case GIOP_ProfileAddr: g_warning ("XXX FIXME GIOP_ProfileAddr not handled"); return TRUE; break; case GIOP_ReferenceAddr: g_warning ("XXX FIXME GIOP_ReferenceAddr not handled"); return TRUE; break; } return FALSE; } static gboolean giop_IOP_ServiceContextList_demarshal (GIOPRecvBuffer *buf, IOP_ServiceContextList *value) { return ORBit_demarshal_value ( TC_IOP_ServiceContextList, (gpointer *)&value, buf, NULL); } static void giop_IOP_ServiceContextList_free (IOP_ServiceContextList *value) { if (value) CORBA_free (value->_buffer); } static gboolean giop_recv_buffer_demarshal_request_1_1(GIOPRecvBuffer *buf) { gboolean do_bswap = giop_msg_conversion_needed(buf); CORBA_unsigned_long oplen; buf->msg.u.request_1_1.service_context._buffer = NULL; if(giop_IOP_ServiceContextList_demarshal(buf, &buf->msg.u.request_1_1.service_context)) return TRUE; buf->cur = ALIGN_ADDRESS(buf->cur, 4); if((buf->cur + 12) > buf->end) return TRUE; if(do_bswap) buf->msg.u.request_1_1.request_id = GUINT32_SWAP_LE_BE(*((guint32 *)buf->cur)); else buf->msg.u.request_1_1.request_id = *((guint32 *)buf->cur); buf->cur += 4; buf->msg.u.request_1_1.response_expected = *buf->cur; buf->cur += 4; if(do_bswap) buf->msg.u.request_1_1.object_key._length = GUINT32_SWAP_LE_BE(*((guint32 *)buf->cur)); else buf->msg.u.request_1_1.object_key._length = *((guint32 *)buf->cur); buf->cur += 4; if((buf->cur + buf->msg.u.request_1_1.object_key._length) > buf->end || (buf->cur + buf->msg.u.request_1_1.object_key._length) < buf->cur) return TRUE; buf->msg.u.request_1_1.object_key._buffer = buf->cur; buf->msg.u.request_1_1.object_key._release = CORBA_FALSE; buf->cur += buf->msg.u.request_1_1.object_key._length; buf->cur = ALIGN_ADDRESS(buf->cur, 4); if((buf->cur + 4) > buf->end) return TRUE; if(do_bswap) oplen = GUINT32_SWAP_LE_BE(*((guint32 *)buf->cur)); else oplen = *((guint32 *)buf->cur); buf->cur += 4; if((buf->cur + oplen) > buf->end || (buf->cur + oplen) < buf->cur) return TRUE; buf->msg.u.request_1_1.operation = (CORBA_char *) buf->cur; buf->cur += oplen; buf->cur = ALIGN_ADDRESS(buf->cur, 4); if((buf->cur + 4) > buf->end) return TRUE; if(do_bswap) buf->msg.u.request_1_1.requesting_principal._length = GUINT32_SWAP_LE_BE(*((guint32 *)buf->cur)); else buf->msg.u.request_1_1.requesting_principal._length = *((guint32 *)buf->cur); buf->cur += 4; if((buf->cur + buf->msg.u.request_1_1.requesting_principal._length) > buf->end || (buf->cur + buf->msg.u.request_1_1.requesting_principal._length) < buf->cur) return TRUE; buf->msg.u.request_1_1.requesting_principal._buffer = buf->cur; buf->msg.u.request_1_1.requesting_principal._release = CORBA_FALSE; buf->cur += buf->msg.u.request_1_1.requesting_principal._length; return FALSE; } static gboolean giop_recv_buffer_demarshal_request_1_2(GIOPRecvBuffer *buf) { gboolean do_bswap = giop_msg_conversion_needed(buf); CORBA_unsigned_long oplen; buf->cur = ALIGN_ADDRESS(buf->cur, 4); if((buf->cur + 8) > buf->end) return TRUE; if(do_bswap) buf->msg.u.request_1_2.request_id = GUINT32_SWAP_LE_BE(*((guint32 *)buf->cur)); else buf->msg.u.request_1_2.request_id = *((guint32 *) buf->cur); buf->cur += 4; buf->msg.u.request_1_2.response_flags = *buf->cur; buf->cur += 4; if(giop_GIOP_TargetAddress_demarshal(buf, &buf->msg.u.request_1_2.target)) return TRUE; buf->cur = ALIGN_ADDRESS(buf->cur, 4); if((buf->cur + 4) > buf->end) return TRUE; if(do_bswap) oplen = GUINT32_SWAP_LE_BE(*((guint32 *)buf->cur)); else oplen = *((guint32 *)buf->cur); buf->cur += 4; if((buf->cur + oplen) > buf->end || (buf->cur + oplen) < buf->cur) return TRUE; buf->msg.u.request_1_2.operation = (CORBA_char *) buf->cur; buf->cur += oplen; buf->msg.u.request_1_2.service_context._buffer = NULL; if(giop_IOP_ServiceContextList_demarshal(buf, &buf->msg.u.request_1_2.service_context)) return TRUE; buf->cur = ALIGN_ADDRESS(buf->cur, 8); return FALSE; } static gboolean giop_recv_buffer_demarshal_reply_1_1(GIOPRecvBuffer *buf) { gboolean do_bswap = giop_msg_conversion_needed(buf); buf->msg.u.reply_1_1.service_context._buffer = NULL; if(giop_IOP_ServiceContextList_demarshal(buf, &buf->msg.u.reply_1_1.service_context)) return TRUE; buf->cur = ALIGN_ADDRESS(buf->cur, 4); if((buf->cur + 8) > buf->end) return TRUE; if(do_bswap) { buf->msg.u.reply_1_1.request_id = GUINT32_SWAP_LE_BE(*((guint32 *)buf->cur)); buf->cur += 4; buf->msg.u.reply_1_1.reply_status = GUINT32_SWAP_LE_BE(*((guint32 *)buf->cur)); } else { buf->msg.u.reply_1_1.request_id = *((guint32 *)buf->cur); buf->cur += 4; buf->msg.u.reply_1_1.reply_status = *((guint32 *)buf->cur); } buf->cur += 4; return FALSE; } static gboolean giop_recv_buffer_demarshal_reply_1_2(GIOPRecvBuffer *buf) { gboolean do_bswap = giop_msg_conversion_needed(buf); buf->cur = ALIGN_ADDRESS(buf->cur, 4); if((buf->cur + 8) > buf->end) return TRUE; if(do_bswap) { buf->msg.u.reply_1_2.request_id = GUINT32_SWAP_LE_BE(*((guint32 *)buf->cur)); buf->cur += 4; buf->msg.u.reply_1_2.reply_status = GUINT32_SWAP_LE_BE(*((guint32 *)buf->cur)); } else { buf->msg.u.reply_1_2.request_id = *((guint32 *)buf->cur); buf->cur += 4; buf->msg.u.reply_1_2.reply_status = *((guint32 *)buf->cur); } buf->cur += 4; buf->msg.u.reply_1_2.service_context._buffer = NULL; if(giop_IOP_ServiceContextList_demarshal(buf, &buf->msg.u.reply_1_2.service_context)) return TRUE; buf->cur = ALIGN_ADDRESS(buf->cur, 8); return FALSE; } static gboolean giop_recv_buffer_demarshal_cancel(GIOPRecvBuffer *buf) { gboolean do_bswap = giop_msg_conversion_needed (buf); buf->cur = ALIGN_ADDRESS (buf->cur, 4); if ((buf->cur + 4) > buf->end) return TRUE; if (do_bswap) buf->msg.u.cancel_request.request_id = GUINT32_SWAP_LE_BE(*((guint32 *)buf->cur)); else buf->msg.u.cancel_request.request_id = *((guint32 *)buf->cur); buf->cur += 4; return FALSE; } static gboolean giop_recv_buffer_demarshal_locate_request_1_1(GIOPRecvBuffer *buf) { gboolean do_bswap = giop_msg_conversion_needed (buf); buf->cur = ALIGN_ADDRESS (buf->cur, 4); if ((buf->cur + 8) > buf->end) return TRUE; if (do_bswap) buf->msg.u.locate_request_1_1.request_id = GUINT32_SWAP_LE_BE(*((guint32 *)buf->cur)); else buf->msg.u.locate_request_1_1.request_id = *((guint32 *)buf->cur); buf->cur += 4; if (do_bswap) buf->msg.u.locate_request_1_1.object_key._length = GUINT32_SWAP_LE_BE(*((guint32 *)buf->cur)); else buf->msg.u.locate_request_1_1.object_key._length = *((guint32 *)buf->cur); buf->cur += 4; if ((buf->cur + buf->msg.u.locate_request_1_1.object_key._length) > buf->end || (buf->cur + buf->msg.u.locate_request_1_1.object_key._length) < buf->cur) return TRUE; buf->msg.u.locate_request_1_1.object_key._buffer = buf->cur; buf->msg.u.locate_request_1_1.object_key._release = CORBA_FALSE; buf->cur += buf->msg.u.locate_request_1_1.object_key._length; return FALSE; } static gboolean giop_recv_buffer_demarshal_locate_request_1_2(GIOPRecvBuffer *buf) { gboolean do_bswap = giop_msg_conversion_needed(buf); buf->cur = ALIGN_ADDRESS(buf->cur, 4); if((buf->cur + 4) > buf->end) return TRUE; if(do_bswap) buf->msg.u.locate_request_1_2.request_id = GUINT32_SWAP_LE_BE(*((guint32 *)buf->cur)); else buf->msg.u.locate_request_1_2.request_id = *((guint32 *)buf->cur); buf->cur += 4; return giop_GIOP_TargetAddress_demarshal (buf, &buf->msg.u.locate_request_1_2.target); } static gboolean giop_recv_buffer_demarshal_locate_reply_1_1(GIOPRecvBuffer *buf) { gboolean do_bswap = giop_msg_conversion_needed(buf); buf->cur = ALIGN_ADDRESS (buf->cur, 4); if ((buf->cur + 8) > buf->end) return TRUE; if (do_bswap) { buf->msg.u.locate_reply_1_1.request_id = GUINT32_SWAP_LE_BE(*((guint32 *)buf->cur)); buf->cur += 4; buf->msg.u.locate_reply_1_1.locate_status = GUINT32_SWAP_LE_BE(*((guint32 *)buf->cur)); } else { buf->msg.u.locate_reply_1_1.request_id = *((guint32 *)buf->cur); buf->cur += 4; buf->msg.u.locate_reply_1_1.locate_status = *((guint32 *)buf->cur); } buf->cur += 4; return FALSE; } static gboolean giop_recv_buffer_demarshal_locate_reply_1_2 (GIOPRecvBuffer *buf) { return giop_recv_buffer_demarshal_locate_reply_1_1 (buf); } typedef gboolean (*GIOPDecodeFunc) (GIOPRecvBuffer *buf); static gboolean giop_recv_buffer_demarshal (GIOPRecvBuffer *buf) { GIOPDecodeFunc decode_func; static const GIOPDecodeFunc decode_funcs [GIOP_NUM_MSG_TYPES] [GIOP_NUM_VERSIONS] = { /* request */ { giop_recv_buffer_demarshal_request_1_1, giop_recv_buffer_demarshal_request_1_1, giop_recv_buffer_demarshal_request_1_2}, /* reply */ { giop_recv_buffer_demarshal_reply_1_1, giop_recv_buffer_demarshal_reply_1_1, giop_recv_buffer_demarshal_reply_1_2}, /* cancel request */ { giop_recv_buffer_demarshal_cancel, giop_recv_buffer_demarshal_cancel, giop_recv_buffer_demarshal_cancel}, /* locate request */ { giop_recv_buffer_demarshal_locate_request_1_1, giop_recv_buffer_demarshal_locate_request_1_1, giop_recv_buffer_demarshal_locate_request_1_2}, /* locate reply */ { giop_recv_buffer_demarshal_locate_reply_1_1, giop_recv_buffer_demarshal_locate_reply_1_1, giop_recv_buffer_demarshal_locate_reply_1_2}, /* close connection */ {NULL, NULL, NULL}, /* message error */ {NULL, NULL, NULL}, /* fragment */ {NULL, NULL, NULL} }; if (buf->msg.header.message_type >= GIOP_NUM_MSG_TYPES) return TRUE; if (buf->giop_version >= GIOP_NUM_VERSIONS) return TRUE; decode_func = decode_funcs [buf->msg.header.message_type] [buf->giop_version]; if (decode_func) return decode_func (buf); return FALSE; } GIOPRecvBuffer * giop_recv_buffer_use_encaps (guchar *mem, gulong len) { GIOPRecvBuffer *buf = giop_recv_buffer_use_buf (NULL); buf->cur = buf->message_body = mem; buf->end = buf->cur + len; buf->msg.header.message_size = len; buf->msg.header.flags = *(buf->cur++); buf->giop_version = GIOP_LATEST; buf->left_to_read = 0; buf->state = GIOP_MSG_READY; buf->free_body = FALSE; return buf; } GIOPRecvBuffer * giop_recv_buffer_use_encaps_buf (GIOPRecvBuffer *buf) { guchar *ptr; CORBA_unsigned_long len; buf->cur = ALIGN_ADDRESS (buf->cur, 4); if ((buf->cur + 4) > buf->end) return NULL; len = *(CORBA_unsigned_long *) buf->cur; if (giop_msg_conversion_needed (buf)) len = GUINT32_SWAP_LE_BE (len); buf->cur += 4; if ((buf->cur + len) > buf->end || (buf->cur + len) < buf->cur) return NULL; ptr = buf->cur; buf->cur += len; return giop_recv_buffer_use_encaps (ptr, len); } void giop_recv_buffer_unuse (GIOPRecvBuffer *buf) { if (!buf) return; if (buf->free_body) { g_free (buf->message_body); buf->message_body = NULL; } switch (buf->giop_version) { case GIOP_1_0: case GIOP_1_1: switch (buf->msg.header.message_type) { case GIOP_REPLY: giop_IOP_ServiceContextList_free ( &buf->msg.u.reply_1_1.service_context); break; case GIOP_REQUEST: giop_IOP_ServiceContextList_free ( &buf->msg.u.request_1_1.service_context); break; default: break; } break; case GIOP_1_2: switch (buf->msg.header.message_type) { case GIOP_REPLY: giop_IOP_ServiceContextList_free ( &buf->msg.u.reply_1_2.service_context); break; case GIOP_REQUEST: giop_IOP_ServiceContextList_free ( &buf->msg.u.request_1_2.service_context); break; default: break; } break; default: break; } if(buf->connection) giop_connection_unref (buf->connection); g_free (buf); } static void ent_lock (GIOPMessageQueueEntry *ent) { if (ent->src_thread) g_mutex_lock (ent->src_thread->lock); } static void ent_unlock (GIOPMessageQueueEntry *ent) { if (ent->src_thread) g_mutex_unlock (ent->src_thread->lock); } static void giop_recv_destroy_queue_entry_T (GIOPMessageQueueEntry *ent) { if (ent->cnx) { giop_connection_unref (ent->cnx); ent->cnx = NULL; } } void giop_recv_list_destroy_queue_entry (GIOPMessageQueueEntry *ent) { LINK_MUTEX_LOCK (giop_queued_messages_lock); #ifdef DEBUG g_warning ("Remove XX:%p:(%p) - %d", ent, ent->async_cb, g_list_length (giop_queued_messages)); #endif giop_queued_messages = g_list_remove (giop_queued_messages, ent); LINK_MUTEX_UNLOCK (giop_queued_messages_lock); giop_recv_destroy_queue_entry_T (ent); } void giop_recv_list_setup_queue_entry (GIOPMessageQueueEntry *ent, GIOPConnection *cnx, CORBA_unsigned_long msg_type, CORBA_unsigned_long request_id) { ent->src_thread = giop_thread_self (); ent->async_cb = NULL; ent->cnx = giop_connection_ref (cnx); ent->msg_type = msg_type; ent->request_id = request_id; ent->buffer = NULL; LINK_MUTEX_LOCK (giop_queued_messages_lock); #ifdef DEBUG g_warning ("Push XX:%p:(%p) - %d", ent, ent->async_cb, g_list_length (giop_queued_messages)); #endif giop_queued_messages = g_list_prepend (giop_queued_messages, ent); LINK_MUTEX_UNLOCK (giop_queued_messages_lock); } void giop_recv_list_setup_queue_entry_async (GIOPMessageQueueEntry *ent, GIOPAsyncCallback cb) { g_return_if_fail (ent != NULL); ent->async_cb = cb; } void giop_recv_list_zap (GIOPConnection *cnx) { GList *l, *next; GSList *sl, *notify = NULL; LINK_MUTEX_LOCK (giop_queued_messages_lock); for (l = giop_queued_messages; l; l = next) { GIOPMessageQueueEntry *ent = l->data; next = l->next; if (ent->cnx == cnx) { ent_lock (ent); dprintf (ERRORS, "Zap listener on dead cnx with buffer %p\n", ent->buffer); giop_recv_buffer_unuse (ent->buffer); ent->buffer = NULL; giop_recv_destroy_queue_entry_T (ent); if (giop_thread_io () && !ent->async_cb) giop_incoming_signal_T (ent->src_thread, GIOP_CLOSECONNECTION); ent_unlock (ent); if (ent->async_cb) notify = g_slist_prepend (notify, ent); giop_queued_messages = g_list_delete_link ( giop_queued_messages, l); } } LINK_MUTEX_UNLOCK (giop_queued_messages_lock); for (sl = notify; sl; sl = sl->next) { GIOPMessageQueueEntry *ent = sl->data; if (!ent->async_cb) { /* This should never happen */ g_warning ("Extraordinary recv list re-enterancy"); continue; } giop_invoke_async (ent); } g_slist_free (notify); } CORBA_unsigned_long giop_recv_buffer_get_request_id (GIOPRecvBuffer *buf) { static const glong reqid_offsets [GIOP_NUM_MSG_TYPES] [GIOP_NUM_VERSIONS] = { /* GIOP_REQUEST */ { G_STRUCT_OFFSET(GIOPRecvBuffer, msg.u.request_1_0.request_id), G_STRUCT_OFFSET(GIOPRecvBuffer, msg.u.request_1_1.request_id), G_STRUCT_OFFSET(GIOPRecvBuffer, msg.u.request_1_2.request_id)}, /* GIOP_REPLY */ { G_STRUCT_OFFSET(GIOPRecvBuffer, msg.u.reply_1_0.request_id), G_STRUCT_OFFSET(GIOPRecvBuffer, msg.u.reply_1_1.request_id), G_STRUCT_OFFSET(GIOPRecvBuffer, msg.u.reply_1_2.request_id)}, /* GIOP_CANCELREQUEST */ { G_STRUCT_OFFSET(GIOPRecvBuffer, msg.u.cancel_request.request_id), G_STRUCT_OFFSET(GIOPRecvBuffer, msg.u.cancel_request.request_id), G_STRUCT_OFFSET(GIOPRecvBuffer, msg.u.cancel_request.request_id)}, /* GIOP_LOCATEREQUEST */ { G_STRUCT_OFFSET(GIOPRecvBuffer, msg.u.locate_request_1_0.request_id), G_STRUCT_OFFSET(GIOPRecvBuffer, msg.u.locate_request_1_1.request_id), G_STRUCT_OFFSET(GIOPRecvBuffer, msg.u.locate_request_1_2.request_id)}, /* GIOP_LOCATEREPLY */ { G_STRUCT_OFFSET(GIOPRecvBuffer, msg.u.locate_reply_1_0.request_id), G_STRUCT_OFFSET(GIOPRecvBuffer, msg.u.locate_reply_1_1.request_id), G_STRUCT_OFFSET(GIOPRecvBuffer, msg.u.locate_reply_1_2.request_id)}, {0,0,0}, /* GIOP_CLOSECONNECTION */ {0,0,0}, /* GIOP_MESSAGEERROR */ {0,0,0} /* GIOP_FRAGMENT */ }; gulong offset; offset = reqid_offsets [buf->msg.header.message_type] [buf->giop_version]; if (!offset) return 0; return G_STRUCT_MEMBER (CORBA_unsigned_long, buf, offset); } static inline gboolean check_got (GIOPMessageQueueEntry *ent) { return (ent->buffer || !ent->cnx || (ent->cnx->parent.status == LINK_DISCONNECTED) || (ent->cnx->parent.status == LINK_TIMEOUT)); } GIOPRecvBuffer * giop_recv_buffer_get (GIOPMessageQueueEntry *ent, gboolean *timeout) { GIOPThread *tdata = NULL; *timeout = FALSE; tdata = giop_thread_self (); thread_switch: if (giop_thread_io ()) { ent_lock (ent); for (; !check_got (ent); ) { if (!giop_thread_queue_empty_T (tdata)) { ent_unlock (ent); giop_thread_queue_process (tdata); ent_lock (ent); } else g_cond_wait (tdata->incoming, tdata->lock); } ent_unlock (ent); } else { /* non-threaded */ while (!ent->buffer && ent->cnx && (ent->cnx->parent.status != LINK_DISCONNECTED) && (ent->cnx->parent.status != LINK_TIMEOUT) && !giop_thread_io()) link_main_iteration (TRUE); if (giop_thread_io()) goto thread_switch; } if (giop_thread_io() && ent && ent->cnx && ent->cnx->parent.timeout_mutex) { g_mutex_lock (ent->cnx->parent.timeout_mutex); if (ent->cnx->parent.timeout_status == LINK_TIMEOUT_UNKNOWN) { link_io_thread_remove_timeout (ent->cnx->parent.timeout_source_id); ent->cnx->parent.timeout_source_id = 0; ent->cnx->parent.timeout_status = LINK_TIMEOUT_NO; giop_connection_unref (ent->cnx); // we remove the source so we must unref the connection } else if (ent->cnx->parent.timeout_status == LINK_TIMEOUT_YES) *timeout = TRUE; g_mutex_unlock (ent->cnx->parent.timeout_mutex); } giop_thread_queue_tail_wakeup (tdata); giop_recv_list_destroy_queue_entry (ent); return ent->buffer; } ORBit_ObjectKey* giop_recv_buffer_get_objkey (GIOPRecvBuffer *buf) { switch (buf->msg.header.message_type) { case GIOP_REQUEST: switch (buf->msg.header.version [1]) { case 0: return &buf->msg.u.request_1_0.object_key; break; case 1: return &buf->msg.u.request_1_1.object_key; break; case 2: g_assert (buf->msg.u.request_1_2.target._d == GIOP_KeyAddr); return &buf->msg.u.request_1_2.target._u.object_key; break; } break; case GIOP_LOCATEREQUEST: switch (buf->msg.header.version [1]) { case 0: return &buf->msg.u.locate_request_1_0.object_key; break; case 1: return &buf->msg.u.locate_request_1_1.object_key; break; case 2: g_assert (buf->msg.u.locate_request_1_2.target._d == GIOP_KeyAddr); return &buf->msg.u.locate_request_1_2.target._u.object_key; break; } break; default: g_assert_not_reached (); } return NULL; } char * giop_recv_buffer_get_opname (GIOPRecvBuffer *buf) { switch(buf->msg.header.version [1]) { case 0: return buf->msg.u.request_1_0.operation; break; case 1: return buf->msg.u.request_1_1.operation; break; case 2: return buf->msg.u.request_1_2.operation; break; } return NULL; } void giop_recv_buffer_init (void) { giop_queued_messages_lock = link_mutex_new (); } static void giop_connection_add_frag (GIOPConnection *cnx, GIOPRecvBuffer *buf) { cnx->incoming_frags = g_list_prepend (cnx->incoming_frags, g_list_prepend (NULL, buf)); } static GList * giop_connection_get_frag (GIOPConnection *cnx, CORBA_unsigned_long request_id, gboolean return_first_if_none) { GList *l; for (l = cnx->incoming_frags; l; l = l->next) { GList *frags = l->data; if (giop_recv_buffer_get_request_id (frags->data) == request_id) return l->data; } /* This sucks, but it's prolly a GIOP-1.1 spec issue */ if (return_first_if_none && cnx->incoming_frags) { static int warned = 0; if (!warned++) dprintf (MESSAGES, "GIOP-1.1 1 fragment set per cnx (?)"); return cnx->incoming_frags->data; } return NULL; } static void giop_connection_remove_frag (GIOPConnection *cnx, GList *frags) { GList *l; g_return_if_fail (frags != NULL); for (l = frags->next; l; l = l->next) giop_recv_buffer_unuse (l->data); cnx->incoming_frags = g_list_remove (cnx->incoming_frags, frags); g_list_free (frags); } void giop_connection_destroy_frags (GIOPConnection *cnx) { GList *l; for (l = cnx->incoming_frags; l; l = l->next) { GList *l2; for (l2 = l->data; l2; l2 = l2->next) giop_recv_buffer_unuse (l2->data); g_list_free (l->data); } g_list_free (cnx->incoming_frags); cnx->incoming_frags = NULL; } static gboolean alloc_buffer (GIOPRecvBuffer *buf, gpointer old_alloc, gulong body_size) { buf->message_body = g_try_realloc (old_alloc, body_size + 12); if (!buf->message_body) return TRUE; /* * We assume that this is 8 byte aligned, for efficiency - * so we can align to the memory address rather than the offset * into the buffer. */ g_assert (((gulong)buf->message_body & 0x3) == 0); buf->free_body = TRUE; buf->cur = buf->message_body + 12; buf->end = buf->cur + body_size; buf->left_to_read = body_size; return FALSE; } static gboolean concat_frags (GList *list) { GList *l; guchar *ptr; gulong length = 0; gulong initial_length; gulong initial_offset; GIOPRecvBuffer *head; head = list->data; length = head->msg.header.message_size; initial_offset = (head->cur - head->message_body); initial_length = (head->end - head->cur); length += initial_offset - 12; /* include what we read of the header */ g_assert (head->free_body); if (alloc_buffer (head, head->message_body, length)) { dprintf (ERRORS, "failed to allocate fragment collation buffer"); return TRUE; } head->left_to_read = 0; head->cur = head->message_body + initial_offset; ptr = head->cur + initial_length; for (l = list->next; l; l = l->next) { gulong len; GIOPRecvBuffer *buf = l->data; len = buf->end - buf->cur; memcpy (ptr, buf->cur, len); ptr+= len; } head->end = ptr; return FALSE; } static glong giop_initial_msg_size_limit = GIOP_INITIAL_MSG_SIZE_LIMIT; void giop_recv_set_limit (glong limit) { if (limit > 256) /* Something slightly sensible ? */ giop_initial_msg_size_limit = limit; } glong giop_recv_get_limit (void) { return giop_initial_msg_size_limit; } /** * giop_recv_buffer_handle_fragmented: * @buf: pointer to recv buffer pointer * @cnx: current connection. * * This will append @buf to the right list of buffers * on the connection, forming a complete message, and * re-write *@buf to the first buffer in the chain. * * Return value: TRUE on error else FALSE **/ static gboolean giop_recv_buffer_handle_fragmented (GIOPRecvBuffer **ret_buf, GIOPConnection *cnx) { GList *list; gboolean giop_1_1; gboolean error = FALSE; CORBA_long message_id; GIOPRecvBuffer *buf = *ret_buf; giop_1_1 = (buf->giop_version == GIOP_1_1); switch (buf->msg.header.message_type) { case GIOP_REPLY: case GIOP_LOCATEREPLY: case GIOP_REQUEST: case GIOP_LOCATEREQUEST: message_id = giop_recv_buffer_get_request_id (buf); break; case GIOP_FRAGMENT: if (!giop_1_1) { buf->cur = ALIGN_ADDRESS (buf->cur, 4); if ((buf->cur + 4) > buf->end) { dprintf (ERRORS, "incoming bogus fragment length"); return TRUE; } if (giop_msg_conversion_needed (buf)) message_id = GUINT32_SWAP_LE_BE (*((guint32 *)buf->cur)); else message_id = *(guint32 *) buf->cur; buf->cur += 4; } else message_id = 0; break; default: dprintf (ERRORS, "Bogus fragment packet type %d", buf->msg.header.message_type); return TRUE; } if (!(list = giop_connection_get_frag (cnx, message_id, giop_1_1))) { if (!MORE_FRAGMENTS_FOLLOW (buf)) return TRUE; giop_connection_add_frag (cnx, buf); } else { GIOPRecvBuffer *head = list->data; *ret_buf = head; g_assert (head->msg.header.message_type != GIOP_FRAGMENT); /* track total length on head node */ /* (end - cur) to account for fragment (msg id) header */ head->msg.header.message_size += (buf->end - buf->cur); list = g_list_append (list, buf); if (!cnx->parent.is_auth && buf->msg.header.message_size > giop_initial_msg_size_limit) { dprintf (ERRORS, "Message exceeded initial size limit\n"); error = TRUE; giop_connection_remove_frag (cnx, list); } if (!MORE_FRAGMENTS_FOLLOW (buf)) { g_assert (buf->msg.header.message_type == GIOP_FRAGMENT); /* concat all fragments - re-write & continue */ error = concat_frags (list); giop_connection_remove_frag (cnx, list); } } return error; } static gboolean handle_reply (GIOPRecvBuffer *buf) { GList *l; gboolean error; GIOPMessageQueueEntry *ent; CORBA_unsigned_long request_id; request_id = giop_recv_buffer_get_request_id (buf); error = FALSE; LINK_MUTEX_LOCK (giop_queued_messages_lock); for (l = giop_queued_messages; l; l = l->next) { ent = l->data; if (ent->request_id == request_id && ent->msg_type == buf->msg.header.message_type) break; } ent = l ? l->data : NULL; if (!ent) { if (giop_recv_buffer_reply_status (buf) == CORBA_SYSTEM_EXCEPTION) { /* * Unexpected - but sometimes a oneway * method invocation on a de-activated * object results in us getting a bogus * system exception in reply. */ } else { #ifdef G_ENABLE_DEBUG if (giop_debug_hook_unexpected_reply) giop_debug_hook_unexpected_reply (buf); else dprintf (ERRORS, "We received an unexpected reply\n"); #endif /* G_ENABLE_DEBUG */ error = TRUE; } } else if (ent->cnx != buf->connection) { #ifdef G_ENABLE_DEBUG if (giop_debug_hook_spoofed_reply) giop_debug_hook_spoofed_reply (buf, ent); #endif dprintf (ERRORS, "We received a bogus reply\n"); error = TRUE; } else { #ifdef DEBUG g_warning ("Pop XX:%p:%p - %d", ent, ent->async_cb, g_list_length (giop_queued_messages)); #endif giop_queued_messages = g_list_delete_link (giop_queued_messages, l); } LINK_MUTEX_UNLOCK (giop_queued_messages_lock); if (ent && !error) { gboolean async = FALSE; ent_lock (ent); ent->buffer = buf; if (giop_thread_io () && !ent->async_cb) giop_incoming_signal_T (ent->src_thread, GIOP_REPLY); else if (ent->async_cb) async = TRUE; ent_unlock (ent); if (async) giop_invoke_async (ent); buf = NULL; } giop_recv_buffer_unuse (buf); return error; } static gboolean giop_recv_msg_reading_body (GIOPRecvBuffer *buf, gboolean is_auth) { dprintf (GIOP, "Incoming IIOP header:\n"); do_giop_dump (stderr, (guint8 *) &buf->msg.header, 12, 0); /* Check the header */ if (memcmp (buf->msg.header.magic, "GIOP", 4)) return TRUE; if (buf->msg.header.message_type >= GIOP_NUM_MSG_TYPES) return TRUE; switch (buf->msg.header.version [0]) { case 1: switch (buf->msg.header.version [1]) { case 0: buf->giop_version = GIOP_1_0; break; case 1: buf->giop_version = GIOP_1_1; break; case 2: buf->giop_version = GIOP_1_2; break; default: return TRUE; break; } break; default: return TRUE; break; } if ((buf->msg.header.flags & GIOP_FLAG_LITTLE_ENDIAN) != GIOP_FLAG_ENDIANNESS) buf->msg.header.message_size = GUINT32_SWAP_LE_BE (buf->msg.header.message_size); /* NB. at least CLOSECONNECTION has 0 length message_size */ if (!is_auth && buf->msg.header.message_size > giop_initial_msg_size_limit) { dprintf (ERRORS, "Message exceeded unauthorized size limit\n"); return TRUE; } if (alloc_buffer (buf, NULL, buf->msg.header.message_size)) return TRUE; return FALSE; } /* * FIXME: we should definately handle things more asynchronously, * perhaps even at the expense of having to go to the GSource * twice in order to get fresh input (?) * or should we poll ourselves on the source to see what's up? * * The whole locking concept here looks broken to me, * especially since 'read' can flag the connection disconnected * giving a nice deadlock. */ gboolean giop_connection_handle_input (LinkConnection *lcnx) { GIOPRecvBuffer *buf; GIOPConnection *cnx = (GIOPConnection *) lcnx; do { int n; if (!cnx->incoming_msg) cnx->incoming_msg = giop_recv_buffer_use_buf (cnx); buf = cnx->incoming_msg; n = link_connection_read ( lcnx, buf->cur, buf->left_to_read, FALSE); if (n == 0) /* We'll be back */ return TRUE; if (n < 0 || !buf->left_to_read) /* HUP */ goto msg_error; /* fprintf (stderr, "Read %d\n", n); giop_dump (stderr, buf->cur, n, 0); */ buf->left_to_read -= n; buf->cur += n; if (buf->left_to_read == 0) { #ifdef G_ENABLE_DEBUG if (giop_debug_hook_incoming_mangler) giop_debug_hook_incoming_mangler (buf); #endif switch (buf->state) { case GIOP_MSG_READING_HEADER: if (giop_recv_msg_reading_body (buf, cnx->parent.is_auth)) { dprintf (ERRORS, "OOB incoming msg header data\n"); goto msg_error; } buf->state = GIOP_MSG_READING_BODY; break; case GIOP_MSG_READING_BODY: { dprintf (GIOP, "Incoming IIOP body:\n"); buf->cur = buf->message_body + 12; if ((buf->cur + buf->msg.header.message_size) > buf->end) { dprintf (ERRORS, "broken incoming length data\n"); goto msg_error; } do_giop_dump (stderr, buf->cur, buf->msg.header.message_size, 12); buf->state = GIOP_MSG_READY; if (giop_recv_buffer_demarshal (buf)) { dprintf (ERRORS, "broken incoming header data\n"); goto msg_error; } if (MORE_FRAGMENTS_FOLLOW (buf)) { if (giop_recv_buffer_handle_fragmented (&buf, cnx)) goto msg_error; else { cnx->incoming_msg = NULL; goto frag_out; } } else if (buf->msg.header.message_type == GIOP_FRAGMENT) { if (giop_recv_buffer_handle_fragmented (&buf, cnx)) goto msg_error; /* else last fragment */ } break; } case GIOP_MSG_AWAITING_FRAGMENTS: case GIOP_MSG_READY: g_assert_not_reached (); break; } } } while (cnx->incoming_msg && buf->left_to_read > 0 && buf->state != GIOP_MSG_READY); cnx->incoming_msg = NULL; switch (buf->msg.header.message_type) { case GIOP_REPLY: case GIOP_LOCATEREPLY: dprintf (MESSAGES, "handling reply\n"); if (handle_reply (buf)) /* dodgy inbound data, pull the cnx */ link_connection_state_changed (lcnx, LINK_DISCONNECTED); break; case GIOP_REQUEST: dprintf (MESSAGES, "handling request\n"); ORBit_handle_request (cnx->orb_data, buf); break; case GIOP_LOCATEREQUEST: dprintf (MESSAGES, "handling locate request\n"); ORBit_handle_locate_request (cnx->orb_data, buf); break; case GIOP_CANCELREQUEST: case GIOP_MESSAGEERROR: dprintf (ERRORS, "dropping an unusual & unhandled input buffer 0x%x", buf->msg.header.message_type); giop_recv_buffer_unuse (buf); break; case GIOP_CLOSECONNECTION: dprintf (MESSAGES, "received close connection\n"); giop_recv_buffer_unuse (buf); link_connection_state_changed (lcnx, LINK_DISCONNECTED); break; case GIOP_FRAGMENT: dprintf (ERRORS, "Fragment got in the wrong channel\n"); default: dprintf (ERRORS, "dropping an out of bound input buffer " "on the floor 0x%x\n", buf->msg.header.message_type); goto msg_error; break; } frag_out: return TRUE; msg_error: cnx->incoming_msg = NULL; buf->msg.header.message_type = GIOP_MESSAGEERROR; buf->msg.header.message_size = 0; giop_recv_buffer_unuse (buf); /* Zap it for badness. * XXX We should probably handle oversized * messages more graciously XXX */ link_connection_state_changed (LINK_CONNECTION (cnx), LINK_DISCONNECTED); return TRUE; } static gboolean giop_timeout (gpointer data) { gboolean retv = FALSE; GIOPConnection *cnx = (GIOPConnection*)data; LinkConnection *lcnx = LINK_CONNECTION (cnx); GIOPThread *tdata = (GIOPThread *)lcnx->tdata; g_assert (lcnx->timeout_mutex); if (lcnx->status == LINK_DISCONNECTED) { giop_connection_unref (cnx); // we remove the source so we must unref cnx goto out; } g_mutex_lock (lcnx->timeout_mutex); if (lcnx->timeout_status == LINK_TIMEOUT_UNKNOWN) { lcnx->timeout_source_id = 0; lcnx->timeout_status = LINK_TIMEOUT_YES; } else { g_mutex_unlock (lcnx->timeout_mutex); retv = TRUE; // do not remove the source - the one who sets timeout_status will do that goto out; } g_mutex_unlock (lcnx->timeout_mutex); link_connection_state_changed (lcnx, LINK_TIMEOUT); g_mutex_lock (tdata->lock); /* ent_lock */ giop_incoming_signal_T (tdata, GIOP_CLOSECONNECTION); g_mutex_unlock (tdata->lock); /* ent_lock */ giop_connection_unref (cnx); // we remove the source so we must unref cnx out: return retv; } void giop_timeout_add (GIOPConnection *cnx) { static GStaticMutex static_mutex = G_STATIC_MUTEX_INIT; LinkConnection *lcnx = LINK_CONNECTION (cnx); if (!giop_thread_io ()) return; if (!lcnx->timeout_msec) return; g_static_mutex_lock (&static_mutex); if (lcnx->timeout_source_id) goto out; giop_connection_ref (cnx); // to be unref'ed by the one who removes the timeout source if (!lcnx->timeout_mutex) lcnx->timeout_mutex = g_mutex_new (); g_mutex_lock (lcnx->timeout_mutex); lcnx->timeout_status = LINK_TIMEOUT_UNKNOWN; g_mutex_unlock (lcnx->timeout_mutex); lcnx->tdata = giop_thread_self (); lcnx->timeout_source_id = link_io_thread_add_timeout (lcnx->timeout_msec, giop_timeout, (gpointer)cnx); out: g_static_mutex_unlock (&static_mutex); } GIOPRecvBuffer * giop_recv_buffer_use_buf (GIOPConnection *cnx) { GIOPRecvBuffer *buf = NULL; if(cnx) giop_connection_ref (cnx); buf = g_new0 (GIOPRecvBuffer, 1); buf->state = GIOP_MSG_READING_HEADER; buf->cur = (guchar *)&buf->msg.header; buf->left_to_read = 12; buf->connection = cnx; return buf; } ORBit2-2.14.19/src/orb/GIOP/giop-send-buffer.c0000644000175000001440000003640311334247617015273 00000000000000#include #include #include #include "giop-private.h" #ifdef HAVE_SYS_UIO_H # include #endif #include #include "../util/orbit-purify.h" #define GIOP_CHUNK_ALIGN 8 #define GIOP_CHUNK_SIZE (GIOP_CHUNK_ALIGN * 256) static gboolean giop_blank_wire_data = FALSE; static GSList *send_buffer_list = NULL; static GMutex *send_buffer_list_lock = NULL; static const char giop_zero_buf [GIOP_CHUNK_ALIGN * 10] = {0}; void giop_send_buffer_init (gboolean wipe) { #ifdef ORBIT_PURIFY giop_blank_wire_data = TRUE; #else giop_blank_wire_data = wipe; #endif send_buffer_list_lock = link_mutex_new (); } /* Marshal it at compile time so we don't have to do it over and over. This just stores codeset info to say that we only speak UTF-8/UTF-16 */ static const CORBA_unsigned_long iop_service_context_data [] = { 1 /* num_contexts */, 1 /* ServiceId for CodeSets */, 12 /* length of encapsulation: 4 endianness+align, 4 charset_id, 4 wcharset_id */, #if G_BYTE_ORDER == G_LITTLE_ENDIAN 0x01010101 /* start of encapsulation */, #else 0, #endif 0x05010001, /* UTF-8 */ 0x00010109 /* UTF-16 */ }; static const GIOP_AddressingDisposition giop_1_2_target_type = GIOP_KeyAddr; static gboolean giop_send_buffer_is_oneway(const GIOPSendBuffer *buf) { g_assert (buf); switch (buf->giop_version) { case GIOP_1_0: case GIOP_1_1: return (buf->msg.u.request_1_0.response_expected ? FALSE : TRUE); case GIOP_1_2: return (buf->msg.u.request_1_2.response_flags ? FALSE : TRUE); default: break; } g_assert_not_reached(); return TRUE; } GIOPSendBuffer * giop_send_buffer_use_request (GIOPVersion giop_version, CORBA_unsigned_long request_id, CORBA_boolean response_expected, const CORBA_sequence_CORBA_octet *objkey, const struct iovec *operation_vec, const struct iovec *principal_vec) { GIOPSendBuffer *buf = giop_send_buffer_use (giop_version); struct iovec zerovec; if(!principal_vec) { zerovec.iov_base = (gpointer) giop_zero_buf; zerovec.iov_len = sizeof (CORBA_unsigned_long); principal_vec = &zerovec; } buf->msg.header.message_type = GIOP_REQUEST; giop_send_buffer_align (buf, sizeof(CORBA_unsigned_long)); switch (giop_version) { case GIOP_1_0: case GIOP_1_1: buf->msg.u.request_1_0.request_id = request_id; buf->msg.u.request_1_0.response_expected = response_expected; giop_send_buffer_append (buf, (const guchar *)iop_service_context_data, sizeof(iop_service_context_data)); giop_send_buffer_append (buf, &buf->msg.u.request_1_0.request_id, sizeof(CORBA_unsigned_long)); giop_send_buffer_append (buf, &buf->msg.u.request_1_0.response_expected, sizeof(CORBA_boolean)); giop_send_buffer_append_aligned (buf, &objkey->_length, sizeof(CORBA_unsigned_long)); giop_send_buffer_append (buf, objkey->_buffer, objkey->_length); giop_send_buffer_align (buf, sizeof(CORBA_unsigned_long)); giop_send_buffer_append (buf, operation_vec->iov_base, operation_vec->iov_len); giop_send_buffer_append (buf, principal_vec->iov_base, principal_vec->iov_len); break; case GIOP_1_2: buf->msg.u.request_1_2.request_id = request_id; buf->msg.u.request_1_2.response_flags = response_expected ? 0x3 /* SYNC_WITH_TARGET */ : 0x0 /* SYNC_NONE */; giop_send_buffer_align (buf, sizeof(CORBA_unsigned_long)); giop_send_buffer_append (buf, &buf->msg.u.request_1_2.request_id, sizeof(CORBA_unsigned_long)); giop_send_buffer_append (buf, &buf->msg.u.request_1_2.response_flags, sizeof(CORBA_octet)); giop_send_buffer_append (buf, giop_zero_buf, 3); giop_send_buffer_append (buf, &giop_1_2_target_type, 2); /* We always use GIOP::KeyAddr addressing - the only sane way */ giop_send_buffer_append_aligned (buf, &objkey->_length, sizeof(CORBA_unsigned_long)); giop_send_buffer_append (buf, objkey->_buffer, objkey->_length); giop_send_buffer_align (buf, sizeof(CORBA_unsigned_long)); giop_send_buffer_append (buf, operation_vec->iov_base, operation_vec->iov_len); giop_send_buffer_append (buf, (const guchar *)iop_service_context_data, sizeof(iop_service_context_data)); giop_send_buffer_align (buf, 8); /* alignment for the body */ default: break; } return buf; } GIOPSendBuffer * giop_send_buffer_use_reply(GIOPVersion giop_version, CORBA_unsigned_long request_id, CORBA_unsigned_long reply_status) { GIOPSendBuffer *buf = giop_send_buffer_use(giop_version); buf->msg.header.message_type = GIOP_REPLY; switch(giop_version) { case GIOP_1_0: case GIOP_1_1: buf->msg.u.reply_1_0.reply_status = reply_status; buf->msg.u.reply_1_0.request_id = request_id; giop_send_buffer_append(buf, (const guchar *)iop_service_context_data, sizeof(iop_service_context_data)); giop_send_buffer_append(buf, &buf->msg.u.reply_1_0.request_id, sizeof(CORBA_unsigned_long)); giop_send_buffer_append(buf, &buf->msg.u.reply_1_0.reply_status, sizeof(CORBA_unsigned_long)); break; case GIOP_1_2: buf->msg.u.reply_1_2.reply_status = reply_status; buf->msg.u.reply_1_2.request_id = request_id; giop_send_buffer_append(buf, &buf->msg.u.reply_1_2.request_id, sizeof(CORBA_unsigned_long)); giop_send_buffer_append(buf, &buf->msg.u.reply_1_2.reply_status, sizeof(CORBA_unsigned_long)); giop_send_buffer_append(buf, (const guchar *)iop_service_context_data, sizeof(iop_service_context_data)); giop_send_buffer_align(buf, 8); /* alignment for the body */ default: break; } return buf; } GIOPSendBuffer * giop_send_buffer_use_locate_request (GIOPVersion giop_version, CORBA_unsigned_long request_id, const CORBA_sequence_CORBA_octet *objkey) { GIOPSendBuffer *buf = giop_send_buffer_use(giop_version); buf->msg.header.message_type = GIOP_LOCATEREQUEST; buf->msg.u.locate_request_1_0.request_id = request_id; giop_send_buffer_append(buf, &buf->msg.u.locate_request_1_0.request_id, sizeof(CORBA_unsigned_long)); switch(giop_version) { case GIOP_1_0: case GIOP_1_1: giop_send_buffer_append_aligned(buf, &objkey->_length, sizeof(CORBA_unsigned_long)); giop_send_buffer_append(buf, objkey->_buffer, objkey->_length); break; case GIOP_1_2: giop_send_buffer_append(buf, &giop_1_2_target_type, sizeof(giop_1_2_target_type)); giop_send_buffer_append_aligned(buf, &objkey->_length, sizeof(CORBA_unsigned_long)); giop_send_buffer_append(buf, objkey->_buffer, objkey->_length); default: break; } return buf; } GIOPSendBuffer * giop_send_buffer_use_locate_reply(GIOPVersion giop_version, CORBA_unsigned_long request_id, CORBA_unsigned_long locate_status) { GIOPSendBuffer *buf = giop_send_buffer_use(giop_version); buf->msg.header.message_type = GIOP_LOCATEREPLY; buf->msg.u.locate_reply_1_0.request_id = request_id; giop_send_buffer_append(buf, &buf->msg.u.locate_reply_1_0.request_id, sizeof(CORBA_unsigned_long)); buf->msg.u.locate_reply_1_0.locate_status = locate_status; giop_send_buffer_append(buf, &buf->msg.u.locate_reply_1_0.locate_status, sizeof(CORBA_unsigned_long)); return buf; } GIOPSendBuffer * giop_send_buffer_use_close_connection (GIOPVersion giop_version) { GIOPSendBuffer *buf = giop_send_buffer_use (giop_version); buf->msg.header.message_type = GIOP_CLOSECONNECTION; return buf; } GIOPSendBuffer * giop_send_buffer_use_message_error (GIOPVersion giop_version) { GIOPSendBuffer *buf = giop_send_buffer_use (giop_version); buf->msg.header.message_type = GIOP_MESSAGEERROR; return buf; } void giop_send_buffer_unuse (GIOPSendBuffer *buf) { int i; for (i = 0; i < buf->num_indirects_used; i++) { if (buf->indirects[i].size > GIOP_CHUNK_SIZE) { buf->indirects [i].size = GIOP_CHUNK_SIZE; buf->indirects [i].ptr = g_realloc (buf->indirects [i].ptr, buf->indirects [i].size); } } LINK_MUTEX_LOCK (send_buffer_list_lock); send_buffer_list = g_slist_prepend (send_buffer_list, buf); LINK_MUTEX_UNLOCK (send_buffer_list_lock); } static void giop_send_buffer_append_real (GIOPSendBuffer *buf, gconstpointer mem, gulong len) { register gulong num_used; register const guchar *lastptr; g_assert (mem); lastptr = buf->lastptr; num_used = buf->num_used; if(num_used && mem == lastptr) buf->iovecs[num_used-1].iov_len += len; else { if(num_used >= buf->num_alloced) { buf->num_alloced = MAX (buf->num_alloced, 4) * 2; buf->iovecs = g_realloc (buf->iovecs, buf->num_alloced * sizeof (struct iovec)); } buf->iovecs [num_used].iov_base = (gpointer) mem; buf->iovecs [num_used].iov_len = len; buf->num_used = num_used + 1; } buf->msg.header.message_size += len; buf->lastptr = ((const guchar *) mem) + len; } /* * get_next_indirect: * @buf: the send buffer with an exhausted indirect. * @for_size_hint: for very large buffers specify this * so we don't allocate too much. If this is non 0 then * buf->indirect will contain at least this much space. * * Pulls in the next indirect block into buf, and * sets up @buf->indirect_left, and @buf->indirect * to be correct. */ static void get_next_indirect (GIOPSendBuffer *buf, gulong for_size_hint) { gulong max = buf->num_indirects_used; if (max >= buf->num_indirects_alloced) { gulong new_size; buf->num_indirects_alloced++; buf->indirects = g_realloc ( buf->indirects, buf->num_indirects_alloced * sizeof (GIOPIndirectChunk)); if (for_size_hint) { new_size = (for_size_hint + 7) & ~7; if (new_size < GIOP_CHUNK_SIZE) new_size = GIOP_CHUNK_SIZE; } else new_size = GIOP_CHUNK_SIZE; buf->indirects [max].size = new_size; if (giop_blank_wire_data) buf->indirects [max].ptr = g_malloc0 (new_size); else buf->indirects [max].ptr = g_malloc (new_size); /* * We assume that this is 8 byte aligned, for efficiency - * so we can align to the memory address rather than the offset * into the buffer. */ g_assert (((gulong)buf->indirects [max].ptr & 0x3) == 0); } buf->indirect = buf->indirects [max].ptr; buf->indirect_left = buf->indirects [max].size; buf->num_indirects_used = max + 1; } static void giop_send_buffer_append_copy (GIOPSendBuffer *buf, gconstpointer mem, gulong len) { /* FIXME: should we fill up the full indirects ? */ if (buf->indirect_left < len) get_next_indirect (buf, len); memcpy (buf->indirect, mem, len); giop_send_buffer_append_real (buf, buf->indirect, len); buf->indirect += len; buf->indirect_left -= len; } void giop_send_buffer_append (GIOPSendBuffer *buf, gconstpointer mem, gulong len) { if (len <= 32) giop_send_buffer_append_copy (buf, mem, len); else giop_send_buffer_append_real (buf, mem, len); } /** * giop_send_buffer_align: * @buf: the buffer * @boundary: the boundary. * * Appends memory to the SendBuffer to align it to a boundary * of size @boundary bytes - if neccessary. **/ void giop_send_buffer_align (GIOPSendBuffer *buf, gulong boundary) { gulong align_amt, ms; /* 1. Figure out how much to align by */ ms = buf->msg.header.message_size + buf->header_size; align_amt = ALIGN_VALUE(ms, boundary) - ms; /* 2. Do the alignment */ if (align_amt) { if (buf->indirect_left < align_amt) get_next_indirect (buf, 0); p_memzero (buf->indirect, align_amt); giop_send_buffer_append_real (buf, buf->indirect, align_amt); buf->indirect += align_amt; buf->indirect_left -= align_amt; } } /** * giop_send_buffer_append_aligned: * @buf: the buffer * @mem: the memory pointer * @align_len: the alignment and length of @mem. * * This routine alignes the send buffer to a byte boundary * of size @align_len, and writes align_len bytes of memory * pointed to by @mem to the buffer, or simply expands the * buffer if mem is NULL by that much. * * Return value: a pointer to the beggining of the * contiguous space available for @mem * * Note: do not assume anything about the physical * alignment of the returned pointer. **/ guchar * giop_send_buffer_append_aligned (GIOPSendBuffer *buf, gconstpointer mem, gulong align_len) { guchar *indirect; /* FIXME: could make this more efficient by in-lining the align more aggressively here */ giop_send_buffer_align (buf, align_len); if (buf->indirect_left < align_len) get_next_indirect (buf, 0); indirect = buf->indirect; if (mem) memcpy (indirect, mem, align_len); else p_memzero (indirect, align_len); giop_send_buffer_append_real (buf, indirect, align_len); buf->indirect += align_len; buf->indirect_left -= align_len; return indirect; } /** * giop_send_buffer_write: * @buf: the buffer to write * @cnx: the connection to write it to. * * Writes @buf to @cnx as a block. * * Return value: 0 on sucess, non 0 on error. **/ int giop_send_buffer_write (GIOPSendBuffer *buf, GIOPConnection *cnx, gboolean blocking) { int retval; LinkConnection *lcnx = LINK_CONNECTION (cnx); static LinkWriteOpts *non_block = NULL; if (!non_block) non_block = link_write_options_new (FALSE); /* FIXME: if a FRAGMENT, assert the 8 byte tail align, &&|| giop_send_buffer_align (buf, 8); */ if (g_thread_supported () && lcnx->timeout_msec && !lcnx->timeout_source_id && !giop_send_buffer_is_oneway (buf)) { giop_timeout_add (cnx); } retval = link_connection_writev (lcnx, buf->iovecs, buf->num_used, blocking ? NULL : non_block); if (!blocking && retval == LINK_IO_QUEUED_DATA) retval = 0; /* FIXME: we need to flag the connection disconnected on fatal error */ return retval; } GIOPSendBuffer * giop_send_buffer_use (GIOPVersion giop_version) { GIOPSendBuffer *buf; g_return_val_if_fail ( ((int) giop_version) >= 0 && giop_version < GIOP_NUM_VERSIONS, NULL); LINK_MUTEX_LOCK (send_buffer_list_lock); if (send_buffer_list) { GSList *ltmp; ltmp = send_buffer_list; send_buffer_list = g_slist_remove_link ( send_buffer_list, ltmp); LINK_MUTEX_UNLOCK (send_buffer_list_lock); buf = ltmp->data; g_slist_free_1 (ltmp); buf->num_used = buf->indirect_left = 0; if (giop_blank_wire_data) { int i; for (i = 0; i < buf->num_indirects_used; i++) memset (buf->indirects [i].ptr, 0, buf->indirects [i].size); } buf->num_indirects_used = 0; } else { LINK_MUTEX_UNLOCK (send_buffer_list_lock); buf = g_new0 (GIOPSendBuffer, 1); memcpy (buf->msg.header.magic, "GIOP", 4); buf->msg.header.flags = GIOP_FLAG_ENDIANNESS; buf->num_alloced = 8; buf->iovecs = g_new (struct iovec, 8); } memcpy (buf->msg.header.version, giop_version_ids [giop_version], 2); buf->giop_version = giop_version; g_assert (sizeof (buf->msg.header) == 12); giop_send_buffer_append_real ( buf, (guchar *)&buf->msg.header, 12); buf->msg.header.message_size = 0; buf->header_size = 12; return buf; } void giop_send_buffer_append_string (GIOPSendBuffer *buf, const char *str) { CORBA_unsigned_long len; len = strlen (str) + 1; /* FIXME: inline me ? */ giop_send_buffer_align (buf, 4); /* be cleverer for short strings */ if (buf->indirect_left >= 4 + len) { guchar *indirect = buf->indirect; memcpy (indirect, &len, 4); memcpy (indirect + 4, str, len); giop_send_buffer_append_real (buf, indirect, 4 + len); buf->indirect += 4 + len; buf->indirect_left -= 4 + len; } else { giop_send_buffer_append_copy (buf, &len, 4); giop_send_buffer_append (buf, str, len); } } ORBit2-2.14.19/src/orb/GIOP/giop-connection.c0000644000175000001440000001101011334247617015215 00000000000000#include "config.h" #include #include #ifdef HAVE_UNISTD_H # include #endif #include "giop-private.h" static LinkConnectionClass *parent_class = NULL; enum { PROP_0, PROP_ORB, PROP_GIOP_VERSION }; static void giop_connection_real_state_changed (LinkConnection *cnx, LinkConnectionStatus status) { GIOPConnection *gcnx = GIOP_CONNECTION (cnx); if (parent_class->state_changed) parent_class->state_changed (cnx, status); switch (status) { case LINK_DISCONNECTED: if (gcnx->incoming_msg) { giop_recv_buffer_unuse (gcnx->incoming_msg); gcnx->incoming_msg = NULL; } giop_recv_list_zap (gcnx); break; default: break; } } void giop_connection_close (GIOPConnection *cnx) { if ((cnx->parent.status == LINK_DISCONNECTED) || (cnx->parent.status == LINK_TIMEOUT)) return; if (cnx->parent.status == LINK_CONNECTED && (!cnx->parent.was_initiated || cnx->giop_version == GIOP_1_2)) { GIOPSendBuffer *buf; buf = giop_send_buffer_use_close_connection ( cnx->giop_version); giop_send_buffer_write (buf, cnx, TRUE); giop_send_buffer_unuse (buf); } link_connection_disconnect (LINK_CONNECTION (cnx)); } static void giop_connection_dispose (GObject *obj) { GIOPConnection *cnx = (GIOPConnection *) obj; giop_thread_key_release (obj); giop_connection_close (cnx); giop_connection_destroy_frags (cnx); g_assert (cnx->incoming_msg == NULL); if (((GObjectClass *)parent_class)->dispose) ((GObjectClass *)parent_class)->dispose (obj); } static void giop_connection_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { GIOPConnection *cnx = (GIOPConnection *) object; switch (prop_id) { case PROP_ORB: cnx->orb_data = g_value_get_pointer (value); break; case PROP_GIOP_VERSION: cnx->giop_version = g_value_get_uint (value); break; } } static void giop_connection_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { GIOPConnection *cnx = (GIOPConnection *) object; switch (prop_id) { case PROP_ORB: g_value_set_pointer (value, cnx->orb_data); break; case PROP_GIOP_VERSION: g_value_set_uint (value, cnx->giop_version); break; } } static void giop_connection_class_init (GIOPConnectionClass *klass) { GObjectClass *object_class = (GObjectClass *) klass; parent_class = g_type_class_peek_parent (klass); object_class->dispose = giop_connection_dispose; object_class->set_property = giop_connection_set_property; object_class->get_property = giop_connection_get_property; g_object_class_install_property (object_class, PROP_ORB, g_param_spec_pointer ("orb", NULL, NULL, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_GIOP_VERSION, g_param_spec_uint ("version", NULL, NULL, 0, G_MAXINT, 0, G_PARAM_READWRITE)); klass->parent_class.state_changed = giop_connection_real_state_changed; klass->parent_class.handle_input = giop_connection_handle_input; } static void giop_connection_init (GIOPConnection *cnx) { } GType giop_connection_get_type (void) { static GType object_type = 0; if (!object_type) { static const GTypeInfo object_info = { sizeof (GIOPConnectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) giop_connection_class_init, NULL, /* class_finalize */ NULL, /* class_data */ sizeof (GIOPConnection), 0, /* n_preallocs */ (GInstanceInitFunc) giop_connection_init }; object_type = g_type_register_static ( link_connection_get_type(), "GIOPConnection", &object_info, 0); } return object_type; } GIOPConnection * giop_connection_initiate (gpointer orb_data, const char *proto_name, const char *remote_host_info, const char *remote_serv_info, GIOPConnectionOptions options, GIOPVersion giop_version) { g_return_val_if_fail (remote_host_info != NULL, NULL); options |= LINK_CONNECTION_NONBLOCKING; return (GIOPConnection *) link_connection_initiate (giop_connection_get_type (), proto_name, remote_host_info, remote_serv_info, (LinkConnectionOptions)options, "orb", orb_data, "version", (guint) giop_version, NULL); } LinkConnectionStatus giop_connection_try_reconnect (GIOPConnection *cnx) { return link_connection_try_reconnect (LINK_CONNECTION (cnx)); } void giop_set_timeout (guint msec) { link_set_timeout (msec); } ORBit2-2.14.19/src/orb/orbit-init.h0000644000175000001440000000035611334247617013464 00000000000000#ifndef _ORBIT_INIT_H_ #define _ORBIT_INIT_H_ DynamicAny_DynAnyFactory ORBit_DynAnyFactory_new (CORBA_ORB orb, CORBA_Environment *ev); void ORBit_init_internals (CORBA_ORB orb, CORBA_Environment *ev); #endif /* _ORBIT_INIT_H */ ORBit2-2.14.19/src/orb/util/0000755000175000001440000000000011450334027012253 500000000000000ORBit2-2.14.19/src/orb/util/Makefile.am0000644000175000001440000000063211334247617014241 00000000000000noinst_LTLIBRARIES=liborb-util.la INCLUDES = \ -I$(top_srcdir)/include \ -I$(top_builddir)/include \ -DORBIT_SYSTEM_RCFILE=\"$(sysconfdir)/orbitrc\" \ -DORBIT2_INTERNAL_API \ $(WARN_CFLAGS) \ $(DISABLE_DEPRECATED_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_CFLAGS) liborb_util_la_SOURCES= \ orbit-purify.h \ genrand.c \ orbit-options.c \ orbit-options.h \ orbit-util.c ORBit2-2.14.19/src/orb/util/orbit-options.h0000644000175000001440000000126211334247617015166 00000000000000#ifndef __ORBIT_OPTIONS_H__ #define __ORBIT_OPTIONS_H__ #include #define ORBIT_USER_RCFILE ".orbitrc" typedef enum { ORBIT_OPTION_NONE, ORBIT_OPTION_STRING, ORBIT_OPTION_INT, ORBIT_OPTION_BOOLEAN, ORBIT_OPTION_KEY_VALUE, /* returns GSList of ORBit_option_key_value */ ORBIT_OPTION_ULONG, } ORBit_option_type; typedef struct { gchar *name; ORBit_option_type type; gpointer arg; } ORBit_option; typedef struct { gchar *key; gchar *value; } ORBit_OptionKeyValue; void ORBit_option_parse (int *argc, char **argv, const ORBit_option *option_list); #endif /* __ORBIT_OPTIONS_H__ */ ORBit2-2.14.19/src/orb/util/Makefile.in0000644000175000001440000003760111450333734014253 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/orb/util DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) liborb_util_la_LIBADD = am_liborb_util_la_OBJECTS = genrand.lo orbit-options.lo orbit-util.lo liborb_util_la_OBJECTS = $(am_liborb_util_la_OBJECTS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(liborb_util_la_SOURCES) DIST_SOURCES = $(liborb_util_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_LTLIBRARIES = liborb-util.la INCLUDES = \ -I$(top_srcdir)/include \ -I$(top_builddir)/include \ -DORBIT_SYSTEM_RCFILE=\"$(sysconfdir)/orbitrc\" \ -DORBIT2_INTERNAL_API \ $(WARN_CFLAGS) \ $(DISABLE_DEPRECATED_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_CFLAGS) liborb_util_la_SOURCES = \ orbit-purify.h \ genrand.c \ orbit-options.c \ orbit-options.h \ orbit-util.c all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/orb/util/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/orb/util/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done liborb-util.la: $(liborb_util_la_OBJECTS) $(liborb_util_la_DEPENDENCIES) $(LINK) $(liborb_util_la_OBJECTS) $(liborb_util_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/genrand.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-options.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-util.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/src/orb/util/orbit-options.c0000644000175000001440000001545711334247617015174 00000000000000#include #include #include #include #include #include #include "orbit-options.h" #ifdef G_OS_WIN32 extern const gchar *ORBit_win32_get_system_rcfile (void); #undef ORBIT_SYSTEM_RCFILE #define ORBIT_SYSTEM_RCFILE ORBit_win32_get_system_rcfile () #endif #undef DEBUG /* * ORBit_option_set: * @option: an #ORBit_option describing the option. * @val: a pointer to the option value string. * * Sets @option's arg member member to the appropiate form * of @val. * * If the option is an string option the string will be * duplicated, if the option if a 'none' option it will * be treated as a boolean option of value TRUE. */ static void ORBit_option_set (const ORBit_option *option, const gchar *val) { g_assert (option != NULL); if (!option->arg) return; #ifdef DEBUG fprintf (stderr, "Setting option %s to %s\n", option->name, val ? val : "(none)" ); #endif switch (option->type) { case ORBIT_OPTION_NONE: *(gboolean *)option->arg = TRUE; break; case ORBIT_OPTION_BOOLEAN: *(gboolean *)option->arg = (gboolean)atoi (val); break; case ORBIT_OPTION_INT: *(gint *)option->arg = atoi (val); break; case ORBIT_OPTION_ULONG: *(guint *)option->arg = strtoul(val, (char **)NULL, 10); break; case ORBIT_OPTION_STRING: { gchar **str_arg = (char **) option->arg; if (*str_arg) g_free (*str_arg); *str_arg = g_strdup (val); break; } case ORBIT_OPTION_KEY_VALUE: { GSList **list = (GSList**) option->arg; /* split string into tuple */ gchar **str_vec = g_strsplit (val, "=", 2); if (!str_vec || !str_vec[0] || !str_vec[1]) { g_warning ("Option %s requieres key=value pair: %s", option->name, val); if (str_vec) g_strfreev (str_vec); break; } g_assert (str_vec[0] != NULL); g_assert (str_vec[1] != NULL); { ORBit_OptionKeyValue *tuple = g_new0 (ORBit_OptionKeyValue, 1); tuple->key = g_strdup (str_vec[0]); tuple->value = g_strdup (str_vec[1]); *list = g_slist_append (*list, tuple); } g_strfreev (str_vec); break; } default: g_assert_not_reached (); break; } } /* * ORBit_option_rc_parse: * @rcfile: the path of the orbitrc file. * @option_list: the #ORBit_options to parse from the file. * * Parses @rcfile for any of the options in @option_list. The syntax * of rcfile is simple : 'option=value'. * * Note: leading or trailing whitespace is allowed for both the option * and its value. */ static void ORBit_option_rc_parse (const gchar *rcfile, const ORBit_option *option_list) { gchar line [1024]; FILE *fh; fh = g_fopen (rcfile, "r"); if (!fh) return; #ifdef DEBUG fprintf (stderr, "Parsing file %s for options\n", rcfile); #endif while (fgets (line, sizeof (line), fh)) { const ORBit_option *option = NULL; gchar **strvec; gchar *key; gchar *value; if (line [0] == '#') continue; strvec = g_strsplit (line, "=", 3); if (!strvec || !strvec[0] || !strvec[1]) continue; key = g_strchomp (g_strchug (strvec[0])); for (option = option_list; option->name; option++) if (!strcmp (key, option->name)) break; if (!option->name) { option = NULL; continue; } value = g_strchomp (g_strchug (strvec[1])); ORBit_option_set (option, value); g_strfreev (strvec); } fclose (fh); } /* * ORBit_option_command_line_parse: * @argc: main's @argc param. * @argv: main's @argv param. * @option_list: list of #ORBit_options to parse from @argv. * * Parse @argv looking for options contained in @option_list and * setting values as appropriate. Also strip these options from * @argv and adjust @argc. */ static void ORBit_option_command_line_parse (int *argc, char **argv, const ORBit_option *option_list) { gboolean *erase; gint i, j, numargs; gchar name [1024]; gchar *tmpstr; const ORBit_option *option = NULL; #ifdef DEBUG fprintf (stderr, "Parsing command line for options\n"); #endif if (!argc || !argv) return; erase = g_new0 (gboolean, *argc); for (i = 1, numargs = *argc; i < *argc; i++) { if (argv [i][0] != '-') { if (!option) continue; erase [i] = TRUE; numargs--; if (!option->arg) { option = NULL; continue; } ORBit_option_set (option, argv [i]); option = NULL; continue; } else if (option && option->type != ORBIT_OPTION_NONE) g_warning ("Option %s requires an argument\n", option->name); tmpstr = argv [i]; while (*tmpstr && *tmpstr == '-') tmpstr++; strncpy (name, tmpstr, sizeof (name) - 1); name [sizeof (name) - 1] = '\0'; tmpstr = strchr (name, '='); if (tmpstr) *tmpstr++ = '\0'; for (option = option_list; option->name; option++) if (!strcmp (name, option->name)) break; if (!option->name) { option = NULL; continue; } erase [i] = TRUE; numargs--; if (option->type != ORBIT_OPTION_NONE && tmpstr) { ORBit_option_set (option, tmpstr); option = NULL; } } /* erase all consumed arguments from @argv list */ for (i = j = 1; i < *argc; i++) { if (erase [i]) continue; if (j < numargs) argv [j++] = argv [i]; else argv [j++] = ""; } *argc = numargs; g_free (erase); } static gboolean no_sysrc = FALSE; static gboolean no_userrc = FALSE; static ORBit_option orbit_sysrc_options [] = { {"ORBNoSystemRC", ORBIT_OPTION_NONE, &no_sysrc}, {"ORBNoUserRC", ORBIT_OPTION_NONE, &no_userrc}, {NULL, 0, NULL} }; /* * ORBit_option_parse: * @argc: main's @argc param. * @argv: main's @argv param. * @option_list: list of #ORBit_options. * * First parses the command line - @argv - to check for orbitrc related * options, then parses the relevant orbitrc files and finally parse the * command line for all other ORB related options. * * All ORBit options are stripped from @argv and @argc is adjusted. * * Note: Command line arguments override orbitrc options and ~/.orbitrc * overrides ${sysconfdir}/orbitrc. */ void ORBit_option_parse (int *argc, char **argv, const ORBit_option *option_list) { ORBit_option_command_line_parse (argc, argv, orbit_sysrc_options); if (!no_sysrc) ORBit_option_rc_parse (ORBIT_SYSTEM_RCFILE, option_list); if (!no_userrc) { gchar *rcfile; const gchar *home = g_get_home_dir (); if (home != NULL) { rcfile = g_strdup_printf ("%s" G_DIR_SEPARATOR_S "%s", home, ORBIT_USER_RCFILE); ORBit_option_rc_parse (rcfile, option_list); g_free (rcfile); } } ORBit_option_command_line_parse (argc, argv, option_list); } ORBit2-2.14.19/src/orb/util/orbit-purify.h0000644000175000001440000000073711334247617015017 00000000000000#ifndef _ORBIT_PURIFY_H #define _ORBIT_PURIFY_H 1 #include #include #ifdef ORBIT_PURIFY # define p_memwipe(m,len) memset ((m), 0xaa, (len)) # define p_memzero(m,len) memset ((m), 0, (len)) # define p_free(m,type) G_STMT_START { \ p_memwipe ((m), sizeof (type)); \ g_free (m); \ } G_STMT_END #else # define p_memwipe(m,len) # define p_memzero(m,len) # define p_free(m,len) g_free (m) #endif #endif /* ORBIT_PURIFY */ ORBit2-2.14.19/src/orb/util/orbit-util.c0000644000175000001440000000024111334247617014437 00000000000000#include #include gulong ORBit_wchar_strlen (CORBA_wchar *wstr) { gulong i; for (i = 0; wstr[i]; i++) ; return i; } ORBit2-2.14.19/src/orb/util/genrand.c0000644000175000001440000001115711334247617013773 00000000000000#include #include #include #include #include #ifdef HAVE_UNISTD_H # include #endif #ifdef _WIN32 # include #endif #ifdef HAVE_SYS_TIME_H # include #endif #include #include #include #include #include "orbit-purify.h" #ifdef G_OS_WIN32 # define pid_t DWORD #include #endif static ORBitGenUidType genuid_type = ORBIT_GENUID_STRONG; #ifndef G_OS_WIN32 static int random_fd = -1; #else static HCRYPTPROV hprov = 0; #endif static GRand *glib_prng = NULL; static pid_t genuid_pid; #ifndef G_OS_WIN32 static uid_t genuid_uid; #else static int genuid_uid = 0; #endif /* This is quite possibly a complete waste of cycles */ static GMutex *inc_lock = NULL; #define INC_LOCK() LINK_MUTEX_LOCK (inc_lock) #define INC_UNLOCK() LINK_MUTEX_UNLOCK (inc_lock) /** * ORBit_genuid_init: * @type: how strong / weak we want to be * * initializes randomness bits * * Return value: TRUE if we achieve the strength desired **/ gboolean ORBit_genuid_init (ORBitGenUidType type) { GTimeVal time; gboolean hit_strength; genuid_pid = getpid (); #ifndef G_OS_WIN32 genuid_uid = getuid (); #endif inc_lock = link_mutex_new(); glib_prng = g_rand_new (); g_get_current_time (&time); g_rand_set_seed (glib_prng, (time.tv_sec << 20) ^ time.tv_usec); genuid_type = type; switch (genuid_type) { case ORBIT_GENUID_STRONG: #ifndef G_OS_WIN32 random_fd = open ("/dev/urandom", O_RDONLY); if (random_fd < 0) random_fd = open ("/dev/random", O_RDONLY); hit_strength = (random_fd >= 0); #else if (CryptAcquireContext (&hprov, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) hit_strength = TRUE; else hit_strength = FALSE; #endif #ifdef LINK_SSL_SUPPORT hit_strength = TRUE; /* foolishly trust OpenSSL */ #endif break; default: hit_strength = TRUE; break; } return hit_strength; } void ORBit_genuid_fini (void) { #ifndef G_OS_WIN32 if (random_fd >= 0) { close (random_fd); random_fd = -1; } #else if (hprov) { CryptReleaseContext (hprov, 0); hprov = 0; } #endif if (glib_prng) { g_rand_free (glib_prng); glib_prng = NULL; } if (inc_lock) { g_mutex_free (inc_lock); inc_lock = NULL; } } #ifndef G_OS_WIN32 static gboolean genuid_rand_device (guchar *buffer, int length) { int n; for (; length > 0; ) { n = read (random_fd, buffer, length); if (n < 0) { if (errno == EINTR || errno == EAGAIN) continue; else { close (random_fd); random_fd = -1; return FALSE; } } length -= n; buffer += n; } return TRUE; } #endif #ifdef LINK_SSL_SUPPORT #include static gboolean genuid_rand_openssl (guchar *buffer, int length) { static RAND_METHOD *rm = NULL; INC_LOCK(); if (!rm) rm = RAND_get_rand_method (); INC_UNLOCK(); RAND_bytes (buffer, length); return TRUE; } #endif static void xor_buffer (guchar *buffer, int length) { static glong s = 0x6b842128; glong i, t; GTimeVal time; g_get_current_time (&time); t = time.tv_sec ^ time.tv_usec; for (i = 0; i < length; i++) buffer [i] ^= (guchar) (s ^ (t << i)); s ^= t; } static void genuid_simple (guchar *buffer, int length) { static guint32 inc = 0; g_assert (length >= 4); p_memzero (buffer, length); if (length > 4) memcpy (buffer + 4, &genuid_pid, 4); if (length > 8) memcpy (buffer + 8, &genuid_uid, 4); INC_LOCK (); inc++; memcpy (buffer, &inc, 4); xor_buffer (buffer, length); INC_UNLOCK (); } static void genuid_glib_pseudo (guchar *buffer, int length) { static guint32 inc = 0; int i; INC_LOCK (); inc++; for (i = 0; i < length; i++) { buffer [i] = g_rand_int_range (glib_prng, 0, 255); if (i < sizeof (guint32)) buffer [i] ^= ((guchar *) &inc) [i]; } xor_buffer (buffer, length); INC_UNLOCK (); } void ORBit_genuid_buffer (guint8 *buffer, int length, ORBitGenUidRole role) { ORBitGenUidType type = genuid_type; if (role == ORBIT_GENUID_OBJECT_ID) type = ORBIT_GENUID_SIMPLE; switch (type) { case ORBIT_GENUID_STRONG: #ifndef G_OS_WIN32 if (random_fd >= 0 && genuid_rand_device (buffer, length)) return; #else if (hprov && CryptGenRandom (hprov, length, buffer)) return; #endif #if LINK_SSL_SUPPORT else if (genuid_rand_openssl (buffer, length)) return; #endif genuid_glib_pseudo (buffer, length); break; case ORBIT_GENUID_SIMPLE: genuid_simple (buffer, length); break; default: g_error ("serious randomness failure"); break; } } ORBit2-2.14.19/src/services/0000755000175000001440000000000011450334030012331 500000000000000ORBit2-2.14.19/src/services/Makefile.am0000644000175000001440000000003511334247617014322 00000000000000SUBDIRS = \ name \ imodule ORBit2-2.14.19/src/services/Makefile.in0000644000175000001440000004372211450333734014340 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/services DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = \ name \ imodule all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/services/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/services/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/src/services/imodule/0000755000175000001440000000000011450334030013767 500000000000000ORBit2-2.14.19/src/services/imodule/orbit-imodule.h0000644000175000001440000000260111334247617016651 00000000000000/* * orbit-imodule.h: * * Copyright (C) 2002 Sun Microsystems, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. * * Authors: * Mark McLoughlin */ #ifndef __ORBIT_IMODULE_H__ #define __ORBIT_IMODULE_H__ #include #include #include G_BEGIN_DECLS ORBit_IInterfaces *ORBit_iinterfaces_from_file (const char *path, const char *cpp_args, CORBA_sequence_CORBA_TypeCode **typecodes_ret); ORBit_IInterfaces *ORBit_iinterfaces_from_tree (IDL_tree tree, CORBA_sequence_CORBA_TypeCode **typecodes_ret); G_END_DECLS #endif /* __ORBIT_IMODULE_H__ */ ORBit2-2.14.19/src/services/imodule/Makefile.am0000644000175000001440000000143411334247617015764 00000000000000NULL = lib_LTLIBRARIES = libORBit-imodule-2.la INCLUDES = \ -I$(top_srcdir)/include \ -I$(top_builddir)/include \ -DORBIT2_INTERNAL_API \ $(WARN_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_CFLAGS) \ $(ORBIT_IDL_CFLAGS) \ $(NULL) LDADD = $(ORBIT_LIBS) \ $(ORBIT_IDL_LIBS) \ $(top_builddir)/src/orb/libORBit-2.la imoduleincludedir = $(includedir)/orbit-2.0/ORBitservices imoduleinclude_HEADERS = orbit-imodule.h libORBit_imodule_2_la_SOURCES = \ orbit-imodule-utils.c \ orbit-imodule-utils.h \ orbit-imodule-libidl-utils.c \ orbit-imodule-libidl-utils.h \ orbit-imodule.c \ $(NULL) libORBit_imodule_2_la_LIBADD = \ $(top_builddir)/src/orb/libORBit-2.la \ $(ORBIT_IDL_LIBS) \ $(ORBIT_LIBS) libORBit_imodule_2_la_LDFLAGS = -no-undefined ORBit2-2.14.19/src/services/imodule/Makefile.in0000644000175000001440000004777311450333734016010 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = src/services/imodule DIST_COMMON = README $(imoduleinclude_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(libdir)" \ "$(DESTDIR)$(imoduleincludedir)" LTLIBRARIES = $(lib_LTLIBRARIES) am__DEPENDENCIES_1 = libORBit_imodule_2_la_DEPENDENCIES = \ $(top_builddir)/src/orb/libORBit-2.la $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) am__objects_1 = am_libORBit_imodule_2_la_OBJECTS = orbit-imodule-utils.lo \ orbit-imodule-libidl-utils.lo orbit-imodule.lo \ $(am__objects_1) libORBit_imodule_2_la_OBJECTS = $(am_libORBit_imodule_2_la_OBJECTS) libORBit_imodule_2_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libORBit_imodule_2_la_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libORBit_imodule_2_la_SOURCES) DIST_SOURCES = $(libORBit_imodule_2_la_SOURCES) HEADERS = $(imoduleinclude_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ NULL = lib_LTLIBRARIES = libORBit-imodule-2.la INCLUDES = \ -I$(top_srcdir)/include \ -I$(top_builddir)/include \ -DORBIT2_INTERNAL_API \ $(WARN_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_CFLAGS) \ $(ORBIT_IDL_CFLAGS) \ $(NULL) LDADD = $(ORBIT_LIBS) \ $(ORBIT_IDL_LIBS) \ $(top_builddir)/src/orb/libORBit-2.la imoduleincludedir = $(includedir)/orbit-2.0/ORBitservices imoduleinclude_HEADERS = orbit-imodule.h libORBit_imodule_2_la_SOURCES = \ orbit-imodule-utils.c \ orbit-imodule-utils.h \ orbit-imodule-libidl-utils.c \ orbit-imodule-libidl-utils.h \ orbit-imodule.c \ $(NULL) libORBit_imodule_2_la_LIBADD = \ $(top_builddir)/src/orb/libORBit-2.la \ $(ORBIT_IDL_LIBS) \ $(ORBIT_LIBS) libORBit_imodule_2_la_LDFLAGS = -no-undefined all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/services/imodule/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/services/imodule/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libORBit-imodule-2.la: $(libORBit_imodule_2_la_OBJECTS) $(libORBit_imodule_2_la_DEPENDENCIES) $(libORBit_imodule_2_la_LINK) -rpath $(libdir) $(libORBit_imodule_2_la_OBJECTS) $(libORBit_imodule_2_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-imodule-libidl-utils.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-imodule-utils.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-imodule.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-imoduleincludeHEADERS: $(imoduleinclude_HEADERS) @$(NORMAL_INSTALL) test -z "$(imoduleincludedir)" || $(MKDIR_P) "$(DESTDIR)$(imoduleincludedir)" @list='$(imoduleinclude_HEADERS)'; test -n "$(imoduleincludedir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(imoduleincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(imoduleincludedir)" || exit $$?; \ done uninstall-imoduleincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(imoduleinclude_HEADERS)'; test -n "$(imoduleincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(imoduleincludedir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(imoduleincludedir)" && rm -f $$files ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(imoduleincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-imoduleincludeHEADERS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-libLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-imoduleincludeHEADERS uninstall-libLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-imoduleincludeHEADERS install-info \ install-info-am install-libLTLIBRARIES install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-imoduleincludeHEADERS \ uninstall-libLTLIBRARIES # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/src/services/imodule/orbit-imodule.c0000644000175000001440000003706011334247617016653 00000000000000/* * orbit-imodule.c: * * Copyright (C) 2002 Sun Microsystems, Inc. * Ximian, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. * * Authors: * Mark McLoughlin * Michael Meeks */ #include #include "orbit-imodule.h" #include "orbit-imodule-utils.h" typedef struct { IDL_tree tree; CORBA_TypeCode tc; GSList *methods; /* IDLN_OP_DCLs */ } Interface; typedef struct { IDL_tree cur_node; guint parents; } InterfaceCountInfo; typedef struct { IDL_tree cur_node; CORBA_sequence_CORBA_string *base_interfaces; guint index; } InterfaceTraverseInfo; static void ORBit_iinterface_count_base_itypes (IDL_tree node, InterfaceCountInfo *iti) { if (iti->cur_node == node) return; iti->parents++; } static void ORBit_iinterface_fill_base_itypes (IDL_tree node, InterfaceTraverseInfo *iti) { if (iti->cur_node == node) return; iti->base_interfaces->_buffer [iti->index++] = CORBA_string_dup (IDL_IDENT(IDL_INTERFACE(node).ident).repo_id); } static void ORBit_iinterface_fill_iargs (GHashTable *typecodes, IDL_tree tree, ORBit_IArgs *ret_iargs) { IDL_tree sub; int arg_count; int i; g_return_if_fail (tree != NULL); g_return_if_fail (ret_iargs != NULL); arg_count = IDL_list_length (IDL_OP_DCL (tree).parameter_dcls); ret_iargs->_length = arg_count; ret_iargs->_maximum = arg_count; ret_iargs->_buffer = ORBit_IArgs_allocbuf (arg_count); ret_iargs->_release = CORBA_TRUE; for (sub = IDL_OP_DCL (tree).parameter_dcls, i = 0; sub; sub = IDL_LIST (sub).next, i++) { ORBit_IArg *iarg; IDL_tree parm; iarg = &ret_iargs->_buffer [i]; parm = IDL_LIST (sub).data; iarg->tc = ORBit_imodule_get_typecode ( typecodes, IDL_PARAM_DCL (parm).param_type_spec); iarg->name = CORBA_string_dup( IDL_STRING (IDL_PARAM_DCL(parm).simple_declarator).value); switch (IDL_PARAM_DCL (parm).attr) { case IDL_PARAM_IN: iarg->flags = ORBit_I_ARG_IN; break; case IDL_PARAM_OUT: iarg->flags = ORBit_I_ARG_OUT; break; case IDL_PARAM_INOUT: iarg->flags = ORBit_I_ARG_INOUT; break; default: g_assert_not_reached (); } if (ORBit_imodule_type_is_fixed_length ( IDL_PARAM_DCL (parm).param_type_spec)) iarg->flags |= ORBit_I_COMMON_FIXED_SIZE; #if 0 else if (IDL_PARAM_DCL (parm).attr == IDL_PARAM_OUT) { IDL_tree ts = ORBit_imodule_get_typespec ( IDL_PARAM_DCL (parm).param_type_spec); switch (IDL_NODE_TYPE (ts)) { case IDLN_TYPE_STRUCT: case IDLN_TYPE_UNION: case IDLN_TYPE_ARRAY: iarg->flags |= ORBIT_I_ARG_FIXED; break; default: break; }; } #endif } } static void ORBit_iinterface_fill_contexts (GHashTable *typecodes, IDL_tree tree, ORBit_IContexts *ret_contexts) { g_return_if_fail (tree != NULL); g_return_if_fail (ret_contexts != NULL); memset (ret_contexts, 0, sizeof (ORBit_IContexts)); if (IDL_OP_DCL (tree).context_expr) { IDL_tree curitem; int count; int i; count = IDL_list_length (IDL_OP_DCL (tree).context_expr); ret_contexts->_length = count; ret_contexts->_maximum = count; ret_contexts->_buffer = ORBit_IContexts_allocbuf (count); ret_contexts->_release = CORBA_TRUE; for (curitem = IDL_OP_DCL (tree).context_expr, i = 0; curitem; curitem = IDL_LIST (curitem).next, i++) ret_contexts->_buffer [i] = CORBA_string_dup ( IDL_STRING (IDL_LIST (curitem).data).value); } } static void ORBit_iinterface_fill_exceptinfo (GHashTable *typecodes, IDL_tree tree, ORBit_ITypes *ret_itypes) { g_return_if_fail (tree != NULL); g_return_if_fail (ret_itypes != NULL); memset (ret_itypes, 0, sizeof (ORBit_ITypes)); if (IDL_OP_DCL (tree).raises_expr) { IDL_tree curitem; int count; int i; count = IDL_list_length (IDL_OP_DCL (tree).raises_expr); ret_itypes->_length = count; ret_itypes->_maximum = count; ret_itypes->_buffer = ORBit_ITypes_allocbuf (count); ret_itypes->_release = CORBA_TRUE; for (curitem = IDL_OP_DCL (tree).raises_expr, i = 0; curitem; curitem = IDL_LIST (curitem).next, i++) ret_itypes->_buffer [i] = ORBit_imodule_get_typecode ( typecodes, IDL_LIST (curitem).data); } } static void ORBit_iinterface_fill_method (GHashTable *typecodes, IDL_tree tree, ORBit_IMethod *ret_imethod) { char *method; g_return_if_fail (tree != NULL); g_return_if_fail (IDL_NODE_TYPE (tree) == IDLN_OP_DCL); g_return_if_fail (ret_imethod != NULL); ORBit_iinterface_fill_iargs ( typecodes, tree, &ret_imethod->arguments); ORBit_iinterface_fill_contexts ( typecodes, tree, &ret_imethod->contexts); ORBit_iinterface_fill_exceptinfo ( typecodes, tree, &ret_imethod->exceptions); if (IDL_OP_DCL (tree).op_type_spec) ret_imethod->ret = ORBit_imodule_get_typecode ( typecodes, IDL_OP_DCL (tree).op_type_spec); else ret_imethod->ret = TC_void; method = IDL_IDENT (IDL_OP_DCL (tree).ident).str; ret_imethod->name = CORBA_string_dup (method); ret_imethod->name_len = strlen (method); ret_imethod->flags = 0; if (IDL_OP_DCL(tree).f_oneway) ret_imethod->flags |= ORBit_I_METHOD_1_WAY; #if 0 /* FIXME: re-scan for no_out */ if (no_out) ret_imethod->flags |= ORBit_I_METHOD_NO_OUT; #endif if (IDL_OP_DCL (tree).op_type_spec && ORBit_imodule_type_is_fixed_length ( IDL_OP_DCL (tree).op_type_spec)) ret_imethod->flags |= ORBit_I_COMMON_FIXED_SIZE; if (IDL_OP_DCL (tree).context_expr) ret_imethod->flags |= ORBit_I_METHOD_HAS_CONTEXT; } static void ORBit_iinterface_from_interface (GHashTable *typecodes, Interface *iface, ORBit_IInterface *ret_iiface) { InterfaceTraverseInfo iti; InterfaceCountInfo ici; GSList *m; int method_count; int i; g_return_if_fail (iface != NULL); g_return_if_fail (ret_iiface != NULL); ret_iiface->tc = (CORBA_TypeCode) CORBA_Object_duplicate ( (CORBA_Object) iface->tc, NULL); method_count = g_slist_length (iface->methods); ret_iiface->methods._length = method_count; ret_iiface->methods._maximum = method_count; ret_iiface->methods._buffer = ORBit_IMethods_allocbuf (method_count); ret_iiface->methods._release = CORBA_TRUE; for (m = iface->methods, i = 0; m; m = m->next, i++) ORBit_iinterface_fill_method ( typecodes, m->data, &ret_iiface->methods._buffer [i]); ici.cur_node = iface->tree; ici.parents = 0; ORBit_imodule_traverse_parents (iface->tree, (GFunc) ORBit_iinterface_count_base_itypes, &ici); ret_iiface->base_interfaces._length = ici.parents + 1; ret_iiface->base_interfaces._maximum = ici.parents + 1; ret_iiface->base_interfaces._buffer = CORBA_sequence_CORBA_string_allocbuf (ici.parents + 1); ret_iiface->base_interfaces._release = CORBA_TRUE; iti.cur_node = iface->tree; iti.index = 0; iti.base_interfaces = &ret_iiface->base_interfaces; ORBit_imodule_traverse_parents (iface->tree, (GFunc) ORBit_iinterface_fill_base_itypes, &iti); iti.base_interfaces->_buffer [iti.index] = CORBA_string_dup ("IDL:CORBA/Object:1.0"); } static void ORBit_iinterface_free_interfaces (GSList *list) { GSList *l; for (l = list; l; l = l->next) { CORBA_Object_release ((CORBA_Object) ((Interface *) l->data)->tc, NULL); g_slist_free (((Interface *) l->data)->methods); g_free (l->data); } g_slist_free (list); } static void ORBit_imodule_fake_attribute_ops (IDL_tree attr, IDL_tree ident, IDL_tree *get_op, IDL_tree *set_op) { IDL_tree fake_ident; g_return_if_fail (attr != NULL); g_return_if_fail (IDL_NODE_TYPE (attr) == IDLN_ATTR_DCL); g_return_if_fail (ident != NULL); g_return_if_fail (IDL_NODE_TYPE (ident) == IDLN_IDENT); fake_ident = IDL_ident_new ( g_strdup_printf ("_get_%s", IDL_IDENT (ident).str)); IDL_IDENT_TO_NS (fake_ident) = IDL_IDENT_TO_NS (ident); *get_op = IDL_op_dcl_new ( 0, IDL_ATTR_DCL (attr).param_type_spec, fake_ident, NULL, NULL, NULL); IDL_NODE_UP (*get_op) = IDL_NODE_UP (attr); if (!IDL_ATTR_DCL (attr).f_readonly) { IDL_tree param; fake_ident = IDL_ident_new ( g_strdup_printf ("_set_%s", IDL_IDENT (ident).str)); IDL_IDENT_TO_NS (fake_ident) = IDL_IDENT_TO_NS (ident); *set_op = IDL_op_dcl_new ( 0, NULL, fake_ident, NULL, NULL, NULL); IDL_NODE_UP (*set_op) = IDL_NODE_UP (attr); param = IDL_param_dcl_new (IDL_PARAM_IN, IDL_ATTR_DCL (attr).param_type_spec, IDL_ident_new (g_strdup("value"))); IDL_OP_DCL (*set_op).parameter_dcls = IDL_list_new (param); } } static GSList * ORBit_iinterface_build_interfaces (GHashTable *typecodes, GSList *list, IDL_tree tree) { if (!tree) return list; switch (IDL_NODE_TYPE (tree)) { case IDLN_MODULE: list = ORBit_iinterface_build_interfaces ( typecodes, list, IDL_MODULE (tree).definition_list); break; case IDLN_LIST: { IDL_tree sub; for (sub = tree; sub; sub = IDL_LIST (sub).next) list = ORBit_iinterface_build_interfaces ( typecodes, list, IDL_LIST (sub).data); } break; case IDLN_ATTR_DCL: { IDL_tree sub; for (sub = IDL_ATTR_DCL (tree).simple_declarations; sub; sub = IDL_LIST (sub).next) { IDL_tree get_op = NULL; IDL_tree set_op = NULL; ORBit_imodule_fake_attribute_ops ( tree, IDL_LIST (sub).data, &get_op, &set_op); list = ORBit_iinterface_build_interfaces ( typecodes, list, get_op); if (set_op) list = ORBit_iinterface_build_interfaces ( typecodes, list, set_op); } } break; case IDLN_INTERFACE: { Interface *i = g_new0 (Interface, 1); i->tree = tree; i->tc = ORBit_imodule_get_typecode (typecodes, tree); list = g_slist_append (list, i); list = ORBit_iinterface_build_interfaces ( typecodes, list, IDL_INTERFACE (tree).body); } break; case IDLN_OP_DCL: { Interface *i; g_return_val_if_fail (list != NULL, NULL); i = (g_slist_last (list))->data; i->methods = g_slist_append (i->methods, tree); } break; case IDLN_EXCEPT_DCL: case IDLN_TYPE_STRUCT: case IDLN_TYPE_UNION: case IDLN_TYPE_ENUM: case IDLN_FORWARD_DCL: /* Load the types into the typecode hash */ CORBA_Object_release ( (CORBA_Object) ORBit_imodule_get_typecode ( typecodes, tree), NULL); break; case IDLN_TYPE_DCL: { CORBA_TypeCode type; IDL_tree l; type = ORBit_imodule_get_typecode ( typecodes, IDL_TYPE_DCL (tree).type_spec); for (l = IDL_TYPE_DCL (tree).dcls; l; l = IDL_LIST (l).next) { IDL_tree dcl; dcl = IDL_LIST (l).data; if (IDL_NODE_TYPE (dcl) == IDLN_IDENT) CORBA_Object_release ( (CORBA_Object) ORBit_imodule_create_alias_typecode ( typecodes, dcl, type), NULL); else /* IDLN_TYPE_ARRAY */ CORBA_Object_release ( (CORBA_Object) ORBit_imodule_get_typecode ( typecodes, dcl), NULL); } CORBA_Object_release ((CORBA_Object) type, NULL); } break; default: break; } return list; } /* * ORBit_iinterfaces_from_file: * @tree: an %IDL_tree. * @typecodes_ret: return location for typecodes sequence (optional) * * Traverses the IDL parse tree, @tree, and returns a sequence of * %ORBit_IInterface. The output is equivalent to the static data * that is output by the idl compiler using the --add-imodule switch. * A sequence of %CORBA_TypeCode is returned through the @typecodes_ret * parameter. * * Both the return value and the typecodes sequence should be * freed using CORBA_free(). * * This method is intended for use by scripting language bindings * so that they may invoke interface methods defined in the idl * tree parsing the idl themselves or loading a typelib * module. Use this instead of ORBit_iinterfaces_from_file if you * also wish to have access to the IDL parse tree. * * Return Value: A sequence of %ORBit_IInterface. */ ORBit_IInterfaces * ORBit_iinterfaces_from_tree (IDL_tree tree, CORBA_sequence_CORBA_TypeCode **typecodes_ret) { GHashTable *typecodes; ORBit_IInterfaces *retval; GSList *list, *l; int count, i; g_return_val_if_fail (tree != NULL, NULL); typecodes = ORBit_imodule_new_typecodes (); list = ORBit_iinterface_build_interfaces (typecodes, NULL, tree); count = g_slist_length (list); retval = ORBit_IInterfaces__alloc (); retval->_length = count; retval->_maximum = count; retval->_buffer = ORBit_IInterfaces_allocbuf (count); retval->_release = CORBA_TRUE; for (l = list, i = 0; l; l = l->next, i++) ORBit_iinterface_from_interface ( typecodes, l->data, &retval->_buffer [i]); ORBit_iinterface_free_interfaces (list); if (typecodes_ret) *typecodes_ret = ORBit_imodule_get_typecodes_seq (typecodes); ORBit_imodule_free_typecodes (typecodes); return retval; } static char * build_cpp_args (const char *path, const char *cpp_args) { char *ret; char *base; char *base_cpy; int i; base = g_path_get_basename (path); if (strlen (base) <= 4) { ret = g_strconcat ("-D__ORBIT_IDL__ ", cpp_args, NULL); } else { /* base minus .idl extension */ base_cpy = g_strndup (base, strlen (base) - 4); for (i = 0; base_cpy[i] != '\0'; i++) { if (base_cpy[i] == '-') base_cpy[i] = '_'; } ret = g_strconcat ("-D__ORBIT_IDL__ -D__", base_cpy, "_COMPILATION ", cpp_args, NULL); g_free (base_cpy); } g_free (base); return ret; } #define PARSE_FLAGS (IDLF_SHOW_CPP_ERRORS| \ IDLF_TYPECODES| \ IDLF_SRCFILES| \ IDLF_CODEFRAGS) /* * ORBit_iinterfaces_from_file: * @path: path to the idl file to parse * @cpp_args: arguments to pass to the preprocessor (optional) * @typecodes_ret: return location for typecodes sequence (optional) * * Parses @path idl file and returns a sequence of %ORBit_IInterface. * The output is equivalent to the static data that is output by * the idl compiler using the --add-imodule switch. A sequence * of %CORBA_TypeCode is returned through the @typecodes_ret parameter. * * Both the return value and the typecodes sequence should be * freed using CORBA_free(). * * This method is intended for use by scripting language bindings * so that they may invoke interface methods defined in the idl * file without parsing the idl themselves or loading a typelib * module. * * Return Value: A sequence of %ORBit_IInterface. */ ORBit_IInterfaces * ORBit_iinterfaces_from_file (const char *path, const char *cpp_args, CORBA_sequence_CORBA_TypeCode **typecodes_ret) { ORBit_IInterfaces *retval; char *full_cpp_args; IDL_tree tree; IDL_ns namespace; int ret; full_cpp_args = build_cpp_args (path, cpp_args); ret = IDL_parse_filename (path, full_cpp_args, NULL, &tree, &namespace, PARSE_FLAGS, 0); g_free (full_cpp_args); if (ret != IDL_SUCCESS) { g_warning ("Cannot parse %s\n", path); return NULL; } retval = ORBit_iinterfaces_from_tree (tree, typecodes_ret); return retval; } ORBit2-2.14.19/src/services/imodule/README0000644000175000001440000000036111334247617014606 00000000000000README for src/services/imodule ================================ This is a simple library intended for language bindings who wish to be able to generate ORBit_IMethods by parsing IDL at runtime so that they may dynamically invoke methods. ORBit2-2.14.19/src/services/imodule/orbit-imodule-utils.c0000644000175000001440000006047011334247617020012 00000000000000/* * orbit-imodule-utils.c: * * Copyright (C) 2002 Sun Microsystems, Inc. * Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. * * Authors: * Mark McLoughlin * Elliot Lee #include #include "orbit-imodule-utils.h" #include "orbit-imodule-libidl-utils.h" static CORBA_StructMemberSeq * ORBit_imodule_get_struct_members (GHashTable *typecodes, IDL_tree tree, CORBA_Environment *ev) { CORBA_StructMemberSeq *members; IDL_tree l; int num_members = 0; int i; g_return_val_if_fail (IDL_NODE_TYPE (tree) == IDLN_TYPE_STRUCT || IDL_NODE_TYPE (tree) == IDLN_EXCEPT_DCL, NULL); for (l = IDL_TYPE_STRUCT (tree).member_list; l; l = IDL_LIST (l).next) num_members += IDL_list_length (IDL_MEMBER (IDL_LIST (l).data).dcls); members = CORBA_StructMemberSeq__alloc (); members->_length = members->_maximum = num_members; members->_buffer = CORBA_StructMemberSeq_allocbuf (members->_length); members->_release = CORBA_TRUE; for (i = 0, l = IDL_TYPE_STRUCT (tree).member_list; l; l = IDL_LIST (l).next) { CORBA_TypeCode subtc; IDL_tree dcl; subtc = ORBit_imodule_get_typecode ( typecodes, IDL_MEMBER (IDL_LIST (l).data).type_spec); for (dcl = IDL_MEMBER (IDL_LIST (l).data).dcls; dcl; dcl = IDL_LIST (dcl).next, i++) { CORBA_StructMember *member = &members->_buffer [i]; CORBA_string name; if (IDL_NODE_TYPE (dcl) == IDLN_IDENT) name = IDL_IDENT (dcl).str; else /* IDLN_TYPE_ARRAY */ name = IDL_IDENT (IDL_TYPE_ARRAY (dcl).ident).str; member->name = CORBA_string_dup (name); member->type = (CORBA_TypeCode) CORBA_Object_duplicate ((CORBA_Object) subtc, ev); member->type_def = CORBA_OBJECT_NIL; /* Not used? */ } CORBA_Object_release ((CORBA_Object) subtc, ev); } g_assert (i == num_members); return members; } static void ORBit_imodule_jam_int (IDL_tree src, CORBA_TypeCode tc, gpointer dest) { CORBA_long val = 0; switch (IDL_NODE_TYPE (src)) { case IDLN_BOOLEAN: val = IDL_BOOLEAN (src).value ? 1 : 0; break; case IDLN_CHAR: val = IDL_CHAR (src).value [0]; break; case IDLN_INTEGER: val = IDL_INTEGER (src).value; break; default: g_assert_not_reached (); break; } switch (tc->kind) { case CORBA_tk_boolean: case CORBA_tk_char: case CORBA_tk_octet: *(CORBA_boolean *) dest = val; break; case CORBA_tk_short: case CORBA_tk_ushort: *(CORBA_short *) dest = val; break; case CORBA_tk_long: case CORBA_tk_ulong: *(CORBA_long *) dest = val; break; default: g_assert_not_reached (); break; } } static void ORBit_imodule_setup_label_any (CORBA_TypeCode tc, IDL_tree node, CORBA_any *label) { if (!node) { /* default case */ label->_type = TC_CORBA_octet; label->_value = ORBit_small_alloc (TC_CORBA_octet); *(CORBA_octet *) label->_value = -1; return; } label->_type = (CORBA_TypeCode) CORBA_Object_duplicate ( (CORBA_Object) tc, NULL); label->_value = ORBit_small_alloc (tc); switch (IDL_NODE_TYPE (node)) { case IDLN_BOOLEAN: case IDLN_CHAR: case IDLN_INTEGER: ORBit_imodule_jam_int (node, tc, label->_value); break; case IDLN_FLOAT: g_assert (tc->kind == CORBA_tk_float); *(CORBA_float *) label->_value = IDL_FLOAT (node).value; break; case IDLN_BINOP: /* drop through */ case IDLN_UNARYOP: { IDL_tree val; if (IDL_NODE_TYPE (node) == IDLN_BINOP) val = _IDL_binop_eval (IDL_BINOP (node).op, IDL_BINOP (node).left, IDL_BINOP (node).right); else val = _IDL_unaryop_eval (IDL_BINOP (node).op, IDL_UNARYOP (node).operand); ORBit_imodule_jam_int (val, tc, label->_value); IDL_tree_free (val); break; } case IDLN_IDENT: { CORBA_long val; g_assert (label->_type->kind == CORBA_tk_enum); for (val = 0; val < label->_type->sub_parts; val++) if (!strcmp (IDL_IDENT (node).str, label->_type->subnames [val])) break; g_assert (val < label->_type->sub_parts); *(CORBA_long *) label->_value = val; break; } default: g_assert_not_reached (); break; } } static CORBA_UnionMemberSeq * ORBit_imodule_get_union_members (GHashTable *typecodes, IDL_tree tree, CORBA_TypeCode switchtc, CORBA_Environment *ev) { CORBA_UnionMemberSeq *members; IDL_tree l; int num_members = 0; int i; g_return_val_if_fail (IDL_NODE_TYPE (tree) == IDLN_TYPE_UNION, NULL); for (l = IDL_TYPE_UNION (tree).switch_body; l; l = IDL_LIST (l).next) num_members += IDL_list_length (IDL_CASE_STMT (IDL_LIST (l).data).labels); members = CORBA_UnionMemberSeq__alloc (); members->_length = members->_maximum = num_members; members->_buffer = CORBA_UnionMemberSeq_allocbuf (members->_length); members->_release = CORBA_TRUE; for (i = 0, l = IDL_TYPE_UNION (tree).switch_body; l; l = IDL_LIST (l).next) { CORBA_TypeCode subtc; IDL_tree member, label, dcl; member = IDL_CASE_STMT (IDL_LIST (l).data).element_spec; g_assert (IDL_NODE_TYPE (member) == IDLN_MEMBER); subtc = ORBit_imodule_get_typecode ( typecodes, IDL_MEMBER (member).type_spec); dcl = IDL_LIST (IDL_MEMBER (member).dcls).data; for (label = IDL_CASE_STMT (IDL_LIST (l).data).labels; label; label = IDL_LIST (label).next, i++) { CORBA_UnionMember *umember = &members->_buffer [i]; ORBit_imodule_setup_label_any ( switchtc, IDL_LIST (label).data, &umember->label); umember->label._release = CORBA_TRUE; umember->name = CORBA_string_dup (IDL_IDENT (dcl).str); umember->type = (CORBA_TypeCode) CORBA_Object_duplicate ((CORBA_Object) subtc, ev); umember->type_def = CORBA_OBJECT_NIL; /* Not used? */ } CORBA_Object_release ((CORBA_Object) subtc, ev); } g_assert (i == num_members); return members; } static CORBA_EnumMemberSeq * ORBit_imodule_get_enum_members (IDL_tree tree, CORBA_Environment *ev) { CORBA_EnumMemberSeq *members; IDL_tree l; int num_members = 0; int i; g_return_val_if_fail (IDL_NODE_TYPE (tree) == IDLN_TYPE_ENUM, NULL); num_members = IDL_list_length (IDL_TYPE_ENUM (tree).enumerator_list); members = CORBA_EnumMemberSeq__alloc (); members->_length = members->_maximum = num_members; members->_buffer = CORBA_EnumMemberSeq_allocbuf (members->_length); members->_release = CORBA_TRUE; for (i = 0, l = IDL_TYPE_ENUM (tree).enumerator_list; l; i++, l = IDL_LIST (l).next) members->_buffer [i] = CORBA_string_dup (IDL_IDENT (IDL_LIST (l).data).str); g_assert (i == num_members); return members; } static CORBA_TypeCode ORBit_imodule_lookup_typecode (GHashTable *typecodes, const char *repo_id) { if (!typecodes) return CORBA_OBJECT_NIL; return (CORBA_TypeCode) CORBA_Object_duplicate ( g_hash_table_lookup (typecodes, repo_id), NULL); } static void ORBit_imodule_register_typecode (GHashTable *typecodes, const char *repo_id, CORBA_TypeCode tc) { g_return_if_fail (g_hash_table_lookup (typecodes, repo_id) == NULL); g_hash_table_insert ( typecodes, g_strdup (repo_id), CORBA_Object_duplicate ((CORBA_Object) tc, NULL)); } GHashTable * ORBit_imodule_new_typecodes (void) { return g_hash_table_new_full ( g_str_hash, g_str_equal, g_free, (GDestroyNotify) CORBA_Object_release); } void ORBit_imodule_free_typecodes (GHashTable *typecodes) { g_hash_table_destroy (typecodes); } typedef struct { CORBA_sequence_CORBA_TypeCode *sequence; int iter; } TypecodesHashIter; static void typecodes_hash_foreach (const char *repo_id, CORBA_TypeCode tc, TypecodesHashIter *iter) { g_assert (iter->iter < iter->sequence->_length); iter->sequence->_buffer [iter->iter++] = (CORBA_TypeCode) CORBA_Object_duplicate ((CORBA_Object) tc, NULL); } CORBA_sequence_CORBA_TypeCode * ORBit_imodule_get_typecodes_seq (GHashTable *typecodes) { CORBA_sequence_CORBA_TypeCode *retval; TypecodesHashIter iter; retval = CORBA_sequence_CORBA_TypeCode__alloc (); retval->_length = retval->_maximum = g_hash_table_size (typecodes); retval->_release = TRUE; retval->_buffer = CORBA_sequence_CORBA_TypeCode_allocbuf (retval->_length); iter.sequence = retval; iter.iter = 0; g_hash_table_foreach (typecodes, (GHFunc) typecodes_hash_foreach, &iter); g_assert (iter.iter == retval->_length); return retval; } IDL_tree ORBit_imodule_get_typespec (IDL_tree tree) { IDL_tree retval = NULL; if (!tree) return NULL; switch (IDL_NODE_TYPE (tree)) { case IDLN_TYPE_INTEGER: case IDLN_TYPE_FLOAT: case IDLN_TYPE_FIXED: case IDLN_TYPE_CHAR: case IDLN_TYPE_WIDE_CHAR: case IDLN_TYPE_STRING: case IDLN_TYPE_WIDE_STRING: case IDLN_TYPE_BOOLEAN: case IDLN_TYPE_OCTET: case IDLN_TYPE_ANY: case IDLN_TYPE_OBJECT: case IDLN_TYPE_ENUM: case IDLN_TYPE_SEQUENCE: case IDLN_TYPE_ARRAY: case IDLN_TYPE_STRUCT: case IDLN_TYPE_UNION: case IDLN_EXCEPT_DCL: case IDLN_FORWARD_DCL: case IDLN_INTERFACE: case IDLN_NATIVE: case IDLN_TYPE_TYPECODE: retval = tree; break; case IDLN_TYPE_DCL: retval = ORBit_imodule_get_typespec ( IDL_TYPE_DCL (tree).type_spec); break; case IDLN_PARAM_DCL: retval = ORBit_imodule_get_typespec ( IDL_PARAM_DCL (tree).param_type_spec); break; case IDLN_MEMBER: retval = ORBit_imodule_get_typespec ( IDL_MEMBER (tree).type_spec); break; case IDLN_LIST: case IDLN_IDENT: retval = ORBit_imodule_get_typespec ( IDL_get_parent_node (tree, IDLN_ANY, NULL)); break; default: g_error ("Cannot get typespec for %s", IDL_tree_type_names [IDL_NODE_TYPE (tree)]); break; } return retval; } static int ORBit_imodule_find_c_align (IDL_tree node) { int c_align = 1; node = ORBit_imodule_get_typespec (node); switch (IDL_NODE_TYPE (node)) { case IDLN_TYPE_INTEGER: switch (IDL_TYPE_INTEGER (node).f_type) { case IDL_INTEGER_TYPE_SHORT: c_align = ORBIT_ALIGNOF_CORBA_SHORT; break; case IDL_INTEGER_TYPE_LONG: c_align = ORBIT_ALIGNOF_CORBA_LONG; break; case IDL_INTEGER_TYPE_LONGLONG: c_align = ORBIT_ALIGNOF_CORBA_LONG_LONG; break; } break; case IDLN_TYPE_FLOAT: switch (IDL_TYPE_FLOAT (node).f_type) { case IDL_FLOAT_TYPE_FLOAT: c_align = ORBIT_ALIGNOF_CORBA_FLOAT; break; case IDL_FLOAT_TYPE_DOUBLE: c_align = ORBIT_ALIGNOF_CORBA_DOUBLE; break; case IDL_FLOAT_TYPE_LONGDOUBLE: c_align = ORBIT_ALIGNOF_CORBA_LONG_DOUBLE; break; } break; case IDLN_TYPE_ENUM: c_align = ORBIT_ALIGNOF_CORBA_LONG; break; case IDLN_TYPE_CHAR: /* drop through */ case IDLN_TYPE_BOOLEAN: case IDLN_TYPE_OCTET: c_align = ORBIT_ALIGNOF_CORBA_CHAR; break; case IDLN_TYPE_WIDE_CHAR: c_align = ORBIT_ALIGNOF_CORBA_SHORT; break; case IDLN_TYPE_UNION: { IDL_tree l = IDL_TYPE_UNION (node).switch_body; c_align = ORBIT_ALIGNOF_CORBA_STRUCT; for (; l; l = IDL_LIST (l).next) { IDL_tree subtype = IDL_MEMBER (IDL_CASE_STMT ( IDL_LIST (l).data).element_spec).type_spec; c_align = MAX (c_align, ORBit_imodule_find_c_align (subtype)); } } break; case IDLN_EXCEPT_DCL: /* drop through */ case IDLN_TYPE_STRUCT: { IDL_tree l = IDL_TYPE_STRUCT (node).member_list; for (; l; l = IDL_LIST (l).next) { IDL_tree member = IDL_MEMBER (IDL_LIST (l).data).type_spec; c_align = MAX (c_align, ORBit_imodule_find_c_align (member)); } } break; case IDLN_TYPE_STRING: /* drop through */ case IDLN_TYPE_WIDE_STRING: case IDLN_TYPE_OBJECT: case IDLN_TYPE_TYPECODE: case IDLN_FORWARD_DCL: case IDLN_INTERFACE: c_align = ORBIT_ALIGNOF_CORBA_POINTER; break; case IDLN_TYPE_ARRAY: { IDL_tree subtype; subtype = IDL_TYPE_DCL ( IDL_get_parent_node ( node, IDLN_TYPE_DCL, NULL)).type_spec; c_align = ORBit_imodule_find_c_align (subtype); } break; case IDLN_TYPE_SEQUENCE: c_align = MAX (MAX (ORBIT_ALIGNOF_CORBA_STRUCT, ORBIT_ALIGNOF_CORBA_LONG), ORBIT_ALIGNOF_CORBA_POINTER); break; case IDLN_TYPE_ANY: c_align = MAX (ORBIT_ALIGNOF_CORBA_STRUCT, ORBIT_ALIGNOF_CORBA_POINTER); break; default: g_error ("Can't find alignment %s\n", IDL_tree_type_names [IDL_NODE_TYPE (node)]); break; } return c_align; } CORBA_TypeCode ORBit_imodule_get_typecode (GHashTable *typecodes, IDL_tree tree) { CORBA_Environment env; CORBA_TypeCode retval = CORBA_OBJECT_NIL; if (!tree) return CORBA_OBJECT_NIL; CORBA_exception_init (&env); switch (IDL_NODE_TYPE (tree)) { case IDLN_MEMBER: retval = ORBit_imodule_get_typecode ( typecodes, IDL_MEMBER (tree).type_spec); break; case IDLN_TYPE_ANY: retval = (CORBA_TypeCode) CORBA_Object_duplicate ( (CORBA_Object) TC_CORBA_any, NULL); break; case IDLN_TYPE_FLOAT: switch (IDL_TYPE_FLOAT (tree).f_type) { case IDL_FLOAT_TYPE_FLOAT: retval = TC_CORBA_float; break; case IDL_FLOAT_TYPE_DOUBLE: retval = TC_CORBA_double; break; case IDL_FLOAT_TYPE_LONGDOUBLE: retval = TC_CORBA_long_double; break; } break; case IDLN_TYPE_FIXED: retval = CORBA_ORB_create_fixed_tc (NULL, IDL_INTEGER (IDL_TYPE_FIXED (tree).positive_int_const).value, IDL_INTEGER (IDL_TYPE_FIXED (tree).integer_lit).value, &env); break; case IDLN_TYPE_INTEGER: if (!IDL_TYPE_INTEGER (tree).f_signed) switch (IDL_TYPE_INTEGER (tree).f_type) { case IDL_INTEGER_TYPE_SHORT: retval = TC_CORBA_unsigned_short; break; case IDL_INTEGER_TYPE_LONGLONG: retval = TC_CORBA_unsigned_long_long; break; case IDL_INTEGER_TYPE_LONG: retval = TC_CORBA_unsigned_long; break; default: g_assert_not_reached (); } else switch (IDL_TYPE_INTEGER (tree).f_type) { case IDL_INTEGER_TYPE_SHORT: retval = TC_CORBA_short; break; case IDL_INTEGER_TYPE_LONGLONG: retval = TC_CORBA_long_long; break; case IDL_INTEGER_TYPE_LONG: retval = TC_CORBA_long; break; default: g_assert_not_reached (); } break; case IDLN_TYPE_STRING: retval = (CORBA_TypeCode) CORBA_Object_duplicate ( (CORBA_Object) TC_CORBA_string, NULL); break; case IDLN_TYPE_WIDE_STRING: retval = (CORBA_TypeCode) CORBA_Object_duplicate ( (CORBA_Object) TC_CORBA_wstring, NULL); break; case IDLN_TYPE_OCTET: retval = (CORBA_TypeCode) CORBA_Object_duplicate ( (CORBA_Object) TC_CORBA_octet, NULL); break; case IDLN_TYPE_CHAR: retval = (CORBA_TypeCode) CORBA_Object_duplicate ( (CORBA_Object) TC_CORBA_char, NULL); break; case IDLN_TYPE_WIDE_CHAR: retval = (CORBA_TypeCode) CORBA_Object_duplicate ( (CORBA_Object) TC_CORBA_wchar, NULL); break; case IDLN_TYPE_BOOLEAN: retval = (CORBA_TypeCode) CORBA_Object_duplicate ( (CORBA_Object) TC_CORBA_boolean, NULL); break; case IDLN_TYPE_STRUCT: retval = ORBit_imodule_lookup_typecode ( typecodes, IDL_IDENT (IDL_TYPE_STRUCT (tree).ident).repo_id); if (!retval) { CORBA_StructMemberSeq *members; members = ORBit_imodule_get_struct_members ( typecodes, tree, &env); retval = CORBA_ORB_create_struct_tc (NULL, IDL_IDENT (IDL_TYPE_STRUCT (tree).ident).repo_id, IDL_IDENT (IDL_TYPE_STRUCT (tree).ident).str, members, &env); ORBit_imodule_register_typecode ( typecodes, IDL_IDENT (IDL_TYPE_STRUCT (tree).ident).repo_id, retval); CORBA_free (members); } break; case IDLN_EXCEPT_DCL: retval = ORBit_imodule_lookup_typecode ( typecodes, IDL_IDENT (IDL_EXCEPT_DCL (tree).ident).repo_id); if (!retval) { CORBA_StructMemberSeq *members; members = ORBit_imodule_get_struct_members ( typecodes, tree, &env); retval = CORBA_ORB_create_exception_tc (NULL, IDL_IDENT (IDL_EXCEPT_DCL (tree).ident).repo_id, IDL_IDENT (IDL_EXCEPT_DCL (tree).ident).str, members, &env); ORBit_imodule_register_typecode ( typecodes, IDL_IDENT (IDL_EXCEPT_DCL (tree).ident).repo_id, retval); CORBA_free (members); } break; case IDLN_TYPE_ARRAY: { CORBA_TypeCode subtc; IDL_tree sizer; IDL_tree type_dcl; sizer = IDL_list_nth (IDL_TYPE_ARRAY (tree).size_list, IDL_list_length (IDL_TYPE_ARRAY (tree).size_list) - 1); g_assert (IDL_NODE_TYPE (IDL_LIST (sizer).data) == IDLN_INTEGER); type_dcl = IDL_NODE_UP (IDL_NODE_UP (tree)); g_assert (IDL_NODE_TYPE (type_dcl) == IDLN_TYPE_DCL); subtc = ORBit_imodule_get_typecode ( typecodes, IDL_TYPE_DCL (type_dcl).type_spec), retval = CORBA_ORB_create_array_tc (NULL, IDL_INTEGER (IDL_LIST (sizer).data).value, subtc, &env); retval->c_align = subtc->c_align; CORBA_Object_release ((CORBA_Object) subtc, NULL); for (sizer = IDL_LIST (sizer).prev; sizer; sizer = IDL_LIST (sizer).prev) { subtc = retval; retval = CORBA_ORB_create_array_tc (NULL, IDL_INTEGER (IDL_LIST (sizer).data).value, subtc, &env); retval->c_align = subtc->c_align; CORBA_Object_release ((CORBA_Object) subtc, NULL); } subtc = retval; retval = ORBit_imodule_create_alias_typecode ( typecodes, IDL_TYPE_ARRAY (tree).ident, subtc); CORBA_Object_release ((CORBA_Object) subtc, NULL); } break; case IDLN_TYPE_UNION: retval = ORBit_imodule_lookup_typecode ( typecodes, IDL_IDENT (IDL_TYPE_UNION (tree).ident).repo_id); if (!retval) { CORBA_UnionMemberSeq *members; CORBA_TypeCode switchtc; switchtc = ORBit_imodule_get_typecode ( typecodes, IDL_TYPE_UNION (tree).switch_type_spec); members = ORBit_imodule_get_union_members ( typecodes, tree, switchtc, &env); retval = CORBA_ORB_create_union_tc (NULL, IDL_IDENT (IDL_TYPE_UNION (tree).ident).repo_id, IDL_IDENT (IDL_TYPE_UNION (tree).ident).str, switchtc, members, &env); CORBA_Object_release ((CORBA_Object) switchtc, NULL); ORBit_imodule_register_typecode ( typecodes, IDL_IDENT (IDL_TYPE_UNION (tree).ident).repo_id, retval); CORBA_free (members); } break; case IDLN_TYPE_ENUM: retval = ORBit_imodule_lookup_typecode ( typecodes, IDL_IDENT (IDL_TYPE_ENUM (tree).ident).repo_id); if (!retval) { CORBA_EnumMemberSeq *members; members = ORBit_imodule_get_enum_members (tree, &env); retval = CORBA_ORB_create_enum_tc (NULL, IDL_IDENT (IDL_TYPE_ENUM (tree).ident).repo_id, IDL_IDENT (IDL_TYPE_ENUM (tree).ident).str, members, &env); ORBit_imodule_register_typecode ( typecodes, IDL_IDENT (IDL_TYPE_ENUM (tree).ident).repo_id, retval); CORBA_free (members); } break; case IDLN_IDENT: retval = ORBit_imodule_lookup_typecode ( typecodes, IDL_IDENT (tree).repo_id); g_assert (retval != NULL); break; case IDLN_TYPE_SEQUENCE: { CORBA_TypeCode subtc; int bound = 0; if (IDL_TYPE_SEQUENCE (tree).positive_int_const) bound = IDL_INTEGER (IDL_TYPE_SEQUENCE (tree).positive_int_const).value; subtc = ORBit_imodule_get_typecode ( typecodes, IDL_TYPE_SEQUENCE (tree).simple_type_spec), retval = CORBA_ORB_create_sequence_tc (NULL, bound, subtc, &env); CORBA_Object_release ((CORBA_Object) subtc, NULL); /* * FIXME: and what about recursive sequences? */ } break; case IDLN_FORWARD_DCL: case IDLN_INTERFACE: retval = ORBit_imodule_lookup_typecode ( typecodes, IDL_IDENT (IDL_TYPE_ENUM (tree).ident).repo_id); if (!retval) { retval = CORBA_ORB_create_interface_tc (NULL, IDL_IDENT (IDL_TYPE_ENUM (tree).ident).repo_id, IDL_IDENT (IDL_TYPE_ENUM (tree).ident).str, &env); ORBit_imodule_register_typecode ( typecodes, IDL_IDENT (IDL_TYPE_ENUM (tree).ident).repo_id, retval); } break; case IDLN_TYPE_OBJECT: retval = (CORBA_TypeCode) CORBA_Object_duplicate ( (CORBA_Object) TC_CORBA_Object, NULL); break; case IDLN_TYPE_TYPECODE: retval = (CORBA_TypeCode) CORBA_Object_duplicate ( (CORBA_Object) TC_CORBA_TypeCode, NULL); break; default: g_error ("We were asked to get a typecode for a %s", IDL_tree_type_names [IDL_NODE_TYPE (tree)]); break; } if (retval && retval->c_align == 0) retval->c_align = ORBit_imodule_find_c_align (tree); if (env._major != CORBA_NO_EXCEPTION) g_warning ("ORBit_imodule_get_typecode: exception %s", env._id); CORBA_exception_free (&env); return retval; } CORBA_TypeCode ORBit_imodule_create_alias_typecode (GHashTable *typecodes, IDL_tree tree, CORBA_TypeCode original_type) { CORBA_Environment env; CORBA_TypeCode retval; CORBA_exception_init (&env); g_return_val_if_fail (IDL_NODE_TYPE (tree) == IDLN_IDENT, NULL); g_return_val_if_fail (g_hash_table_lookup (typecodes, IDL_IDENT (tree).repo_id) == NULL, NULL); retval = CORBA_ORB_create_alias_tc (NULL, IDL_IDENT (tree).repo_id, IDL_IDENT (tree).str, original_type, &env); ORBit_imodule_register_typecode ( typecodes, IDL_IDENT (tree).repo_id, retval); if (env._major != CORBA_NO_EXCEPTION) g_warning ("ORBit_imodule_create_alias_typecode: exception %s", env._id); CORBA_exception_free (&env); return retval; } gboolean ORBit_imodule_type_is_fixed_length (IDL_tree tree) { gboolean is_fixed = TRUE; IDL_tree iter; IDL_tree typespec; typespec = ORBit_imodule_get_typespec (tree); switch (IDL_NODE_TYPE (typespec)) { case IDLN_TYPE_FLOAT: case IDLN_TYPE_INTEGER: case IDLN_TYPE_ENUM: case IDLN_TYPE_CHAR: case IDLN_TYPE_WIDE_CHAR: case IDLN_TYPE_OCTET: case IDLN_TYPE_BOOLEAN: is_fixed = TRUE; break; case IDLN_TYPE_SEQUENCE: case IDLN_TYPE_STRING: case IDLN_TYPE_WIDE_STRING: case IDLN_TYPE_OBJECT: case IDLN_FORWARD_DCL: case IDLN_INTERFACE: case IDLN_TYPE_ANY: case IDLN_NATIVE: case IDLN_TYPE_TYPECODE: is_fixed = FALSE; break; case IDLN_TYPE_UNION: for (iter = IDL_TYPE_UNION (typespec).switch_body; iter; iter = IDL_LIST (iter).next) is_fixed &= ORBit_imodule_type_is_fixed_length ( IDL_LIST (IDL_CASE_STMT ( IDL_LIST (iter).data).element_spec).data); break; case IDLN_EXCEPT_DCL: case IDLN_TYPE_STRUCT: for (iter = IDL_TYPE_STRUCT (typespec).member_list; iter; iter = IDL_LIST (iter).next) is_fixed &= ORBit_imodule_type_is_fixed_length (IDL_LIST (iter).data); break; case IDLN_TYPE_ARRAY: is_fixed = ORBit_imodule_type_is_fixed_length ( IDL_TYPE_DCL (IDL_get_parent_node ( typespec, IDLN_TYPE_DCL, NULL)).type_spec); break; case IDLN_TYPE_DCL: is_fixed = ORBit_imodule_type_is_fixed_length ( IDL_TYPE_DCL (typespec).type_spec); break; case IDLN_IDENT: case IDLN_LIST: is_fixed = ORBit_imodule_type_is_fixed_length (IDL_NODE_UP (typespec)); break; case IDLN_MEMBER: is_fixed = ORBit_imodule_type_is_fixed_length (IDL_MEMBER (typespec).type_spec); break; default: g_error ("Cannot determine if type %s is fixed-length", IDL_tree_type_names [IDL_NODE_TYPE (typespec)]); break; } return is_fixed; } static void ORBit_imodule_traverse_helper (IDL_tree tree, GFunc callback, gpointer user_data, GHashTable *visited_nodes) { IDL_tree curitem; if (g_hash_table_lookup (visited_nodes, tree)) return; g_hash_table_insert (visited_nodes, tree, GINT_TO_POINTER (1)); for (curitem = IDL_INTERFACE (tree).inheritance_spec; curitem; curitem = IDL_LIST (curitem).next) ORBit_imodule_traverse_helper ( IDL_get_parent_node (IDL_LIST (curitem).data, IDLN_INTERFACE, NULL), callback, user_data, visited_nodes); callback (tree, user_data); } void ORBit_imodule_traverse_parents (IDL_tree tree, GFunc callback, gpointer user_data) { GHashTable *visited_nodes = g_hash_table_new (NULL, g_direct_equal); g_return_if_fail (tree != NULL); g_return_if_fail (callback != NULL); if (IDL_NODE_TYPE (tree) != IDLN_INTERFACE) tree = IDL_get_parent_node (tree, IDLN_INTERFACE, NULL); if (!tree) return; ORBit_imodule_traverse_helper (tree, callback, user_data, visited_nodes); g_hash_table_destroy (visited_nodes); } ORBit2-2.14.19/src/services/imodule/orbit-imodule-utils.h0000644000175000001440000000374211334247617020016 00000000000000/* * orbit-imodule-utils.h: * * Copyright (C) 2002 Sun Microsystems, Inc. * Ximian, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. * * Authors: * Mark McLoughlin */ #ifndef __ORBIT_IMODULE_UTILS_H__ #define __ORBIT_IMODULE_UTILS_H__ #include #include G_BEGIN_DECLS typedef struct { IDL_tree get_op; IDL_tree set_op; } ORBit_imodule_fakeops; GHashTable *ORBit_imodule_new_typecodes (void); void ORBit_imodule_free_typecodes (GHashTable *typecodes); CORBA_sequence_CORBA_TypeCode * ORBit_imodule_get_typecodes_seq (GHashTable *typecodes); CORBA_TypeCode ORBit_imodule_get_typecode (GHashTable *typecodes, IDL_tree tree); CORBA_TypeCode ORBit_imodule_create_alias_typecode (GHashTable *typecodes, IDL_tree tree, CORBA_TypeCode original_type); IDL_tree ORBit_imodule_get_typespec (IDL_tree tree); gboolean ORBit_imodule_type_is_fixed_length (IDL_tree tree); void ORBit_imodule_traverse_parents (IDL_tree tree, GFunc callback, gpointer user_data); G_END_DECLS #endif /* __ORBIT_IMODULE_UTILS_H__ */ ORBit2-2.14.19/src/services/imodule/orbit-imodule-libidl-utils.c0000644000175000001440000001113411334247617021240 00000000000000/* * orbit-imodule-libidl-utils.c: cut and paste code from libIDL * * Copyright (C) 1998 - 2002, Andrew T. Veliath * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "orbit-imodule-libidl-utils.h" static IDL_tree IDL_binop_eval_integer (enum IDL_binop op, IDL_tree a, IDL_tree b) { IDL_tree p = NULL; g_assert (IDL_NODE_TYPE (a) == IDLN_INTEGER); switch (op) { case IDL_BINOP_MULT: p = IDL_integer_new (IDL_INTEGER (a).value * IDL_INTEGER (b).value); break; case IDL_BINOP_DIV: if (IDL_INTEGER (b).value == 0) { g_error ("Divide by zero in constant expression"); return NULL; } p = IDL_integer_new (IDL_INTEGER (a).value / IDL_INTEGER (b).value); break; case IDL_BINOP_ADD: p = IDL_integer_new (IDL_INTEGER (a).value + IDL_INTEGER (b).value); break; case IDL_BINOP_SUB: p = IDL_integer_new (IDL_INTEGER (a).value - IDL_INTEGER (b).value); break; case IDL_BINOP_MOD: if (IDL_INTEGER (b).value == 0) { g_error ("Modulo by zero in constant expression"); return NULL; } p = IDL_integer_new (IDL_INTEGER (a).value % IDL_INTEGER (b).value); break; case IDL_BINOP_SHR: p = IDL_integer_new (IDL_INTEGER (a).value >> IDL_INTEGER (b).value); break; case IDL_BINOP_SHL: p = IDL_integer_new (IDL_INTEGER (a).value << IDL_INTEGER (b).value); break; case IDL_BINOP_AND: p = IDL_integer_new (IDL_INTEGER (a).value & IDL_INTEGER (b).value); break; case IDL_BINOP_OR: p = IDL_integer_new (IDL_INTEGER (a).value | IDL_INTEGER (b).value); break; case IDL_BINOP_XOR: p = IDL_integer_new (IDL_INTEGER (a).value ^ IDL_INTEGER (b).value); break; } return p; } static IDL_tree IDL_binop_eval_float (enum IDL_binop op, IDL_tree a, IDL_tree b) { IDL_tree p = NULL; g_assert (IDL_NODE_TYPE (a) == IDLN_FLOAT); switch (op) { case IDL_BINOP_MULT: p = IDL_float_new (IDL_FLOAT (a).value * IDL_FLOAT (b).value); break; case IDL_BINOP_DIV: if (IDL_FLOAT (b).value == 0.0) { g_error ("Divide by zero in constant expression"); return NULL; } p = IDL_float_new (IDL_FLOAT (a).value / IDL_FLOAT (b).value); break; case IDL_BINOP_ADD: p = IDL_float_new (IDL_FLOAT (a).value + IDL_FLOAT (b).value); break; case IDL_BINOP_SUB: p = IDL_float_new (IDL_FLOAT (a).value - IDL_FLOAT (b).value); break; default: break; } return p; } IDL_tree _IDL_binop_eval (enum IDL_binop op, IDL_tree a, IDL_tree b) { g_assert (IDL_NODE_TYPE (a) == IDL_NODE_TYPE (b)); switch (IDL_NODE_TYPE (a)) { case IDLN_INTEGER: return IDL_binop_eval_integer (op, a, b); case IDLN_FLOAT: return IDL_binop_eval_float (op, a, b); default: return NULL; } } static IDL_tree IDL_unaryop_eval_integer (enum IDL_unaryop op, IDL_tree a) { IDL_tree p = NULL; g_assert (IDL_NODE_TYPE (a) == IDLN_INTEGER); switch (op) { case IDL_UNARYOP_PLUS: p = IDL_integer_new (IDL_INTEGER (a).value); break; case IDL_UNARYOP_MINUS: p = IDL_integer_new (-IDL_INTEGER (a).value); break; case IDL_UNARYOP_COMPLEMENT: p = IDL_integer_new (~IDL_INTEGER (a).value); break; } return p; } static IDL_tree IDL_unaryop_eval_fixed (enum IDL_unaryop op, IDL_tree a) { IDL_tree p = NULL; g_assert (IDL_NODE_TYPE (a) == IDLN_FIXED); switch (op) { case IDL_UNARYOP_PLUS: p = IDL_fixed_new (IDL_FIXED (a).value); break; default: break; } return p; } static IDL_tree IDL_unaryop_eval_float (enum IDL_unaryop op, IDL_tree a) { IDL_tree p = NULL; g_assert (IDL_NODE_TYPE (a) == IDLN_FLOAT); switch (op) { case IDL_UNARYOP_PLUS: p = IDL_float_new (IDL_FLOAT (a).value); break; case IDL_UNARYOP_MINUS: p = IDL_float_new (-IDL_FLOAT (a).value); break; default: break; } return p; } IDL_tree _IDL_unaryop_eval (enum IDL_unaryop op, IDL_tree a) { switch (IDL_NODE_TYPE (a)) { case IDLN_INTEGER: return IDL_unaryop_eval_integer (op, a); case IDLN_FIXED: return IDL_unaryop_eval_fixed (op, a); case IDLN_FLOAT: return IDL_unaryop_eval_float (op, a); default: return NULL; } } ORBit2-2.14.19/src/services/imodule/orbit-imodule-libidl-utils.h0000644000175000001440000000232211334247617021244 00000000000000/* * orbit-imodule-libidl-utils.h: cut and paste code from libIDL * * Copyright (C) 1998 - 2002, Andrew T. Veliath * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef __ORBIT_IMODULE_LIBIDL_UTILS_H__ #define __ORBIT_IMODULE_LIBIDL_UTILS_H__ #include #include G_BEGIN_DECLS IDL_tree _IDL_binop_eval (enum IDL_binop op, IDL_tree a, IDL_tree b); IDL_tree _IDL_unaryop_eval (enum IDL_unaryop op, IDL_tree a); G_END_DECLS #endif /* __ORBIT_IMODULE_LIBIDL_UTILS_H__ */ ORBit2-2.14.19/src/services/name/0000755000175000001440000000000011450334030013251 500000000000000ORBit2-2.14.19/src/services/name/Makefile.am0000644000175000001440000000406211334247617015246 00000000000000if OS_WIN32 libm= else libm=-lm endif libORBitservicesincludedir = $(includedir)/orbit-2.0/ORBitservices lib_LTLIBRARIES=libORBitCosNaming-2.la noinst_PROGRAMS = name-client-2 orbit-name-server-2 lib_LIBRARIES = libname-server-2.a libORBitCosNaming_2_la_SOURCES = \ CosNaming-common.c \ CosNaming-stubs.c libORBitservicesinclude_HEADERS = \ CosNaming.h \ CosNaming_impl.h libORBitCosNaming_2_la_LDFLAGS = \ -version-info $(LT_VERSION) \ -no-undefined \ $(ORBIT_NAME_LIBS) \ $(top_builddir)/src/orb/libORBit-2.la INCLUDES = \ -I. \ -I$(top_builddir)/include \ -I$(top_srcdir)/include \ -DORBIT2_INTERNAL_API \ $(WARN_CFLAGS) \ $(DISABLE_DEPRECATED_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_NAME_CFLAGS) CosNaming_built = \ CosNaming.h \ CosNaming-common.c \ CosNaming-stubs.c \ CosNaming-skels.c IDL_FLAGS=--showcpperrors IDL_FILES=CosNaming.idl include $(top_srcdir)/Makefile.shared CLEANFILES=my_cosnaming_built $(BUILT_SOURCES) DEPS = $(top_builddir)/src/orb/libORBit-2.la \ libORBitCosNaming-2.la LDADDS = \ $(top_builddir)/src/orb/libORBit-2.la \ libORBitCosNaming-2.la \ $(libm) \ $(ORBIT_NAME_LIBS) name_client_2_SOURCES = name-client.c name-support.c name-support.h name_client_2_LDFLAGS = $(FLAGS) name_client_2_DEPENDENCIES = $(DEPS) CosNaming.h name_client_2_LDADD = $(LDADDS) libname_server_2_a_SOURCES = orbit-name-server.c CosNaming-skels.c \ name-support.c name-support.h libname_server_2_a_DEPENDENCIES = $(DEPS) CosNaming.h orbit_name_server_2_SOURCES = boot.c orbit_name_server_2_LDFLAGS = $(FLAGS) orbit_name_server_2_DEPENDENCIES = $(DEPS) CosNaming.h orbit_name_server_2_LDADD = libname-server-2.a $(LDADDS) $(libname_server_2_a_OBJECTS) $(name_client_2_OBJECTS) $(orbit_name_server_2_OBJECTS) : CosNaming.h EXTRA_DIST = $(idl_DATA) idldir = $(datadir)/idl/orbit-2.0 idl_DATA = CosNaming.idl BUILT_SOURCES = $(CosNaming_built) dist-hook: cd $(distdir); rm -f $(BUILT_SOURCES) ORBit2-2.14.19/src/services/name/CosNaming.idl0000644000175000001440000000456211334247617015567 00000000000000 #ifndef _CosNaming_IDL_ #define _CosNaming_IDL_ #pragma prefix "omg.org" module CosNaming { typedef string Istring; struct NameComponent { Istring id; Istring kind; }; typedef sequence Name; enum BindingType { nobject, ncontext }; struct Binding { Name binding_name; BindingType binding_type; }; typedef sequence BindingList; interface BindingIterator; interface NamingContext { enum NotFoundReason { missing_node, not_context, not_object }; exception NotFound { NotFoundReason why; Name rest_of_name; }; exception CannotProceed { NamingContext ctx; Name rest_of_name; }; exception InvalidName{}; exception AlreadyBound{}; exception NotEmpty{}; void bind(in Name n, in Object obj) raises(NotFound, CannotProceed, InvalidName, AlreadyBound); void rebind(in Name n, in Object obj) raises(NotFound, CannotProceed, InvalidName); void bind_context(in Name n, in NamingContext nc) raises(NotFound, CannotProceed, InvalidName, AlreadyBound); void rebind_context(in Name n, in NamingContext nc) raises(NotFound, CannotProceed, InvalidName); Object resolve(in Name n) raises(NotFound, CannotProceed, InvalidName); void unbind(in Name n) raises(NotFound, CannotProceed, InvalidName); NamingContext new_context(); NamingContext bind_new_context(in Name n) raises(NotFound, AlreadyBound, CannotProceed, InvalidName); void destroy() raises(NotEmpty); void list(in unsigned long how_many, out BindingList bl, out BindingIterator bi); }; interface BindingIterator { boolean next_one(out Binding b); boolean next_n(in unsigned long how_many, out BindingList bl); void destroy(); }; interface NamingContextExt: NamingContext { typedef string StringName; typedef string Address; typedef string URLString; StringName to_string(in Name n) raises(InvalidName); Name to_name(in StringName sn) raises(InvalidName); exception InvalidAddress {}; URLString to_url(in Address addr, in StringName sn) raises(InvalidAddress, InvalidName); Object resolve_str(in StringName n) raises( NotFound, CannotProceed, InvalidName ); }; }; #endif /* !_CosNaming_IDL_ */ ORBit2-2.14.19/src/services/name/Makefile.in0000644000175000001440000006576611450333734015274 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = name-client-2$(EXEEXT) orbit-name-server-2$(EXEEXT) DIST_COMMON = README $(libORBitservicesinclude_HEADERS) \ $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/Makefile.shared subdir = src/services/name ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(libdir)" \ "$(DESTDIR)$(idldir)" \ "$(DESTDIR)$(libORBitservicesincludedir)" LIBRARIES = $(lib_LIBRARIES) ARFLAGS = cru libname_server_2_a_AR = $(AR) $(ARFLAGS) libname_server_2_a_LIBADD = am_libname_server_2_a_OBJECTS = orbit-name-server.$(OBJEXT) \ CosNaming-skels.$(OBJEXT) name-support.$(OBJEXT) libname_server_2_a_OBJECTS = $(am_libname_server_2_a_OBJECTS) LTLIBRARIES = $(lib_LTLIBRARIES) libORBitCosNaming_2_la_LIBADD = am_libORBitCosNaming_2_la_OBJECTS = CosNaming-common.lo \ CosNaming-stubs.lo libORBitCosNaming_2_la_OBJECTS = $(am_libORBitCosNaming_2_la_OBJECTS) libORBitCosNaming_2_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libORBitCosNaming_2_la_LDFLAGS) $(LDFLAGS) -o $@ PROGRAMS = $(noinst_PROGRAMS) am_name_client_2_OBJECTS = name-client.$(OBJEXT) \ name-support.$(OBJEXT) name_client_2_OBJECTS = $(am_name_client_2_OBJECTS) am__DEPENDENCIES_1 = am__DEPENDENCIES_2 = $(top_builddir)/src/orb/libORBit-2.la \ libORBitCosNaming-2.la $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) name_client_2_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(name_client_2_LDFLAGS) $(LDFLAGS) -o $@ am_orbit_name_server_2_OBJECTS = boot.$(OBJEXT) orbit_name_server_2_OBJECTS = $(am_orbit_name_server_2_OBJECTS) orbit_name_server_2_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(orbit_name_server_2_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libname_server_2_a_SOURCES) \ $(libORBitCosNaming_2_la_SOURCES) $(name_client_2_SOURCES) \ $(orbit_name_server_2_SOURCES) DIST_SOURCES = $(libname_server_2_a_SOURCES) \ $(libORBitCosNaming_2_la_SOURCES) $(name_client_2_SOURCES) \ $(orbit_name_server_2_SOURCES) DATA = $(idl_DATA) HEADERS = $(libORBitservicesinclude_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkglibdir = @pkglibdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_REQUIRED = @GLIB_REQUIRED@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ IDL_COMPILER = @IDL_COMPILER@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBIDL_REQUIRED = @LIBIDL_REQUIRED@ LIBM = @LIBM@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LINC_CFLAGS = @LINC_CFLAGS@ LINC_LIBS = @LINC_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LOCAL_LINC_CFLAGS = @LOCAL_LINC_CFLAGS@ LOCAL_LINC_LIBS = @LOCAL_LINC_LIBS@ LTLIBOBJS = @LTLIBOBJS@ LT_VERSION = @LT_VERSION@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MINGW_LDFLAGS = @MINGW_LDFLAGS@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ ORBIT_ALIGNOF_CORBA_BOOLEAN = @ORBIT_ALIGNOF_CORBA_BOOLEAN@ ORBIT_ALIGNOF_CORBA_CHAR = @ORBIT_ALIGNOF_CORBA_CHAR@ ORBIT_ALIGNOF_CORBA_DOUBLE = @ORBIT_ALIGNOF_CORBA_DOUBLE@ ORBIT_ALIGNOF_CORBA_FLOAT = @ORBIT_ALIGNOF_CORBA_FLOAT@ ORBIT_ALIGNOF_CORBA_LONG = @ORBIT_ALIGNOF_CORBA_LONG@ ORBIT_ALIGNOF_CORBA_LONG_DOUBLE = @ORBIT_ALIGNOF_CORBA_LONG_DOUBLE@ ORBIT_ALIGNOF_CORBA_LONG_LONG = @ORBIT_ALIGNOF_CORBA_LONG_LONG@ ORBIT_ALIGNOF_CORBA_OCTET = @ORBIT_ALIGNOF_CORBA_OCTET@ ORBIT_ALIGNOF_CORBA_POINTER = @ORBIT_ALIGNOF_CORBA_POINTER@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGNOF_CORBA_SHORT@ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ ORBIT_CFLAGS = @ORBIT_CFLAGS@ ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ORBIT_LIBS = @ORBIT_LIBS@ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ ORBIT_MINOR_VERSION = @ORBIT_MINOR_VERSION@ ORBIT_NAME_CFLAGS = @ORBIT_NAME_CFLAGS@ ORBIT_NAME_LIBS = @ORBIT_NAME_LIBS@ ORBIT_SERIAL = @ORBIT_SERIAL@ ORBIT_VERSION = @ORBIT_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ @OS_WIN32_FALSE@libm = -lm @OS_WIN32_TRUE@libm = libORBitservicesincludedir = $(includedir)/orbit-2.0/ORBitservices lib_LTLIBRARIES = libORBitCosNaming-2.la lib_LIBRARIES = libname-server-2.a libORBitCosNaming_2_la_SOURCES = \ CosNaming-common.c \ CosNaming-stubs.c libORBitservicesinclude_HEADERS = \ CosNaming.h \ CosNaming_impl.h libORBitCosNaming_2_la_LDFLAGS = \ -version-info $(LT_VERSION) \ -no-undefined \ $(ORBIT_NAME_LIBS) \ $(top_builddir)/src/orb/libORBit-2.la INCLUDES = \ -I. \ -I$(top_builddir)/include \ -I$(top_srcdir)/include \ -DORBIT2_INTERNAL_API \ $(WARN_CFLAGS) \ $(DISABLE_DEPRECATED_CFLAGS) \ $(LOCAL_LINC_CFLAGS) \ $(ORBIT_NAME_CFLAGS) CosNaming_built = \ CosNaming.h \ CosNaming-common.c \ CosNaming-stubs.c \ CosNaming-skels.c IDL_FLAGS = --showcpperrors IDL_FILES = CosNaming.idl @MAINTAINER_MODE_TRUE@IDL_DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) @MAINTAINER_MODE_TRUE@IDL_DEP_FILES = $(IDL_FILES:%.idl=.deps/%.idl.P) CLEANFILES = my_cosnaming_built $(BUILT_SOURCES) DEPS = $(top_builddir)/src/orb/libORBit-2.la \ libORBitCosNaming-2.la LDADDS = \ $(top_builddir)/src/orb/libORBit-2.la \ libORBitCosNaming-2.la \ $(libm) \ $(ORBIT_NAME_LIBS) name_client_2_SOURCES = name-client.c name-support.c name-support.h name_client_2_LDFLAGS = $(FLAGS) name_client_2_DEPENDENCIES = $(DEPS) CosNaming.h name_client_2_LDADD = $(LDADDS) libname_server_2_a_SOURCES = orbit-name-server.c CosNaming-skels.c \ name-support.c name-support.h libname_server_2_a_DEPENDENCIES = $(DEPS) CosNaming.h orbit_name_server_2_SOURCES = boot.c orbit_name_server_2_LDFLAGS = $(FLAGS) orbit_name_server_2_DEPENDENCIES = $(DEPS) CosNaming.h orbit_name_server_2_LDADD = libname-server-2.a $(LDADDS) EXTRA_DIST = $(idl_DATA) idldir = $(datadir)/idl/orbit-2.0 idl_DATA = CosNaming.idl BUILT_SOURCES = $(CosNaming_built) all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.shared $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/services/name/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/services/name/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-libLIBRARIES: $(lib_LIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(INSTALL_DATA) $$list2 '$(DESTDIR)$(libdir)'"; \ $(INSTALL_DATA) $$list2 "$(DESTDIR)$(libdir)" || exit $$?; } @$(POST_INSTALL) @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ if test -f $$p; then \ $(am__strip_dir) \ echo " ( cd '$(DESTDIR)$(libdir)' && $(RANLIB) $$f )"; \ ( cd "$(DESTDIR)$(libdir)" && $(RANLIB) $$f ) || exit $$?; \ else :; fi; \ done uninstall-libLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(libdir)' && rm -f "$$files" )"; \ cd "$(DESTDIR)$(libdir)" && rm -f $$files clean-libLIBRARIES: -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES) libname-server-2.a: $(libname_server_2_a_OBJECTS) $(libname_server_2_a_DEPENDENCIES) -rm -f libname-server-2.a $(libname_server_2_a_AR) libname-server-2.a $(libname_server_2_a_OBJECTS) $(libname_server_2_a_LIBADD) $(RANLIB) libname-server-2.a install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libORBitCosNaming-2.la: $(libORBitCosNaming_2_la_OBJECTS) $(libORBitCosNaming_2_la_DEPENDENCIES) $(libORBitCosNaming_2_la_LINK) -rpath $(libdir) $(libORBitCosNaming_2_la_OBJECTS) $(libORBitCosNaming_2_la_LIBADD) $(LIBS) clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list name-client-2$(EXEEXT): $(name_client_2_OBJECTS) $(name_client_2_DEPENDENCIES) @rm -f name-client-2$(EXEEXT) $(name_client_2_LINK) $(name_client_2_OBJECTS) $(name_client_2_LDADD) $(LIBS) orbit-name-server-2$(EXEEXT): $(orbit_name_server_2_OBJECTS) $(orbit_name_server_2_DEPENDENCIES) @rm -f orbit-name-server-2$(EXEEXT) $(orbit_name_server_2_LINK) $(orbit_name_server_2_OBJECTS) $(orbit_name_server_2_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CosNaming-common.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CosNaming-skels.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CosNaming-stubs.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/boot.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/name-client.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/name-support.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orbit-name-server.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-idlDATA: $(idl_DATA) @$(NORMAL_INSTALL) test -z "$(idldir)" || $(MKDIR_P) "$(DESTDIR)$(idldir)" @list='$(idl_DATA)'; test -n "$(idldir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(idldir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(idldir)" || exit $$?; \ done uninstall-idlDATA: @$(NORMAL_UNINSTALL) @list='$(idl_DATA)'; test -n "$(idldir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(idldir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(idldir)" && rm -f $$files install-libORBitservicesincludeHEADERS: $(libORBitservicesinclude_HEADERS) @$(NORMAL_INSTALL) test -z "$(libORBitservicesincludedir)" || $(MKDIR_P) "$(DESTDIR)$(libORBitservicesincludedir)" @list='$(libORBitservicesinclude_HEADERS)'; test -n "$(libORBitservicesincludedir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libORBitservicesincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(libORBitservicesincludedir)" || exit $$?; \ done uninstall-libORBitservicesincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(libORBitservicesinclude_HEADERS)'; test -n "$(libORBitservicesincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(libORBitservicesincludedir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(libORBitservicesincludedir)" && rm -f $$files ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(PROGRAMS) $(DATA) \ $(HEADERS) installdirs: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(libdir)" "$(DESTDIR)$(idldir)" "$(DESTDIR)$(libORBitservicesincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am clean-am: clean-generic clean-libLIBRARIES clean-libLTLIBRARIES \ clean-libtool clean-noinstPROGRAMS mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-local distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-idlDATA \ install-libORBitservicesincludeHEADERS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-libLIBRARIES install-libLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-idlDATA uninstall-libLIBRARIES \ uninstall-libLTLIBRARIES \ uninstall-libORBitservicesincludeHEADERS .MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libLIBRARIES clean-libLTLIBRARIES clean-libtool \ clean-noinstPROGRAMS ctags dist-hook distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-local distclean-tags distdir dvi dvi-am html html-am \ info info-am install install-am install-data install-data-am \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-idlDATA install-info \ install-info-am install-libLIBRARIES install-libLTLIBRARIES \ install-libORBitservicesincludeHEADERS install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-idlDATA \ uninstall-libLIBRARIES uninstall-libLTLIBRARIES \ uninstall-libORBitservicesincludeHEADERS %-stubs.c %-skels.c %-common.c %-imodule.c %-skelimpl.c: %.h true %.h: $(IDL_DIR)%.idl $(IDL_COMPILER) -(rm -f $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c || true) > /dev/null $(IDL_COMPILER) $(IDL_FLAGS) --deps $(*D)/.deps/$(*F).idl.P $< for I in $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c; do \ if test -f $$I; then \ sed -e 's,OObject,Object,g' -e 's,TTypeCode,TypeCode,g' $$I > $$I.out; \ mv $$I.out $$I ; \ fi; \ done @MAINTAINER_MODE_TRUE@-include $(IDL_DEP_FILES) distclean-local: -rm -rf .deps $(libname_server_2_a_OBJECTS) $(name_client_2_OBJECTS) $(orbit_name_server_2_OBJECTS) : CosNaming.h dist-hook: cd $(distdir); rm -f $(BUILT_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ORBit2-2.14.19/src/services/name/CosNaming_impl.h0000644000175000001440000000047211334247617016263 00000000000000#ifndef __CosNaming_impl_h__ #define __CosNaming_impl_h__ CosNaming_NamingContextExt ORBit_CosNaming_NamingContextExt_create (PortableServer_POA poa, CORBA_Environment * ev); /* Backward compatibilty */ #define impl_CosNaming_NamingContext__create \ ORBit_CosNaming_NamingContextExt_create #endif ORBit2-2.14.19/src/services/name/name-support.c0000644000175000001440000000606211334247617016012 00000000000000#include "name-support.h" CosNaming_Name* ORBit_string_to_CosNaming_Name (const CORBA_char *string, CORBA_Environment * ev) { CosNaming_Name *retval = CosNaming_Name__alloc (); GPtrArray *ids = g_ptr_array_new (); GPtrArray *kinds = g_ptr_array_new (); gint pos = 0, i, len; gboolean used = FALSE; GPtrArray *append_to; g_ptr_array_add (ids, g_string_new ("")); g_ptr_array_add (kinds, g_string_new ("")); append_to = ids; while (*string) { gchar append; switch (*string) { case '.': used = TRUE; g_return_val_if_fail (append_to != kinds, NULL); append_to = kinds; append = '\0'; break; case '/': if (used) { pos++; g_ptr_array_add (ids, g_string_new ("")); g_ptr_array_add (kinds, g_string_new ("")); g_assert (ids->len == pos + 1 && kinds->len == pos + 1); } used = FALSE; append_to = ids; append = '\0'; break; case '\\': string++; g_return_val_if_fail (*string == '.' || *string == '/' || *string == '\\', NULL); append = *string; break; default: append = *string; used = TRUE; break; } if (append) g_string_append_c (g_ptr_array_index (append_to, pos), append); string++; } len = used ? pos + 1 : pos; retval->_buffer = CORBA_sequence_CosNaming_NameComponent_allocbuf (len); retval->_length = len; retval->_maximum = len; for (i = 0; i < len; i++) { GString *id = g_ptr_array_index (ids, i); GString *kind = g_ptr_array_index (kinds, i); retval->_buffer[i].id = CORBA_string_dup (id->str); retval->_buffer[i].kind = CORBA_string_dup (kind->str); } for (i = 0; i <= pos; i++) { g_string_free (g_ptr_array_index (ids, i), TRUE); g_string_free (g_ptr_array_index (kinds, i), TRUE); } g_ptr_array_free (ids, TRUE); g_ptr_array_free (kinds, TRUE); return retval; } CORBA_char * ORBit_CosNaming_NameComponent_to_string (const CosNaming_NameComponent *comp) { CORBA_char *retval; GString *str = g_string_new (""); CORBA_char *pos; gboolean id_ready = FALSE; if (!*comp->id && !*comp->kind) g_string_append_c (str, '.'); else { pos = comp->id; while (!id_ready || *pos) { if (!*pos) { /* id_ready must be FALSE */ id_ready = TRUE; pos = comp->kind; if (pos && *pos) g_string_append_c (str, '.'); continue; } if (*pos == '\\' || *pos == '.' || *pos == '/') g_string_append_c (str, '\\'); g_string_append_c (str, *pos); pos++; } } retval = CORBA_string_dup (str->str); g_string_free (str, TRUE); return retval; } CORBA_char * ORBit_CosNaming_Name_to_string (const CosNaming_Name *name) { GString *str = g_string_new (""); CORBA_char *retval; gint i; for (i = 0; i < name->_length; i++) { CORBA_char *comp = ORBit_CosNaming_NameComponent_to_string (&name->_buffer[i]); g_string_append_c (str, '/'); g_string_append (str, comp); } retval = CORBA_string_dup (str->str); g_string_free (str, TRUE); return retval; } ORBit2-2.14.19/src/services/name/README0000644000175000001440000000275711334247617014103 00000000000000This is a full CORBA-compliant CosNaming-service. It is using hash tables (courtesy of glib) for the contexts and should be fairly fast. USAGE: The name server outputs its IOR upon startup to sdtout. To use the name server together with the name client, you can do something like the following orbit-name-server >/tmp/name-service-ior then you can test it with the name-client prog, which should be fairly self explanatory. with the name-client you can also query the gnome name server by using the option --gnome. This will take the name server id from the X11 root window property CORBA_NAME_SERVICE Sebastian Wilhelmi TODO: - maybe implement the new CosNaming and CosNamingExt-modules. See ftp://ftp.omg.org/pub/docs/orbos/98-10-11.pdf That means removing the LName-thing again. - make the contexts persistent in some way. - create a new POA for the NameServer. Which properties should it have then ??? should be sorted out together with the persistence issue, it seems. - shortcut the resending of the requests, if the contexts live in the same server. This should speed up things additionally. DONE: - make the exceptions really work like specified, i.e. set "NotFoundReason why", "Name rest_of_name" and "NamingContext cxt" to appropriate values. - why does list return Names and not NameCompoments ? ( I asked on comp.objects.corba and the answer was something like: "because they didn't really think about it" ) - use hash tables instead of arrays. ORBit2-2.14.19/src/services/name/name-client.c0000644000175000001440000003004711334247617015554 00000000000000/* * name-client : a client for the CORBA CosNaming Service * * Copyright (C) 1998 Sebastian Wilhelmi; University of Karlsruhe * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "CosNaming.h" #include "name-support.h" #include #include #include #include #include /* how many bindings to fetch at once */ #define FETCH_AT_ONCE 10 #define IS_EXCEPTION(ev, name) \ (strcmp (CORBA_exception_id (ev), ex_##name) == 0) typedef enum { mode_bind, mode_rebind, mode_bind_context, mode_rebind_context, mode_unbind, mode_resolve, mode_new_context, mode_bind_new_context, mode_destroy, mode_list, mode_not_set } mode_type; typedef struct { mode_type type; gchar *name; int num_of_args; } modes_array_type; static modes_array_type modes[] = { { mode_bind, "bind", 2 } , { mode_rebind, "rebind", 2 } , { mode_bind_context, "bind_context", 2 } , { mode_rebind_context, "rebind_context", 2 } , { mode_unbind, "unbind", 1 } , { mode_resolve, "resolve", 1 } , { mode_new_context, "new_context", 0 } , { mode_bind_new_context, "bind_new_context", 1 } , { mode_destroy, "destroy", 1 } , { mode_list, "list", 1 } }; static gchar *requested_name = NULL; static void Usage (gchar * name) { g_printerr ("Usage:\n" " %s root [bind|rebind|bind_context|rebind_context] name object-id\n" " %s root [resolve|unbind|bind_new_context|list|destroy] name\n" " %s root [new_context]\n" " components of name are delimited by '/'\n" " id and kind of those components are delimited by '.'\n" " root denotes the IOR of the root naming context, it is either:\n" " * the IOR itself\n" " * '--stdin' - the IOR is read from stdin\n" " * '--gnome' - the Gnome Name Server is used\n" " object-id is the IOR of an object\n", name, name, name); exit (1); } static void Exception (CORBA_Environment * ev) { switch (ev->_major) { case 0: /* no exception */ break; case CORBA_SYSTEM_EXCEPTION: g_printerr ("CORBA system exception: %s.\n", CORBA_exception_id(ev)); exit (1); case CORBA_USER_EXCEPTION: if (IS_EXCEPTION (ev, CosNaming_NamingContext_NotFound)) { CosNaming_NamingContext_NotFound *ex = CORBA_exception_value (ev); CORBA_char *name = ORBit_CosNaming_NameComponent_to_string (ex->rest_of_name._buffer); g_printerr ("'%s' can't be found, because '%s' is ", requested_name, name); CORBA_free (name); switch (ex->why) { case CosNaming_NamingContext_missing_node: g_printerr ("missing"); break; case CosNaming_NamingContext_not_context: g_printerr ("not a context"); break; case CosNaming_NamingContext_not_object: g_printerr ("not an object"); break; } g_printerr (".\n"); } else if (IS_EXCEPTION (ev, CosNaming_NamingContext_CannotProceed)) { CosNaming_NamingContext_CannotProceed *ex = CORBA_exception_value (ev); CORBA_char *name = ORBit_CosNaming_NameComponent_to_string (ex->rest_of_name._buffer); g_printerr ("The name service implementation couldn't proceed" " while processing %s.\n", name); CORBA_free (name); } else if (IS_EXCEPTION (ev, CosNaming_NamingContext_InvalidName)) { g_printerr ("'%s' has an invalid name.\n", requested_name); } else if (IS_EXCEPTION (ev, CosNaming_NamingContext_AlreadyBound)) { g_printerr ("'%s' is already bound.\n", requested_name); } else if (IS_EXCEPTION (ev, CosNaming_NamingContext_NotEmpty)) { g_printerr ("'%s' can't be deleted as it is not empty.\n", requested_name); } else { g_printerr ("Unknown CORBA user exception: %s.\n", CORBA_exception_id (ev)); } exit (1); default: g_assert_not_reached(); } } static void assert_NamingContext (CORBA_Object object, gchar * name) { CORBA_Environment ev; gboolean is_context; if ( object==CORBA_OBJECT_NIL ) { g_printerr ("'%s' is NIL (should be naming context).\n", name); exit (1); } CORBA_exception_init (&ev); is_context = CORBA_Object_is_a (object, "IDL:omg.org/CosNaming/NamingContext:1.0", &ev); if ( ev._major ) { g_printerr ("Exception while verifying that '%s' is a naming context.\n", name); Exception (&ev); } if (!is_context) { g_printerr ("'%s' is not a naming context.\n", name); exit (1); } } static CORBA_Object resolve (CosNaming_NamingContext context, gboolean is_ext_context, CORBA_char *str, CORBA_Environment * ev) { CORBA_Object retval; if (is_ext_context) { retval = CosNaming_NamingContextExt_resolve_str (context, str, ev); Exception (ev); } else { CosNaming_Name *name = ORBit_string_to_CosNaming_Name (str, ev); Exception (ev); if (name->_length != 0) { retval = CosNaming_NamingContext_resolve (context, name, ev); Exception (ev); } else { retval = CORBA_Object_duplicate (context, ev); Exception (ev); } } return retval; } int main (int argc, char *argv[]) { CORBA_ORB orb; CORBA_Environment ev; gchar objref_str[2048]; CORBA_Object object = CORBA_OBJECT_NIL, outobject = CORBA_OBJECT_NIL; int i; mode_type mode = mode_not_set; CosNaming_NamingContext NamingContext_obj; CosNaming_Name *name = NULL; gboolean is_ext_context; /* Strip out ORB arguments before processing our own... */ CORBA_exception_init (&ev); orb = CORBA_ORB_init (&argc, argv, "orbit-local-orb", &ev); if (argc < 3) { Usage (argv[0]); } for (i = 0; i < sizeof (modes) / sizeof (modes[0]); i++) { if (strcmp (argv[2], modes[i].name) == 0) { mode = modes[i].type; if (argc != modes[i].num_of_args + 3) { fprintf (stderr, "wrong number of arguments for mode %s, should" " be %d.\n", modes[i].name, modes[i].num_of_args); Usage (argv[0]); } break; } } if (mode == mode_not_set) { fprintf (stderr, "mode %s not supported.\n", argv[1]); Usage (argv[0]); } if (strcmp (argv[1], "--gnome") == 0) { gchar principal_str[2048]; #if 0 CORBA_Principal request_cookie; #endif FILE *infile = popen ("xprop -root GNOME_NAME_SERVER |" "awk '{print $5}' |" "xargs xprop GNOME_NAME_SERVER_IOR -id |" "sed 's/^[^\"]*\"//;s/\"//'", "r"); fgets (objref_str, 2048, infile); pclose (infile); infile = popen ("xprop -root GNOME_SESSION_CORBA_COOKIE |" "sed 's/^[^\"]*\"//;s/\"$//;s:\\\\\\(.\\):\\1:g'", "r"); fgets (principal_str, 2048, infile); pclose (infile); g_strchug (principal_str); g_strchomp (principal_str); #if 0 request_cookie._buffer = principal_str; request_cookie._length = strlen (principal_str) + 1; ORBit_set_default_principal (&request_cookie); #endif } else if (strcmp (argv[1], "--stdin") == 0) fgets (objref_str, 2048, stdin); else if (strncmp (argv[1], "IOR:", 4) == 0 || strncmp (argv[1], "corbaloc:", 9) == 0 || strncmp (argv[1], "corbaname:", 10) == 0 ) { strcpy (objref_str, argv[1]); } else { g_printerr("%s: mal-formed root argument.\n", argv[0]); Usage (argv[0]); } g_strchug (objref_str); g_strchomp (objref_str); NamingContext_obj = CORBA_ORB_string_to_object (orb, objref_str, &ev); if ( ev._major ) { g_printerr("%s: Exception while resolving root argument.\n", argv[0]); Exception (&ev); } assert_NamingContext (NamingContext_obj, "root context"); is_ext_context = CORBA_Object_is_a (NamingContext_obj, "IDL:omg.org/CosNaming/NamingContextExt:1.0", &ev); Exception (&ev); if (argc > 3) /* we have a name on argv[ 3 ] */ { requested_name = argv[3]; if (mode != mode_destroy && mode != mode_list && mode != mode_resolve) { if (is_ext_context) { name = CosNaming_NamingContextExt_to_name (NamingContext_obj, requested_name, &ev); Exception (&ev); } else { name = ORBit_string_to_CosNaming_Name (requested_name, &ev); Exception (&ev); } } } if (argc > 4) /* we have an object-id on argv[ 3 ] */ { object = CORBA_ORB_string_to_object (orb, argv[4], &ev); Exception (&ev); } switch (mode) { case mode_bind: CosNaming_NamingContext_bind (NamingContext_obj, name, object, &ev); break; case mode_rebind: CosNaming_NamingContext_rebind (NamingContext_obj, name, object, &ev); break; case mode_bind_context: CosNaming_NamingContext_bind_context (NamingContext_obj, name, object, &ev); break; case mode_rebind_context: CosNaming_NamingContext_rebind_context (NamingContext_obj, name, object, &ev); break; case mode_resolve: outobject = resolve (NamingContext_obj, is_ext_context, requested_name, &ev); break; case mode_unbind: CosNaming_NamingContext_unbind (NamingContext_obj, name, &ev); break; case mode_bind_new_context: outobject = CosNaming_NamingContext_bind_new_context (NamingContext_obj, name, &ev); break; case mode_new_context: outobject = CosNaming_NamingContext_new_context (NamingContext_obj, &ev); break; case mode_destroy: { CosNaming_NamingContext remove_context = resolve (NamingContext_obj, is_ext_context, requested_name, &ev); Exception (&ev); assert_NamingContext (remove_context, requested_name); CosNaming_NamingContext_destroy (remove_context, &ev); Exception (&ev); CORBA_Object_release (remove_context, &ev); } break; case mode_list: { CosNaming_BindingIterator bi; CosNaming_BindingList *bl; CosNaming_NamingContext list_context = resolve (NamingContext_obj, is_ext_context, requested_name, &ev); assert_NamingContext (list_context, requested_name); CosNaming_NamingContext_list (list_context, FETCH_AT_ONCE, &bl, &bi, &ev); Exception (&ev); CORBA_Object_release (list_context, &ev); Exception (&ev); while (TRUE) { int i; for (i = 0; i < bl->_length; i++) { CosNaming_NameComponent *comp = &bl->_buffer[i].binding_name._buffer[0]; CORBA_char *name = ORBit_CosNaming_NameComponent_to_string (comp); printf ("%s%s\n", name, bl->_buffer[i].binding_type == CosNaming_ncontext ? "/" : ""); CORBA_free (name); } CORBA_free (bl); if (CORBA_Object_is_nil (bi, &ev)) { break; } if (!CosNaming_BindingIterator_next_n (bi, FETCH_AT_ONCE, &bl, &ev)) { Exception (&ev); CosNaming_BindingIterator_destroy (bi, &ev); Exception (&ev); CORBA_Object_release (bi, &ev); bi = CORBA_OBJECT_NIL; } Exception (&ev); } } break; default: break; } Exception (&ev); if (!CORBA_Object_is_nil (outobject, &ev)) { CORBA_char *object_str = CORBA_ORB_object_to_string (orb, outobject, &ev); printf ("%s\n", object_str); CORBA_free (object_str); CORBA_Object_release (outobject, &ev); } if (!CORBA_Object_is_nil (object, &ev)) { CORBA_Object_release (object, &ev); } if (name) { CORBA_free (name); } CORBA_Object_release (NamingContext_obj, &ev); Exception (&ev); /* g_mem_profile(); */ return 0; } ORBit2-2.14.19/src/services/name/orbit-name-server.c0000644000175000001440000005217011334247617016722 00000000000000/* * orbit-name-server : a CORBA CosNaming server * * Copyright (C) 1998 Elliot Lee, Sebastian Wilhelmi * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #include "CosNaming.h" #include "CosNaming_impl.h" #include "name-support.h" #include #include #include #include #include /*** App-specific servant structures ***/ typedef struct { CosNaming_NameComponent nc; CORBA_Object obj; gint refcount; CORBA_boolean is_subctx; } RegisteredName; typedef struct { POA_CosNaming_NamingContextExt servant; PortableServer_POA poa; GHashTable *names; CORBA_Object objref; } impl_POA_CosNaming_NamingContextExt; typedef struct { POA_CosNaming_BindingIterator servant; PortableServer_POA poa; GList *items; } impl_POA_CosNaming_BindingIterator; /*** Stub implementations ***/ static void NameComponent__copy (CosNaming_NameComponent * dest, CosNaming_NameComponent * src) { dest->id = CORBA_string_dup (src->id); dest->kind = CORBA_string_dup (src->kind); } static void Name__copy (CosNaming_Name * dest, CosNaming_Name * src, int from_pos) { int i; dest->_length = MAX (src->_length - from_pos, 0); dest->_buffer = dest->_length ? CORBA_sequence_CosNaming_NameComponent_allocbuf (dest->_length) : NULL; for (i = 0; i < dest->_length; i++) NameComponent__copy (dest->_buffer + i, src->_buffer + i + from_pos); } static guint nc_hash (const CosNaming_NameComponent * nom) { return g_str_hash (nom->id) ^ g_str_hash (nom->kind); } static gint nc_compare (const CosNaming_NameComponent * n1, const CosNaming_NameComponent * n2) { return !strcmp (n1->id, n2->id) && !strcmp (n1->kind, n2->kind); } static RegisteredName * rn_new (CosNaming_NameComponent * nc, CORBA_Object obj, CORBA_boolean is_subctx) { RegisteredName *retval; retval = g_new0 (RegisteredName, 1); NameComponent__copy (&retval->nc, nc); retval->obj = CORBA_Object_duplicate (obj, /* cheat */ NULL); retval->is_subctx = is_subctx; return retval; } #if 0 static void rn_print (CosNaming_NameComponent * nc, RegisteredName * nom) { g_print ("id %s kind %s ptr %p [%p]\n", nc->id, nc->kind, nom->obj, nom->obj ? nom->obj->pobj : NULL); } #endif static RegisteredName * rn_ref (RegisteredName * nom) { nom->refcount++; return nom; } static void rn_unref (RegisteredName * nom) { nom->refcount--; if (nom->refcount <= 0) { CORBA_free (nom->nc.id); CORBA_free (nom->nc.kind); CORBA_Object_release (nom->obj, /* cheat */ NULL); g_free (nom); } } static void l_rn_unref(gpointer data, gpointer user_data) { rn_unref((RegisteredName *)data); } static void impl_NamingContext_unbind (impl_POA_CosNaming_NamingContextExt * servant, CosNaming_Name * n, CORBA_Environment * ev) { RegisteredName *nom = NULL; if (n->_length < 1) goto raise_exc; nom = g_hash_table_lookup (servant->names, n->_buffer); if (n->_length == 1 && nom) { g_hash_table_remove (servant->names, &nom->nc); rn_unref (nom); } else if (nom && nom->is_subctx) { CosNaming_Name n2 = *n; n2._length--; n2._buffer++; CosNaming_NamingContext_unbind (nom->obj, &n2, ev); } else { CosNaming_NamingContext_NotFound *exdata; raise_exc: exdata = CosNaming_NamingContext_NotFound__alloc (); exdata->why = nom ? CosNaming_NamingContext_not_context : CosNaming_NamingContext_missing_node; Name__copy (&exdata->rest_of_name, n, 0); CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_CosNaming_NamingContext_NotFound, exdata); } } static void impl_NamingContext_bind (impl_POA_CosNaming_NamingContextExt * servant, CosNaming_Name * n, CORBA_Object obj, CORBA_Environment * ev) { RegisteredName *nom = NULL; if (n->_length < 1) goto raise_exc; nom = g_hash_table_lookup (servant->names, n->_buffer); if (n->_length == 1) { if (nom) { if (!CORBA_Object_non_existent (nom->obj, ev)) { CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_CosNaming_NamingContext_AlreadyBound, NULL); return; } else impl_NamingContext_unbind (servant, n, ev); } nom = rn_new (&n->_buffer[0], obj, CORBA_FALSE); g_hash_table_insert (servant->names, &nom->nc, rn_ref (nom)); } else if (nom && nom->is_subctx) { CosNaming_Name n2 = *n; n2._length--; n2._buffer++; CosNaming_NamingContext_bind (nom->obj, &n2, obj, ev); return; } else { CosNaming_NamingContext_NotFound *exdata; raise_exc: exdata = CosNaming_NamingContext_NotFound__alloc (); exdata->why = nom ? CosNaming_NamingContext_not_context : CosNaming_NamingContext_missing_node; Name__copy (&exdata->rest_of_name, n, 0); CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_CosNaming_NamingContext_NotFound, exdata); } } static void impl_NamingContext_rebind (impl_POA_CosNaming_NamingContextExt * servant, CosNaming_Name * n, CORBA_Object obj, CORBA_Environment * ev) { RegisteredName *nom = NULL; if (n->_length < 1) goto raise_exc; nom = g_hash_table_lookup (servant->names, n->_buffer); if (n->_length == 1) { if (nom) { g_hash_table_remove (servant->names, &nom->nc); rn_unref (nom); } nom = rn_new (&n->_buffer[0], obj, CORBA_FALSE); g_hash_table_insert (servant->names, &nom->nc, rn_ref (nom)); } else if (nom && nom->is_subctx) { CosNaming_Name n2 = *n; n2._length--; n2._buffer++; CosNaming_NamingContext_rebind (nom->obj, &n2, obj, ev); } else { CosNaming_NamingContext_NotFound *exdata; raise_exc: exdata = CosNaming_NamingContext_NotFound__alloc (); exdata->why = nom ? CosNaming_NamingContext_not_context : CosNaming_NamingContext_missing_node; Name__copy (&exdata->rest_of_name, n, 0); CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_CosNaming_NamingContext_NotFound, exdata); } } static void impl_NamingContext_bind_context (impl_POA_CosNaming_NamingContextExt * servant, CosNaming_Name * n, CosNaming_NamingContext nc, CORBA_Environment * ev) { RegisteredName *nom = NULL; if (n->_length < 1) goto raise_exc; nom = g_hash_table_lookup (servant->names, n->_buffer); if (n->_length == 1) { if (nom) { if (!CORBA_Object_non_existent (nom->obj, ev)) { CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_CosNaming_NamingContext_AlreadyBound, NULL); return; } else impl_NamingContext_unbind (servant, n, ev); } nom = rn_new (&n->_buffer[0], nc, CORBA_TRUE); g_hash_table_insert (servant->names, &nom->nc, rn_ref (nom)); } else if (nom && nom->is_subctx) { CosNaming_Name n2 = *n; n2._length--; n2._buffer++; CosNaming_NamingContext_bind (nom->obj, &n2, nc, ev); return; } else { CosNaming_NamingContext_NotFound *exdata; raise_exc: exdata = CosNaming_NamingContext_NotFound__alloc (); exdata->why = nom ? CosNaming_NamingContext_not_context : CosNaming_NamingContext_missing_node; Name__copy (&exdata->rest_of_name, n, 0); CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_CosNaming_NamingContext_NotFound, exdata); } } static void impl_NamingContext_rebind_context (impl_POA_CosNaming_NamingContextExt * servant, CosNaming_Name * n, CosNaming_NamingContext nc, CORBA_Environment * ev) { RegisteredName *nom = NULL; if (n->_length < 1) goto raise_exc; nom = g_hash_table_lookup (servant->names, n->_buffer); if (n->_length == 1) { if (nom) { g_hash_table_remove (servant->names, &nom->nc); rn_unref (nom); } nom = rn_new (&n->_buffer[0], nc, CORBA_TRUE); g_hash_table_insert (servant->names, &nom->nc, rn_ref (nom)); } else if (nom && nom->is_subctx) { CosNaming_Name n2 = *n; n2._length--; n2._buffer++; CosNaming_NamingContext_rebind_context (nom->obj, &n2, nc, ev); } else { CosNaming_NamingContext_NotFound *exdata; raise_exc: exdata = CosNaming_NamingContext_NotFound__alloc (); exdata->why = nom ? CosNaming_NamingContext_not_context : CosNaming_NamingContext_missing_node; Name__copy (&exdata->rest_of_name, n, 0); CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_CosNaming_NamingContext_NotFound, exdata); } } static CORBA_Object impl_NamingContext_resolve (impl_POA_CosNaming_NamingContextExt * servant, CosNaming_Name * n, CORBA_Environment * ev) { RegisteredName *nom = NULL; if (n->_length < 1) goto raise_exc; nom = g_hash_table_lookup (servant->names, n->_buffer); if (!nom) { CosNaming_NamingContext_NotFound *exdata; exdata = CosNaming_NamingContext_NotFound__alloc (); exdata->why = CosNaming_NamingContext_missing_node; Name__copy (&exdata->rest_of_name, n, 0); CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_CosNaming_NamingContext_NotFound, exdata); } else if (n->_length == 1) { if (!CORBA_Object_non_existent (nom->obj, ev)) return CORBA_Object_duplicate (nom->obj, ev); else { CosNaming_NamingContext_NotFound *exdata; impl_NamingContext_unbind (servant, n, ev); raise_exc: exdata = CosNaming_NamingContext_NotFound__alloc (); exdata->why = CosNaming_NamingContext_missing_node; Name__copy (&exdata->rest_of_name, n, 0); CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_CosNaming_NamingContext_NotFound, exdata); } } else { CosNaming_Name n2 = *n; n2._length--; n2._buffer++; return CosNaming_NamingContext_resolve (nom->obj, &n2, ev); } return CORBA_OBJECT_NIL; } static CosNaming_NamingContext impl_NamingContext_new_context (impl_POA_CosNaming_NamingContextExt * servant, CORBA_Environment * ev) { return ORBit_CosNaming_NamingContextExt_create (servant->poa, ev); } static CosNaming_NamingContext impl_NamingContext_bind_new_context (impl_POA_CosNaming_NamingContextExt * servant, CosNaming_Name * n, CORBA_Environment * ev) { RegisteredName *nom = NULL; CosNaming_NamingContext retval; if (n->_length < 1) goto raise_exc; nom = g_hash_table_lookup (servant->names, n->_buffer); if (n->_length == 1) { if (nom) { if (!CORBA_Object_non_existent (nom->obj, ev)) { CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_CosNaming_NamingContext_AlreadyBound, NULL); return CORBA_OBJECT_NIL; } else impl_NamingContext_unbind (servant, n, ev); } retval = impl_NamingContext_new_context (servant, ev); impl_NamingContext_bind_context (servant, n, retval, ev); return retval; } else if (nom && nom->is_subctx) { CosNaming_Name n2 = *n; n2._length--; n2._buffer++; return CosNaming_NamingContext_bind_new_context (nom->obj, &n2, ev); } else { CosNaming_NamingContext_NotFound *exdata; raise_exc: exdata = CosNaming_NamingContext_NotFound__alloc (); exdata->why = nom ? CosNaming_NamingContext_not_context : CosNaming_NamingContext_missing_node; Name__copy (&exdata->rest_of_name, n, 0); CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_CosNaming_NamingContext_NotFound, exdata); } return CORBA_OBJECT_NIL; } static void h_rn_unref (gpointer key, gpointer val, gpointer user_data) { rn_unref (val); } static void impl_NamingContextExt__destroy (impl_POA_CosNaming_NamingContextExt *servant, CORBA_Environment *ev) { CORBA_Object_release ((CORBA_Object) servant->poa, ev); g_hash_table_foreach_remove (servant->names, (GHRFunc) h_rn_unref, servant); g_hash_table_destroy (servant->names); CORBA_Object_release (servant->objref, ev); POA_CosNaming_NamingContextExt__fini ((PortableServer_Servant) servant, ev); g_free (servant); } static void impl_NamingContext_destroy (impl_POA_CosNaming_NamingContextExt * servant, CORBA_Environment * ev) { impl_NamingContextExt__destroy (servant, ev); } static CosNaming_BindingList * n_names_into_bindinglist (GList ** itemlist, int n) { CosNaming_BindingList *bl = CosNaming_BindingList__alloc (); int i; RegisteredName *curnom; bl->_length = n; bl->_buffer = n ? CORBA_sequence_CosNaming_Binding_allocbuf (bl->_length) : NULL; for (i = 0; i < n; i++) { curnom = (*itemlist)->data; *itemlist = g_list_remove_link (*itemlist, *itemlist); bl->_buffer[i].binding_name._length = 1; bl->_buffer[i].binding_name._buffer = CORBA_sequence_CosNaming_NameComponent_allocbuf (1); NameComponent__copy (&bl->_buffer[i].binding_name._buffer[0], &curnom->nc); bl->_buffer[i].binding_type = curnom->is_subctx ? CosNaming_ncontext : CosNaming_nobject; rn_unref (curnom); } return bl; } static void list_ptr_append (gpointer key, gpointer val, GList ** listptr) { *listptr = g_list_append (*listptr, rn_ref (val)); } static GList * nc_names_into_itemlist (impl_POA_CosNaming_NamingContextExt * servant) { GList *retval = NULL; g_hash_table_foreach (servant->names, (GHFunc) list_ptr_append, &retval); return retval; } static void impl_BindingIterator__destroy (impl_POA_CosNaming_BindingIterator * servant, CORBA_Environment * ev) { CORBA_Object_release ((CORBA_Object) servant->poa, ev); g_list_foreach (servant->items, (GFunc) l_rn_unref, NULL); g_list_free (servant->items); POA_CosNaming_BindingIterator__fini ((PortableServer_Servant) servant, ev); g_free (servant); } static CORBA_boolean impl_BindingIterator_next_one (impl_POA_CosNaming_BindingIterator * servant, CosNaming_Binding ** b, CORBA_Environment * ev) { RegisteredName *curnom; if (servant->items) { *b = CosNaming_Binding__alloc (); curnom = servant->items->data; servant->items = g_list_remove_link (servant->items, servant->items); (*b)->binding_name._length = 1; (*b)->binding_name._buffer = CORBA_sequence_CosNaming_NameComponent_allocbuf (1); NameComponent__copy (&(*b)->binding_name._buffer[0], &curnom->nc); (*b)->binding_type = curnom->is_subctx ? CosNaming_ncontext : CosNaming_nobject; rn_unref (curnom); } else *b = NULL; return servant->items ? CORBA_TRUE : CORBA_FALSE; } static CORBA_boolean impl_BindingIterator_next_n (impl_POA_CosNaming_BindingIterator * servant, CORBA_unsigned_long how_many, CosNaming_BindingList ** bl, CORBA_Environment * ev) { *bl = n_names_into_bindinglist (&servant->items, MIN (g_list_length (servant->items), how_many)); return ((*bl)->_length > 0); } static void impl_BindingIterator_destroy (impl_POA_CosNaming_BindingIterator * servant, CORBA_Environment * ev) { impl_BindingIterator__destroy (servant, ev); } static CosNaming_NamingContextExt_StringName impl_NamingContextExt_to_string (impl_POA_CosNaming_NamingContextExt * servant, CosNaming_Name * n, CORBA_Environment * ev) { return ORBit_CosNaming_Name_to_string (n); } static CosNaming_Name * impl_NamingContextExt_to_name (impl_POA_CosNaming_NamingContextExt * servant, CosNaming_NamingContextExt_StringName sn, CORBA_Environment * ev) { return ORBit_string_to_CosNaming_Name (sn, ev); } static CosNaming_NamingContextExt_URLString impl_NamingContextExt_to_url (impl_POA_CosNaming_NamingContextExt * servant, CosNaming_NamingContextExt_Address addr, CosNaming_NamingContextExt_StringName sn, CORBA_Environment * ev) { return CORBA_string_dup ("FIXME: Not implemented yet, what should that " "do BTW? Just a concatanation?"); } static CORBA_Object impl_NamingContextExt_resolve_str (impl_POA_CosNaming_NamingContextExt * servant, CosNaming_NamingContextExt_StringName n, CORBA_Environment * ev) { CosNaming_Name *name = ORBit_string_to_CosNaming_Name (n, ev); if (ev->_major != CORBA_NO_EXCEPTION) return CORBA_OBJECT_NIL; if (name->_length == 0) return CORBA_Object_duplicate (servant->objref, ev); else return impl_NamingContext_resolve (servant, name, ev); } /*** epv structures ***/ static PortableServer_ServantBase__epv impl_BindingIterator_base_epv = { NULL, /* _private data */ (gpointer) & impl_BindingIterator__destroy, /* finalize routine */ NULL, /* default_POA routine */ }; static POA_CosNaming_BindingIterator__epv impl_BindingIterator_epv = { NULL, /* _private */ (gpointer) & impl_BindingIterator_next_one, (gpointer) & impl_BindingIterator_next_n, (gpointer) & impl_BindingIterator_destroy }; static POA_CosNaming_NamingContextExt__epv impl_NamingContextExt_epv = { NULL, /* _private */ (gpointer) & impl_NamingContextExt_to_string, (gpointer) & impl_NamingContextExt_to_name, (gpointer) & impl_NamingContextExt_to_url, (gpointer) & impl_NamingContextExt_resolve_str }; /*** vepv structures ***/ static POA_CosNaming_BindingIterator__vepv impl_BindingIterator_vepv = { &impl_BindingIterator_base_epv, &impl_BindingIterator_epv }; static CosNaming_BindingIterator impl_BindingIterator__create (PortableServer_POA poa, impl_POA_CosNaming_BindingIterator **ns, CORBA_Environment *ev) { CosNaming_BindingIterator retval; impl_POA_CosNaming_BindingIterator *newservant; PortableServer_ObjectId *objid; newservant = *ns = g_new0 (impl_POA_CosNaming_BindingIterator, 1); newservant->servant.vepv = &impl_BindingIterator_vepv; newservant->poa = (PortableServer_POA) CORBA_Object_duplicate ((CORBA_Object) poa, ev); newservant->items = NULL; POA_CosNaming_BindingIterator__init ((PortableServer_Servant) newservant, ev); objid = PortableServer_POA_activate_object (poa, newservant, ev); CORBA_free (objid); retval = PortableServer_POA_servant_to_reference (poa, newservant, ev); return retval; } static void impl_NamingContext_list (impl_POA_CosNaming_NamingContextExt *servant, CORBA_unsigned_long how_many, CosNaming_BindingList **bl, CosNaming_BindingIterator *bi, CORBA_Environment *ev) { GList *itemlist; itemlist = nc_names_into_itemlist (servant); if (how_many > 0) { *bl = n_names_into_bindinglist (&itemlist, MIN (how_many, g_hash_table_size (servant->names))); } else { *bl = CosNaming_BindingList__alloc (); (*bl)->_length = 0; } if (itemlist) { impl_POA_CosNaming_BindingIterator *newservant; *bi = impl_BindingIterator__create (servant->poa, &newservant, ev); newservant->items = itemlist; } else *bi = CORBA_OBJECT_NIL; } static PortableServer_ServantBase__epv impl_NamingContextExt_base_epv = { NULL, /* _private data */ (gpointer) & impl_NamingContextExt__destroy, /* finalize routine */ NULL, /* default_POA routine */ }; static POA_CosNaming_NamingContext__epv impl_NamingContext_epv = { NULL, /* _private */ (gpointer) & impl_NamingContext_bind, (gpointer) & impl_NamingContext_rebind, (gpointer) & impl_NamingContext_bind_context, (gpointer) & impl_NamingContext_rebind_context, (gpointer) & impl_NamingContext_resolve, (gpointer) & impl_NamingContext_unbind, (gpointer) & impl_NamingContext_new_context, (gpointer) & impl_NamingContext_bind_new_context, (gpointer) & impl_NamingContext_destroy, (gpointer) & impl_NamingContext_list }; static POA_CosNaming_NamingContextExt__vepv impl_NamingContextExt_vepv = { &impl_NamingContextExt_base_epv, &impl_NamingContext_epv, &impl_NamingContextExt_epv }; CosNaming_NamingContextExt ORBit_CosNaming_NamingContextExt_create (PortableServer_POA poa, CORBA_Environment *ev) { CosNaming_NamingContext retval; impl_POA_CosNaming_NamingContextExt *newservant; PortableServer_ObjectId *objid; newservant = g_new0 (impl_POA_CosNaming_NamingContextExt, 1); newservant->servant.vepv = &impl_NamingContextExt_vepv; newservant->poa = (PortableServer_POA) CORBA_Object_duplicate ((CORBA_Object) poa, ev); newservant->names = g_hash_table_new ((GHashFunc) nc_hash, (GCompareFunc) nc_compare); POA_CosNaming_NamingContextExt__init ((PortableServer_Servant) newservant, ev); objid = PortableServer_POA_activate_object (poa, newservant, ev); CORBA_free (objid); retval = PortableServer_POA_servant_to_reference (poa, newservant, ev); newservant->objref = CORBA_Object_duplicate (retval, ev); return retval; } ORBit2-2.14.19/src/services/name/name-support.h0000644000175000001440000000063711334247617016021 00000000000000#ifndef __CosNaming_name_support_h__ #define __CosNaming_name_support_h__ #include "CosNaming.h" CosNaming_Name * ORBit_string_to_CosNaming_Name (const CORBA_char *string, CORBA_Environment * ev); CORBA_char * ORBit_CosNaming_NameComponent_to_string (const CosNaming_NameComponent *comp); CORBA_char * ORBit_CosNaming_Name_to_string (const CosNaming_Name *name); #endif /* __CosNaming_name_support_h__ */ ORBit2-2.14.19/src/services/name/boot.c0000644000175000001440000000632011334247617014320 00000000000000#include "CosNaming.h" #include #include #include #ifdef HAVE_SYSLOG_H # include #endif #include #include #include #include "CosNaming_impl.h" #ifndef GETTEXT_PACKAGE #define GETTEXT_PACKAGE NULL #endif static void signal_handler(int signo){ #ifdef HAVE_SYSLOG syslog(LOG_ERR,"Receveived signal %d\nshutting down.", signo); #endif switch(signo) { case SIGSEGV: abort(); default: exit(1); } } static char *opt_corbaloc_key = NULL; static const GOptionEntry goptions[] = { { "key", 0, 0, G_OPTION_ARG_STRING, &opt_corbaloc_key, N_("Respond to corbaloc requests with this object key"), N_("KEY") }, { NULL } }; int main (int argc, char *argv[]) { CORBA_ORB orb; CORBA_Environment ev; CosNaming_NamingContext context; const char* progname = "orbit-name-server"; #ifdef HAVE_SYSLOG openlog(progname, LOG_NDELAY | LOG_PID, LOG_DAEMON); syslog(LOG_INFO,"starting"); #endif #ifdef HAVE_SIGACTION { sigset_t empty_mask; struct sigaction act; sigemptyset(&empty_mask); act.sa_handler = signal_handler; act.sa_mask = empty_mask; act.sa_flags = 0; sigaction(SIGINT, &act, NULL); sigaction(SIGHUP, &act, NULL); sigaction(SIGSEGV, &act, NULL); sigaction(SIGABRT, &act, NULL); act.sa_handler = SIG_IGN; sigaction(SIGPIPE, &act, NULL); } #else signal(SIGINT, signal_handler); #ifdef SIGHUP signal(SIGHUP, signal_handler); #endif signal(SIGSEGV, signal_handler); signal(SIGABRT, signal_handler); #ifdef SIGPIPE signal(SIGPIPE, SIG_IGN); #endif #endif CORBA_exception_init (&ev); orb = CORBA_ORB_init (&argc, argv, "orbit-local-orb", &ev); { GOptionContext *context; GError *error = NULL; gboolean result; context = g_option_context_new(""); g_option_context_add_main_entries(context, goptions, GETTEXT_PACKAGE); result = g_option_context_parse(context, &argc, &argv, &error); g_option_context_free(context); if (!result) { g_warning("%s: bad arguments: %s\n", progname, error->message); g_error_free(error); exit(1); } } { PortableServer_POA root_poa; PortableServer_POAManager pm; root_poa = (PortableServer_POA) CORBA_ORB_resolve_initial_references (orb, "RootPOA", &ev); context = ORBit_CosNaming_NamingContextExt_create (root_poa, &ev); pm = PortableServer_POA__get_the_POAManager (root_poa, &ev); PortableServer_POAManager_activate (pm, &ev); CORBA_Object_release((CORBA_Object)pm, &ev); CORBA_Object_release((CORBA_Object)root_poa, &ev); } { CORBA_char *objstr; objstr = CORBA_ORB_object_to_string (orb, context, &ev); g_print ("%s\n", objstr); fflush (stdout); CORBA_free(objstr); } if ( opt_corbaloc_key ) { CORBA_sequence_CORBA_octet okey; okey._length = strlen(opt_corbaloc_key); okey._buffer = opt_corbaloc_key; ORBit_ORB_forw_bind(orb, &okey, context, &ev); } CORBA_ORB_run (orb, &ev); /* Don't release until done (dont know why) */ CORBA_Object_release (context, &ev); #ifdef HAVE_SYSLOG syslog(LOG_INFO, "exiting"); #endif return 0; } ORBit2-2.14.19/COPYING.LIB0000644000175000001440000006131311334247617011322 00000000000000 GNU LIBRARY GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the library GPL. It is numbered 2 because it goes with version 2 of the ordinary GPL.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Library General Public License, applies to some specially designated Free Software Foundation software, and to any other libraries whose authors decide to use it. You can use it for your libraries, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library, or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link a program with the library, you must provide complete object files to the recipients so that they can relink them with the library, after making changes to the library and recompiling it. And you must show them these terms so they know their rights. Our method of protecting your rights has two steps: (1) copyright the library, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the library. Also, for each distributor's protection, we want to make certain that everyone understands that there is no warranty for this free library. If the library is modified by someone else and passed on, we want its recipients to know that what they have is not the original version, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that companies distributing free software will individually obtain patent licenses, thus in effect transforming the program into proprietary software. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License, which was designed for utility programs. This license, the GNU Library General Public License, applies to certain designated libraries. This license is quite different from the ordinary one; be sure to read it in full, and don't assume that anything in it is the same as in the ordinary license. The reason we have a separate public license for some libraries is that they blur the distinction we usually make between modifying or adding to a program and simply using it. Linking a program with a library, without changing the library, is in some sense simply using the library, and is analogous to running a utility program or application program. However, in a textual and legal sense, the linked executable is a combined work, a derivative of the original library, and the ordinary General Public License treats it as such. Because of this blurred distinction, using the ordinary General Public License for libraries did not effectively promote software sharing, because most developers did not use the libraries. We concluded that weaker conditions might promote sharing better. However, unrestricted linking of non-free programs would deprive the users of those programs of all benefit from the free status of the libraries themselves. This Library General Public License is intended to permit developers of non-free programs to use free libraries, while preserving your freedom as a user of such programs to change the free libraries that are incorporated in them. (We have not seen how to achieve this as regards changes in header files, but we have achieved it as regards changes in the actual functions of the Library.) The hope is that this will lead to faster development of free libraries. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, while the latter only works together with the library. Note that it is possible for a library to be covered by the ordinary General Public License rather than by this special one. GNU LIBRARY GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Library General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also compile or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. c) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. d) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Library General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! ORBit2-2.14.19/config.sub0000755000175000001440000010316711450333732011642 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 # Free Software Foundation, Inc. timestamp='2009-11-20' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted GNU ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray | -microblaze) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | ubicom32 \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12 | picochip) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze) basic_machine=microblaze-xilinx ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tile*) basic_machine=tile-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -auroraux) os=-auroraux ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | -sym* | -kopensolaris* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: ORBit2-2.14.19/config.guess0000755000175000001440000013031111450333732012166 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 # Free Software Foundation, Inc. timestamp='2009-11-20' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner. Please send patches (context # diff format) to and include a ChangeLog # entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case "${UNAME_MACHINE}" in i?86) test -z "$VENDOR" && VENDOR=pc ;; *) test -z "$VENDOR" && VENDOR=unknown ;; esac test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-${VENDOR}-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-${VENDOR}-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-${VENDOR}-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-${VENDOR}-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-${VENDOR}-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-${VENDOR}-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-${VENDOR}-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-${VENDOR}-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-${VENDOR}-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux${UNAME_RELEASE} exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-${VENDOR}-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[456]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-${VENDOR}-osf1mk else echo ${UNAME_MACHINE}-${VENDOR}-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-${VENDOR}-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-${VENDOR}-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; authenticamd | genuineintel | EM64T) echo x86_64-${VENDOR}-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-${VENDOR}-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-${VENDOR}-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-${VENDOR}-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-${VENDOR}-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-${VENDOR}-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-${VENDOR}-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC} exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu else echo ${UNAME_MACHINE}-${VENDOR}-linux-gnueabi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-${VENDOR}-linux-gnu exit ;; i*86:Linux:*:*) LIBC=gnu eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}" exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-${VENDOR}-linux-gnu exit ;; padre:Linux:*:*) echo sparc-${VENDOR}-linux-gnu exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-${VENDOR}-linux-gnu exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-${VENDOR}-linux-gnu ;; PA8*) echo hppa2.0-${VENDOR}-linux-gnu ;; *) echo hppa-${VENDOR}-linux-gnu ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-${VENDOR}-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-${VENDOR}-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-${VENDOR}-linux-gnu exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-${VENDOR}-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-${VENDOR}-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-${VENDOR}-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-${VENDOR}-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-${VENDOR}-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-${VENDOR}-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-${VENDOR}-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-${VENDOR}-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-${VENDOR}-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-${VENDOR}-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in i386) eval $set_cc_for_build if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then UNAME_PROCESSOR="x86_64" fi fi ;; unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-${VENDOR}-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-${VENDOR}-tops10 exit ;; *:TENEX:*:*) echo pdp10-${VENDOR}-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-${VENDOR}-tops20 exit ;; *:ITS:*:*) echo pdp10-${VENDOR}-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-${VENDOR}-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: