1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include "graphics.h" #include <cstring> #include "utils.h" enum graphics_error_e wayc_graphics_init(struct graphics_s* graphics) { wayc_notnull(graphics); memset(graphics, 0, sizeof(*graphics)); return GRAPHICS_ERROR_NONE; } void wayc_graphics_deinit(struct graphics_s* graphics) { wayc_notnull(graphics); }