summaryrefslogtreecommitdiff
path: root/extra/libdc1394/rename-usb_init.patch
blob: 44e1a5de3328fe12f74bd622b59dcfac299802e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
From 13b85d2d23548682b617ddc1196f5560a27998bd Mon Sep 17 00:00:00 2001
From: Damien Douxchamps <ddsf@douxchamps.net>
Date: Sun, 21 Aug 2011 16:03:22 +0900
Subject: [PATCH] fix usb_init function name conflict

---
 libdc1394/dc1394/control.c     |    2 +-
 libdc1394/dc1394/internal.h    |    2 +-
 libdc1394/dc1394/usb/control.c |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libdc1394/dc1394/control.c b/libdc1394/dc1394/control.c
index c62e0e2..f250f6a 100644
--- a/libdc1394/dc1394/control.c
+++ b/libdc1394/dc1394/control.c
@@ -1955,7 +1955,7 @@ dc1394_new (void)
     windows_init (d);
 #endif
 #ifdef HAVE_LIBUSB
-    usb_init (d);
+    dc1394_usb_init (d);
 #endif
 
     int i;
diff --git a/libdc1394/dc1394/internal.h b/libdc1394/dc1394/internal.h
index b4d295a..c59e5d3 100644
--- a/libdc1394/dc1394/internal.h
+++ b/libdc1394/dc1394/internal.h
@@ -74,7 +74,7 @@ void juju_init(dc1394_t *d);
 void linux_init(dc1394_t *d);
 void macosx_init(dc1394_t *d);
 void windows_init(dc1394_t *d);
-void usb_init(dc1394_t *d);
+void dc1394_usb_init(dc1394_t *d);
 
 void register_platform (dc1394_t * d, const platform_dispatch_t * dispatch,
         const char * name);
diff --git a/libdc1394/dc1394/usb/control.c b/libdc1394/dc1394/usb/control.c
index 6509452..19a21a6 100644
--- a/libdc1394/dc1394/usb/control.c
+++ b/libdc1394/dc1394/usb/control.c
@@ -378,7 +378,7 @@ usb_dispatch = {
 };
 
 void
-usb_init(dc1394_t * d)
+dc1394_usb_init(dc1394_t * d)
 {
     register_platform (d, &usb_dispatch, "usb");
 }
-- 
1.7.4.1