diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2019-06-04 15:17:44 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2019-06-06 14:51:21 +0200 |
commit | 391fcec50ea79d4f487258532e1df6007f3942c7 (patch) | |
tree | bf087174c6edf7a2d2855c66c33ec31d119cc104 /lib/4a-hal-utilities | |
parent | af9fdaac5af2283bbd1caa17ced49bdf420523a8 (diff) |
Split too long function declarations
Split too long function declarations in hal-utilities.
BUG-AGL: SPEC-2329
Change-Id: Ia8a18844dd7db52b19db366d737240286d04f9cd
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'lib/4a-hal-utilities')
-rw-r--r-- | lib/4a-hal-utilities/4a-hal-utilities-data.c | 14 | ||||
-rw-r--r-- | lib/4a-hal-utilities/4a-hal-utilities-data.h | 13 |
2 files changed, 19 insertions, 8 deletions
diff --git a/lib/4a-hal-utilities/4a-hal-utilities-data.c b/lib/4a-hal-utilities/4a-hal-utilities-data.c index 5bd6b27..3918db4 100644 --- a/lib/4a-hal-utilities/4a-hal-utilities-data.c +++ b/lib/4a-hal-utilities/4a-hal-utilities-data.c @@ -77,7 +77,8 @@ struct InternalHalProbedDevice *HalUtlAddProbedDeviceToProbedDeviceList(struct I return currentProbedDevice; } -int HalUtlRemoveSelectedProbedDeviceFromList(struct InternalHalProbedDevice **probedDevicesList, struct InternalHalProbedDevice *probedDeviceToRemove) +int HalUtlRemoveSelectedProbedDeviceFromList(struct InternalHalProbedDevice **probedDevicesList, + struct InternalHalProbedDevice *probedDeviceToRemove) { struct InternalHalProbedDevice *currentProbedDevice, *matchingProbedDevice; @@ -163,7 +164,8 @@ int HalUtlGetNumberOfProbedDevicesInList(struct InternalHalProbedDevice **probed return numberOfProbedDevices; } -struct InternalHalProbedDevice *HalUtlSearchProbedDeviceDataById(struct InternalHalProbedDevice **probedDevicesList, char *uid) +struct InternalHalProbedDevice *HalUtlSearchProbedDeviceDataById(struct InternalHalProbedDevice **probedDevicesList, + char *uid) { struct InternalHalProbedDevice *currentProbedDevice; @@ -253,7 +255,8 @@ struct InternalHalMixerData *HalUtlAddMixerDataToMixerDataList(struct InternalHa return currentMixerData; } -int HalUtlRemoveSelectedMixerData(struct InternalHalMixerData **mixerDataList, struct InternalHalMixerData *mixerDataToRemove) +int HalUtlRemoveSelectedMixerData(struct InternalHalMixerData **mixerDataList, + struct InternalHalMixerData *mixerDataToRemove) { struct InternalHalMixerData *currentMixerData, *matchingMixerData; @@ -321,7 +324,10 @@ int HalUtlGetNumberOfMixerDataInList(struct InternalHalMixerData **mixerDataList return numberOfMixerData; } -struct InternalHalMixerData *HalUtlSearchMixerDataByProperties(struct InternalHalMixerData **mixerDataList, char *verb, char *verbToCall, char *streamCardId) +struct InternalHalMixerData *HalUtlSearchMixerDataByProperties(struct InternalHalMixerData **mixerDataList, + char *verb, + char *verbToCall, + char *streamCardId) { struct InternalHalMixerData *currentMixerData; diff --git a/lib/4a-hal-utilities/4a-hal-utilities-data.h b/lib/4a-hal-utilities/4a-hal-utilities-data.h index c072650..0ec66e6 100644 --- a/lib/4a-hal-utilities/4a-hal-utilities-data.h +++ b/lib/4a-hal-utilities/4a-hal-utilities-data.h @@ -133,18 +133,23 @@ struct HalMgrData { // Internal Hal - Probed devices structure handling functions enum ProbedDeviceClasses HalUtlGetProbedDeviceClassFromString(char *probedDeviceString); struct InternalHalProbedDevice *HalUtlAddProbedDeviceToProbedDeviceList(struct InternalHalProbedDevice **probedDevicesList); -int HalUtlRemoveSelectedProbedDeviceFromList(struct InternalHalProbedDevice **probedDevicesList, struct InternalHalProbedDevice *probedDeviceToRemove); +int HalUtlRemoveSelectedProbedDeviceFromList(struct InternalHalProbedDevice **probedDevicesList, + struct InternalHalProbedDevice *probedDeviceToRemove); int HalUtlRemoveAllProbedDevicesFromList(struct InternalHalProbedDevice **probedDevicesList); int HalUtlGetNumberOfProbedDevicesInList(struct InternalHalProbedDevice **probedDevicesList); -struct InternalHalProbedDevice *HalUtlSearchProbedDeviceDataById(struct InternalHalProbedDevice **probedDevicesList, char *uid); +struct InternalHalProbedDevice *HalUtlSearchProbedDeviceDataById(struct InternalHalProbedDevice **probedDevicesList, + char *uid); struct InternalHalDeviceData *HalUtlAllocateAndFillProbedDeviceDataUsingInfoGetResponse(json_object *responseJ); // Internal Hal - Streams data handling functions struct InternalHalMixerData *HalUtlAddMixerDataToMixerDataList(struct InternalHalMixerData **mixerDataList); -int HalUtlRemoveSelectedMixerData(struct InternalHalMixerData **mixerDataList, struct InternalHalMixerData *mixerDataToRemove); +int HalUtlRemoveSelectedMixerData(struct InternalHalMixerData **mixerDataList, + struct InternalHalMixerData *mixerDataToRemove); int HalUtlRemoveAllMixerData(struct InternalHalMixerData **mixerDataList); int HalUtlGetNumberOfMixerDataInList(struct InternalHalMixerData **mixerDataList); -struct InternalHalMixerData *HalUtlSearchMixerDataByProperties(struct InternalHalMixerData **mixerDataList, char *verb, char *verbToCall, char *streamCardId); +struct InternalHalMixerData *HalUtlSearchMixerDataByProperties(struct InternalHalMixerData **mixerDataList, + char *verb, char *verbToCall, + char *streamCardId); // Hal data handling functions struct HalData *HalUtlAddHalToHalList(struct HalData **halDataList); |