/* $Id$ G N O K I I A Linux/Unix toolset and driver for Nokia mobile phones. Copyright (C) 1999, 2000 Hugh Blemings & Pavel Janík ml. Released under the terms of the GNU GPL, see file COPYING for more details. Header file for the various functions, definitions etc. used to implement the handset interface. See gsm-api.c for more details. $Log$ Revision 1.1.1.1.2.1 2001/11/27 22:48:37 short Update: orig2001_11_27_05_17 -> orig2001_11_27_22_58 Revision 1.1.1.2 2001/11/27 22:01:26 short :pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Tue Nov 27 22:58 CET 2001 Revision 1.15 2001/11/27 12:19:01 pkot Cleanup, indentation, ANSI complaint preprocesor symbols (Jan Kratochvil, me) Revision 1.14 2001/06/28 00:28:45 pkot Small docs updates (Pawel Kot) */ #ifndef __gsm_api_h #define __gsm_api_h /* If gsm-common.h isn't included at this point, little in this file will make sense so we include it here if required. */ #ifndef __gsm_common_h # include "gsm-common.h" #endif /* Ditto rlp_common.h... */ #ifndef __data_rlp_common_h # include "data/rlp-common.h" #endif #include "gsm-statemachine.h" /* Define these as externs so that app code can pick them up. */ extern bool *GSM_LinkOK; extern GSM_Information *GSM_Info; extern GSM_Functions *GSM; extern GSM_Error (*GSM_F)(GSM_Operation op, GSM_Data *data, GSM_Statemachine *state); /* Prototype for the functions actually provided by gsm-api.c. */ GSM_Error GSM_Initialise(char *model, char *device, char *initlength, GSM_ConnectionType connection, void (*rlp_handler)(RLP_F96Frame *frame), GSM_Statemachine *sm); /* All the rest of the API functions are contained in the GSM_Function structure which ultimately points into the model specific code. */ #endif /* __gsm_api_h */