/*
 * This file belongs to FreeMiNT. It's not in the original MiNT 1.12
 * distribution. See the file CHANGES for a detailed log of changes.
 * 
 * 
 * Copyright 2003 Odd Skancke <ozk@atari.org>
 * All rights reserved.
 * 
 * Please send suggestions, patches or bug reports to me or
 * the MiNT mailing list.
 * 
 * 
 * This file is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 * 
 * This file is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 * 
 */

#ifndef _adidefs_h
#define _adidefs_h

#include "moose.h"

#define ADI_OPEN	1
#define ADI_NAMSIZ	16

#define ADIC_MOUSE	0

struct adif
{
	struct adif	*next;
	long		class;

	char		*lname;
	char		name[ADI_NAMSIZ];
	short		unit;

	unsigned short	flags;

	long		(*open)		(struct adif *);
	long		(*close)	(struct adif *);
	long		resrvd1;	/* (*output) */
	long		(*ioctl)	(struct adif *, short, long);
	long		(*timeout)	(struct adif *);

	long		reserved[16];
};

struct adiinfo
{
	short		(*getfreeunit)	(char *);
	long		(*adi_register)	(struct adif *);

	void		(*move)		(struct adif *, short x, short y);
	void		(*button)	(struct adif *, struct moose_data *);
	void		(*wheel)	(struct adif *, struct moose_data *);

	const char	*fname;
};

#endif /* _adidefs_h */
