aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov2015-03-23 18:24:48 -0500
committerEmil Velikov2015-04-28 05:19:15 -0500
commit983892d2756b4bcfcd455ec644afe666b9e0e447 (patch)
tree0341a5aa072e9a379540bc303dd9cf4016445140
parent47429af325b6c32904c0b7e68e6ce3ff0d57aec0 (diff)
downloadexternal-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>
-rw-r--r--libkms/api.c3
-rw-r--r--libkms/dumb.c2
-rw-r--r--libkms/exynos.c2
-rw-r--r--libkms/intel.c2
-rw-r--r--libkms/internal.h19
-rw-r--r--libkms/linux.c4
-rw-r--r--libkms/nouveau.c2
-rw-r--r--libkms/radeon.c2
-rw-r--r--libkms/vmwgfx.c2
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
37int kms_create(int fd, struct kms_driver **out) 40int 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
193int 193drm_private int
194dumb_create(int fd, struct kms_driver **out) 194dumb_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
188int 188drm_private int
189exynos_create(int fd, struct kms_driver **out) 189exynos_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
219int 219drm_private int
220intel_create(int fd, struct kms_driver **out) 220intel_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
34struct kms_driver 39struct kms_driver
@@ -62,18 +67,18 @@ struct kms_bo
62 unsigned handle; 67 unsigned handle;
63}; 68};
64 69
65int linux_create(int fd, struct kms_driver **out); 70drm_private int linux_create(int fd, struct kms_driver **out);
66 71
67int vmwgfx_create(int fd, struct kms_driver **out); 72drm_private int vmwgfx_create(int fd, struct kms_driver **out);
68 73
69int intel_create(int fd, struct kms_driver **out); 74drm_private int intel_create(int fd, struct kms_driver **out);
70 75
71int dumb_create(int fd, struct kms_driver **out); 76drm_private int dumb_create(int fd, struct kms_driver **out);
72 77
73int nouveau_create(int fd, struct kms_driver **out); 78drm_private int nouveau_create(int fd, struct kms_driver **out);
74 79
75int radeon_create(int fd, struct kms_driver **out); 80drm_private int radeon_create(int fd, struct kms_driver **out);
76 81
77int exynos_create(int fd, struct kms_driver **out); 82drm_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
228int 228drm_private int
229linux_create(int fd, struct kms_driver **out) 229linux_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
201int 201drm_private int
202nouveau_create(int fd, struct kms_driver **out) 202nouveau_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
222int 222drm_private int
223radeon_create(int fd, struct kms_driver **out) 223radeon_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
188int 188drm_private int
189vmwgfx_create(int fd, struct kms_driver **out) 189vmwgfx_create(int fd, struct kms_driver **out)
190{ 190{
191 struct kms_driver *kms; 191 struct kms_driver *kms;