/***************************************************************************
 *   copyright           : (C) 2002 by Hendrik Sattler                     *
 *   mail                : post@hendrik-sattler.de                         *
 *                                                                         *
 *   This program 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 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef TTY_BLUETOOTH_H
#define TTY_BLUETOOTH_H

#include "ttyaccess.h"

#define BTCHAN_RFCOMM 1

struct tty_access* tty_bluetooth_open (struct port_args_t* args);
void tty_bluetooth_close(void);
int  tty_bluetooth_write (const char* data, size_t count);
char* tty_bluetooth_read (int (*stop_condition)(const char*,const size_t));
void tty_bluetooth_flush (void);

#endif
