Samisa Abeysinghe wrote:

You can have have a look into the header util\include\platforms\axutil_platform_auto_sense.h to get an idea on how to implement auto sense. Since this seems to be a unix like platform, I propose that you create a sub folder within unix platform folder, may be called mobile, and use the unix stuff that works as it is and override whatever stuff that does not work.

Thanks,
Samisa...


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Hi all,

I'm have a sub folder called android, inside util/include/platforms/unix folder, and I have defined a header file for the specific project. And that header file includes the axutil_unix.h header file. But some of the functions are overridden in the new file.

* So, my include folder structure would be; util/include/platforms/unix/android - In android folder I'm using the header file axutil_android.h, which inherits from axutil_unix.h, and I have overridden some functions of the original axutil_unix.h file.

* The corresponding source files are located in; util/src/platforms/unix/android - In there I plan to re-implement some functionalities.

For example, I'm defining new functions for some of the existing ones.

Eg. #define rand android_rand and I will put my new functions in the android source folder.

And one more thing about the, auto sensing,

In platform auto sensing, the compilers(native) for each system, knows about the system, using some specific variables. For example, the compiler for Windows when compiled, knows that WIN32 is defined. Same as in HPUX and so on. But in this case the compiler (cross compiler) doesn't define (or know) any such variable, infact it doesn't know that there exists a OS called android, and also it's not pure linux. So, I suggest using a flag (ANDROID) when compiling the source and use it in the platform auto sensing. Following is a part of the axutil_platform_auto_sense.h file;

#if defined( WIN32 )
#include "windows/axutil_windows.h"
#include "windows/axutil_dir_windows.h"
#include "windows/axutil_uuid_gen_windows.h"
#include "windows/axutil_getopt_windows.h"
#include "windows/axutil_date_time_util_windows.h"
#include "windows/axutil_thread_windows.h"
#elif defined ( __OS400__  )
#include <os400/axis2_os400.h>
#elif defined ( AIX )
#include <aix/aix.h>
#elif defined ( HPUX )
#include <hp-ux/axis2_ht-ux.h>
#elif defined (ANDROID)
#include <platforms/unix/android/axutil_android_unix.h>
#else
#include <platforms/unix/axutil_unix.h>
#endif

Any thoughts or suggestions please.

Thanks,
Diluka.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to