~ubuntu-branches/ubuntu/utopic/cdrdao/utopic

« back to all changes in this revision

Viewing changes to trackdb/util.h

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Suffield
  • Date: 2004-06-24 22:33:16 UTC
  • Revision ID: james.westby@ubuntu.com-20040624223316-534onzugaeeyq61j
Tags: upstream-1.1.9
ImportĀ upstreamĀ versionĀ 1.1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*  cdrdao - write audio CD-Rs in disc-at-once mode
 
2
 *
 
3
 *  Copyright (C) 1998-2001  Andreas Mueller <andreas@daneb.de>
 
4
 *
 
5
 *  This program is free software; you can redistribute it and/or modify
 
6
 *  it under the terms of the GNU General Public License as published by
 
7
 *  the Free Software Foundation; either version 2 of the License, or
 
8
 *  (at your option) any later version.
 
9
 *
 
10
 *  This program is distributed in the hope that it will be useful,
 
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 *  GNU General Public License for more details.
 
14
 *
 
15
 *  You should have received a copy of the GNU General Public License
 
16
 *  along with this program; if not, write to the Free Software
 
17
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
18
 */
 
19
 
 
20
#ifndef __UTIL_H__
 
21
#define __UTIL_H__
 
22
 
 
23
#include <stdio.h>
 
24
 
 
25
class Sample;
 
26
 
 
27
char *strdupCC(const char *s);
 
28
char *strdup3CC(const char *s1, const char *s2, const char *s3);
 
29
char *strdupvCC(const char *s1, ...);
 
30
 
 
31
long fullRead(int fd, void *buf, long count);
 
32
long fullWrite(int fd, const void *buf, long count);
 
33
long readLong(FILE *fp);
 
34
short readShort(FILE *fp);
 
35
 
 
36
void swapSamples(Sample *buf, unsigned long len);
 
37
 
 
38
unsigned char int2bcd(int);
 
39
int bcd2int(unsigned char);
 
40
 
 
41
const char *stripCwd(const char *fname);
 
42
 
 
43
void message(int level, const char *fmt, ...);
 
44
 
 
45
 
 
46
#endif
 
47