diff options
author | Emil Velikov | 2015-03-23 18:24:48 -0500 |
---|---|---|
committer | Emil Velikov | 2015-04-28 05:19:15 -0500 |
commit | 983892d2756b4bcfcd455ec644afe666b9e0e447 (patch) | |
tree | 0341a5aa072e9a379540bc303dd9cf4016445140 /libkms | |
parent | 47429af325b6c32904c0b7e68e6ce3ff0d57aec0 (diff) | |
download | external-libdrm-983892d2756b4bcfcd455ec644afe666b9e0e447.tar.gz external-libdrm-983892d2756b4bcfcd455ec644afe666b9e0e447.tar.xz external-libdrm-983892d2756b4bcfcd455ec644afe666b9e0e447.zip |
libkms: annotate private symbols
Cc: Jakob Bornecrantz <jakob@vmware.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'libkms')
-rw-r--r-- | libkms/api.c | 3 | ||||
-rw-r--r-- | libkms/dumb.c | 2 | ||||
-rw-r--r-- | libkms/exynos.c | 2 | ||||
-rw-r--r-- | libkms/intel.c | 2 | ||||
-rw-r--r-- | libkms/internal.h | 19 | ||||
-rw-r--r-- | libkms/linux.c | 4 | ||||
-rw-r--r-- | libkms/nouveau.c | 2 | ||||
-rw-r--r-- | libkms/radeon.c | 2 | ||||
-rw-r--r-- | libkms/vmwgfx.c | 2 |
9 files changed, 23 insertions, 15 deletions
diff --git a/libkms/api.c b/libkms/api.c index b512c42d..a07a242c 100644 --- a/libkms/api.c +++ b/libkms/api.c | |||
@@ -29,9 +29,12 @@ | |||
29 | #ifdef HAVE_CONFIG_H | 29 | #ifdef HAVE_CONFIG_H |
30 | #include "config.h" | 30 | #include "config.h" |
31 | #endif | 31 | #endif |
32 | |||
32 | #include <errno.h> | 33 | #include <errno.h> |
33 | #include <stdlib.h> | 34 | #include <stdlib.h> |
34 | #include <string.h> | 35 | #include <string.h> |
36 | |||
37 | #include "libdrm.h" | ||
35 | #include "internal.h" | 38 | #include "internal.h" |
36 | 39 | ||
37 | int kms_create(int fd, struct kms_driver **out) | 40 | int kms_create(int fd, struct kms_driver **out) |
diff --git a/libkms/dumb.c b/libkms/dumb.c index f9c16e11..e252d8c1 100644 --- a/libkms/dumb.c +++ b/libkms/dumb.c | |||
@@ -190,7 +190,7 @@ dumb_bo_destroy(struct kms_bo *_bo) | |||
190 | return 0; | 190 | return 0; |
191 | } | 191 | } |
192 | 192 | ||
193 | int | 193 | drm_private int |
194 | dumb_create(int fd, struct kms_driver **out) | 194 | dumb_create(int fd, struct kms_driver **out) |
195 | { | 195 | { |
196 | struct kms_driver *kms; | 196 | struct kms_driver *kms; |
diff --git a/libkms/exynos.c b/libkms/exynos.c index 11234825..db65f816 100644 --- a/libkms/exynos.c +++ b/libkms/exynos.c | |||
@@ -185,7 +185,7 @@ exynos_bo_destroy(struct kms_bo *_bo) | |||
185 | return 0; | 185 | return 0; |
186 | } | 186 | } |
187 | 187 | ||
188 | int | 188 | drm_private int |
189 | exynos_create(int fd, struct kms_driver **out) | 189 | exynos_create(int fd, struct kms_driver **out) |
190 | { | 190 | { |
191 | struct kms_driver *kms; | 191 | struct kms_driver *kms; |
diff --git a/libkms/intel.c b/libkms/intel.c index 51a7fd2e..a539df24 100644 --- a/libkms/intel.c +++ b/libkms/intel.c | |||
@@ -216,7 +216,7 @@ intel_bo_destroy(struct kms_bo *_bo) | |||
216 | return 0; | 216 | return 0; |
217 | } | 217 | } |
218 | 218 | ||
219 | int | 219 | drm_private int |
220 | intel_create(int fd, struct kms_driver **out) | 220 | intel_create(int fd, struct kms_driver **out) |
221 | { | 221 | { |
222 | struct kms_driver *kms; | 222 | struct kms_driver *kms; |
diff --git a/libkms/internal.h b/libkms/internal.h index f831b57d..e7d5c463 100644 --- a/libkms/internal.h +++ b/libkms/internal.h | |||
@@ -29,6 +29,11 @@ | |||
29 | #ifndef INTERNAL_H_ | 29 | #ifndef INTERNAL_H_ |
30 | #define INTERNAL_H_ | 30 | #define INTERNAL_H_ |
31 | 31 | ||
32 | #ifdef HAVE_CONFIG_H | ||
33 | #include "config.h" | ||
34 | #endif | ||
35 | |||
36 | #include "libdrm.h" | ||
32 | #include "libkms.h" | 37 | #include "libkms.h" |
33 | 38 | ||
34 | struct kms_driver | 39 | struct kms_driver |
@@ -62,18 +67,18 @@ struct kms_bo | |||
62 | unsigned handle; | 67 | unsigned handle; |
63 | }; | 68 | }; |
64 | 69 | ||
65 | int linux_create(int fd, struct kms_driver **out); | 70 | drm_private int linux_create(int fd, struct kms_driver **out); |
66 | 71 | ||
67 | int vmwgfx_create(int fd, struct kms_driver **out); | 72 | drm_private int vmwgfx_create(int fd, struct kms_driver **out); |
68 | 73 | ||
69 | int intel_create(int fd, struct kms_driver **out); | 74 | drm_private int intel_create(int fd, struct kms_driver **out); |
70 | 75 | ||
71 | int dumb_create(int fd, struct kms_driver **out); | 76 | drm_private int dumb_create(int fd, struct kms_driver **out); |
72 | 77 | ||
73 | int nouveau_create(int fd, struct kms_driver **out); | 78 | drm_private int nouveau_create(int fd, struct kms_driver **out); |
74 | 79 | ||
75 | int radeon_create(int fd, struct kms_driver **out); | 80 | drm_private int radeon_create(int fd, struct kms_driver **out); |
76 | 81 | ||
77 | int exynos_create(int fd, struct kms_driver **out); | 82 | drm_private int exynos_create(int fd, struct kms_driver **out); |
78 | 83 | ||
79 | #endif | 84 | #endif |
diff --git a/libkms/linux.c b/libkms/linux.c index 77a0bbe9..06dbc421 100644 --- a/libkms/linux.c +++ b/libkms/linux.c | |||
@@ -39,9 +39,9 @@ | |||
39 | #include <xf86drm.h> | 39 | #include <xf86drm.h> |
40 | #include <string.h> | 40 | #include <string.h> |
41 | #include <unistd.h> | 41 | #include <unistd.h> |
42 | |||
43 | #include <sys/stat.h> | 42 | #include <sys/stat.h> |
44 | 43 | ||
44 | #include "libdrm.h" | ||
45 | #include "internal.h" | 45 | #include "internal.h" |
46 | 46 | ||
47 | #define PATH_SIZE 512 | 47 | #define PATH_SIZE 512 |
@@ -225,7 +225,7 @@ linux_from_udev(int fd, struct kms_driver **out) | |||
225 | } | 225 | } |
226 | #endif | 226 | #endif |
227 | 227 | ||
228 | int | 228 | drm_private int |
229 | linux_create(int fd, struct kms_driver **out) | 229 | linux_create(int fd, struct kms_driver **out) |
230 | { | 230 | { |
231 | if (!dumb_create(fd, out)) | 231 | if (!dumb_create(fd, out)) |
diff --git a/libkms/nouveau.c b/libkms/nouveau.c index 228903ff..7f57f214 100644 --- a/libkms/nouveau.c +++ b/libkms/nouveau.c | |||
@@ -198,7 +198,7 @@ nouveau_bo_destroy(struct kms_bo *_bo) | |||
198 | return 0; | 198 | return 0; |
199 | } | 199 | } |
200 | 200 | ||
201 | int | 201 | drm_private int |
202 | nouveau_create(int fd, struct kms_driver **out) | 202 | nouveau_create(int fd, struct kms_driver **out) |
203 | { | 203 | { |
204 | struct kms_driver *kms; | 204 | struct kms_driver *kms; |
diff --git a/libkms/radeon.c b/libkms/radeon.c index 9383a0ae..f0d5db62 100644 --- a/libkms/radeon.c +++ b/libkms/radeon.c | |||
@@ -219,7 +219,7 @@ radeon_bo_destroy(struct kms_bo *_bo) | |||
219 | return 0; | 219 | return 0; |
220 | } | 220 | } |
221 | 221 | ||
222 | int | 222 | drm_private int |
223 | radeon_create(int fd, struct kms_driver **out) | 223 | radeon_create(int fd, struct kms_driver **out) |
224 | { | 224 | { |
225 | struct kms_driver *kms; | 225 | struct kms_driver *kms; |
diff --git a/libkms/vmwgfx.c b/libkms/vmwgfx.c index bc04133f..3c99ea33 100644 --- a/libkms/vmwgfx.c +++ b/libkms/vmwgfx.c | |||
@@ -185,7 +185,7 @@ vmwgfx_bo_destroy(struct kms_bo *_bo) | |||
185 | return 0; | 185 | return 0; |
186 | } | 186 | } |
187 | 187 | ||
188 | int | 188 | drm_private int |
189 | vmwgfx_create(int fd, struct kms_driver **out) | 189 | vmwgfx_create(int fd, struct kms_driver **out) |
190 | { | 190 | { |
191 | struct kms_driver *kms; | 191 | struct kms_driver *kms; |