summaryrefslogtreecommitdiff
path: root/xpp/xtalk/xusb.h
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2012-09-20 13:40:40 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2012-09-20 13:40:40 +0000
commit421dd9e2c37b9c203e6fce7b1410453c2e8de217 (patch)
tree42c3e885ba650d60c226d764f5705b4673019512 /xpp/xtalk/xusb.h
parentd1f4385b9a7316f45d280749b196c8280f85c828 (diff)
xtalk: Caller passes xusb_spec to xusb_find_iface()
* This xusb_spec: - Is a dummy struct used for this xusb instance only. - Is now passed by reference from caller. - So caller now manage the life cycle of this struct * Also, demote one INFO() to DBG() (library should not print on its own) * Also minor fix to DBG() output of spec initialization (leading 0) Signed-off-by: Oron Peled <oron.peled@xorcom.com> Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> Origin: Xorcom xtalk (r9303) git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10711 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'xpp/xtalk/xusb.h')
-rw-r--r--xpp/xtalk/xusb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xpp/xtalk/xusb.h b/xpp/xtalk/xusb.h
index 65da029..2859475 100644
--- a/xpp/xtalk/xusb.h
+++ b/xpp/xtalk/xusb.h
@@ -67,7 +67,7 @@ typedef int (*xusb_filter_t)(const struct xusb *xusb, void *data);
struct xlist_node *xusb_find_byproduct(const struct xusb_spec *specs, int numspecs, xusb_filter_t filterfunc, void *data);
struct xusb *xusb_find_bypath(const struct xusb_spec *specs, int numspecs, const char *path);
struct xusb *xusb_open_one(const struct xusb_spec *specs, int numspecs, xusb_filter_t filterfunc, void *data);
-struct xusb *xusb_find_iface(const char *devpath, int iface_num, int ep_out, int ep_in);
+struct xusb *xusb_find_iface(const char *devpath, int iface_num, int ep_out, int ep_in, struct xusb_spec *dummy);
/*
* A convenience filter