#include <stdlib.h>#include <assert.h>#include <stdio.h>#include <string.h>#include <libgen.h>#include <qmessagebox.h>#include <unistd.h>#include <stdarg.h>#include "info.h"
Functions | |
| void | Log (const char *prefix, const char *text) |
| void | Info (const char *script,...) |
| void | Warning (const char *script,...) |
| void | Debug (const char *script,...) |
| void | Fatal (const char *script,...) |
| void | Error (bool ui, const char *script,...) |
| void Debug | ( | const char * | script, | |
| ... | ||||
| ) |
References Log().
Referenced by batch_start(), UpdateIndexedSong::change(), UpdateSongFilename::change(), dsp_none::close(), dsp_jack::close(), dsp_alsa::close(), core_done(), dsp_alsa::dsp_alsa(), dsp_jack::dsp_jack(), dsp_none::dsp_none(), exec(), map_active(), dsp_jack::open(), dsp_driver::pause(), something_died(), spawn(), dsp_none::start(), dsp_jack::start(), dsp_driver::start(), Player::startCore(), dsp_none::stop(), dsp_jack::stop(), dsp_driver::stop(), dsp_driver::unpause(), and dsp_jack::~dsp_jack().
| void Error | ( | bool | ui, | |
| const char * | script, | |||
| ... | ||||
| ) |
TODO: We might need to check which thread we are before blindly jumping into this messagebox
References Log().
Referenced by SongSelectorLogic::albumItemChanged(), execute(), PlayerConfig::load(), main(), dsp_oss::open(), dsp_jack::open(), dsp_alsa::open(), PlayerConfig::save(), Config::save(), SongSlot::setup(), show_error(), spawn(), dsp_alsa::start(), ProcessManager::startSong(), dsp_alsa::write(), and Index::write_idx().
| void Fatal | ( | const char * | script, | |
| ... | ||||
| ) |
Fatal prints an error message and will then exit the application with an error code of 100.
References Log().
Referenced by DataBase::add(), exec(), oss_catch(), and Index::read_idx().
| void Info | ( | const char * | script, | |
| ... | ||||
| ) |
References Log().
Referenced by batch_start(), dsp_oss::close(), core_done(), SpectrumAnalyzer::fetchSpectrum_normal(), dsp_oss::open(), dsp_jack::open(), DirectoryScanner::recursing(), rms_init(), and DecoderChecker::works().
| void Log | ( | const char * | prefix, | |
| const char * | text | |||
| ) |
Todo: To convert these to Qt versions means that each of the arguments passed into the ... must still be a char* pointer since we cannot guarantee that, we might need to rethink the layout of these functions. QString provides some nice alternatives, but we will still need to convert everything.
Referenced by Debug(), Error(), Fatal(), Info(), MusicScanner::recursing(), Remote(), and Warning().
| void Warning | ( | const char * | script, | |
| ... | ||||
| ) |
1.6.2