/*
* kmscon - Bit-Blitting Bulk Text Renderer Backend
*
- * Copyright (c) 2012 David Herrmann <dh.herrmann@googlemail.com>
+ * Copyright (c) 2012-2013 David Herrmann <dh.herrmann@googlemail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
-#include "log.h"
+#include "shl_log.h"
#include "text.h"
-#include "uterm.h"
+#include "uterm_video.h"
#define LOG_SUBSYSTEM "text_bbulk"
txt->cols * txt->rows);
}
-static const struct kmscon_text_ops kmscon_text_bbulk_ops = {
+struct kmscon_text_ops kmscon_text_bbulk_ops = {
.name = "bbulk",
+ .owner = NULL,
.init = bbulk_init,
.destroy = bbulk_destroy,
.set = bbulk_set,
.render = bbulk_render,
.abort = NULL,
};
-
-int kmscon_text_bbulk_load(void)
-{
- int ret;
-
- ret = kmscon_text_register(&kmscon_text_bbulk_ops);
- if (ret) {
- log_error("cannot register bbulk renderer");
- return ret;
- }
-
- return 0;
-}
-
-void kmscon_text_bbulk_unload(void)
-{
- kmscon_text_unregister(kmscon_text_bbulk_ops.name);
-}