Skip to content

Commit

Permalink
Added a lot of internal documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  • Loading branch information
freddy77 committed Feb 19, 2014
1 parent 1ecc08f commit ce8fe69
Show file tree
Hide file tree
Showing 3 changed files with 190 additions and 21 deletions.
8 changes: 4 additions & 4 deletions include/freetds/proto.h
Expand Up @@ -249,10 +249,10 @@ typedef enum
*/ */
typedef enum typedef enum
{ {
TDS_OPT_SET = 1 /* Set an option. */ TDS_OPT_SET = 1 /**< Set an option. */
, TDS_OPT_DEFAULT = 2 /* Set option to its default value. */ , TDS_OPT_DEFAULT = 2 /**< Set option to its default value. */
, TDS_OPT_LIST = 3 /* Request current setting of a specific option. */ , TDS_OPT_LIST = 3 /**< Request current setting of a specific option. */
, TDS_OPT_INFO = 4 /* Report current setting of a specific option. */ , TDS_OPT_INFO = 4 /**< Report current setting of a specific option. */
} TDS_OPTION_CMD; } TDS_OPTION_CMD;


typedef enum typedef enum
Expand Down
10 changes: 6 additions & 4 deletions src/tds/log.c
Expand Up @@ -270,9 +270,12 @@ tdsdump_start(FILE *file, const char *fname, int line)


/** /**
* Dump the contents of data into the log file in a human readable format. * Dump the contents of data into the log file in a human readable format.
* \param msg message to print before dump * \param file source file name
* \param buf buffer to dump * \param level_line line and level combined. This and file are automatically computed by
* \param length number of bytes in the buffer * TDS_DBG_* macros.
* \param msg message to print before dump
* \param buf buffer to dump
* \param length number of bytes in the buffer
*/ */
void void
tdsdump_dump_buf(const char* file, unsigned int level_line, const char *msg, const void *buf, size_t length) tdsdump_dump_buf(const char* file, unsigned int level_line, const char *msg, const void *buf, size_t length)
Expand Down Expand Up @@ -423,7 +426,6 @@ tdsdump_log(const char* file, unsigned int level_line, const char *fmt, ...)


/** /**
* Write a column value to the debug log. * Write a column value to the debug log.
* \param file name of the log file
* \param col column to dump * \param col column to dump
*/ */
void void
Expand Down

0 comments on commit ce8fe69

Please sign in to comment.