diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2005-12-02 13:26:31 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2005-12-02 13:26:31 +0000 |
commit | 932d0bb02249a7a6ebe8bde4fda6a4126ead7c69 (patch) | |
tree | 8682bc9d6d540610946b56de33ecce9e0c265227 | |
parent | bfb500119bea9af83d1fdd8774ebf93a3021133f (diff) | |
download | navit-svn-932d0bb02249a7a6ebe8bde4fda6a4126ead7c69.tar.gz |
Autodetect API
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@12 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r-- | src/speech.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/speech.c b/src/speech.c index 8823e155..0cb39e1b 100644 --- a/src/speech.c +++ b/src/speech.c @@ -1,5 +1,5 @@ /* speechd simple client program - * CVS revision: $Id: speech.c,v 1.2 2005-12-02 12:32:47 martin-s Exp $ + * CVS revision: $Id: speech.c,v 1.3 2005-12-02 13:26:31 martin-s Exp $ * Author: Tomas Cerha <cerha@brailcom.cz> */ #include <sys/types.h> @@ -27,7 +27,11 @@ speech_new(void) { struct speech *this; int sockfd; +#ifdef SPD_FATAL + sockfd = spd_open("map","main",NULL); +#else sockfd = spd_init("map","main"); +#endif if (sockfd == 0) return NULL; this=g_new(struct speech,1); |