mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-28 12:10:13 +01:00
add control node open
This commit is contained in:
parent
73bf5e8670
commit
87a32efcdd
2 changed files with 5 additions and 0 deletions
|
|
@ -579,6 +579,10 @@ int drmOpen(const char *name, const char *busid)
|
|||
return -1;
|
||||
}
|
||||
|
||||
int drmOpenControl(int minor)
|
||||
{
|
||||
return drmOpenMinor(minor, 0, DRM_NODE_CONTROL);
|
||||
}
|
||||
|
||||
/**
|
||||
* Free the version information returned by drmGetVersion().
|
||||
|
|
|
|||
|
|
@ -509,6 +509,7 @@ do { register unsigned int __old __asm("o0"); \
|
|||
/* General user-level programmer's API: unprivileged */
|
||||
extern int drmAvailable(void);
|
||||
extern int drmOpen(const char *name, const char *busid);
|
||||
extern int drmOpenControl(int minor);
|
||||
extern int drmClose(int fd);
|
||||
extern drmVersionPtr drmGetVersion(int fd);
|
||||
extern drmVersionPtr drmGetLibVersion(int fd);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue