#include <pthread.h>
#include <stdlib.h>
#include <string.h>
-#include "log.h"
#include "shl_dlist.h"
+#include "shl_log.h"
+#include "shl_misc.h"
#include "shl_register.h"
#include "text.h"
-#include "uterm.h"
+#include "uterm_video.h"
#define LOG_SUBSYSTEM "text"
*
* Returns: 0 on success, negative error code on failure
*/
+SHL_EXPORT
int kmscon_text_register(const struct kmscon_text_ops *ops)
{
int ret;
* This unregisters the text-backend that is registered with name @name. If
* @name is not found, nothing is done.
*/
+SHL_EXPORT
void kmscon_text_unregister(const char *name)
{
log_debug("unregister backend %s", name);
txt->rendering = false;
}
-int kmscon_text_prepare_cb(struct tsm_screen *con, void *data)
-{
- return kmscon_text_prepare(data);
-}
-
int kmscon_text_draw_cb(struct tsm_screen *con,
uint32_t id, const uint32_t *ch, size_t len,
unsigned int width,
unsigned int posx, unsigned int posy,
- const struct tsm_screen_attr *attr, void *data)
+ const struct tsm_screen_attr *attr,
+ tsm_age_t age, void *data)
{
return kmscon_text_draw(data, id, ch, len, width, posx, posy, attr);
}
-
-int kmscon_text_render_cb(struct tsm_screen *con, void *data)
-{
- return kmscon_text_render(data);
-}