summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-03-14 21:57:06 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-03-14 21:57:06 +0000
commit94a757fea37ba19b3dec1a3318f49d667394f6eb (patch)
treeeb0cc431fcaee8cd00f28a7146ab02da740d764d
parent10364cafd89f5a3a5bb6c2ea732f8b04dc729d96 (diff)
Move private structs from adapter.c to adapter.h
-rw-r--r--hcid/adapter.c15
-rw-r--r--hcid/adapter.h15
2 files changed, 15 insertions, 15 deletions
diff --git a/hcid/adapter.c b/hcid/adapter.c
index ebcfb51a..a17ee5eb 100644
--- a/hcid/adapter.c
+++ b/hcid/adapter.c
@@ -68,6 +68,21 @@
#define NUM_ELEMENTS(table) (sizeof(table)/sizeof(const char *))
+struct create_device_req {
+ char address[18]; /* Destination address */
+ DBusConnection *conn; /* Connection reference */
+ DBusMessage *msg; /* Message reference */
+ guint id; /* Listener id */
+ char *agent_path; /* Agent object path */
+};
+
+struct mode_req {
+ struct adapter *adapter;
+ DBusConnection *conn; /* Connection reference */
+ DBusMessage *msg; /* Message reference */
+ char *mode; /* Requested mode */
+};
+
static const char *service_cls[] = {
"positioning",
"networking",
diff --git a/hcid/adapter.h b/hcid/adapter.h
index 6d2a38f1..d64930bc 100644
--- a/hcid/adapter.h
+++ b/hcid/adapter.h
@@ -80,21 +80,6 @@ struct pending_dc_info {
guint timeout_id;
};
-struct create_device_req {
- char address[18]; /* Destination address */
- DBusConnection *conn; /* Connection reference */
- DBusMessage *msg; /* Message reference */
- guint id; /* Listener id */
- char *agent_path; /* Agent object path */
-};
-
-struct mode_req {
- struct adapter *adapter;
- DBusConnection *conn; /* Connection reference */
- DBusMessage *msg; /* Message reference */
- char *mode; /* Requested mode */
-};
-
struct adapter {
uint16_t dev_id;
int up;