Modify it to adjust Tizen IVI enviroment
[platform/upstream/kmscon.git] / src / text.c
index e825d37..d7e5f0e 100644 (file)
 #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"
 
@@ -66,6 +67,7 @@ static inline void kmscon_text_destroy(void *data)
  *
  * Returns: 0 on success, negative error code on failure
  */
+SHL_EXPORT
 int kmscon_text_register(const struct kmscon_text_ops *ops)
 {
        int ret;
@@ -94,6 +96,7 @@ int kmscon_text_register(const struct kmscon_text_ops *ops)
  * 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);
@@ -434,21 +437,12 @@ void kmscon_text_abort(struct kmscon_text *txt)
        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);
-}