Examples.
 
#include <stdio.h>
#include "ModuleList.h"
 
#define PORTNO 15002
 
 
 
static const void* moduleDescriptorTable[] = 
{ 
    LISTOFCLASSOBJECTS 
};
 
UINT32 moduleDescriptorTableSize = sizeof(moduleDescriptorTable) / sizeof(moduleDescriptorTable[0]); 
 
int main()
{
    printf("Entering Default Configuration Example ... \n");
 
    
 
    
    configParams.
pName = 
"HiWorld";
 
 
    
    INT32 ret = 
aweOS_init(&g_AWEOSInstance, &configParams, moduleDescriptorTable, moduleDescriptorTableSize); 
 
 
    
    if (ret != 0) 
    {
        printf(
"aweOS_init failed with error code %d %s. exiting application \n", ret, 
aweOS_errorToString(ret));
 
    }
    else 
    {
        printf("AWEOSInstance succesfully initialized... \n");
        
        if (interfaceRet != 0)
        {
            printf("Failed to open integrated tuning interface \n");
        }
        else 
        {
            printf("Opened TCP tuning interface on port %d: Waiting for AWE Server Connection from PC... \n", PORTNO);
        }
        
        while (1)
        {
            usleep(1000); 
        }
    }
    
    return 0;
}
The AWE Core OS API header file.
 
void AWEOSInstance
The AWE Core OS Instance instance type.
Definition: AWECoreOS.h:106
 
INT32 aweOS_init(AWEOSInstance **pAWEOS, const AWEOSConfigParameters *aweParams, const void *pModuleDescriptorTable, UINT32 moduleDescriptorTableSize)
Initialize the AWEOSInstance with the specified configuration parameters.
 
INT32 aweOS_tuningSocketOpen(AWEOSInstance **pAWEOS, INT32 portNo, UINT32 numInstances)
Initialize and open an integrated TCP/IP tuning interface socket.
 
const char * aweOS_errorToString(INT32 errorCode)
Convert an error code (INT32) to its corresponding error string.
 
INT32 aweOS_getParamDefaults(AWEOSConfigParameters *aweParams)
Populates an AWEOSConfigParameters structure with defaults.
 
AWEOSConfigParameters.
Definition: AWECoreOS.h:117
 
const char * pName
Name of target.
Definition: AWECoreOS.h:133