summaryrefslogtreecommitdiffabout
path: root/gammu/emb/common/device/devfunc.h
Unidiff
Diffstat (limited to 'gammu/emb/common/device/devfunc.h') (more/less context) (ignore whitespace changes)
-rw-r--r--gammu/emb/common/device/devfunc.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/gammu/emb/common/device/devfunc.h b/gammu/emb/common/device/devfunc.h
new file mode 100644
index 0000000..6e8fb62
--- a/dev/null
+++ b/gammu/emb/common/device/devfunc.h
@@ -0,0 +1,38 @@
1
2#ifndef device_functions_h
3#define device_functions_h
4
5#include "../gsmstate.h"
6
7#ifdef GSM_ENABLE_BLUETOOTHDEVICE
8#ifdef BLUETOOTH_RF_SEARCHING
9
10GSM_Error bluetooth_checkservicename(GSM_StateMachine *s, char *name);
11
12#endif
13#endif
14
15#if defined (GSM_ENABLE_BLUETOOTHDEVICE) || defined (GSM_ENABLE_IRDADEVICE)
16
17int socket_read(GSM_StateMachine *s, void *buf, size_t nbytes, int hPhone);
18
19#ifdef WIN32
20int socket_write(GSM_StateMachine *s, unsigned char *buf, size_t nbytes, int hPhone);
21#else
22int socket_write(GSM_StateMachine *s, void *buf, size_t nbytes, int hPhone);
23#endif
24
25GSM_Error socket_close(GSM_StateMachine *s, int hPhone);
26
27#endif
28
29 GSM_Error lock_device(const char* port, char **lock_device);
30 bool unlock_device(char **lock_file);
31
32int FindSerialSpeed(char *buffer);
33
34#endif
35
36/* How should editor hadle tabs in this file? Add editor commands here.
37 * vim: noexpandtab sw=8 ts=8 sts=8:
38 */