summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-06-23 15:08:02 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-08 17:24:00 +0200
commit1e4ce4dfbb457caa9452d16d76f112cff228ff69 (patch)
tree6cb22ce636c6f72d8374c1a52acb51eda88ef5fb /src
parentff20597ecfbaf742581c1b244868d60435791fd1 (diff)
main: added some 'demarcation' comments
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index bd61a29..7ff9040 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -19,6 +19,12 @@ struct conn {
};
namespace {
+// _ _ _ ____
+// ___| |__ ___ ___| | __ _____ _____ _ __ | |_ ___ / /\ \
+// / __| '_ \ / _ \/ __| |/ / / _ \ \ / / _ \ '_ \| __/ __| | | |
+// | (__| | | | __/ (__| < | __/\ V / __/ | | | |_\__ \ | | |
+// \___|_| |_|\___|\___|_|\_\___\___| \_/ \___|_| |_|\__|___/ | | |
+// |_____| \_\/_/
int check_events(struct wl::display *d, struct conn *c, int fd) {
struct pollfd pfd[2] = {{.fd = d->get_fd(), .events = POLLIN, .revents = 0},
{.fd = fd, .events = POLLIN, .revents = 0}};
@@ -70,6 +76,12 @@ int check_events(struct wl::display *d, struct conn *c, int fd) {
return 0;
}
+// _ _ _ _ _ ____
+// (_)_ __ (_) |_ | | __ _ _ _ ___ _ _| |_ / /\ \
+// | | '_ \| | __| | |/ _` | | | |/ _ \| | | | __| | | |
+// | | | | | | |_ | | (_| | |_| | (_) | |_| | |_| | | |
+// |_|_| |_|_|\__|___|_|\__,_|\__, |\___/ \__,_|\__| | | |
+// |_____| |___/ \_\/_/
void init_layout(struct conn &c) {
auto &o = c.outputs.front();
auto &s = c.c->screens.begin()->second;
@@ -103,6 +115,12 @@ void init_layout(struct conn &c) {
}
}
+// _ ____
+// _ __ ___ __ _(_)_ __ / /\ \
+// | '_ ` _ \ / _` | | '_ \| | | |
+// | | | | | | (_| | | | | | | | |
+// |_| |_| |_|\__,_|_|_| |_| | | |
+// \_\/_/
int main(int argc, char **argv) {
lognotice("WinMan ver. %s", WINMAN_VERSION_STRING);