Hey, i wrote a function getConfig that reads a file “config.conf” in one App.
Now i want to call that Function in another App using a .api file. I guess somethings wrong with my API file but i am not sure what. But after specifying the api file and compiling i get following error:
/home/reinhard/myLeafWorkspace/CL_Agents/Components/CL_ConfigComponent/CL_Config.c:26:6: error: conflicting types for ‘IF_Config_getConfig’
void IF_Config_getConfig(char* customerId,char* siteId, char* locationId, char* host, int* port, int* enableTls);
(Without the API file it compiles fine)
My API file looks like this:
FUNCTION int32 getConfig
(
string customerId[7] OUT,
string siteId[5] OUT,
string locationId[2] OUT,
string host[30] OUT,
int32 port OUT,
int32 enableTls OUT
);
Thanks in advance!