summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2010-05-21 15:15:58 +0000
committerMark Michelson <mmichelson@digium.com>2010-05-21 15:15:58 +0000
commit0a63e3fa10d25273e5cc658c88a0dc54c93d4e7d (patch)
tree37c899cf6cf183ae2d3609da82fba035ebfb7ff3 /include
parentfe9c31517149e54c3dbc9bc082fbe385ea092f23 (diff)
Log spandsp's fax debug output to the FAX logger level.
Review: https://reviewboard.asterisk.org/r/658 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@264953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/res_fax.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asterisk/res_fax.h b/include/asterisk/res_fax.h
index 9d83f6c2d..8e8cb3b92 100644
--- a/include/asterisk/res_fax.h
+++ b/include/asterisk/res_fax.h
@@ -256,4 +256,15 @@ unsigned int ast_fax_maxrate(void);
/*! \brief convert an ast_fax_state to a string */
const char *ast_fax_state_to_str(enum ast_fax_state state);
+/*!
+ * \brief Log message at FAX or recommended level
+ *
+ * The first four parameters can be represented with Asterisk's
+ * LOG_* levels. In other words, this function may be called
+ * like
+ *
+ * ast_fax_log(LOG_DEBUG, msg);
+ */
+void ast_fax_log(int level, const char *file, const int line, const char *function, const char *msg);
+
#endif