libkms: annotate private symbols
Cc: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>main
parent
47429af325
commit
983892d275
|
@ -29,9 +29,12 @@
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "libdrm.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
int kms_create(int fd, struct kms_driver **out)
|
int kms_create(int fd, struct kms_driver **out)
|
||||||
|
|
|
@ -190,7 +190,7 @@ dumb_bo_destroy(struct kms_bo *_bo)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
drm_private int
|
||||||
dumb_create(int fd, struct kms_driver **out)
|
dumb_create(int fd, struct kms_driver **out)
|
||||||
{
|
{
|
||||||
struct kms_driver *kms;
|
struct kms_driver *kms;
|
||||||
|
|
|
@ -185,7 +185,7 @@ exynos_bo_destroy(struct kms_bo *_bo)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
drm_private int
|
||||||
exynos_create(int fd, struct kms_driver **out)
|
exynos_create(int fd, struct kms_driver **out)
|
||||||
{
|
{
|
||||||
struct kms_driver *kms;
|
struct kms_driver *kms;
|
||||||
|
|
|
@ -216,7 +216,7 @@ intel_bo_destroy(struct kms_bo *_bo)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
drm_private int
|
||||||
intel_create(int fd, struct kms_driver **out)
|
intel_create(int fd, struct kms_driver **out)
|
||||||
{
|
{
|
||||||
struct kms_driver *kms;
|
struct kms_driver *kms;
|
||||||
|
|
|
@ -29,6 +29,11 @@
|
||||||
#ifndef INTERNAL_H_
|
#ifndef INTERNAL_H_
|
||||||
#define INTERNAL_H_
|
#define INTERNAL_H_
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "libdrm.h"
|
||||||
#include "libkms.h"
|
#include "libkms.h"
|
||||||
|
|
||||||
struct kms_driver
|
struct kms_driver
|
||||||
|
@ -62,18 +67,18 @@ struct kms_bo
|
||||||
unsigned handle;
|
unsigned handle;
|
||||||
};
|
};
|
||||||
|
|
||||||
int linux_create(int fd, struct kms_driver **out);
|
drm_private int linux_create(int fd, struct kms_driver **out);
|
||||||
|
|
||||||
int vmwgfx_create(int fd, struct kms_driver **out);
|
drm_private int vmwgfx_create(int fd, struct kms_driver **out);
|
||||||
|
|
||||||
int intel_create(int fd, struct kms_driver **out);
|
drm_private int intel_create(int fd, struct kms_driver **out);
|
||||||
|
|
||||||
int dumb_create(int fd, struct kms_driver **out);
|
drm_private int dumb_create(int fd, struct kms_driver **out);
|
||||||
|
|
||||||
int nouveau_create(int fd, struct kms_driver **out);
|
drm_private int nouveau_create(int fd, struct kms_driver **out);
|
||||||
|
|
||||||
int radeon_create(int fd, struct kms_driver **out);
|
drm_private int radeon_create(int fd, struct kms_driver **out);
|
||||||
|
|
||||||
int exynos_create(int fd, struct kms_driver **out);
|
drm_private int exynos_create(int fd, struct kms_driver **out);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -39,9 +39,9 @@
|
||||||
#include <xf86drm.h>
|
#include <xf86drm.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
#include "libdrm.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
#define PATH_SIZE 512
|
#define PATH_SIZE 512
|
||||||
|
@ -225,7 +225,7 @@ linux_from_udev(int fd, struct kms_driver **out)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int
|
drm_private int
|
||||||
linux_create(int fd, struct kms_driver **out)
|
linux_create(int fd, struct kms_driver **out)
|
||||||
{
|
{
|
||||||
if (!dumb_create(fd, out))
|
if (!dumb_create(fd, out))
|
||||||
|
|
|
@ -198,7 +198,7 @@ nouveau_bo_destroy(struct kms_bo *_bo)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
drm_private int
|
||||||
nouveau_create(int fd, struct kms_driver **out)
|
nouveau_create(int fd, struct kms_driver **out)
|
||||||
{
|
{
|
||||||
struct kms_driver *kms;
|
struct kms_driver *kms;
|
||||||
|
|
|
@ -219,7 +219,7 @@ radeon_bo_destroy(struct kms_bo *_bo)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
drm_private int
|
||||||
radeon_create(int fd, struct kms_driver **out)
|
radeon_create(int fd, struct kms_driver **out)
|
||||||
{
|
{
|
||||||
struct kms_driver *kms;
|
struct kms_driver *kms;
|
||||||
|
|
|
@ -185,7 +185,7 @@ vmwgfx_bo_destroy(struct kms_bo *_bo)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
drm_private int
|
||||||
vmwgfx_create(int fd, struct kms_driver **out)
|
vmwgfx_create(int fd, struct kms_driver **out)
|
||||||
{
|
{
|
||||||
struct kms_driver *kms;
|
struct kms_driver *kms;
|
||||||
|
|
Loading…
Reference in New Issue