#ifndef _L_DEFINES_H_
#define _L_DEFINES_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <unistd.h>
#include <locale.h>
#include <libintl.h>
#include <stdlib.h>
#include <sys/smedia.h>
struct raw_params {
uint32_t offset;
char *buffer;
size_t size;
};
struct format_track {
int32_t track_no;
int32_t head;
uint32_t flag;
};
struct format_flags {
uint32_t flavor;
uint32_t mode;
};
#ifdef DEBUG
#define DPRINTF(str) (void) printf(str)
#define DPRINTF1(str, a) (void) printf(str, a)
#define DPRINTF2(str, a, b) (void) printf(str, a, b)
#define DPRINTF3(str, a, b, c) (void) printf(str, a, b, c)
#define DPRINTF4(str, a, b, c, d) (void) printf(str, a, b, c, d)
#else
#define DPRINTF(str)
#define DPRINTF1(str, a)
#define DPRINTF2(str, a, b)
#define DPRINTF3(str, a, b, c)
#define DPRINTF4(str, a, b, c, d)
#endif
#define SM_FD_VERSION_1 1
#define SM_SCSI_VERSION_1 1
#define SM_PCMEM_VERSION_1 1
#define SM_PLUGIN_VERSION 1
#define SM_PCATA_VERSION_1 1
#define SM_BLKDEV_VERSION_1 1
#ifdef __cplusplus
}
#endif
#endif