Files
veejay/veejay-current/veejay-server/libvjmsg/vj-msg.h
Niels Elburg c3a16c1932 added new gremlin detector
git-svn-id: svn://code.dyne.org/veejay/trunk@1389 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
2010-02-14 19:07:21 +00:00

47 lines
1.6 KiB
C

/* veejay - Linux VeeJay
* (C) 2002-2007 Niels Elburg <nwelburg@gmail.com>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef VJ_COMMON_H
#define VJ_COMMON_H
#include <stdarg.h>
#include <stdint.h>
enum {
VEEJAY_MSG_INFO = 2,
VEEJAY_MSG_WARNING = 1,
VEEJAY_MSG_ERROR = 0,
VEEJAY_MSG_PRINT = 3,
VEEJAY_MSG_DEBUG = 4,
};
extern void veejay_backtrace_handler(int n , void *ist, void *x);
extern void veejay_strrep(char *s, char delim, char tok);
extern void report_bug();
extern void veejay_msg(int type, const char format[], ...);
extern int veejay_is_colored();
extern void veejay_set_debug_level(int level);
extern void veejay_set_colors(int level);
extern void veejay_silent();
extern int veejay_is_silent();
extern int veejay_keep_messages(void);
extern void veejay_reap_messages(void);
extern char *veejay_pop_messages(int *num_lines, int *total_len);
extern int veejay_get_file_ext( char *file, char *dst, int dlen);
extern void veejay_chomp_str( char *str, int *dlen );
#endif