summaryrefslogtreecommitdiff
path: root/libgammu/device/bluetooth/bluetooth.h
blob: aedeeb9a058e56fa1224329fb965584fcf0310e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef bluetooth_h
#define bluetooth_h

#include "../../misc/misc.h"

typedef struct {
	socket_type hPhone;
	void *Data;
} GSM_Device_BlueToothData;

/* These are actually implemented in backend services */
GSM_Error bluetooth_connect(GSM_StateMachine *s, int port, char *device);
GSM_Error bluetooth_findchannel(GSM_StateMachine *s);
ssize_t bluetooth_read(GSM_StateMachine *s, void *buf, size_t nbytes);
ssize_t bluetooth_write(GSM_StateMachine *s, const void *buf, size_t nbytes);
GSM_Error bluetooth_close(GSM_StateMachine *s);

#endif

/* How should editor hadle tabs in this file? Add editor commands here.
 * vim: noexpandtab sw=8 ts=8 sts=8:
 */