I rebuilt my code-base with Legato 17.07.1 for a WP8548 target.
Everything builds, installs and appears to run correctly.
One of the apps provides a service for clients to obtain a read-only file descriptor to a particular file.
.api file function prototype looks like this
FUNCTION le_result_t GetFile
file fd_out OUT
And a simplified service implementation looks like this:
le_result_t my_service_GetFile(int* fileOutPtr)
*fileOutPtr = open(path_to_file, O_RDONLY);
if (*fileOutPtr != -1)
This worked perfectly fine with Legato 16.10.1 and 16.10.3. However, since the update to 17.07.1 the file descriptor returned by the service to the client is always
-1. Note that the file descriptor obtained within the service itself is valid - something must invalidate the file descriptor in the generated interface files.
Has support for the pre-defined
file type been removed from the Legato IDL?