Meta.WaylandClient.new
Description: Reference for Meta.WaylandClient.new

### Constructor

# Meta WaylandClientnew

#### Declaration [src]

    MetaWaylandClient*
    meta_wayland_client_new (
      GSubprocessLauncher* launcher,
      GError** error
    )

#### Description [src]

Creates a new `MetaWaylandClient`. The GSubprocesslauncher passed is stored internally and will be used to launch the subprocess.

#### Parameters

`launcher` | `GSubprocessLauncher`
| A GSubprocessLauncher to use to launch the subprocess.
| The data is owned by the caller of the function.
`error` | `GError **`
| The return location for a `GError*`, or `NULL`.

#### Return value

Returns: | `MetaWaylandClient`
| A `MetaWaylandClient` or `NULL` if %error is set. Free with g_object_unref().
| The caller of the function takes ownership of the data, and is responsible for freeing it.