VSF Documented
Data Structures | Macros | Typedefs | Functions | Variables
vsf_xboot.c File Reference
#include "./vsf_xboot_cfg.h"
#include <unistd.h>
#include <xboot.h>
#include <string.h>

Data Structures

struct  xboot_task_priv_t
 

Macros

#define __VSF_LINUX_CLASS_INHERIT__
 

Typedefs

typedef struct xboot_task_priv_t xboot_task_priv_t
 

Functions

size_t strlcpy (char *dest, const char *src, size_t size)
 
char * strsep (char **stringp, const char *delim)
 
int vfs_open (const char *pathname, int flags,...)
 
off_t vfs_lseek (int fd, off_t offset, int whence)
 
ssize_t vfs_read (int fd, void *buf, size_t count)
 
ssize_t vfs_write (int fd, void *buf, size_t count)
 
int vfs_close (int fd)
 
struct xfs_file_txfs_open_read (struct xfs_context_t *ctx, const char *name)
 
s64_t xfs_length (struct xfs_file_t *file)
 
s64_t xfs_read (struct xfs_file_t *file, void *buf, s64_t size)
 
void xfs_close (struct xfs_file_t *file)
 
s64_t xfs_seek (struct xfs_file_t *file, s64_t offset)
 
int fls (int x)
 
struct window_twindow_alloc (const char *fb, const char *input, void *data)
 
void window_free (struct window_t *window)
 
int window_is_active (struct window_t *window)
 
int window_get_width (struct window_t *window)
 
int window_get_height (struct window_t *window)
 
void __xboot_disp_on_ready (vk_disp_t *disp)
 
void window_present (struct window_t *window, struct color_t *c, void *o, void(*draw)(struct window_t *, void *))
 
int window_pump_event (struct window_t *window, struct event_t *evt)
 
struct task_ttask_create (struct scheduler_t *sched, const char *name, task_func_t func, void *data, size_t stksz, int nice)
 
void task_destroy (struct task_t *task)
 
void task_suspend (struct task_t *task)
 
void task_resume (struct task_t *task)
 
void task_yield (void)
 
ktime_t ktime_get (void)
 
void vsf_xboot_bind (vk_disp_t *disp)
 

Variables

struct { 
 
   struct window_manager_t   wm 
 
   vk_input_notifier_t   notifier 
 
   uint8_t   event_rpos 
 
   uint8_t   event_wpos 
 
   bool   touch_is_down [8] 
 
   struct event_t   events [32] 
 
__xboot = { 0 } 
 

Macro Definition Documentation

◆ __VSF_LINUX_CLASS_INHERIT__

#define __VSF_LINUX_CLASS_INHERIT__

Typedef Documentation

◆ xboot_task_priv_t

Function Documentation

◆ strlcpy()

size_t strlcpy ( char *  dest,
const char *  src,
size_t  size 
)

◆ strsep()

char * strsep ( char **  stringp,
const char *  delim 
)

◆ vfs_open()

int vfs_open ( const char *  pathname,
int  flags,
  ... 
)

◆ vfs_lseek()

off_t vfs_lseek ( int  fd,
off_t  offset,
int  whence 
)

◆ vfs_read()

ssize_t vfs_read ( int  fd,
void *  buf,
size_t  count 
)

◆ vfs_write()

ssize_t vfs_write ( int  fd,
void *  buf,
size_t  count 
)

◆ vfs_close()

int vfs_close ( int  fd)

◆ xfs_open_read()

struct xfs_file_t * xfs_open_read ( struct xfs_context_t ctx,
const char *  name 
)

◆ xfs_length()

s64_t xfs_length ( struct xfs_file_t file)

◆ xfs_read()

s64_t xfs_read ( struct xfs_file_t file,
void *  buf,
s64_t  size 
)

◆ xfs_close()

void xfs_close ( struct xfs_file_t file)

◆ xfs_seek()

s64_t xfs_seek ( struct xfs_file_t file,
s64_t  offset 
)

◆ fls()

int fls ( int  x)

◆ window_alloc()

struct window_t * window_alloc ( const char *  fb,
const char *  input,
void *  data 
)

◆ window_free()

void window_free ( struct window_t window)

◆ window_is_active()

int window_is_active ( struct window_t window)

◆ window_get_width()

int window_get_width ( struct window_t window)

◆ window_get_height()

int window_get_height ( struct window_t window)

◆ __xboot_disp_on_ready()

void __xboot_disp_on_ready ( vk_disp_t disp)

◆ window_present()

void window_present ( struct window_t window,
struct color_t *  c,
void *  o,
void(*)(struct window_t *, void *)  draw 
)

◆ window_pump_event()

int window_pump_event ( struct window_t window,
struct event_t evt 
)

◆ task_create()

struct task_t * task_create ( struct scheduler_t sched,
const char *  name,
task_func_t  func,
void *  data,
size_t  stksz,
int  nice 
)

◆ task_destroy()

void task_destroy ( struct task_t task)

◆ task_suspend()

void task_suspend ( struct task_t task)

◆ task_resume()

void task_resume ( struct task_t task)

◆ task_yield()

void task_yield ( void  )

◆ ktime_get()

ktime_t ktime_get ( void  )

◆ vsf_xboot_bind()

void vsf_xboot_bind ( vk_disp_t disp)

Variable Documentation

◆ wm

struct window_manager_t wm

◆ notifier

◆ event_rpos

uint8_t event_rpos

◆ event_wpos

uint8_t event_wpos

◆ touch_is_down

bool touch_is_down[8]

◆ events

struct event_t events[32]

◆ [struct]

struct { ... } __xboot