Create documentation

This is just a proof-of-concept. If you have a preferred way to style this, let me know. Also, let me know if anything is either factually incorrect, too summarized, or too verbose.

First commit is `server_init`
This commit is contained in:
Aareon Sullivan 2019-03-15 10:51:33 -07:00 committed by GitHub
parent 62ce311c8e
commit d1a4b90dc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,6 +26,16 @@
bool
server_init(struct kiwmi_server *server)
{
// Returns a boolean depending on the success or failure of creating
// the various components we need.
//
// Setup the display and display backend. If we can't create the backend
// we log it, destroy the display and return. Then create the
// renderer and initialize it, as well as the compositor, the device-
// manager, and the cursor. If we can't create the cursor, fail out.
// We then tell Wayland that `&server->outputs` is where we
// want to receive events, and that we will send Wayland our events
// via `&server->inputs`. If all of this goes well, return `true`.
wlr_log(WLR_DEBUG, "Initializing Wayland server");
server->wl_display = wl_display_create();