summaryrefslogtreecommitdiffstats
path: root/network/common.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-09-28 13:21:42 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-09-28 13:21:42 +0000
commita87f1daabf62c0f45dfb9e1c5f21cec75477d342 (patch)
tree9b53596bcaf69e42b21014429f9a4d7ef6086f99 /network/common.h
parent536cb174ec2d4937bf14fee7d713018e1bb31404 (diff)
Add support for script execution.
Diffstat (limited to 'network/common.h')
-rw-r--r--network/common.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/network/common.h b/network/common.h
index 1d8b57de..de9d753d 100644
--- a/network/common.h
+++ b/network/common.h
@@ -21,6 +21,9 @@
*
*/
+#define MAX_PATH_LENGTH 64 /* D-Bus path */
+#define NETWORK_PATH "/org/bluez/network"
+
int bnep_init(void);
int bnep_cleanup(void);
@@ -32,6 +35,7 @@ int bnep_kill_connection(bdaddr_t *dst);
int bnep_kill_all_connections(void);
int bnep_connadd(int sk, uint16_t role, char *dev);
-int bnep_if_up(const char *devname, int up);
+int bnep_if_up(const char *devname, const char *script);
+int bnep_if_down(const char *devname);
int read_remote_name(bdaddr_t *src, bdaddr_t *dst, char *buf, size_t size);