diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2005-08-21 08:56:10 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2005-08-21 08:56:10 +0000 |
commit | 7d463a7ae8a9775fd091131659a849baca993e53 (patch) | |
tree | b919592384759483ca8143075d2e2d46be3453d8 /dund/dund.h | |
parent | ad0ddadb14111da30387acce8c47459906ed0759 (diff) |
Add ActiveSync networking support
Diffstat (limited to 'dund/dund.h')
-rw-r--r-- | dund/dund.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/dund/dund.h b/dund/dund.h index 97c54174..f2a9b026 100644 --- a/dund/dund.h +++ b/dund/dund.h @@ -3,7 +3,7 @@ * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2002-2003 Maxim Krasnyansky <maxk@qualcomm.com> - * Copyright (C) 2002-2004 Marcel Holtmann <marcel@holtmann.org> + * Copyright (C) 2002-2005 Marcel Holtmann <marcel@holtmann.org> * * * This program is free software; you can redistribute it and/or modify @@ -28,11 +28,16 @@ */ /* DUN scripts & commands */ -#define DUN_CONFIG_DIR "/etc/bluetooth/dun" +#define DUN_CONFIG_DIR "/etc/bluetooth/dun" -#define DUN_DEFAULT_CHANNEL 1 +#define DUN_DEFAULT_CHANNEL 1 -#define DUN_MAX_PPP_OPTS 40 +#define DUN_MAX_PPP_OPTS 40 + +/* DUN types */ +#define LANACCESS 0 +#define MROUTER 1 +#define ACTIVESYNC 2 /* DUN functions */ int dun_init(void); @@ -45,6 +50,6 @@ int dun_kill_all_connections(void); int dun_open_connection(int sk, char *pppd, char **pppd_opts, int wait); /* SDP functions */ -int dun_sdp_register(bdaddr_t *device, uint8_t channel, int mrouter); +int dun_sdp_register(bdaddr_t *device, uint8_t channel, int type); void dun_sdp_unregister(void); -int dun_sdp_search(bdaddr_t *src, bdaddr_t *dst, int *channel, int mrouter); +int dun_sdp_search(bdaddr_t *src, bdaddr_t *dst, int *channel, int type); |