diff options
author | lvw <lvw@e10066b5-e1e2-0310-b819-94efdf66514b> | 2004-09-07 17:40:47 +0000 |
---|---|---|
committer | lvw <lvw@e10066b5-e1e2-0310-b819-94efdf66514b> | 2004-09-07 17:40:47 +0000 |
commit | 253498aa8a7981aee3adc577afd6a5a613963064 (patch) | |
tree | 89625c225f6154514d5e27a9222fab734aff33ae /muggle-plugin/mg_tools.h | |
parent | d2cd8693b36fdc5f17a79632911dd15243c4d304 (diff) | |
download | vdr-plugin-muggle-253498aa8a7981aee3adc577afd6a5a613963064.tar.gz vdr-plugin-muggle-253498aa8a7981aee3adc577afd6a5a613963064.tar.bz2 |
Merged ogg vorbis player to trunk
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk@148 e10066b5-e1e2-0310-b819-94efdf66514b
Diffstat (limited to 'muggle-plugin/mg_tools.h')
-rw-r--r-- | muggle-plugin/mg_tools.h | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/muggle-plugin/mg_tools.h b/muggle-plugin/mg_tools.h index 3b7bf12..3307e3e 100644 --- a/muggle-plugin/mg_tools.h +++ b/muggle-plugin/mg_tools.h @@ -1,10 +1,11 @@ /*! \file muggle_tools.h + * \ingroup muggle * \brief A few utility functions for standalone and plugin messaging for the vdr muggle plugindatabase * * \version $Revision: 1.4 $ - * \date $Date: 2004/08/30 14:31:43 $ + * \date $Date$ * \author Ralf Klueber, Lars von Wedel, Andreas Kellner - * \author file owner: $Author: LarsAC $ + * \author file owner: $Author$ * */ @@ -18,18 +19,30 @@ #define STANDALONE 1 // what's this? -// mySql helper functions +/*! \brief mySql helper function to execute read queries + * \ingroup muggle + * + * \todo Could be a member of mgDatabase? + */ MYSQL_RES* mgSqlReadQuery( MYSQL *db, const char *fmt, ... ); + +/*! \brief mySql helper function to execute write queries + * \ingroup muggle + * + * \todo Could be a member of mgDatabase? + */ void mgSqlWriteQuery( MYSQL *db, const char *fmt, ... ); -// Messaging functions +/*! \brief Logging utilities */ +//@{ void mgSetDebugLevel(int new_level); void mgDebug(int level, const char *fmt, ...); void mgDebug( const char *fmt, ... ); void mgWarning(const char *fmt, ...); void mgError(const char *fmt, ...); +//@} #ifdef DEBUG #define MGLOG(x) mgLog __thelog(x) @@ -43,6 +56,13 @@ void mgError(const char *fmt, ...); #define MGLOGSTREAM __thelog.getStream() #endif +/*! \brief simplified logging class + * \ingroup muggle + * + * Create a local instance at the beginning of the method + * and entering/leaving the function will be logged + * as constructors/destructors are called. + */ class mgLog { public: |