Method
PhocServersetup
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:
PhocConfigThe 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:
GMainLoopThe mainloop.
The data is owned by the caller of the method. flags-
Type:
PhocServerFlagsThe flags to use for spawning the server.