Hi Anderson, On Tue, Feb 22, 2011, Anderson Lizardo wrote: > +struct attribute; > + > +typedef uint8_t (*att_cb_t)(struct attribute *a, gpointer user_data); > + > struct attribute { > uint16_t handle; > uuid_t uuid; > int read_reqs; > int write_reqs; > + att_cb_t read_cb; > + att_cb_t write_cb; > + gpointer cb_user_data; > int len; > uint8_t data[0]; > }; I'm not really a fan of the needed forward declaration here. I can't find you using "att_cb_t" anywhere else in your patches, so how about just having the full type of the callbacks inside the struct definition and skip the typedef completely? Johan -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html