summaryrefslogtreecommitdiff
path: root/src/xine-utils/xine_check.h
blob: 150ee3b89e77715afc71d5cd5be1b2ff2040295c (plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef XINE_CHECK_H
#define XINE_CHECK_H
#include <stdio.h>


#define XINE_HEALTH_CHECK_OK            0
#define XINE_HEALTH_CHECK_FAIL          1
#define XINE_HEALTH_CHECK_UNSUPPORTED   2
#define XINE_HEALTH_CHECK_NO_SUCH_CHECK 3

#define CHECK_KERNEL    0
#define CHECK_MTRR      1
#define CHECK_CDROM     2
#define CHECK_DVDROM    3
#define CHECK_DMA       4
#define CHECK_X         5
#define CHECK_XV        6

struct xine_health_check_s {
  int status;
  const char* cdrom_dev;
  const char* dvd_dev;
  char* msg;
};

typedef struct xine_health_check_s xine_health_check_t;

typedef struct {
  FILE    *fd;
  char    *filename;
  char    *ln;
  char     buf[256];
} file_info_t;


/*
 * Start checking xine setup here
 *
 * cdrom_dev = Name of the device link for the cdrom drive (e.g. /dev/cdrom)
 * dvd_dev = Name of the device link for the dvd drive (e.g. /dev/dvd)
 */
xine_health_check_t* xine_health_check(xine_health_check_t*, int check_num);

/* Get Kernel information */
xine_health_check_t* xine_health_check_kernel(xine_health_check_t*);

/* health_check MTRR */
xine_health_check_t* xine_health_check_mtrr(xine_health_check_t*);

/* health_check CDROM */
xine_health_check_t* xine_health_check_cdrom(xine_health_check_t*);

/* health_check DVDROM */
xine_health_check_t* xine_health_check_dvdrom(xine_health_check_t*);

/* health_check DMA settings of DVD drive*/
xine_health_check_t* xine_health_check_dma(xine_health_check_t*);

/* health_check X */
xine_health_check_t* xine_health_check_x(xine_health_check_t*);

/* health_check Xv extension */
xine_health_check_t* xine_health_check_xv(xine_health_check_t*);

#endif