8 #ifndef K_FIRESYNC_UTILS_H
9 #define K_FIRESYNC_UTILS_H
126 #include <kFireSync/Utils/kFsUtils.x.h>
k32u kCountBits32u(k32u value)
Counts the number of bits that are set in a 32-bit unsigned integer.
Declares the kInfo family of structures.
kStatus(kCall * kLoadStreamFx)(kObject *object, kStream stream, kAlloc allocator)
Callback signature used with the kLoadFromFile function.
Definition: kFsUtils.h:23
kStatus kCalculateSubframe(kSize desiredSubframeCount, kSize pixelCount, kSize *subframeCount, kSize *subframeCapacity)
Calculates the expected compressed subframe capacity given a desired number of subframes and image si...
kStatus kFindPlProgram(k32u configuration, kVersion expectingVersion, kChar *path, kSize capacity, kVersion *version)
Gives the path and the version of a Pl file given a specific configuration.
Essential declarations related to FireSync nodes.
kStatus kFindOsProgram(kControllerType type, kChar *path, kSize capacity, kVersion *version)
Obtain the absolute path to the OS firmware program and its version.
Essential API declarations for the kFireSync library.
Represents types of node controllers.
kStatus kFsUtils_FindPsProgram(const kChar *programName, kControllerType type, kBool isDebug, kChar *path, kSize capacity)
This function returns the fully qualified (absolute) path for a given program name based on the contr...
kStatus kLoadFromFile(kObject *object, const kChar *path, kLoadStreamFx loadFunction, kAlloc allocator)
Loads a file and parses a user-defined object from the file using the specified callback.
kStatus kSaveToFile(kObject object, const kChar *path, kSaveStreamFx saveFunction)
Formats a user-defined object using the specified callback and saves the result to file...
kStatus(kCall * kSaveStreamFx)(kObject object, kStream stream)
Callback signature used with the kSaveToFile function.
Definition: kFsUtils.h:32