agileRTOS (zrtos)  Version 0.8.0 (ghostbuster)
vm_function.h File Reference
#include <zrtos/types.h>
#include <zrtos/error.h>
Include dependency graph for vm_function.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _zrtos_vm_function_t
 

Macros

#define ZRTOS_VM_FUNCTION(id_, callback_, context_)
 

Typedefs

typedef size_t zrtos_vm_function_id_t
 
typedef zrtos_error_t(* zrtos_vm_function_callback_t) (struct _zrtos_vm_t *vm, struct _zrtos_vm_function_t *fn)
 
typedef struct _zrtos_vm_function_t zrtos_vm_function_t
 

Functions

int zrtos_vm_function__cmp (const void *aa, const void *bb)
 
zrtos_vm_function_callback_t zrtos_vm_function__get_callback (zrtos_vm_function_t *thiz)
 
void * zrtos_vm_function__get_context (zrtos_vm_function_t *thiz)
 

Macro Definition Documentation

◆ ZRTOS_VM_FUNCTION

#define ZRTOS_VM_FUNCTION (   id_,
  callback_,
  context_ 
)
Value:
{ \
.id=id_ \
,.callback=callback_ \
,.context=context_ \
}

Definition at line 31 of file vm_function.h.

Typedef Documentation

◆ zrtos_vm_function_callback_t

typedef zrtos_error_t(* zrtos_vm_function_callback_t) (struct _zrtos_vm_t *vm,struct _zrtos_vm_function_t *fn)

Definition at line 20 of file vm_function.h.

◆ zrtos_vm_function_id_t

Definition at line 17 of file vm_function.h.

◆ zrtos_vm_function_t

Function Documentation

◆ zrtos_vm_function__cmp()

int zrtos_vm_function__cmp ( const void *  aa,
const void *  bb 
)

Definition at line 38 of file vm_function.h.

38  {
39  const zrtos_vm_function_t *a = (const zrtos_vm_function_t *)aa;
40  const zrtos_vm_function_t *b = (const zrtos_vm_function_t *)bb;
41  return a->id - b->id;
42 }
zrtos_vm_function_id_t id
Definition: vm_function.h:26
Here is the caller graph for this function:

◆ zrtos_vm_function__get_callback()

zrtos_vm_function_callback_t zrtos_vm_function__get_callback ( zrtos_vm_function_t thiz)

Definition at line 44 of file vm_function.h.

46  {
47  return thiz->callback;
48 }
zrtos_vm_function_callback_t callback
Definition: vm_function.h:27
Here is the caller graph for this function:

◆ zrtos_vm_function__get_context()

void* zrtos_vm_function__get_context ( zrtos_vm_function_t thiz)

Definition at line 50 of file vm_function.h.

52  {
53  return thiz->context;
54 }