| Index: components/exo/wayland/scoped_wl_types.h
|
| diff --git a/components/exo/wayland/scoped_wl_types.h b/components/exo/wayland/scoped_wl_types.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4ee819ded8322bff522d9dd2c46c9a5c423b1c06
|
| --- /dev/null
|
| +++ b/components/exo/wayland/scoped_wl_types.h
|
| @@ -0,0 +1,31 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef COMPONENTS_EXO_WAYLAND_SCOPED_WL_TYPES_H_
|
| +#define COMPONENTS_EXO_WAYLAND_SCOPED_WL_TYPES_H_
|
| +
|
| +#include "base/scoped_generic.h"
|
| +
|
| +extern "C" {
|
| +struct wl_display;
|
| +}
|
| +
|
| +namespace exo {
|
| +namespace wayland {
|
| +namespace internal {
|
| +
|
| +struct ScopedWLDisplayTraits {
|
| + static wl_display* InvalidValue() { return nullptr; }
|
| + static void Free(wl_display* display);
|
| +};
|
| +
|
| +} // namespace internal
|
| +
|
| +using ScopedWLDisplay =
|
| + base::ScopedGeneric<wl_display*, internal::ScopedWLDisplayTraits>;
|
| +
|
| +} // namespace wayland
|
| +} // namespace exo
|
| +
|
| +#endif // COMPONENTS_EXO_WAYLAND_SCOPED_WL_TYPES_H_
|
|
|