Commit 7251c5de authored by Matteo Quintiliani's avatar Matteo Quintiliani

Added comments


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@829 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent 8e8f2a73
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Istituto Nazionale di Geofisica e Vulcanologia - Italy * Istituto Nazionale di Geofisica e Vulcanologia - Italy
* quintiliani@ingv.it * quintiliani@ingv.it
* *
* $Id: nmxp_log.h,v 1.11 2008-02-24 16:49:07 mtheo Exp $ * $Id: nmxp_log.h,v 1.12 2008-02-29 10:09:27 mtheo Exp $
* *
*/ */
...@@ -53,27 +53,40 @@ ...@@ -53,27 +53,40 @@
NMXP_LOG_D_PACKETMAN | NMXP_LOG_D_EXTRA | NMXP_LOG_D_DATE | NMXP_LOG_D_GAP | NMXP_LOG_D_DOD ) NMXP_LOG_D_PACKETMAN | NMXP_LOG_D_EXTRA | NMXP_LOG_D_DATE | NMXP_LOG_D_GAP | NMXP_LOG_D_DOD )
/*! \brief TODO /*! \brief Print value of PACKAGE_NAME and PACKAGE_VERSION
*/ */
const char *nmxp_log_version(); const char *nmxp_log_version();
/*! \brief TODO /*! \brief Set function pointers for "normal logging" and "error logging"
*
* \param func_log Function pointer to the the function for "normal logging"
* \param func_log_err Function pointer to the the function for "error logging"
*
*/ */
void nmxp_log_init(int (*func_log)(char *), int (*func_log_err)(char *)); void nmxp_log_init(int (*func_log)(char *), int (*func_log_err)(char *));
/*! \brief TODO /*! \brief Add function pointers to "normal logging" and "error_logging"
*
* \param func_log Function pointer to the the function for "normal logging"
* \param func_log_err Function pointer to the the function for "error logging"
*
*/ */
void nmxp_log_add(int (*func_log)(char *), int (*func_log_err)(char *)); void nmxp_log_add(int (*func_log)(char *), int (*func_log_err)(char *));
/*! \brief TODO /*! \brief Wrapper for fprintf to stdout and flushing
*
* \param msg String message
*
*/ */
int nmxp_log_stdout(char *msg); int nmxp_log_stdout(char *msg);
/*! \brief TODO /*! \brief Wrapper for fprintf to stderror and flushing
*
* \param msg String message
*/ */
int nmxp_log_stderr(char *msg); int nmxp_log_stderr(char *msg);
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Istituto Nazionale di Geofisica e Vulcanologia - Italy * Istituto Nazionale di Geofisica e Vulcanologia - Italy
* quintiliani@ingv.it * quintiliani@ingv.it
* *
* $Id: nmxp.c,v 1.67 2008-02-28 13:59:33 mtheo Exp $ * $Id: nmxp.c,v 1.68 2008-02-29 10:09:27 mtheo Exp $
* *
*/ */
...@@ -595,7 +595,7 @@ void nmxp_raw_stream_init(NMXP_RAW_STREAM_DATA *raw_stream_buffer, int32_t max_t ...@@ -595,7 +595,7 @@ void nmxp_raw_stream_init(NMXP_RAW_STREAM_DATA *raw_stream_buffer, int32_t max_t
raw_stream_buffer->last_seq_no_sent = -1; raw_stream_buffer->last_seq_no_sent = -1;
raw_stream_buffer->last_sample_time = -1.0; raw_stream_buffer->last_sample_time = -1.0;
/* TODO /* TODO
* Suppose a packet can contain 1/4 secs of data */ * Suppose a packet can contain 1/4 secs of data (that is, minimum packet length is 0.25 secs of data) */
raw_stream_buffer->max_tolerable_latency = max_tolerable_latency; raw_stream_buffer->max_tolerable_latency = max_tolerable_latency;
raw_stream_buffer->max_pdlist_items = max_tolerable_latency * 4; raw_stream_buffer->max_pdlist_items = max_tolerable_latency * 4;
raw_stream_buffer->timeoutrecv = timeoutrecv; raw_stream_buffer->timeoutrecv = timeoutrecv;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment