Gammu internals  1.38.0
devfunc.h
Go to the documentation of this file.
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 
10 int bluetooth_checkservicename(GSM_StateMachine *s, const char *name);
11 
12 #endif
13 #endif
14 
15 #if defined (GSM_ENABLE_BLUETOOTHDEVICE) || defined (GSM_ENABLE_IRDADEVICE)
16 
17 int socket_read(GSM_StateMachine *s, void *buf, size_t nbytes, socket_type hPhone);
18 
19 int socket_write(GSM_StateMachine *s, unsigned const char *buf, size_t nbytes, socket_type hPhone);
20 
21 GSM_Error socket_close(GSM_StateMachine *s, socket_type hPhone);
22 
23 #endif
24 
25 GSM_Error lock_device (GSM_StateMachine *s, const char* port, char **lock_device);
26 gboolean unlock_device (GSM_StateMachine *s, char **lock_file);
27 
28 int FindSerialSpeed(const char *buffer);
29 
30 #endif
31 
32 /* How should editor hadle tabs in this file? Add editor commands here.
33  * vim: noexpandtab sw=8 ts=8 sts=8:
34  */
int socket_type
Definition: misc.h:114
GSM_Error
Definition: gammu-error.h:23
int gboolean
Definition: gammu-types.h:23
gboolean unlock_device(GSM_StateMachine *s, char **lock_file)
Definition: devfunc.c:347
int FindSerialSpeed(const char *buffer)
Definition: devfunc.c:367
GSM_Error lock_device(GSM_StateMachine *s, const char *port, char **lock_device)
Definition: devfunc.c:212