OSDN Git Service

android/client: Export get_interface_method
authorJerzy Kasenberg <jerzy.kasenberg@tieto.com>
Fri, 8 Nov 2013 12:48:23 +0000 (13:48 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 8 Nov 2013 13:12:55 +0000 (15:12 +0200)
This method will be used outside tab completion.c.

android/client/if-main.h
android/client/tabcompletion.c

index f638b91..647162c 100644 (file)
@@ -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, ...) \
index 4a6329f..f965620 100644 (file)
@@ -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);