Merge pull request #2831 from firewave/wdoc
mitigated `-Wdocumentation` and `-Wdocumentation-unknown-command` Clang compiler warnings
This commit is contained in:
@@ -117,7 +117,6 @@ split_string_append_fragment(const char **start, const char *end,
|
||||
*
|
||||
* @param str String to split.
|
||||
* @param character Character used as the delimiter between strings.
|
||||
* @param start_index Index to start on the source list (zero based)
|
||||
*
|
||||
* @result 0 if a memory allocation failure occurred.
|
||||
*
|
||||
|
||||
+2
-9
@@ -84,7 +84,7 @@ internal_log_file_open(const char *fname)
|
||||
/**
|
||||
*
|
||||
* @brief Converts xrdp log level to syslog logging level
|
||||
* @param xrdp logging level
|
||||
* @param lvl logging level
|
||||
* @return syslog equivalent logging level
|
||||
*
|
||||
*/
|
||||
@@ -114,7 +114,6 @@ internal_log_xrdp2syslog(const enum logLevels lvl)
|
||||
* @brief Converts xrdp log levels to textual logging levels
|
||||
* @param lvl logging level
|
||||
* @param str pointer to a string, must be allocated before
|
||||
* @return The log string in str pointer.
|
||||
*
|
||||
*/
|
||||
void
|
||||
@@ -232,8 +231,6 @@ internal_log_end(struct log_config *l_cfg)
|
||||
|
||||
/**
|
||||
* Converts a string representing the log level to a value
|
||||
* @param buf
|
||||
* @return
|
||||
*/
|
||||
enum logLevels
|
||||
internal_log_text2level(const char *buf)
|
||||
@@ -828,8 +825,7 @@ log_start_from_param(const struct log_config *src_log_config)
|
||||
/**
|
||||
* This function initialize the log facilities according to the configuration
|
||||
* file, that is described by the in parameter.
|
||||
* @param iniFile
|
||||
* @param applicationName, the name that is used in the log for the running application
|
||||
* @param applicationName the name that is used in the log for the running application
|
||||
* @return 0 on success
|
||||
*/
|
||||
enum logReturns
|
||||
@@ -873,7 +869,6 @@ log_start(const char *iniFile, const char *applicationName,
|
||||
|
||||
/**
|
||||
* Function that terminates all logging
|
||||
* @return
|
||||
*/
|
||||
enum logReturns
|
||||
log_end(void)
|
||||
@@ -1121,7 +1116,6 @@ internal_log_message(const enum logLevels lvl,
|
||||
|
||||
/**
|
||||
* Return the configured log file name
|
||||
* @return
|
||||
*/
|
||||
char *
|
||||
getLogFile(char *replybuf, int bufsize)
|
||||
@@ -1147,7 +1141,6 @@ getLogFile(char *replybuf, int bufsize)
|
||||
|
||||
/**
|
||||
* Returns formatted datetime for log
|
||||
* @return
|
||||
*/
|
||||
char *
|
||||
getFormattedDateTime(char *replybuf, int bufsize)
|
||||
|
||||
+24
-38
@@ -224,7 +224,6 @@ struct log_config
|
||||
*
|
||||
* @brief Starts the logging subsystem
|
||||
* @param l_cfg logging system configuration
|
||||
* @return
|
||||
*
|
||||
*/
|
||||
enum logReturns
|
||||
@@ -241,7 +240,7 @@ internal_log_end(struct log_config *l_cfg);
|
||||
|
||||
/**
|
||||
* Converts a log level to a string
|
||||
* @param lvl, the loglevel
|
||||
* @param lvl the loglevel
|
||||
* @param str pointer where the string will be stored.
|
||||
*/
|
||||
void
|
||||
@@ -250,7 +249,7 @@ internal_log_lvl2str(const enum logLevels lvl, char *str);
|
||||
/**
|
||||
*
|
||||
* @brief Converts a string to a log level
|
||||
* @param s The string to convert
|
||||
* @param buf The string to convert
|
||||
* @return The corresponding level or LOG_LEVEL_DEBUG if error
|
||||
*
|
||||
*/
|
||||
@@ -273,12 +272,11 @@ internal_log_config_dump(struct log_config *config);
|
||||
|
||||
/**
|
||||
* the log function that all files use to log an event.
|
||||
* @param lvl, the loglevel
|
||||
* @param override_destination_level, if true then the destination log level is not used
|
||||
* @param override_log_level, the loglevel instead of the destination log level if override_destination_level is true
|
||||
* @param msg, the logtext.
|
||||
* @param ap, the values for the message format arguments
|
||||
* @return
|
||||
* @param lvl the loglevel
|
||||
* @param override_destination_level if true then the destination log level is not used
|
||||
* @param override_log_level the loglevel instead of the destination log level if override_destination_level is true
|
||||
* @param msg the logtext.
|
||||
* @param ap the values for the message format arguments
|
||||
*/
|
||||
enum logReturns
|
||||
internal_log_message(const enum logLevels lvl,
|
||||
@@ -288,9 +286,9 @@ internal_log_message(const enum logLevels lvl,
|
||||
va_list ap);
|
||||
|
||||
/**
|
||||
* @param log_level, the log level
|
||||
* @param override_destination_level, if true then the destination log level is ignored.
|
||||
* @param override_log_level, the log level to use instead of the destination log level
|
||||
* @param log_level the log level
|
||||
* @param override_destination_level if true then the destination log level is ignored.
|
||||
* @param override_log_level the log level to use instead of the destination log level
|
||||
* if override_destination_level is true
|
||||
* @return true if at least one log destination will accept a message logged at the given level.
|
||||
*/
|
||||
@@ -300,9 +298,9 @@ internal_log_is_enabled_for_level(const enum logLevels log_level,
|
||||
const enum logLevels override_log_level);
|
||||
|
||||
/**
|
||||
* @param function_name, the function name (typically the __func__ macro)
|
||||
* @param file_name, the file name (typically the __FILE__ macro)
|
||||
* @param[out] log_level_return, the log level to use instead of the destination log level
|
||||
* @param function_name the function name (typically the __func__ macro)
|
||||
* @param file_name the file name (typically the __FILE__ macro)
|
||||
* @param[out] log_level_return the log level to use instead of the destination log level
|
||||
* @return true if the logger location overrides the destination log levels
|
||||
*/
|
||||
bool_t
|
||||
@@ -316,7 +314,6 @@ internal_log_location_overrides_level(const char *function_name,
|
||||
/**
|
||||
* This function initialize the log facilities according to the configuration
|
||||
* file, that is described by the in parameter.
|
||||
* @param iniFile
|
||||
* @param applicationName the name that is used in the log for the running
|
||||
* application
|
||||
* @param flags Flags to affect the operation of the call
|
||||
@@ -328,8 +325,6 @@ log_start(const char *iniFile, const char *applicationName,
|
||||
|
||||
/**
|
||||
* An alternative log_start where the caller gives the params directly.
|
||||
* @param config
|
||||
* @return
|
||||
*
|
||||
* @post to avoid memory leaks, the config argument must be free'ed using
|
||||
* `log_config_free()`
|
||||
@@ -344,8 +339,8 @@ log_start_from_param(const struct log_config *src_log_config);
|
||||
* The config can be customised by the caller before calling
|
||||
* log_start_from_param()
|
||||
*
|
||||
* @param Default log level
|
||||
* @param Log level name, or NULL. This can be used to provide an
|
||||
* @param lvl log level
|
||||
* @param override_name level name, or NULL. This can be used to provide an
|
||||
* override to the default log level, by environment variable or
|
||||
* argument.
|
||||
*
|
||||
@@ -357,10 +352,8 @@ log_config_init_for_console(enum logLevels lvl, const char *override_name);
|
||||
/**
|
||||
* Read configuration from a file and store the values in the returned
|
||||
* log_config.
|
||||
* @param file
|
||||
* @param applicationName, the application name used in the log events.
|
||||
* @param section_prefix, prefix for the logging sections to parse
|
||||
* @return
|
||||
* @param applicationName the application name used in the log events.
|
||||
* @param section_prefix prefix for the logging sections to parse
|
||||
*/
|
||||
struct log_config *
|
||||
log_config_init_from_config(const char *iniFilename,
|
||||
@@ -375,7 +368,6 @@ log_config_free(struct log_config *config);
|
||||
|
||||
/**
|
||||
* Function that terminates all logging
|
||||
* @return
|
||||
*/
|
||||
enum logReturns
|
||||
log_end(void);
|
||||
@@ -385,10 +377,8 @@ log_end(void);
|
||||
*
|
||||
* Please prefer to use the LOG and LOG_DEVEL macros instead of this function directly.
|
||||
*
|
||||
* @param lvl, the loglevel
|
||||
* @param msg, the logtext.
|
||||
* @param ...
|
||||
* @return
|
||||
* @param lvl the loglevel
|
||||
* @param msg the logtext.
|
||||
*/
|
||||
enum logReturns
|
||||
log_message(const enum logLevels lvl, const char *msg, ...) printflike(2, 3);
|
||||
@@ -405,13 +395,11 @@ log_hexdump(const enum logLevels log_level,
|
||||
*
|
||||
* Please prefer to use the LOG and LOG_DEVEL macros instead of this function directly.
|
||||
*
|
||||
* @param function_name, the function name (typically the __func__ macro)
|
||||
* @param file_name, the file name (typically the __FILE__ macro)
|
||||
* @param line_number, the line number in the file (typically the __LINE__ macro)
|
||||
* @param lvl, the loglevel
|
||||
* @param msg, the logtext.
|
||||
* @param ...
|
||||
* @return
|
||||
* @param function_name the function name (typically the __func__ macro)
|
||||
* @param file_name the file name (typically the __FILE__ macro)
|
||||
* @param line_number the line number in the file (typically the __LINE__ macro)
|
||||
* @param lvl the loglevel
|
||||
* @param msg the logtext.
|
||||
*/
|
||||
enum logReturns
|
||||
log_message_with_location(const char *function_name,
|
||||
@@ -434,13 +422,11 @@ log_hexdump_with_location(const char *function_name,
|
||||
* This function returns the configured file name for the logfile
|
||||
* @param replybuf the buffer where the reply is stored
|
||||
* @param bufsize how big is the reply buffer.
|
||||
* @return
|
||||
*/
|
||||
char *getLogFile(char *replybuf, int bufsize);
|
||||
|
||||
/**
|
||||
* Returns formatted datetime for log
|
||||
* @return
|
||||
*/
|
||||
char *getFormattedDateTime(char *replybuf, int bufsize);
|
||||
|
||||
|
||||
+3
-3
@@ -163,7 +163,7 @@ int g_sck_select(int sck1, int sck2);
|
||||
* @param sck File descriptor for peer
|
||||
* @param ip buffer to write IP address to
|
||||
* @param bytes Size of ip buffer. Should be at least MAX_IP_ADDRSTRLEN
|
||||
* @param[out] portptr Optional variable to receive the port number
|
||||
* @param[out] port Optional variable to receive the port number
|
||||
* @return Pointer to IP for convenience
|
||||
*
|
||||
* If the peer has no IP address (for example, it is a Unix Domain Socket),
|
||||
@@ -214,7 +214,7 @@ int g_delete_wait_obj(tintptr obj);
|
||||
* @param read_objs Array of read objects
|
||||
* @param rcount Number of elements in read_objs
|
||||
* @param write_objs Array of write objects
|
||||
* @param rcount Number of elements in write_objs
|
||||
* @param wcount Number of elements in write_objs
|
||||
* @param mstimeout Timeout in milliseconds. < 0 means an infinite timeout.
|
||||
*
|
||||
* @return 0 for success. The objects will need to be polled to
|
||||
@@ -503,7 +503,7 @@ g_malloc_nofail(size_t size);
|
||||
|
||||
/** Allocate memory with error-checking
|
||||
*
|
||||
* @param Number of elements to allocate
|
||||
* @param nmemb Number of elements to allocate
|
||||
* @param size Size of each element
|
||||
* @return Allocated memory
|
||||
*
|
||||
|
||||
@@ -192,7 +192,7 @@ g_bytes_to_hexdump(const char *src, int len);
|
||||
/**
|
||||
* Extracts the display number from an X11 display string
|
||||
*
|
||||
* @param Display string (i.e. g_getenv("DISPLAY"))
|
||||
* @param display_text Display string (i.e. g_getenv("DISPLAY"))
|
||||
*
|
||||
* @result <0 if the string could not be parsed, or >=0 for a display number
|
||||
*/
|
||||
@@ -270,7 +270,6 @@ g_bitmask_to_charstr(int bitmask, const struct bitmask_char bitdefs[],
|
||||
*
|
||||
* @param str Input string
|
||||
* @param bitdefs Array mapping tokens to bitmask values
|
||||
* @param delim Delimiter for tokens in str
|
||||
* @param[out] unrecognised Buffer for any unrecognised tokens
|
||||
* @param unrecognised_len Length of unrecognised including '\0';
|
||||
* @return bitmask value for recognised tokens
|
||||
|
||||
+1
-1
@@ -62,7 +62,7 @@ timers_oneshot_get_remaining(struct timers_oneshot *timer,
|
||||
* Variant of timers_oneshot_get_remaining() for g_obj_wait()
|
||||
* @param timer pointer to timer (or NULL)
|
||||
* @param now Value of g_get_elapsed_ms()
|
||||
* @param[in,out] poll timeout
|
||||
* @param[in,out] timeout timeout
|
||||
*
|
||||
* Use this to update a timeout passed to g_obj_wait() (or poll()). The
|
||||
* timeout is updated if the timer will fire before the current timeout.
|
||||
|
||||
Reference in New Issue
Block a user