IBNOS
Classes | Macros
object.h File Reference
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <util/util.h>
#include <util/list.h>
Include dependency graph for object.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  objectFunctions
 
struct  object
 

Macros

#define objectContainer(p, type, functions)   ((type *)((uint8_t *)__objectCheckType((p), (functions)) - offsetof(type, obj)))
 
#define objectAddRef(p)   __objectAddRef(&(p)->obj)
 
#define objectRelease(p)   __objectRelease(&(p)->obj)
 
#define objectGetMinHandle(p)   __objectGetMinHandle(&(p)->obj)
 
#define objectShutdown(p, a)   __objectShutdown(&(p)->obj, a)
 
#define objectGetStatus(p, a)   __objectGetStatus(&(p)->obj, a)
 
#define objectWait(p, a, b)   __objectWait(&(p)->obj, a, b)
 
#define objectSignal(p, a)   __objectSignal(&(p)->obj, a)
 
#define objectWrite(p, a, b)   __objectWrite(&(p)->obj, a, b)
 
#define objectRead(p, a, b)   __objectRead(&(p)->obj, a, b)
 
#define objectAttachObj(p, a, b, c)   __objectAttachObj(&(p)->obj, a, b, c)
 
#define objectDetachObj(p, a)   __objectDetachObj(&(p)->obj, a)
 

Macro Definition Documentation

◆ objectAddRef

#define objectAddRef (   p)    __objectAddRef(&(p)->obj)

Definition at line 89 of file object.h.

◆ objectAttachObj

#define objectAttachObj (   p,
  a,
  b,
 
)    __objectAttachObj(&(p)->obj, a, b, c)

Definition at line 147 of file object.h.

◆ objectContainer

#define objectContainer (   p,
  type,
  functions 
)    ((type *)((uint8_t *)__objectCheckType((p), (functions)) - offsetof(type, obj)))

Definition at line 66 of file object.h.

◆ objectDetachObj

#define objectDetachObj (   p,
 
)    __objectDetachObj(&(p)->obj, a)

Definition at line 153 of file object.h.

◆ objectGetMinHandle

#define objectGetMinHandle (   p)    __objectGetMinHandle(&(p)->obj)

Definition at line 105 of file object.h.

◆ objectGetStatus

#define objectGetStatus (   p,
 
)    __objectGetStatus(&(p)->obj, a)

Definition at line 117 of file object.h.

◆ objectRead

#define objectRead (   p,
  a,
 
)    __objectRead(&(p)->obj, a, b)

Definition at line 141 of file object.h.

◆ objectRelease

#define objectRelease (   p)    __objectRelease(&(p)->obj)

Definition at line 97 of file object.h.

◆ objectShutdown

#define objectShutdown (   p,
 
)    __objectShutdown(&(p)->obj, a)

Definition at line 111 of file object.h.

◆ objectSignal

#define objectSignal (   p,
 
)    __objectSignal(&(p)->obj, a)

Definition at line 129 of file object.h.

◆ objectWait

#define objectWait (   p,
  a,
 
)    __objectWait(&(p)->obj, a, b)

Definition at line 123 of file object.h.

◆ objectWrite

#define objectWrite (   p,
  a,
 
)    __objectWrite(&(p)->obj, a, b)

Definition at line 135 of file object.h.