Mercurial > molko
comparison examples/example-notify/example-notify.c @ 462:5729efd23286
core: core -> mlk_core
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 27 Feb 2023 09:52:55 +0100 |
parents | 541cb950997b |
children | 01f5580e43d1 |
comparison
equal
deleted
inserted
replaced
461:d7874f11565f | 462:5729efd23286 |
---|---|
49 static struct state *states[1]; | 49 static struct state *states[1]; |
50 | 50 |
51 static void | 51 static void |
52 init(void) | 52 init(void) |
53 { | 53 { |
54 if (core_init("fr.malikania", "example-notify") < 0 || ui_init() < 0) | 54 if (mlk_core_init("fr.malikania", "example-notify") < 0 || ui_init() < 0) |
55 panic(); | 55 panic(); |
56 if (window_open("Example - Notify", W, H) < 0) | 56 if (window_open("Example - Notify", W, H) < 0) |
57 panic(); | 57 panic(); |
58 if (mlk_image_openmem(&icon, assets_images_sword, sizeof (assets_images_sword)) < 0) | 58 if (mlk_image_openmem(&icon, assets_images_sword, sizeof (assets_images_sword)) < 0) |
59 panic(); | 59 panic(); |
114 static void | 114 static void |
115 quit(void) | 115 quit(void) |
116 { | 116 { |
117 window_finish(); | 117 window_finish(); |
118 ui_finish(); | 118 ui_finish(); |
119 core_finish(); | 119 mlk_core_finish(); |
120 } | 120 } |
121 | 121 |
122 int | 122 int |
123 main(int argc, char **argv) | 123 main(int argc, char **argv) |
124 { | 124 { |