A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
at master 63 lines 1.8 kB view raw
1/*************************************************************************** 2 * __________ __ ___. 3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___ 4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 7 * \/ \/ \/ \/ \/ 8 * $Id$ 9 * 10 * Copyright (C) 2014 Franklin Wei, Benjamin Brown 11 * Copyright (C) 2004 Gregory Montoir 12 * 13 * This program is free software; you can redistribute it and/or 14 * modify it under the terms of the GNU General Public License 15 * as published by the Free Software Foundation; either version 2 16 * of the License, or (at your option) any later version. 17 * 18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 19 * KIND, either express or implied. 20 * 21 ***************************************************************************/ 22 23#ifndef __UTIL_H__ 24#define __UTIL_H__ 25 26#include "intern.h" 27 28#ifdef ROCKBOX_HAS_LOGF 29#define XWORLD_DEBUG 30#endif 31 32#ifdef XWORLD_DEBUG 33#define debug(m,f,...) debug_real(m, f, ##__VA_ARGS__) 34#define XWORLD_DEBUGMASK ~0 35#else 36#define debug(m,f,...) 37#define XWORLD_DEBUGMASK 0 38#endif 39 40enum { 41 DBG_VM = 1 << 0, 42 DBG_BANK = 1 << 1, 43 DBG_VIDEO = 1 << 2, 44 DBG_SND = 1 << 3, 45 DBG_SER = 1 << 4, 46 DBG_INFO = 1 << 5, 47 DBG_RES = 1 << 6, 48 DBG_FILE = 1 << 7, 49 DBG_SYS = 1 << 8, 50 DBG_ENG = 1 << 9 51}; 52 53extern uint16_t g_debugMask; 54#ifdef XWORLD_DEBUG 55extern void debug_real(uint16_t cm, const char *msg, ...); 56#endif 57extern void error(const char *msg, ...); 58extern void warning(const char *msg, ...); 59 60extern void string_lower(char *p); 61extern void string_upper(char *p); 62 63#endif