17.02.2022 22:19, Thierry Reding пишет: > From: Thierry Reding <treding@xxxxxxxxxx> > > Most functions in libdrm_tegra take as first parameter the object that > they operate on. Make the device and buffer object creation functions > follow the same scheme. > > Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> > --- > tegra/tegra.c | 13 +++++++------ > tegra/tegra.h | 10 +++++----- > tests/tegra/openclose.c | 2 +- > 3 files changed, 13 insertions(+), 12 deletions(-) > > diff --git a/tegra/tegra.c b/tegra/tegra.c > index cf091c1d758f..6a51c43110e5 100644 > --- a/tegra/tegra.c > +++ b/tegra/tegra.c > @@ -66,7 +66,7 @@ static int drm_tegra_wrap(struct drm_tegra **drmp, int fd, bool close) > return 0; > } > > -drm_public int drm_tegra_new(struct drm_tegra **drmp, int fd) > +drm_public int drm_tegra_new(int fd, struct drm_tegra **drmp) Does libdrm allow to break ABI?