File: mess.h

package info (click to toggle)
vpb-driver 4.2.55-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 3,528 kB
  • sloc: cpp: 26,247; ansic: 19,041; sh: 3,210; perl: 1,132; makefile: 752; asm: 182
file content (53 lines) | stat: -rw-r--r-- 1,916 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*---------------------------------------------------------------------------*\

    FILE....: MESS.H
    TYPE....: C Function Header File
    AUTHOR..: John Kostogiannis
    DATE....: 21/11/97

    Interface functions for messages.  Messages are information sent by
    various modules to a message window using standard printf formatting.  They
    are used to give information about low level operations during
    development. Not to be confused with PC-DSP messages!


         Voicetronix Voice Processing Board (VPB) Software
         Copyright (C) 1999-2007 Voicetronix www.voicetronix.com.au

         This library is free software; you can redistribute it and/or
         modify it under the terms of the GNU Lesser General Public
         License as published by the Free Software Foundation; either
         version 2.1 of the License, or (at your option) any later version.

         This library 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
         Lesser General Public License for more details.

         You should have received a copy of the GNU Lesser General Public
         License along with this library; if not, write to the Free Software
         Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
         MA  02110-1301  USA

\*---------------------------------------------------------------------------*/

#ifndef __MESSWIN32__
#define __MESSWIN32__

#define ON	1
#define OFF	0
#define MAXSTR 150

void mess_init();
void mess_mprintf_on();
void mess_mprintf_on(const char *fn);
void mess_mprintf_on(const char *fn, const char *s);
void mess_mprintf_off();

void mess_set_messages(void (*func)(const char *stuff, ...));

void mprintf(const char *fmt, ...) __attribute__ ((format(__printf__,1,2)));


#endif	/* #ifndef __MESS__	*/