Connection Types Supported by libgnokii
The ./configure
script automatically enables those connection types for which it can find the needed libraries and/or include files, but up to version 0.6.14 the config file parse routines wouldn't know which connection types were actually compiled.
These are all the connection types known to libgnokii (all names must be lowercase in gnokiirc
):
- bluetooth *
- dau9p
- dku2
- dku2libusb *
- dku5
- dlr3p
- infrared *
- irda *
- m2bus
- serial
- tcp **
- tekram
* automatically enabled at configure time if all dependencies are satisfied
** not available on WIN32 builds
If you have written a program using libgnokii and you wish to know if a given connection is available you can use gn_get_connectiontype()
, or you can use gn_lib_get_supported_connection()
to get all supported connection types.
Note: this works with libgnokii version 0.6.15 or later.
I've written a small program to be used in scripts to check if a given connection is available.
Example:
conn=bluetooth; get_supported_connection $conn || echo "Sorry $conn is not compiled in your libgnokii"
C source follows: