зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1767142: apply code formatting via Lando
# ignore-this-changeset
This commit is contained in:
Родитель
04499d4fbe
Коммит
516f870d33
|
@ -37,8 +37,10 @@ extern "C" {
|
|||
* rounding algorithm for subsurface position and size is not defined.
|
||||
*
|
||||
* @section page_ifaces_fractional_scale_v1 Interfaces
|
||||
* - @subpage page_iface_wp_fractional_scale_manager_v1 - fractional surface scale information
|
||||
* - @subpage page_iface_wp_fractional_scale_v1 - fractional scale interface to a wl_surface
|
||||
* - @subpage page_iface_wp_fractional_scale_manager_v1 - fractional surface
|
||||
* scale information
|
||||
* - @subpage page_iface_wp_fractional_scale_v1 - fractional scale interface to
|
||||
* a wl_surface
|
||||
* @section page_copyright_fractional_scale_v1 Copyright
|
||||
* <pre>
|
||||
*
|
||||
|
@ -71,7 +73,8 @@ struct wp_fractional_scale_v1;
|
|||
#ifndef WP_FRACTIONAL_SCALE_MANAGER_V1_INTERFACE
|
||||
# define WP_FRACTIONAL_SCALE_MANAGER_V1_INTERFACE
|
||||
/**
|
||||
* @page page_iface_wp_fractional_scale_manager_v1 wp_fractional_scale_manager_v1
|
||||
* @page page_iface_wp_fractional_scale_manager_v1
|
||||
* wp_fractional_scale_manager_v1
|
||||
* @section page_iface_wp_fractional_scale_manager_v1_desc Description
|
||||
*
|
||||
* A global interface for requesting surfaces to use fractional scales.
|
||||
|
@ -79,7 +82,8 @@ struct wp_fractional_scale_v1;
|
|||
* See @ref iface_wp_fractional_scale_manager_v1.
|
||||
*/
|
||||
/**
|
||||
* @defgroup iface_wp_fractional_scale_manager_v1 The wp_fractional_scale_manager_v1 interface
|
||||
* @defgroup iface_wp_fractional_scale_manager_v1 The
|
||||
* wp_fractional_scale_manager_v1 interface
|
||||
*
|
||||
* A global interface for requesting surfaces to use fractional scales.
|
||||
*/
|
||||
|
@ -118,7 +122,6 @@ enum wp_fractional_scale_manager_v1_error {
|
|||
#define WP_FRACTIONAL_SCALE_MANAGER_V1_DESTROY 0
|
||||
#define WP_FRACTIONAL_SCALE_MANAGER_V1_GET_FRACTIONAL_SCALE 1
|
||||
|
||||
|
||||
/**
|
||||
* @ingroup iface_wp_fractional_scale_manager_v1
|
||||
*/
|
||||
|
@ -129,22 +132,22 @@ enum wp_fractional_scale_manager_v1_error {
|
|||
#define WP_FRACTIONAL_SCALE_MANAGER_V1_GET_FRACTIONAL_SCALE_SINCE_VERSION 1
|
||||
|
||||
/** @ingroup iface_wp_fractional_scale_manager_v1 */
|
||||
static inline void
|
||||
wp_fractional_scale_manager_v1_set_user_data(struct wp_fractional_scale_manager_v1 *wp_fractional_scale_manager_v1, void *user_data)
|
||||
{
|
||||
wl_proxy_set_user_data((struct wl_proxy *) wp_fractional_scale_manager_v1, user_data);
|
||||
static inline void wp_fractional_scale_manager_v1_set_user_data(
|
||||
struct wp_fractional_scale_manager_v1* wp_fractional_scale_manager_v1,
|
||||
void* user_data) {
|
||||
wl_proxy_set_user_data((struct wl_proxy*)wp_fractional_scale_manager_v1,
|
||||
user_data);
|
||||
}
|
||||
|
||||
/** @ingroup iface_wp_fractional_scale_manager_v1 */
|
||||
static inline void *
|
||||
wp_fractional_scale_manager_v1_get_user_data(struct wp_fractional_scale_manager_v1 *wp_fractional_scale_manager_v1)
|
||||
{
|
||||
return wl_proxy_get_user_data((struct wl_proxy *) wp_fractional_scale_manager_v1);
|
||||
static inline void* wp_fractional_scale_manager_v1_get_user_data(
|
||||
struct wp_fractional_scale_manager_v1* wp_fractional_scale_manager_v1) {
|
||||
return wl_proxy_get_user_data(
|
||||
(struct wl_proxy*)wp_fractional_scale_manager_v1);
|
||||
}
|
||||
|
||||
static inline uint32_t
|
||||
wp_fractional_scale_manager_v1_get_version(struct wp_fractional_scale_manager_v1 *wp_fractional_scale_manager_v1)
|
||||
{
|
||||
static inline uint32_t wp_fractional_scale_manager_v1_get_version(
|
||||
struct wp_fractional_scale_manager_v1* wp_fractional_scale_manager_v1) {
|
||||
return wl_proxy_get_version((struct wl_proxy*)wp_fractional_scale_manager_v1);
|
||||
}
|
||||
|
||||
|
@ -155,9 +158,8 @@ wp_fractional_scale_manager_v1_get_version(struct wp_fractional_scale_manager_v1
|
|||
* object anymore. This does not affect any other objects,
|
||||
* wp_fractional_scale_v1 objects included.
|
||||
*/
|
||||
static inline void
|
||||
wp_fractional_scale_manager_v1_destroy(struct wp_fractional_scale_manager_v1 *wp_fractional_scale_manager_v1)
|
||||
{
|
||||
static inline void wp_fractional_scale_manager_v1_destroy(
|
||||
struct wp_fractional_scale_manager_v1* wp_fractional_scale_manager_v1) {
|
||||
wl_proxy_marshal((struct wl_proxy*)wp_fractional_scale_manager_v1,
|
||||
WP_FRACTIONAL_SCALE_MANAGER_V1_DESTROY);
|
||||
|
||||
|
@ -173,12 +175,15 @@ wp_fractional_scale_manager_v1_destroy(struct wp_fractional_scale_manager_v1 *wp
|
|||
* protocol error is raised.
|
||||
*/
|
||||
static inline struct wp_fractional_scale_v1*
|
||||
wp_fractional_scale_manager_v1_get_fractional_scale(struct wp_fractional_scale_manager_v1 *wp_fractional_scale_manager_v1, struct wl_surface *surface)
|
||||
{
|
||||
wp_fractional_scale_manager_v1_get_fractional_scale(
|
||||
struct wp_fractional_scale_manager_v1* wp_fractional_scale_manager_v1,
|
||||
struct wl_surface* surface) {
|
||||
struct wl_proxy* id;
|
||||
|
||||
id = wl_proxy_marshal_constructor((struct wl_proxy *) wp_fractional_scale_manager_v1,
|
||||
WP_FRACTIONAL_SCALE_MANAGER_V1_GET_FRACTIONAL_SCALE, &wp_fractional_scale_v1_interface, NULL, surface);
|
||||
id = wl_proxy_marshal_constructor(
|
||||
(struct wl_proxy*)wp_fractional_scale_manager_v1,
|
||||
WP_FRACTIONAL_SCALE_MANAGER_V1_GET_FRACTIONAL_SCALE,
|
||||
&wp_fractional_scale_v1_interface, NULL, surface);
|
||||
|
||||
return (struct wp_fractional_scale_v1*)id;
|
||||
}
|
||||
|
@ -206,10 +211,9 @@ struct wp_fractional_scale_v1_listener {
|
|||
/**
|
||||
* @ingroup iface_wp_fractional_scale_v1
|
||||
*/
|
||||
static inline int
|
||||
wp_fractional_scale_v1_add_listener(struct wp_fractional_scale_v1 *wp_fractional_scale_v1,
|
||||
const struct wp_fractional_scale_v1_listener *listener, void *data)
|
||||
{
|
||||
static inline int wp_fractional_scale_v1_add_listener(
|
||||
struct wp_fractional_scale_v1* wp_fractional_scale_v1,
|
||||
const struct wp_fractional_scale_v1_listener* listener, void* data) {
|
||||
return wl_proxy_add_listener((struct wl_proxy*)wp_fractional_scale_v1,
|
||||
(void (**)(void))listener, data);
|
||||
}
|
||||
|
@ -227,22 +231,19 @@ wp_fractional_scale_v1_add_listener(struct wp_fractional_scale_v1 *wp_fractional
|
|||
#define WP_FRACTIONAL_SCALE_V1_DESTROY_SINCE_VERSION 1
|
||||
|
||||
/** @ingroup iface_wp_fractional_scale_v1 */
|
||||
static inline void
|
||||
wp_fractional_scale_v1_set_user_data(struct wp_fractional_scale_v1 *wp_fractional_scale_v1, void *user_data)
|
||||
{
|
||||
static inline void wp_fractional_scale_v1_set_user_data(
|
||||
struct wp_fractional_scale_v1* wp_fractional_scale_v1, void* user_data) {
|
||||
wl_proxy_set_user_data((struct wl_proxy*)wp_fractional_scale_v1, user_data);
|
||||
}
|
||||
|
||||
/** @ingroup iface_wp_fractional_scale_v1 */
|
||||
static inline void *
|
||||
wp_fractional_scale_v1_get_user_data(struct wp_fractional_scale_v1 *wp_fractional_scale_v1)
|
||||
{
|
||||
static inline void* wp_fractional_scale_v1_get_user_data(
|
||||
struct wp_fractional_scale_v1* wp_fractional_scale_v1) {
|
||||
return wl_proxy_get_user_data((struct wl_proxy*)wp_fractional_scale_v1);
|
||||
}
|
||||
|
||||
static inline uint32_t
|
||||
wp_fractional_scale_v1_get_version(struct wp_fractional_scale_v1 *wp_fractional_scale_v1)
|
||||
{
|
||||
static inline uint32_t wp_fractional_scale_v1_get_version(
|
||||
struct wp_fractional_scale_v1* wp_fractional_scale_v1) {
|
||||
return wl_proxy_get_version((struct wl_proxy*)wp_fractional_scale_v1);
|
||||
}
|
||||
|
||||
|
@ -252,9 +253,8 @@ wp_fractional_scale_v1_get_version(struct wp_fractional_scale_v1 *wp_fractional_
|
|||
* Destroy the fractional scale object. When this object is destroyed,
|
||||
* preferred_scale events will no longer be sent.
|
||||
*/
|
||||
static inline void
|
||||
wp_fractional_scale_v1_destroy(struct wp_fractional_scale_v1 *wp_fractional_scale_v1)
|
||||
{
|
||||
static inline void wp_fractional_scale_v1_destroy(
|
||||
struct wp_fractional_scale_v1* wp_fractional_scale_v1) {
|
||||
wl_proxy_marshal((struct wl_proxy*)wp_fractional_scale_v1,
|
||||
WP_FRACTIONAL_SCALE_V1_DESTROY);
|
||||
|
||||
|
|
|
@ -53,10 +53,10 @@ static const struct wl_message wp_fractional_scale_manager_v1_requests[] = {
|
|||
{"get_fractional_scale", "no", fractional_scale_v1_types + 1},
|
||||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface wp_fractional_scale_manager_v1_interface = {
|
||||
"wp_fractional_scale_manager_v1", 1,
|
||||
2, wp_fractional_scale_manager_v1_requests,
|
||||
0, NULL,
|
||||
WL_PRIVATE const struct wl_interface wp_fractional_scale_manager_v1_interface =
|
||||
{
|
||||
"wp_fractional_scale_manager_v1", 1, 2,
|
||||
wp_fractional_scale_manager_v1_requests, 0, NULL,
|
||||
};
|
||||
|
||||
static const struct wl_message wp_fractional_scale_v1_requests[] = {
|
||||
|
@ -68,8 +68,6 @@ static const struct wl_message wp_fractional_scale_v1_events[] = {
|
|||
};
|
||||
|
||||
WL_PRIVATE const struct wl_interface wp_fractional_scale_v1_interface = {
|
||||
"wp_fractional_scale_v1", 1,
|
||||
1, wp_fractional_scale_v1_requests,
|
||||
1, wp_fractional_scale_v1_events,
|
||||
"wp_fractional_scale_v1", 1, 1,
|
||||
wp_fractional_scale_v1_requests, 1, wp_fractional_scale_v1_events,
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче