From 507c457d3ce5dd5921b6eaffdb365a33ec086720 Mon Sep 17 00:00:00 2001 From: Jerzy Kasenberg Date: Fri, 8 Nov 2013 13:48:23 +0100 Subject: [PATCH] android/client: Export get_interface_method This method will be used outside tab completion.c. --- android/client/if-main.h | 2 ++ android/client/tabcompletion.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/android/client/if-main.h b/android/client/if-main.h index f638b9148..647162c6b 100644 --- a/android/client/if-main.h +++ b/android/client/if-main.h @@ -141,6 +141,8 @@ void add_remote_device(const bt_bdaddr_t *addr); const struct interface *get_interface(const char *name); struct method *get_method(struct method *methods, const char *name); struct method *get_command(const char *name); +const struct method *get_interface_method(const char *iname, + const char *mname); /* Helper macro for executing function on interface and printing BT_STATUS */ #define EXEC(f, ...) \ diff --git a/android/client/tabcompletion.c b/android/client/tabcompletion.c index 4a6329f68..f96562048 100644 --- a/android/client/tabcompletion.c +++ b/android/client/tabcompletion.c @@ -30,7 +30,7 @@ typedef struct split_arg { } split_arg_t; /* function returns method of given name or NULL if not found */ -static const struct method *get_interface_method(const char *iname, +const struct method *get_interface_method(const char *iname, const char *mname) { const struct interface *iface = get_interface(iname); -- 2.47.3