~ubuntu-branches/ubuntu/karmic/mp3val/karmic

« back to all changes in this revision

Viewing changes to crossapi.h

  • Committer: Bazaar Package Importer
  • Author(s): Sandro Tosi
  • Date: 2008-01-23 09:11:35 UTC
  • mfrom: (3.1.3 hardy)
  • Revision ID: james.westby@ubuntu.com-20080123091135-r10vczs51d63e8p0
Tags: 0.1.7-3
* debian/control
  - bump Standards-Version to 3.7.3
  - bump dependency against debhelper to >=5
* debian/compat
  - bump to 5
* debian/dirs
  - removed since not needed
* debian/rules
  - do not ignore anymore clean error due to missing makefile
* debian/copyright
  - clear separation of upstream author, license and copyright
  - link to /usr/share/common-licenses/GPL file
* debian/mp3val.1
  - escaped minus signs (lintian warning)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * MP3val - a program for MPEG audio file validation
3
 
 * Copyright (C) 2005-2006 Alexey Kuznetsov (ring0) and Eugen Tikhonov (jetsys)
 
3
 * Copyright (C) 2005-2007 Alexey Kuznetsov (ring0) and Eugen Tikhonov (jetsys)
4
4
 *
5
5
 * This program is free software; you can redistribute it and/or modify
6
6
 * it under the terms of the GNU General Public License as published by
20
20
#ifndef __CROSSAPI_H__
21
21
#define __CROSSAPI_H__
22
22
 
23
 
#if (defined WIN32)||(defined __WIN32__)
 
23
#if (defined WIN32)||(defined __WIN32__)||(defined _MSC_VER)||(defined __NT__)
24
24
 
25
25
#include <windows.h>
26
26
 
27
27
#define CROSSAPI_MAX_PATH MAX_PATH
28
28
 
 
29
struct CROSSAPI_FILE_ATTRIBUTES {
 
30
        DWORD dwAttributes;
 
31
        FILETIME ftCreation;
 
32
        FILETIME ftLastAccess;
 
33
        FILETIME ftLastWrite;
 
34
};
 
35
 
29
36
#else
30
37
 
 
38
#include <sys/types.h>
 
39
#include <sys/stat.h>
 
40
#include <unistd.h>
31
41
#include <limits.h>
 
42
#include <time.h>
32
43
 
33
44
#define CROSSAPI_MAX_PATH PATH_MAX
34
45
typedef unsigned int DWORD;
35
46
 
 
47
struct CROSSAPI_FILE_ATTRIBUTES {
 
48
        mode_t st_mode;
 
49
        time_t t_atime;
 
50
        time_t t_mtime;
 
51
        time_t t_ctime;
 
52
};
 
53
 
36
54
#endif
37
55
 
38
56
struct CROSSAPI_FIND_DATA {
58
76
int CrossAPI_GetTempFileAndName(int iBufSize,char *pcBuffer);
59
77
 
60
78
int CrossAPI_MoveFile(char *szNewName,char *szOldName);
 
79
int CrossAPI_DeleteFile(char *szFileName);
61
80
 
62
81
int CrossAPI_OpenFile(char *szFileName,bool create,bool write);
63
82
int CrossAPI_SetFilePointer(int iHandle,int iPointer,bool bFromCurrent);
69
88
void *CrossAPI_MapFile(char *filename);
70
89
int CrossAPI_UnmapFile(void *);
71
90
 
 
91
int CrossAPI_GetFileAttr(char *filename,CROSSAPI_FILE_ATTRIBUTES *cfa);
 
92
int CrossAPI_SetFileAttr(char *filename,CROSSAPI_FILE_ATTRIBUTES *cfa,bool timestamp);
 
93
 
72
94
#endif