Phoc.Server.setup

### Method

# Phoc Serversetup

#### Declaration [src]

    gboolean
    phoc_server_setup (
      PhocServer* self,
      PhocConfig* config,
      const char* exec,
      GMainLoop* mainloop,
      PhocServerFlags flags
    )

#### Description [src]

Perform wayland server initialization: parse command line and config, create the wayland socket, setup env vars.

#### Parameters

`config`

  Type: `PhocConfig`

  The configuration.

  The instance takes ownership of the data, and is responsible for freeing it.

`exec`

  Type: `const char*`

  The executable to run.

  The data is owned by the caller of the method.
  The value is a NUL terminated UTF-8 string.

`mainloop`

  Type: `GMainLoop`

  The mainloop.

  The data is owned by the caller of the method.

`flags`

  Type: `PhocServerFlags`

  The flags to use for spawning the server.

#### Return value

Type: `gboolean`

`TRUE` on success, `FALSE` otherwise.