Skip to content

Commit 1664b12

Browse files
committed
applied clang-format
1 parent 4c808f6 commit 1664b12

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+7396
-7162
lines changed

include/InfoLogger/InfoLogger.h

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,13 @@ extern "C" {
2222
#endif
2323

2424
/// Handle to infoLogger connection
25-
typedef void *InfoLoggerHandle;
26-
25+
typedef void* InfoLoggerHandle;
2726

2827
/// Open infoLogger connection.
2928
/// Resulting handle should be called by furhter InfoLogger function calls.
3029
/// \param handle Variable where the resulting handle is stored, on success. Result by reference.
3130
/// \return 0 on success, an error code otherwise.
32-
int infoLoggerOpen(InfoLoggerHandle *handle);
31+
int infoLoggerOpen(InfoLoggerHandle* handle);
3332

3433
/// Close infoLogger connection.
3534
/// \param handle Handle to InfoLogger, as created by a previous infoLoggerOpen() call.
@@ -41,25 +40,23 @@ int infoLoggerClose(InfoLoggerHandle handle);
4140
/// \param message NUL-terminated string message to push to the log system. It uses the same format as specified for printf(), and the function accepts additionnal formatting parameters.
4241
/// \param ... Extra optionnal parameters for formatting.
4342
/// \return 0 on success, an error code otherwise.
44-
int infoLoggerLog(InfoLoggerHandle handle, const char *message, ...) __attribute__((format(printf, 2, 3)));
43+
int infoLoggerLog(InfoLoggerHandle handle, const char* message, ...) __attribute__((format(printf, 2, 3)));
4544

4645
/// Log a message, with a list of arguments of type va_list.
4746
/// \param handle Handle to InfoLogger, as created by a previous infoLoggerOpen() call.
4847
/// \param message NUL-terminated string message to push to the log system. It uses the same format as specified for printf(), and the function accepts additionnal formatting parameters.
4948
/// \param ap Variable list of arguments (c.f. vprintf)
5049
/// \return 0 on success, an error code otherwise.
51-
int infoLoggerLogV(InfoLoggerHandle handle, const char *message, va_list ap) __attribute__((format(printf, 2, 0)));
50+
int infoLoggerLogV(InfoLoggerHandle handle, const char* message, va_list ap) __attribute__((format(printf, 2, 0)));
5251

5352
/// Functions to log messages of type Info,Warning,Error,Fatal,Debug
5453
/// \see { infoLoggerLog }
55-
int infoLoggerLogInfo(InfoLoggerHandle handle, const char *message, ...) __attribute__((format(printf, 2, 3)));
56-
int infoLoggerLogWarning(InfoLoggerHandle handle, const char *message, ...) __attribute__((format(printf, 2, 3)));
57-
int infoLoggerLogError(InfoLoggerHandle handle, const char *message, ...) __attribute__((format(printf, 2, 3)));
58-
int infoLoggerLogFatal(InfoLoggerHandle handle, const char *message, ...) __attribute__((format(printf, 2, 3)));
59-
int infoLoggerLogDebug(InfoLoggerHandle handle, const char *message, ...) __attribute__((format(printf, 2, 3)));
60-
54+
int infoLoggerLogInfo(InfoLoggerHandle handle, const char* message, ...) __attribute__((format(printf, 2, 3)));
55+
int infoLoggerLogWarning(InfoLoggerHandle handle, const char* message, ...) __attribute__((format(printf, 2, 3)));
56+
int infoLoggerLogError(InfoLoggerHandle handle, const char* message, ...) __attribute__((format(printf, 2, 3)));
57+
int infoLoggerLogFatal(InfoLoggerHandle handle, const char* message, ...) __attribute__((format(printf, 2, 3)));
58+
int infoLoggerLogDebug(InfoLoggerHandle handle, const char* message, ...) __attribute__((format(printf, 2, 3)));
6159

6260
#ifdef __cplusplus
6361
}
6462
#endif
65-

0 commit comments

Comments
 (0)