Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 1/2] Rename gatt_primary_t to more generic name
@ 2011-01-17 19:37 Bruna Moreira
  2011-01-17 19:37 ` [PATCH 2/2] Move common code from Discover all Characteristics to GATT library Bruna Moreira
  2011-01-19 15:11 ` [PATCH 1/2] Rename gatt_primary_t to more generic name Johan Hedberg
  0 siblings, 2 replies; 3+ messages in thread
From: Bruna Moreira @ 2011-01-17 19:37 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Bruna Moreira

The gatt_primary_t typedef was renamed to gatt_cb_t because it will be
used for primary and characteristic callbacks.
---
 attrib/gatt.c |    4 ++--
 attrib/gatt.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/attrib/gatt.c b/attrib/gatt.c
index 7d09689..79d8b9d 100644
--- a/attrib/gatt.c
+++ b/attrib/gatt.c
@@ -35,7 +35,7 @@ struct discover_primary {
 	GAttrib *attrib;
 	uuid_t uuid;
 	GSList *primaries;
-	gatt_primary_t cb;
+	gatt_cb_t cb;
 	void *user_data;
 };
 
@@ -193,7 +193,7 @@ done:
 	discover_primary_free(dp);
 }
 
-guint gatt_discover_primary(GAttrib *attrib, uuid_t *uuid, gatt_primary_t func,
+guint gatt_discover_primary(GAttrib *attrib, uuid_t *uuid, gatt_cb_t func,
 							gpointer user_data)
 {
 	struct discover_primary *dp;
diff --git a/attrib/gatt.h b/attrib/gatt.h
index 936c592..0bdac77 100644
--- a/attrib/gatt.h
+++ b/attrib/gatt.h
@@ -24,9 +24,9 @@
 
 #define GATT_CID 4
 
-typedef void (*gatt_primary_t) (GSList *l, guint8 status, gpointer user_data);
+typedef void (*gatt_cb_t) (GSList *l, guint8 status, gpointer user_data);
 
-guint gatt_discover_primary(GAttrib *attrib, uuid_t *uuid, gatt_primary_t func,
+guint gatt_discover_primary(GAttrib *attrib, uuid_t *uuid, gatt_cb_t func,
 							gpointer user_data);
 
 guint gatt_discover_char(GAttrib *attrib, uint16_t start, uint16_t end,
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-19 15:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-17 19:37 [PATCH 1/2] Rename gatt_primary_t to more generic name Bruna Moreira
2011-01-17 19:37 ` [PATCH 2/2] Move common code from Discover all Characteristics to GATT library Bruna Moreira
2011-01-19 15:11 ` [PATCH 1/2] Rename gatt_primary_t to more generic name Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox