This will be also used in Android daemon. --- v2: fixed missing brackets around 'v' as suggested by Marcel src/adapter.c | 1 - src/shared/mgmt.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/adapter.c b/src/adapter.c index 30bcc4d..d904a56 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -99,7 +99,6 @@ static GSList *adapters = NULL; static struct mgmt *mgmt_master = NULL; -#define MGMT_VERSION(v, r) ((v << 16) + (r)) static uint8_t mgmt_version = 0; static uint8_t mgmt_revision = 0; diff --git a/src/shared/mgmt.h b/src/shared/mgmt.h index 60a2128..e23cc7d 100644 --- a/src/shared/mgmt.h +++ b/src/shared/mgmt.h @@ -24,6 +24,8 @@ #include <stdbool.h> #include <stdint.h> +#define MGMT_VERSION(v, r) (((v) << 16) + (r)) + typedef void (*mgmt_destroy_func_t)(void *user_data); struct mgmt; -- 1.8.4.2 -- 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