diff options
author | Stephen Torri <storri@users.sourceforge.net> | 2002-11-02 02:58:52 +0000 |
---|---|---|
committer | Stephen Torri <storri@users.sourceforge.net> | 2002-11-02 02:58:52 +0000 |
commit | 00489b66f57df5a2a97f268678383e50645e9b8d (patch) | |
tree | 357cc4e7b1a0aacd2c580708f167d3074628c760 | |
parent | 5ff3fa5eb50df37bcc9f65cac0b0cde2885580a1 (diff) | |
download | xine-lib-00489b66f57df5a2a97f268678383e50645e9b8d.tar.gz xine-lib-00489b66f57df5a2a97f268678383e50645e9b8d.tar.bz2 |
Added macros for xine health check.
Redefined functions to make use of xine_health_check_s struct.
CVS patchset: 3136
CVS date: 2002/11/02 02:58:52
-rw-r--r-- | src/xine-utils/xine_check.h | 43 |
1 files changed, 34 insertions, 9 deletions
diff --git a/src/xine-utils/xine_check.h b/src/xine-utils/xine_check.h index 3038044e2..6449a7ae6 100644 --- a/src/xine-utils/xine_check.h +++ b/src/xine-utils/xine_check.h @@ -1,5 +1,28 @@ #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 + +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 @@ -7,33 +30,35 @@ * 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) */ -int xine_health_check(char* cdrom_dev, char* dvd_dev); +xine_health_check_t* xine_health_check(xine_health_check_t*); +#if 0 /* Get OS information */ -int xine_health_check_os(void); +xine_health_check_t* xine_health_check_os(void); +#endif /* Get Kernel information */ -int xine_health_check_kernel(void); +xine_health_check_t* xine_health_check_kernel(xine_health_check_t*); #if ARCH_X86 /* health_check MTRR */ -int xine_health_check_mtrr(void); +xine_health_check_t* xine_health_check_mtrr(xine_health_check_t*); #endif /* ARCH_X86 */ /* health_check CDROM */ -int xine_health_check_cdrom(char* cdrom_dev); +xine_health_check_t* xine_health_check_cdrom(xine_health_check_t*); /* health_check DVDROM */ -int xine_health_check_dvdrom(char* dvd_dev); +xine_health_check_t* xine_health_check_dvdrom(xine_health_check_t*); /* health_check DMA settings of DVD drive*/ -int xine_health_check_dma(char* dvd_dev); +xine_health_check_t* xine_health_check_dma(xine_health_check_t*); /* health_check X */ -int xine_health_check_x(void); +xine_health_check_t* xine_health_check_x(xine_health_check_t*); /* health_check Xv extension */ -int xine_health_check_xv(void); +xine_health_check_t* xine_health_check_xv(xine_health_check_t*); #endif |