mraa_internal.h: clean header style
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -60,28 +60,30 @@ mraa_platform_t mraa_x86_platform();
|
|||||||
mraa_platform_t mraa_arm_platform();
|
mraa_platform_t mraa_arm_platform();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* helper function to check if file exists
|
* helper function to check if file exists
|
||||||
*
|
*
|
||||||
* @param filename to check
|
* @param filename to check
|
||||||
* @return mraa_boolean_t boolean result.
|
* @return mraa_boolean_t boolean result.
|
||||||
*/
|
*/
|
||||||
mraa_boolean_t mraa_file_exist(const char* filename);
|
mraa_boolean_t mraa_file_exist(const char* filename);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* helper function to unglob filenames
|
* helper function to unglob filenames
|
||||||
*
|
*
|
||||||
* @param filename to unglob
|
* @param filename to unglob
|
||||||
* @return char * with the existing filename matching the pattern of input. NULL if there is no match. Caller must free result
|
* @return char * with the existing filename matching the pattern of input. NULL if there is no
|
||||||
*/
|
*match. Caller must free result
|
||||||
|
*/
|
||||||
char* mraa_file_unglob(const char* filename);
|
char* mraa_file_unglob(const char* filename);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* helper function to find out if file that is targeted by a softlink (partially) matches the given name
|
* helper function to find out if file that is targeted by a softlink
|
||||||
*
|
* (partially) matches the given name
|
||||||
* @param filename of the softlink
|
*
|
||||||
* @param (partial) filename that is matched with the filename of the link-targeted file
|
* @param filename of the softlink
|
||||||
* @return mraa_boolean_t true when targetname (partially) matches
|
* @param (partial) filename that is matched with the filename of the link-targeted file
|
||||||
*/
|
* @return mraa_boolean_t true when targetname (partially) matches
|
||||||
|
*/
|
||||||
mraa_boolean_t mraa_link_targets(const char* filename, const char* targetname);
|
mraa_boolean_t mraa_link_targets(const char* filename, const char* targetname);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
Reference in New Issue
Block a user