Add preliminary Android library.
Note: Current Android NDK doesn't allow libraries to have assets folder,
but we place the ortemanager in there. At current point it is necessary
for applications using this library to either manually copy the compiled
ortemanager over to their own assets folder or to create a symlink.
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
+ <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
+ <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="gen"/>
+ <classpathentry kind="output" path="bin/classes"/>
+</classpath>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
+ <storageModule moduleId="org.eclipse.cdt.core.settings">
+ <cconfiguration id="com.android.toolchain.gcc.58109024">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.android.toolchain.gcc.58109024" moduleId="org.eclipse.cdt.core.settings" name="Default">
+ <externalSettings/>
+ <extensions>
+ <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="${ProjName}" buildProperties="" description="" id="com.android.toolchain.gcc.58109024" name="Default" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.android.toolchain.gcc.58109024.591349942" name="/" resourcePath="">
+ <toolChain id="com.android.toolchain.gcc.1178868992" name="com.android.toolchain.gcc" superClass="com.android.toolchain.gcc">
+ <targetPlatform binaryParser="org.eclipse.cdt.core.ELF" id="com.android.targetPlatform.1097156182" isAbstract="false" superClass="com.android.targetPlatform"/>
+ <builder id="com.android.builder.566599432" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Android Builder" superClass="com.android.builder">
+ <outputEntries>
+ <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="outputPath" name="obj"/>
+ <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="outputPath" name="libs"/>
+ </outputEntries>
+ </builder>
+ <tool id="com.android.gcc.compiler.316934587" name="Android GCC Compiler" superClass="com.android.gcc.compiler">
+ <inputType id="com.android.gcc.inputType.13620957" superClass="com.android.gcc.inputType"/>
+ </tool>
+ </toolChain>
+ </folderInfo>
+ <sourceEntries>
+ <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="jni"/>
+ </sourceEntries>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ </cconfiguration>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <project id="libaorte.null.1985156458" name="libaorte"/>
+ </storageModule>
+ <storageModule moduleId="scannerConfiguration">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
+ <scannerConfigBuildInfo instanceId="com.android.toolchain.gcc.58109024;com.android.toolchain.gcc.58109024.591349942;com.android.gcc.compiler.316934587;com.android.gcc.inputType.13620957">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.android.AndroidPerProjectProfile"/>
+ </scannerConfigBuildInfo>
+ </storageModule>
+</cproject>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>libaorte</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+ <triggers>clean,full,incremental,</triggers>
+ <arguments>
+ <dictionary>
+ <key>?children?</key>
+ <value>?name?=outputEntries\|?children?=?name?=entry\\\\\\\|\\\|?name?=entry\\\\\\\|\\\|\||</value>
+ </dictionary>
+ <dictionary>
+ <key>?name?</key>
+ <value></value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.append_environment</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.buildArguments</key>
+ <value></value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.buildCommand</key>
+ <value>ndk-build</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
+ <value>clean</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.contents</key>
+ <value>org.eclipse.cdt.make.core.activeConfigSettings</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableAutoBuild</key>
+ <value>false</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableCleanBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableFullBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.stopOnError</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
+ <value>true</value>
+ </dictionary>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ApkBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
+ <triggers>full,incremental,</triggers>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.cdt.core.cnature</nature>
+ <nature>org.eclipse.cdt.core.ccnature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
+ </natures>
+</projectDescription>
--- /dev/null
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.source=1.6
--- /dev/null
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="org.ocera.orte"
+ android:versionCode="1"
+ android:versionName="1.0" >
+
+ <uses-sdk
+ android:minSdkVersion="14"
+ android:targetSdkVersion="15" />
+ <uses-permission android:name="android.permission.INTERNET"/>
+ <uses-permission android:name="android.permission.SET_DEBUG_APP"/>
+
+ <application
+ android:allowBackup="true"
+ android:debuggable="true"
+ android:icon="@drawable/ic_launcher"
+ android:label="@string/app_name"
+ android:theme="@style/AppTheme" >
+ </application>
+
+</manifest>
--- /dev/null
+/** Automatically generated file. DO NOT MODIFY */
+package org.ocera.orte;
+
+public final class BuildConfig {
+ public final static boolean DEBUG = true;
+}
\ No newline at end of file
--- /dev/null
+/* AUTO-GENERATED FILE. DO NOT MODIFY.
+ *
+ * This class was automatically generated by the
+ * aapt tool from the resource data it found. It
+ * should not be modified by hand.
+ */
+
+package org.ocera.orte;
+
+public final class R {
+ public static final class attr {
+ }
+ public static final class drawable {
+ public static int ic_launcher=0x7f020000;
+ }
+ public static final class string {
+ public static int app_name=0x7f030000;
+ }
+ public static final class style {
+ /**
+ Base application theme, dependent on API level. This theme is replaced
+ by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
+
+
+ Theme customizations available in newer API levels can go in
+ res/values-vXX/styles.xml, while customizations related to
+ backward-compatibility can go here.
+
+
+ Base application theme for API 11+. This theme completely replaces
+ AppBaseTheme from res/values/styles.xml on API 11+ devices.
+
+ API 11 theme customizations can go here.
+
+ Base application theme for API 14+. This theme completely replaces
+ AppBaseTheme from BOTH res/values/styles.xml and
+ res/values-v11/styles.xml on API 14+ devices.
+
+ API 14 theme customizations can go here.
+ */
+ public static int AppBaseTheme=0x7f040000;
+ /** Application theme.
+ All customizations that are NOT specific to a particular API-level can go here.
+ */
+ public static int AppTheme=0x7f040001;
+ }
+}
--- /dev/null
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := orte
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
+LOCAL_LDLIBS := -llog
+LOCAL_SRC_FILES := \
+liborte/conv.c \
+liborte/debug.c \
+liborte/event.c \
+liborte/fnmatch.c \
+liborte/htimerNtp.c \
+liborte/objectEntry.c \
+liborte/objectEntryTimer.c \
+liborte/objectUtils.c \
+liborte/ORTEAppRecvThread.c \
+liborte/ORTEAppSendThread.c \
+liborte/ORTEDomainApp.c \
+liborte/ORTEPublication.c \
+liborte/ORTEPublicationTimer.c \
+liborte/ORTESubscription.c \
+liborte/ORTEDomain.c \
+liborte/ORTEDomainMgr.c \
+liborte/ORTEInit.c \
+liborte/ORTEThreadUtils.c \
+liborte/ORTETypeRegister.c \
+liborte/ORTEVerbosity.c \
+liborte/ORTEPattern.c \
+liborte/ORTEMisc.c \
+liborte/parameter.c \
+liborte/RTPSAck.c \
+liborte/RTPSCSTReader.c \
+liborte/RTPSCSTReaderTimer.c \
+liborte/RTPSCSTReaderProc.c \
+liborte/RTPSCSTWriter.c \
+liborte/RTPSCSTWriterTimer.c \
+liborte/RTPSGap.c \
+liborte/RTPSHeader.c \
+liborte/RTPSHeardBeat.c \
+liborte/RTPSInfoDST.c \
+liborte/RTPSInfoREPLY.c \
+liborte/RTPSInfoSRC.c \
+liborte/RTPSInfoTS.c \
+liborte/RTPSPad.c \
+liborte/RTPSUtils.c \
+liborte/RTPSVar.c \
+liborte/RTPSIssue.c \
+liborte/sock.c \
+liborte/ul_gavl.c \
+liborte/ul_gavlprim.c \
+liborte/cdr.c
+
+include $(BUILD_STATIC_LIBRARY)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := jorte
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
+LOCAL_LDLIBS := -llog
+LOCAL_SRC_FILES := \
+libjorte/onLoad.c \
+libjorte/getNtpTime.c \
+libjorte/setType.c \
+libjorte/setTopic.c \
+libjorte/createAppInfo.c \
+libjorte/createPubInfo.c \
+libjorte/createSubInfo.c \
+libjorte/setRecvInfo.c \
+libjorte/JGetORTEConstant.c \
+libjorte/JIPAddressToString.c \
+libjorte/JNtpTimeToStringMs.c \
+libjorte/JNtpTimeToStringUs.c \
+libjorte/JORTEDomainAppCreate.c \
+libjorte/JORTEDomainAppDestroy.c \
+libjorte/JORTEDomainInitEvents.c \
+libjorte/JORTEDomainMgrCreate.c \
+libjorte/JORTEDomainMgrDestroy.c \
+libjorte/JORTEDomainPropDefaultGet.c \
+libjorte/JORTEDomainStart.c \
+libjorte/JORTEInit.c \
+libjorte/JORTEPublicationCreate.c \
+libjorte/JORTEPublicationDestroy.c \
+libjorte/JORTEPublicationSend.c \
+libjorte/JORTEPublicationPropertiesSet.c \
+libjorte/JORTEPublicationPropertiesGet.c \
+libjorte/JORTEPublicationGetStatus.c \
+libjorte/JORTEPublicationWaitForSubscriptions.c \
+libjorte/JORTESleepMs.c \
+libjorte/JORTESubscriptionCreate.c \
+libjorte/JORTESubscriptionDestroy.c \
+libjorte/JORTESubscriptionPropertiesGet.c \
+libjorte/JORTESubscriptionPropertiesSet.c \
+libjorte/JORTESubscriptionGetStatus.c \
+libjorte/JORTESubscriptionWaitForPublications.c \
+libjorte/JORTETypeRegisterAdd.c \
+libjorte/JORTETypeRegisterDestroyAll.c \
+libjorte/JORTEVerbositySetLogFile.c \
+libjorte/JORTEVerbositySetOptions.c \
+libjorte/JStringToIPAddress.c
+
+LOCAL_STATIC_LIBRARIES := orte
+
+include $(BUILD_SHARED_LIBRARY)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := ortemanager
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
+LOCAL_LDLIBS := -llog
+LOCAL_SRC_FILES := manager/ortemanager.c
+LOCAL_STATIC_LIBRARIES := orte
+
+include $(BUILD_EXECUTABLE)
\ No newline at end of file
--- /dev/null
+APP_ABI := armeabi-v7a
+APP_OPTIM := debug
+APP_PLATFORM := android-14
+NDK_DEBUG = 1
\ No newline at end of file
--- /dev/null
+../../include
\ No newline at end of file
--- /dev/null
+../../libjorte
\ No newline at end of file
--- /dev/null
+../../liborte
\ No newline at end of file
--- /dev/null
+../../manager
\ No newline at end of file
--- /dev/null
+# To enable ProGuard in your project, edit project.properties
+# to define the proguard.config property as described in that file.
+#
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in ${sdk.dir}/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the ProGuard
+# include property in project.properties.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
--- /dev/null
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system edit
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+#
+# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
+#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
+
+# Project target.
+target=android-15
+android.library=true
--- /dev/null
+<resources>
+
+ <!--
+ Base application theme for API 11+. This theme completely replaces
+ AppBaseTheme from res/values/styles.xml on API 11+ devices.
+ -->
+ <style name="AppBaseTheme" parent="android:Theme.Holo.Light">
+ <!-- API 11 theme customizations can go here. -->
+ </style>
+
+</resources>
--- /dev/null
+<resources>
+
+ <!--
+ Base application theme for API 14+. This theme completely replaces
+ AppBaseTheme from BOTH res/values/styles.xml and
+ res/values-v11/styles.xml on API 14+ devices.
+ -->
+ <style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
+ <!-- API 14 theme customizations can go here. -->
+ </style>
+
+</resources>
--- /dev/null
+<resources>
+
+ <string name="app_name">libaorte</string>
+
+</resources>
--- /dev/null
+<resources>
+
+ <!--
+ Base application theme, dependent on API level. This theme is replaced
+ by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
+ -->
+ <style name="AppBaseTheme" parent="android:Theme.Light">
+ <!--
+ Theme customizations available in newer API levels can go in
+ res/values-vXX/styles.xml, while customizations related to
+ backward-compatibility can go here.
+ -->
+ </style>
+
+ <!-- Application theme. -->
+ <style name="AppTheme" parent="AppBaseTheme">
+ <!-- All customizations that are NOT specific to a particular API-level can go here. -->
+ </style>
+
+</resources>
--- /dev/null
+../../../../../java/src/org/ocera/orte/Domain.java
\ No newline at end of file
--- /dev/null
+../../../../../java/src/org/ocera/orte/DomainApp.java
\ No newline at end of file
--- /dev/null
+../../../../../java/src/org/ocera/orte/DomainMgr.java
\ No newline at end of file
--- /dev/null
+../../../../../java/src/org/ocera/orte/JOrte.java
\ No newline at end of file
--- /dev/null
+../../../../../java/src/org/ocera/orte/OrteCallback.java
\ No newline at end of file
--- /dev/null
+../../../../../java/src/org/ocera/orte/Publication.java
\ No newline at end of file
--- /dev/null
+../../../../../java/src/org/ocera/orte/Subscription.java
\ No newline at end of file
--- /dev/null
+../../../../../java/src/org/ocera/orte/SubscriptionCallback.java
\ No newline at end of file
--- /dev/null
+/**
+ *
+ */
+/**
+ * @author martin
+ *
+ */
+package org.ocera.orte;
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/tools/CheckType.java
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/tools/Conversions.java
\ No newline at end of file
--- /dev/null
+/**
+ *
+ */
+/**
+ * @author martin
+ *
+ */
+package org.ocera.orte.tools;
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/types/AppInfo.java
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/types/CommonPubSubInfo.java
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/types/DomainEvents.java
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/types/DomainProp.java
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/types/GUID_RTPS.java
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/types/MessageData.java
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/types/MessageInterpret.java
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/types/NtpTime.java
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/types/ORTEConstant.java
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/types/ProtocolVersion.java
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/types/PubInfo.java
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/types/PublProp.java
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/types/RecvInfo.java
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/types/RecvStatus.java
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/types/SendInfo.java
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/types/SendStatus.java
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/types/SequenceNumber.java
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/types/Status.java
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/types/SubInfo.java
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/types/SubsProp.java
\ No newline at end of file
--- /dev/null
+../../../../../../java/src/org/ocera/orte/types/VendorId.java
\ No newline at end of file
--- /dev/null
+/**
+ *
+ */
+/**
+ * @author martin
+ *
+ */
+package org.ocera.orte.types;
\ No newline at end of file